Skip to content

Instantly share code, notes, and snippets.

@jalevin
jalevin / template.js
Last active September 10, 2015 23:52
Template.peopleList.helpers({
'peopleList': function(){
people = People.find({}).fetch();
letters = '';
for (i = 0; i < people.length; i ++) { // loop through people collection
if ('lastName' in people[i]) { // find out if people[i].lastName is a thing to exclude headers
people[i].name = people[i].lastName + "," + people[i].firstName; // add name property to object
letter = people[i].lastName.charAt(0); // get letter
if (letters.indexOf(letter) == -1) { // check if letter is in index
letters += letter;
#spec/acceptance/irrelevent_spec.rb
feature 'irrelevent_spec', js: true do
end
feature 'specific_spec', js: true do
it_behaves_like 'its specifically included'
end
AlertWorker.perform_async(@ride.id, :update_alert)
version 7.3
if &cp | set nocp | endif
let s:cpo_save=&cpo
set cpo&vim
nmap gx <Plug>NetrwBrowseX
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("<cWORD>"),0)
let &cpo=s:cpo_save
unlet s:cpo_save
window.auto_complete = (field,url, updated_field, callback) ->
labels = null
mapped = null
$(field).typeahead
source: (query, process)->
$.get(url, { q: query }, (data) ->
labels = []
mapped = {}
mapitem = (item)->
alignment bottom_middle
border_width 1
cpu_avg_samples 2
draw_borders yes
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont Sans Mono:size=12
gap_x -48
@jalevin
jalevin / gist:4951621
Last active December 13, 2015 17:58
conkysys
alignment bottom_middle
background yes
border_width 1
cpu_avg_samples 2
default_color 4D4C4C
default_outline_color 4D4C4C
draw_borders yes
draw_graph_borders yes
draw_outline no
draw_shades no