https://commons.wikimedia.org/wiki/File:Fourier_series_square_wave_circles_animation.gif
Forked from André Michelle's Pen Fourier series.
A Pen by Captain Anonymous on CodePen.
| 'use strict'; | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Application Providers | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Here we configure the providers required to run adonis application. They | |
| | are registered only once and can be used inside any file using `use` | |
| | keyword. |
| 'use strict'; | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | HTTP Server Setup | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Here we join different pieces and start the HTTP server. It will be | |
| | a matter of seconds to start your shiny Adonis application. | |
| | |
| # Download latest archlinux bootstrap package, see https://www.archlinux.org/download/ | |
| wget http://ftp.nluug.nl/os/Linux/distr/archlinux/iso/2016.01.01/archlinux-bootstrap-2016.01.01-x86_64.tar.gz | |
| # Make sure you'll have enough entropy for pacman-key later. | |
| apt-get install haveged | |
| # Install the arch bootstrap image in a tmpfs. | |
| mount -t tmpfs none /mnt | |
| cd /mnt | |
| tar xvf ~/archlinux-bootstrap-2016.01.01-x86_64.tar.gz --strip-components=1 |
| /* The API controller | |
| Exports 3 methods: | |
| * post - Creates a new thread | |
| * list - Returns a list of threads | |
| * show - Displays a thread and its posts | |
| */ | |
| var Thread = require('../models/thread.js'); | |
| var Post = require('../models/post.js'); |
| info: Welcome to Nodejitsu nbrempel | |
| info: jitsu v0.11.6, node v0.8.18 | |
| info: It worked if it ends with Nodejitsu ok | |
| info: Executing command install helloworld | |
| info: Installing helloworld locally | |
| warn: Downloading packages from npm, this may take a moment... | |
| error: Error running command install helloworld | |
| error: EACCES, open '/home/nbrempel/.npm/d01b9e40-nodeapps-helloworld.lock' | |
| error: Error: EACCES, open '/home/nbrempel/.npm/d01b9e40-nodeapps-helloworld.lock' | |
| help: For help with this error contact Nodejitsu Support: |