This file contains hidden or 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
<head> | |
<title>fancypants</title> | |
</head> | |
<body> | |
{{> people}} | |
</body> | |
<template name="people"> |
This file contains hidden or 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
select | |
count(id), | |
upper + lower + digit as complexity | |
from ( | |
select | |
id | |
,password | |
,CASE WHEN | |
password similar to E'%[A-Z]%' | |
THEN 1 |
This file contains hidden or 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
$('tr').map(function(i, it) { | |
cells = $(it).children('td'); | |
if(cells[0]) | |
return { | |
time: cells[0].textContent, | |
eld_fb: cells[1].textContent, | |
eld_fb2: cells[2].textContent, | |
eld_ob: cells[3].textContent | |
} | |
}) |
This file contains hidden or 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
source :rubygems | |
gem 'json' |
This file contains hidden or 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
# Fix the path to search (and prioritize) $HOME/bin and /usr/local/bin | |
export PATH="$HOME/bin:/usr/local/bin:$PATH" | |
# Virtual Env Wrapper Prompt Stuff: | |
source `which virtualenvwrapper.sh` | |
workon work | |
export VIRTUAL_ENV_DISABLE_PROMPT=1 | |
export PROMPT_COMMAND='source $HOME/bin/ps1' | |
# Setup autojump |
This file contains hidden or 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 | |
# Put this in ~/bin/ps1, and make it executable | |
# Then add the following line to your .bashrc or .bash_profile: | |
# PROMPT_COMMAND="source $HOME/bin/ps1" | |
HG_BRANCH=`hg branch 2>&1` | |
if [[ $? == 0 ]] | |
then | |
VCS_PROMPT="\[\033[00;33m\](\[\033[00;37m\]$HG_BRANCH\[\033[00;33m\]) \[\033[01;34m\]" | |
else |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require "base64" | |
def b(string, context) | |
string.gsub /\^\{(.*?)\}/ do |s| | |
val = context.eval(s[2..-2]) | |
"b64d(\"#{Base64.encode64(val).strip}\")" | |
end | |
end |
This file contains hidden or 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
# nvidia-settings: X configuration file generated by nvidia-settings | |
# nvidia-settings: version 270.29 (buildd@allspice) Fri Feb 25 14:42:07 UTC 2011 | |
# nvidia-xconfig: X configuration file generated by nvidia-xconfig | |
# nvidia-xconfig: version 270.41.06 ([email protected]) Mon Apr 18 15:14:00 PDT 2011 | |
Section "ServerLayout" | |
Identifier "Layout0" | |
Screen 0 "Screen0" 0 0 | |
InputDevice "Keyboard0" "CoreKeyboard" |
This file contains hidden or 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
module AssociationIds | |
def ids_for name | |
name = name.to_s | |
define_method (name + '_ids=').to_sym do |ids| | |
values = ids.collect { |id| Kernel.const_get(name.classify).find id } | |
self.send(name + '=', values) | |
end | |
define_method (name + '_ids').to_sym do | |
self.send(name).collect { |obj| obj.id } |
This file contains hidden or 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
export PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\] \w$(__git_ps1 "\e[1;30m [%s]") \[\033[01;34m\]$ \[\033[00m\]" |