Skip to content

Hackathon Web Scratchpad for teaching Nim on events using Wifi with limited or no Internet.

License

Notifications You must be signed in to change notification settings

juancarlospaco/nim-hackpad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nim-HackPad

  • Hackathon Web Scratchpad for teaching Nim on events using Wifi with limited or no Internet.

HackPad

HackPad

Install

  • nimble install hackpad

Use

  • ./hackpad

  • English and Spanish is supported.

  • Run nim doc hackpad.nim for more Docs.

CrossCompilation On Demand

This is for Local Offline Wifi or LAN only. This is for Local Offline Wifi or LAN only. This is for Local Offline Wifi or LAN only.

The Web App will reply any valid *.nim plain text source code file with CrossCompiled stripped native binary executables for Linux and Windows, including the SHA1 CheckSums directly on the browser (it compiles, does not run).

No extra hardening security features are in place for this feature, because the Web App is designed to be used on Local Offline Wifi or LAN, on Hackathons, HackLabs, Meetups, Workshops, and IRL Events, check firejails or docker for this, disable if you expect malware code.

For a better online solution check Nim Playground!.

Requisites

Linux -> Windows CrossCompile, this allows to generate a *.EXE for Windows on Linux.

On Linux install all this packages:

mingw-w64-binutils mingw-w64-crt mingw-w64-gcc mingw-w64-headers mingw-w64-winpthreads mingw-w64-gcc-base mingw-w64-*

Usually only installing mingw-w64-gcc gets all the rest as dependency.

Names are from ArchLinux AUR, should be similar on other Distros.

Requires NodeJS installed, for JavaScript Compilation.

If you have problems running the Compilation because of your Distro using too old packages (Debian old stable, etc), then use a Docker with Arch Linux and run the app inside of the Docker.

If you know how to Dockerize the App, Pull Requests are welcome.

About

Hackathon Web Scratchpad for teaching Nim on events using Wifi with limited or no Internet.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published