https://github.com/juancarlospaco/nim-hackpad
Hackathon Web Scratchpad for teaching Nim on events using Wifi with limited or no Internet.
https://github.com/juancarlospaco/nim-hackpad
nim nim-lang playground sandbox scratchpad web
Last synced: 3 months ago
JSON representation
Hackathon Web Scratchpad for teaching Nim on events using Wifi with limited or no Internet.
- Host: GitHub
- URL: https://github.com/juancarlospaco/nim-hackpad
- Owner: juancarlospaco
- License: mit
- Created: 2018-09-10T21:10:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-22T12:15:51.000Z (over 5 years ago)
- Last Synced: 2025-04-07T13:43:17.920Z (6 months ago)
- Topics: nim, nim-lang, playground, sandbox, scratchpad, web
- Language: HTML
- Size: 537 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nim-HackPad
- Hackathon Web Scratchpad for teaching Nim on events using Wifi with limited or no Internet.


# 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!.](https://play.nim-lang.org)
# 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.