###Working with multiple files
:e filename - Edit a file in a new buffer
:bnext (or :bn) - go to next buffer
:bprev (of :bp) - go to previous buffer
:bd - delete a buffer (close a file)
(android) | |
(areyoukiddingme) | |
(arrington) | |
(awyeah) | |
(basket) | |
(beer) | |
(bunny) | |
(bumble) | |
(cadbury) | |
(cake) |
for (i = 1; i < 100; i++) | |
{ | |
if( i % 5 === 0 && i % 3 === 0) { | |
console.log("fizbuzz"); | |
} | |
else if (i % 3 == 0) { | |
console.log("buzz"); | |
} else if (i%5 == 0) { | |
console.log("fiz"); | |
} |
###Working with multiple files
:e filename - Edit a file in a new buffer
:bnext (or :bn) - go to next buffer
:bprev (of :bp) - go to previous buffer
:bd - delete a buffer (close a file)
require 'csv' | |
#Get a collection of all the directories contained in the CWD | |
directories = Dir.entries(Dir.pwd) | |
#iterate | |
directories.each do |dir| | |
#if its a directory, then traverse into it | |
if File.directory?(dir) then |
# dropbox service | |
DROPBOX_USERS="charles" | |
DAEMON=.dropbox-dist/dropbox | |
start() { | |
echo "Starting dropbox..." | |
for dbuser in $DROPBOX_USERS; do | |
HOMEDIR=`getent passwd $dbuser | cut -d: -f6` | |
if [ -x $HOMEDIR/$DAEMON ]; then |
// Copyright (c) 2012, Dusty Burwell | |
// | |
// ==UserScript== | |
// @name Emoticons for YouTrack | |
// @namespace http://dustyburwell.github.com | |
// @description Converts text to emoticons in YouTrack. | |
// @include http://youtrack/* | |
// @include https://youtrack/* | |
// ==/UserScript== |
HASH="%C(yellow)%h%Creset" | |
RELATIVE_TIME="%Cgreen(%ar)%Creset" | |
AUTHOR="%C(bold blue)<%an>%Creset" | |
REFS="%C(red)%d%Creset" | |
SUBJECT="%s" | |
FORMAT="$HASH}$RELATIVE_TIME}$AUTHOR}$REFS $SUBJECT" | |
show_git_head() { | |
pretty_git_log -1 |
public static object OccupationResultsFromAOI(string AreaOfInterest) | |
{ | |
using (var db = new sandboxEntities()) | |
{ | |
var output = (from careermaps in db.CareerMaps | |
where | |
(from occupathbridges in db.OccuPathBridges | |
where |
wait_time = ARGV.shift | |
puts "waiting #{wait_time}" | |
`sleep #{wait_time}` | |
`notify-send --urgency=critical -i "Get Davinci out" "Time to get davinci out"` |
#!/bin/sh | |
#update sources first, always | |
sudo apt-get update | |
#fetch all dependencies | |
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config | |
#fetch RVM and install | |
curl -L https://get.rvm.io | bash -s stable --ruby |