- 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/
- https://github.com/gorillatron/cerebral
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
| # Patterns matching CSS files that should be minified. Files with a -min.css | |
| # suffix will be ignored. | |
| CSS_FILES = $(filter-out %-min.css,$(wildcard \ | |
| public/css/*.css \ | |
| public/css/**/*.css \ | |
| )) | |
| # Patterns matching JS files that should be minified. Files with a -min.js | |
| # suffix will be ignored. | |
| JS_FILES = $(filter-out %-min.js,$(wildcard \ |
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
| #!/usr/bin/env ruby | |
| # A small script to convert WP-Footnotes style footnotes to PHP Markdown Extra | |
| # style footnotes. | |
| # | |
| # Possibly useful for those who are migrating from Wordpress to Jekyll, were | |
| # using WP-Footnotes, and wish to render their new Markdown pages with Kramdown | |
| # (which supports PHP Markdown Extra style footnotes). | |
| # | |
| # For example, you might first run https://github.com/thomasf/exitwp and then run |
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
| #! /usr/bin/env python | |
| import redis | |
| import random | |
| import pylibmc | |
| import sys | |
| r = redis.Redis(host = 'localhost', port = 6389) | |
| mc = pylibmc.Client(['localhost:11222']) |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
| <title>Stripe Getting Started Form</title> | |
| <script type="text/javascript" src="https://js.stripe.com/v1/"></script> | |
| <!-- jQuery is used only for this example; it isn't required to use Stripe --> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| // this identifies your website in the createToken call below |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>CSS Media Check</title> | |
| <style type="text/css"> | |
| #mediaquery{ | |
| -webkit-transition: width .001s; | |
| -moz-transition: width .001s; |
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
| @implementation AppDelegate | |
| void SwapMethodImplementations(Class cls, SEL left_sel, SEL right_sel) { | |
| Method leftMethod = class_getInstanceMethod(cls, left_sel); | |
| Method rightMethod = class_getInstanceMethod(cls, right_sel); | |
| method_exchangeImplementations(leftMethod, rightMethod); | |
| } | |
| + (void)initialize { | |
| if (self == [AppDelegate class]) { | |
| #ifdef __IPHONE_6_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
| Example usage from command prompt: | |
| $ perl bamboo_project_dump.pl --help | |
| Mandatory parameter 'project' missing in call to (eval) | |
| usage: bamboo_project_dump.pl [-?h] [long options...] | |
| -h -? --usage --help Prints this usage information. | |
| --user user name for HTTP basic authentication | |
| --server Bamboo REST endpoint | |
| --project Bamboo project ID to retrieve |
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
| use Plack::App::CGIBin; | |
| use Plack::App::PHPCGIFile; | |
| use Plack::Builder; | |
| use Plack::Builder::Conditionals; | |
| my $cgibin = Plack::App::CGIBin->new( | |
| root => "/usr/local/nagios/sbin", | |
| exec_cb => sub { my $file = shift; $file =~ m!\.cgi$! and -x $file }, | |
| )->to_app; | |
| my $htdocs = Plack::App::PHPCGIFile->new( |