I hereby claim:
- I am campo on github.
- I am campo (https://keybase.io/campo) on keybase.
- I have a public key whose fingerprint is 267C 5FA9 2F1D F488 BC95 A347 F82C 7200 340C 695F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Inspired by zhengjia's Capybara Cheat Sheet Capybara Docs
visit('/projects')
visit(post_comments_path(post))
{ | |
"font_face": "Inconsolata", | |
"font_size": 22, | |
// Set to true to insert spaces when tab is pressed | |
"translate_tabs_to_spaces": true, | |
// Disables horizontal scrolling if enabled. | |
// May be set to true, false, or "auto", where it will be disabled for | |
// source code, and otherwise enabled. |
# This methodology breaks down to the following steps: | |
# * Determine initial times for all runners | |
# * Calculate average run times for all runners over the given time period (6 months) | |
# * Compare each runner's average performance to their initial performance | |
# * Sort all runners by the improvement of their average performance compared to their initial performance | |
# This is code I used to generate hashes of race data | |
# |
mh() { cd ~/Projects/mightyhive/$1; } | |
_mh() { _files -W ~/Projects/mightyhive/ -/; } | |
compdef _mh mh |
PROMPT='%3~$(git_prompt_info) > ' | |
ZSH_THEME_GIT_PROMPT_PREFIX="[" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="]" |
17,1,"Jalisco Margarita",NULL,"monte alban tequila, fresh sweet chili pepper, lime juice, agave syrup","8.00","beverage","cocktail","Cocteles/Bebidas",NULL,"[\"tequila\"]",NULL,0,NULL,NULL,NULL,1,"['Mon', 'Tues', 'Weds', 'Thurs', 'Fri', 'Sat', 'Sun']",NULL,NULL,1,NULL,NULL,NULL | |
{ | |
"name": "Jalisco Margarita", | |
"description": "Monte Alban tequila, fresh sweet chili pepper, lime juice, agave syrup", | |
"price": 8.00, | |
"ingredients": ["tequila", "lime juice"], | |
"category": "beverage", | |
"subcategory": "cocktail", |
# SQLAlchemy | |
class Prereg(db.Model): | |
id = db.Column(db.Integer, primary_key=True) | |
email = db.Column(db.String(120)) | |
fav_restaurant = db.Column(db.String(120)) | |
location = db.Column(db.String(120)) | |
reg_date = db.Column(db.DateTime) | |
def __init__(self, email, fav_restaurant, location, reg_date=None): | |
self.email = email |
<?php | |
// Given two variables with integer values assumed positive, swap the values without using | |
// a temp variable | |
function templessSwap($a, $b){ | |
print("Swapping the values without a temp variable...\n"); | |
print("The initial values are:\nA: $a\nB: $b\n"); | |
$a = $a ^ $b; | |
$b = $a ^ $b; | |
$a = $a ^ $b; | |
print("The values after the swap are:\nA: $a\nB: $b\n\n"); |