This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c math.c | |
math.c:37:13: error: missing binary operator before token "(" | |
make: *** [math.o] Error 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery -> | |
$(document).ready -> | |
element = $('#item_type') | |
element.bind 'change', -> | |
el = $('#item_type')[0] | |
$('.type_edit').css('display','none') | |
$('.' + el.options[el.selectedIndex].text.toLowerCase()).css('display','block') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery -> | |
$(document).ready -> | |
element = $('#item_type') | |
element.bind 'change', -> | |
el = $('#item_type')[0] | |
$('.type_edit').css('display','none') | |
$('.' + el.options[el.selectedIndex].text.toLowerCase()).css('display','block') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"remap the searching commands to my new function. The function is called first, then immediately calls itself | |
"after the search is finished. This allows me to get the advantage of incsearch being unimpeded by anything | |
noremap <space> :call DoSearch('search')<Cr>/ | |
noremap n :call DoSearch('search')<Cr>n | |
noremap N :call DoSearch('search')<Cr>N | |
noremap * :call DoSearch('search')<Cr>* | |
noremap # :call DoSearch('search')<Cr># | |
noremap ? :call DoSearch('search')<Cr>? | |
"DoSearch takes a 'command' that specifies whether it needs to call itself again after exeution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last login: Fri May 23 01:35:21 on ttys001 | |
➜ ~ pg_ctl -D /usr/local/var/postgres -m f stop | |
waiting for server to shut down......................................^C | |
➜ ~ which pg_ctl | |
/usr/local/bin/pg_ctl | |
➜ ~ which pg_ctl -V | |
/usr/local/bin/pg_ctl | |
-V not found | |
➜ ~ which pg_ctl -v | |
/usr/local/bin/pg_ctl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM boot2docker/boot2docker | |
RUN apt-get -y install p7zip-full | |
ENV VBOX_VERSION 4.3.12 | |
# Build VBox guest additions | |
RUN mkdir -p /vboxguest && \ | |
cd /vboxguest && \ | |
curl -L -o vboxguest.iso http://download.virtualbox.org/virtualbox/${VBOX_VERSION}/VBoxGuestAdditions_${VBOX_VERSION}.iso && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package loaders | |
import ( | |
"fmt" | |
"regexp" | |
"strconv" | |
"strings" | |
_ "github.com/lib/pq" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
brew install binutils | |
brew install homebrew/dupes/diffutils | |
brew install ed --with-default-names | |
brew install findutils --with-default-names | |
brew install gawk | |
brew install gnu-indent --with-default-names |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings.blacklist = { | |
"https://github.com": 1, | |
"https://trello.com": 1, | |
"https://mail.google.com": 1, | |
"https://gmail.com": 1 | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package models | |
import ( | |
"fmt" | |
) | |
type Inet struct { | |
Address string | |
Valid bool | |
} |
OlderNewer