Skip to content
View ng-injector-helper.js
// 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
View Generate a CSV of names from IMDB
// 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 = {}
View .vimrc
:syntax enable
set et
set shiftwidth=4
set tabstop=4
set smarttab
set expandtab
set ai
set background=dark
View gist:f8260ef21c2130af0897
// http://www.xe.com/currencytables/?from=USD
(function ($) {
var $rows = $('table#historicalRateTbl tbody tr')
, currencies = []
, str
, strValuesCurrencies = []
;
$rows.each(function (idx, ele) {
var $columns = $(ele).find('td')
, code = $columns.filter(':eq(0)').text()
View gist:2369390
Start it (duh)
$ screen
Resume it
$ screen -r
^ = Ctrl
Create a new one
^ac
Something went wrong with that request. Please try again.