the sun did not shine. it was too wet to play. so we sat in the house all that cold, cold, wet day.
i sat there with sally. we sat there, we two. and i said, 'how i wish we had something to do!'
total used free shared buffers cached | |
Mem: 2002 1924 78 0 8 27 | |
-/+ buffers/cache: 1888 113 | |
Swap: 0 0 0 | |
Total: 2002 1924 78 |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
" Vim Plugins via Vundle |
#!/usr/bin/env bash | |
# | |
# Based on 'bobby' theme with the addition of virtualenv_prompt | |
# | |
SCM_THEME_PROMPT_DIRTY=" ${red}✗" | |
SCM_THEME_PROMPT_CLEAN=" ${green}✓" | |
SCM_THEME_PROMPT_PREFIX="${yellow}|${cyan}" | |
SCM_THEME_PROMPT_SUFFIX="${yellow}| " |
the sun did not shine. it was too wet to play. so we sat in the house all that cold, cold, wet day.
i sat there with sally. we sat there, we two. and i said, 'how i wish we had something to do!'
var firstList = ["A", "B", "C", "D", "E", "F"]; | |
var secondList = ["C", "E", "F"]; | |
function filterOut(firstList, secondList) { | |
return firstList.filter(function (listItem) { | |
var includedInSecondList = false; | |
secondList.forEach(function (itemInSecondList) { | |
if (listItem === itemInSecondList) includedInSecondList = true; | |
}); | |
return !includedInSecondList; |
function palindrome(word) { | |
word = word.toLowerCase().replace(/\W/g, ''); | |
return word === word.split('').reverse().join(''); | |
} | |
console.assert(palindrome('Racecar')); | |
console.assert(palindrome('A car, a man, a maraca.')); | |
console.assert(palindrome('Borrow or rob?')); | |
console.assert(palindrome('Cigar? Toss it in a can. It is so tragic.')); | |
console.assert(palindrome('Dr. Awkward')); |
function isALeapYear(year) { | |
if (year % 400 === 0) return true; | |
if (year % 100 === 0) return false; | |
if (year % 4 === 0) return true; | |
} | |
function leapYears(number, year, years) { | |
year = year || (new Date).getFullYear(); | |
years = years || []; | |
if (isALeapYear(year)) years.push(year); |
[1] pry(main)> regdate = "11/12/2008 10:47:00" | |
=> "11/12/2008 10:47:00" | |
[2] pry(main)> r = regdate.split(' ') | |
=> ["11/12/2008", "10:47:00"] | |
[3] pry(main)> r[0] | |
=> "11/12/2008" | |
[4] pry(main)> |
ember-cli
09#65#21 | |
06#72#03 | |
Dec 26, 75 | |
Jul 13, 07 | |
Nov 21, 14 | |
15*10*1981 | |
13*02*1992 | |
10#51#16 | |
1964-01-10 | |
06*04*1965 |