git grep "regex"
git branch -a
| # Search your command line history | |
| history | grep 'Whatever' | |
| # Discover what's eating your memory | |
| top -o vsize | |
| # Copy to the clipboard | |
| echo "Boom" | pbcopy | |
| # unzip archive into current directory |
| function once(fn, context) { | |
| var result; | |
| return function() { | |
| if(fn) { | |
| result = fn.apply(context || this, arguments); | |
| fn = null; | |
| } | |
| return result; |
| var express = require('express'); | |
| var http = require('http'); | |
| var fs = require('fs'); | |
| var request = require('request'); | |
| var cheerio = require('cheerio'); | |
| var nodeCouchDB = require("node-couchdb"); | |
| var couch = new nodeCouchDB("192.168.0.12", 5984); | |
| var app = express(); |
| [].forEach.call($$("*"),function(a){ | |
| a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16) | |
| }) |
| (function(){ | |
| console.log( $('#category-sales-content').html() + ':' ); | |
| $('.faq-list').each(function(i, item){ | |
| var $item = $(item); | |
| console.log( $item.find('.faq-title').html() ); | |
| }); | |
| })() |
| function logItem(item) { | |
| console.log(item); | |
| } | |
| function asyncEach3(arr, callback) { | |
| // Utility inner function to create a wrapper function for the callback | |
| function makeCallbackWrapper(arr, i, callback) { | |
| // Create our function scope for use inside the loop | |
| return function() { | |
| callback(arr[i]); |
| // @type documentation http://usejsdoc.org/tags-type.html | |
| /** @type {Array.<jQuery>} An array of jQuery elements */ | |
| var elements = $('div'); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <!-- load jQuery 1.11.1 --> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
| <script> | |
| var jQuery_1_11_1 = $.noConflict(true); | |
| </script> |
| <div class="spacer50"></div> |