Skip to content

Instantly share code, notes, and snippets.

@kazuo
kazuo / gist:2369390
Created April 12, 2012 17:31
Simple screen
Start it (duh)
$ screen
Resume it
$ screen -r
^ = Ctrl
Create a new one
^ac
:syntax enable
set et
set shiftwidth=4
set tabstop=4
set smarttab
set expandtab
set ai
set background=dark
// useful to get names from http://www.imdb.com/search/name?refine=birth_monthday&birth_monthday=1-22&ref_=hm_brn_hd
(function () {
var $table = $('#main table.results')
, csv = "data:text/csv;charset=utf-8,"
, lines = [['First', 'Last', 'Email', 'Position', 'Company', 'Other']]
, link = document.createElement('a')
, prepareEmailName
, statusesLength = 0
, ticketTypesLength = 0
, urlParameters = {}
// Analyzes a contrusctor and creates the array and final function for injection
// e.g.
ServiceInstance.$inject = ['$rootScope', '$q', 'ServiceA', 'ServiceB'];
funciton ServiceInstance($rootScope, $q, Service, ServiceB)
{
this.fetch = function () {};
// ... whatever logic