(You can't use this with git difftool or merge though)
git diff --ignore-space-at-eol
| var Base = {} | |
| Object.defineProperty(Base, 'extend', { | |
| enumerable: false, | |
| value: function(obj) { | |
| var descs = {} | |
| Object.getOwnPropertyNames(obj).forEach(function(key) { | |
| descs[key] = Object.getOwnPropertyDescriptor(obj, key) | |
| }) | |
| return Object.create(this, descs) |
| <script src="http://code.jquery.com/jquery-latest.js"></script> | |
| <script type="text/javascript"> | |
| //$(document).ready(function(){ | |
| var context; | |
| var dx= 4; | |
| var dy=4; | |
| var y=150; | |
| var x=10; | |
| var rightDown = false; | |
| var leftDown = false; |
| #! /bin/sh | |
| # ------------------------------------------------------------------------------ | |
| # SOME INFOS : fairly standard (debian) init script. | |
| # Note that node doesn't create a PID file (hence --make-pidfile) | |
| # has to be run in the background (hence --background) | |
| # and NOT as root (hence --chuid) | |
| # | |
| # MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit | |
| # INIT-INFO RULES http://wiki.debian.org/LSBInitScripts | |
| # INSTALL/REMOVE http://www.debian-administration.org/articles/28 |
| #!upstart | |
| description "APPNAME node.js server" | |
| author "Shimon Doodkin" | |
| # license: public domain | |
| start on runlevel [2345] | |
| stop on runlevel [06] | |
| #pre-start script | |
| # exec touch /var/log/APPNAME.nodejs.log |
| var rngstate; | |
| function MathRandom() { | |
| // Our own implementation of Math.random(). | |
| // Source code was copied from https://code.google.com/p/chromium/codesearch#chromium/src/v8/src/math.js&q=MathRandom&sq=package:chromium&type=cs&l=130 | |
| // You need to solve for the rngstate first before this can be used. | |
| console.assert(rngstate, "You need to set the global variable `rngstate` first. For example: `rngstate = solve(Math.random(), Math.random());`"); | |
| if (!rngstate) return; | |
| var r0 = (Math.imul(18030, rngstate[0] & 0xFFFF) + (rngstate[0] >>> 16)) | 0; | |
| rngstate[0] = r0; | |
| var r1 = (Math.imul(36969, rngstate[1] & 0xFFFF) + (rngstate[1] >>> 16)) | 0; |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/bin/bash | |
| # Normally windows doesn't give out the process name when you run netstat -ano, thus making it | |
| # hard to figure out what process is bound to the different ports. This script extracts the PID | |
| # from the netstat output, and fetches the corresponding binary name from the tasklist, and | |
| # merges the two together. Needs a MinGW environment like Git Bash and python to work. | |
| { tasklist | tail -n +5; echo ===; netstat -ano | grep LIST; } | python -c " | |
| import sys | |
| pad = [0, 21, 9, 0, 5, 8, 0] |
| #!/bin/bash | |
| # Normally windows doesn't give out the process name when you run netstat -ano, thus making it | |
| # hard to figure out what process is bound to the different ports. This script extracts the PID | |
| # from the netstat output, and fetches the corresponding binary name from the tasklist, and | |
| # merges the two together. Needs a MinGW environment like Git Bash and python to work. | |
| { tasklist | tail -n +5; echo ===; netstat -ano | grep LIST; } | python -c " | |
| import sys | |
| pad = [0, 21, 9, 0, 5, 8, 0] |