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
<div class="row"> | |
<div class="col-md-2 col-sm-2 col-xs-12"> | |
<button id="authorize-button" style="visibility: hidden" class="btn btn-primary">Authorize</button> | |
</div><!-- .col --> | |
<div class="col-md-10 col-sm-10 col-xs-12"> | |
<script type="text/javascript"> | |
// date functions | |
Date.prototype.getWeek = function(start) { | |
start = start || 0; |
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
{ | |
"basics": { | |
"name": "Nick Noble", | |
"label": "Designer", | |
"email": "nick.noble@hey.com", | |
"phone": "(410) 608-9787", | |
"website": "http://nicknoble.works", | |
"summary": "Multifaceted generalist with a passion for making things that work, whether it's design, code, product, process, or people — Nick is ready to iterate.", | |
"location": { | |
"city": "Brooklyn", |
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
#include <stdio.h> | |
#include <string.h> | |
// Hashes word to a number | |
unsigned int hash(const char *word) | |
{ | |
// "pneumonoultramicroscopicsilicovolcanoconiosis" | |
// Another thought, | |
// Coverting to binary, adding up all the 1s (ignoring place) gives us 207 | |
// If all ones, it would be 360 |
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
# update server software | |
apt-get update | |
# go to web root | |
cd /var/www/ | |
# Remove any previous zips | |
rm ghost*.zip | |
# download the latest version of ghost |
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
$unit: 24px; | |
* { | |
&, | |
&:before, | |
&:after { | |
box-sizing: border-box; | |
} | |
& + & { | |
margin-top: $unit; |
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
alias bex="bundle exec" | |
# Git aliases | |
alias gs="git status" | |
alias glc="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias glt="git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all" | |
alias ga="git add" | |
alias gc="git commit -m" | |
alias gam="git commit -am" |
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
/^(https?:\/\/)?((w{3}\.)?)codepen\.io\/[a-z0-9_\-]+(\/(pen|blog|full|debug|details|pres|live|professor|collab))?(\/([a-z0-9_\-]+)(\?editors\=[0-9]+)?)?\/?$/ |