git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| // look ma, I have no dependencies, no need for any wrappers! | |
| alert("bar.js is loaded!"); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>WebSocket test</title> | |
| </head> | |
| <body> | |
| <script src="http://localhost:8080/socket.io/socket.io.js"></script> | |
| <script> | |
| var server = 'smtp.example.com', | |
| port = 587, |
| // Here is a proposal for minimalist JavaScript classes, humbly offered. | |
| // There are (at least) two different directions in which classes can be steered. | |
| // If we go for a wholly new semantics and implementation, then fancier classical | |
| // inheritance can be supported with parallel prototype chains for true inheritance | |
| // of properties at both the class and instance level. | |
| // If however, we keep current JavaScript prototype semantics, and add a form that | |
| // can desugar to ES3, things must necessarily stay simpler. This is the direction | |
| // I'm assuming here. |
| <!DOCTYPE html> | |
| <html> | |
| <head>...</head> | |
| <body> | |
| ... | |
| <script src="load.js"></script> | |
| </body> | |
| </html> |
| .fake_file_input { | |
| background: url(../images/fake_file_input.png) no-repeat; | |
| cursor: pointer; | |
| width: 150px; | |
| height: 30px; | |
| overflow: hidden; | |
| position: relative; | |
| display: inline-block; | |
| *display: inline; | |
| *zoom: 1; |
| function loadOrFallback(scripts,idx) { | |
| var successfully_loaded = false; | |
| function testAndFallback() { | |
| clearTimeout(fallback_timeout); | |
| if (successfully_loaded) return; // already loaded successfully, so just bail | |
| try { | |
| scripts.tester(); | |
| successfully_loaded = true; // won't execute if the previous "test" fails | |
| scripts.success(); | |
| // console.log("success: " + scripts.src[idx]); |
| #!/usr/bin/env ruby -w | |
| # pnginator.rb: pack a .js file into a PNG image with an HTML payload; | |
| # when saved with an .html extension and opened in a browser, the HTML extracts and executes | |
| # the javascript. | |
| # Usage: ruby pnginator.rb input.js output.png.html | |
| # By Gasman <http://matt.west.co.tt/> | |
| # from an original idea by Daeken: http://daeken.com/superpacking-js-demos |
| # Logs | |
| logs | |
| *.log | |
| # Runtime data | |
| pids | |
| *.pid | |
| *.seed | |
| # Directory for instrumented libs generated by jscoverage/JSCover |
| /* | |
| * Object#forIn, Object#forOwn | |
| * | |
| * Copyright (c) 2012 "Cowboy" Ben Alman | |
| * Licensed under the MIT license. | |
| * http://benalman.com/about/license/ | |
| */ | |
| Object.defineProperties(Object.prototype, { | |
| forIn: { |