- http://tutsplus.com/tutorial/writing-modular-javascript/
- https://github.com/aranm/scalable-javascript-architecture
- https://github.com/patrick99e99/scalable-js-architecture-app
- http://scaleapp.org/
- http://addyosmani.com/largescalejavascript/
- https://github.com/tcorral/Hydra.js/
- http://alanlindsay.me/kerneljs/
- http://terrifically.org/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| meteor create --example wordplay | |
| meteor bundle myapp.tgz | |
| tar xzf myapp.tgz | |
| cd bundle | |
| (create package json with settings below) | |
| jitsu databases create mongo <dbname> | |
| (grab dbstring) | |
| jitsu env set PORT 3000 | |
| jitsu env set MONGO_URL <dbstring> | |
| jitsu deploy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # $Id: makefile 11 2007-04-03 22:25:53Z jpeltier $ | |
| # This file seems to originate from something called 'the ultimate | |
| # latex makefile' that different authors worked on. Find original | |
| # versions at: | |
| # http://tadek.pietraszek.org/blog/2006/03/24/the-ultimate-latex-makefile/ | |
| # (c) by Tadeusz Pietraszek | |
| # http://www.acoustics.hut.fi/u/mairas/UltimateLatexMakefile/ | |
| # (c) by Matti Airas | |
| # | |
| # Call 'make dvi' for minimal compilation, to check for proper latex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///HTML5 Filesystem API | |
| input(type="file", id="myfile", multiple) | |
| script(id='myscript', type='text/javascript') | |
| document.querySelector('#myfile').onchange = function(e){ | |
| //Open the FS, otherwise copy the files into the FS | |
| if(filer && !filer.isOpen){ | |
| openFS(this.files); | |
| } else { | |
| importToFS(this.files); | |
| } |
I've collected all the links related to Backbone.js that I find useful. Most of these are well-built projects and epic guides (not ephemeral blog posts.) Please feel free to fork and even contribute.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var docElm = document.documentElement; | |
| if (docElm.requestFullscreen) { | |
| docElm.requestFullscreen(); | |
| } | |
| else if (docElm.mozRequestFullScreen) { | |
| docElm.mozRequestFullScreen(); | |
| } | |
| else if (docElm.webkitRequestFullScreen) { | |
| docElm.webkitRequestFullScreen(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Since it is not possible to play a single 41MP movie on the AESOP display due to bandwidth issues, we split it up into one for each display. At this point we need a program that synchronises the play/pause actions across all the nodes and screens. For this purpose we use VB.3 | |
| First we need to define the CGLX default configuration so VB.2 knows the nodes, the screens on the nodes, the screens' details, ip addresses and port numbers required for playback. In this case we are using the AESOP display (zone 2 hence the usage of z2-csdefault.xml). | |
| export CGLX_DEFAULT_CONF=/opt/kaust/config/cglx/z2-csdefault.xml | |
| Now we launch VB.3 telling it that it will be displaying on 4 rows, and the folder containing the movies named in column, row order. | |
| For example, we can name the files with the following format: | |
| screen_<column>_<row>.avi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| if [ $# -ne 3 ] | |
| then | |
| echo "Error. $0 Needs 3 arguments." | |
| echo "Please use: $0 <input_directory> <x_tiles> <y_tiles>" | |
| exit | |
| fi | |
| i=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This script is designed to split up a frame 5440x30720 into 40 subframes 1360x768 to fit zone 2 (AESOP diplsay). | |
| # Written by Chris Knox and Luca Passone. | |
| import sys | |
| import Image | |
| import os | |
| def split_on_nodes(filename): | |
| 'split a file up to fill the nodes of zone 2' | |
| orig = Image.open(filename) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| #This script needs to be used in conjuntion with interlace.py | |
| #It will always do a "mkdir" on the output_directory, even if it exists. On most Unix systems it is fine. | |
| if [ $# -ne 4 ] | |
| then | |
| echo "Error. $0 Needs 4 arguments." | |
| echo "Please use: $0 <start_frame> <end_frame> <input_directory> <output_directory>" |