-
commit all the classwork and homework files from yesterday (you can do as many commits as you want):
git add <files>
git commit -m "COMMIT MESSAGE"
-
push to GitHub:
git push origin wXdY-gitusername
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
[user] | |
name = David Grilli | |
[color] | |
ui = true | |
[heroku] | |
remote = staging | |
[alias] | |
a = add | |
au = add --update | |
ba = branch -a |
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
Show hidden characters
{ | |
// Sets the colors used within the text area. | |
// The value "auto" will switch between the "light_color_scheme" and | |
// "dark_color_scheme" based on the operating system appearance. | |
"color_scheme": "auto", | |
"light_color_scheme": "Breakers.sublime-color-scheme", | |
"dark_color_scheme": "Mariana.sublime-color-scheme", | |
// Note that the font_face and font_size are overridden in the platform | |
// specific settings file, for example, "Preferences (Linux).sublime-settings". |
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
<style> | |
h1, h2, h3, p, span, i, a { | |
font-family: Helvetica Neue, Arial, Helvetica, sans-serif; | |
font-weight: normal; | |
margin-bottom: 12px; | |
} | |
h1, h2, h3 { | |
margin-top: 12px; | |
margin-bottom: 2px; | |
} |
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
@mixin border-radius($value) { | |
-webkit-border-radius: $value; | |
-moz-border-radius: $value; | |
border-radius: $value; | |
} | |
div { | |
@include border-radius(10px); | |
} |
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
$siteWidth: 1024px; | |
$gutterWidth: 20px; | |
$sidebarWidth: 300px; | |
body { | |
margin: 0 auto; | |
width: $siteWidth; | |
} | |
.content { |
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
# terminal customs | |
export BUNDLER_EDITOR=/usr/local/bin/subl | |
export CLICOLOR=1 | |
# history | |
export HISTCONTROL=erasedups | |
export HISTSIZE=100000 | |
# fixes Postgre failure | |
export PGHOST=localhost |
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
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U myuser -d mydb latest.dump |
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
git_hash=$(git rev-parse --short HEAD) | |
curl -X POST -H "x-api-key:asdf1234" --data "deployment[app_name]=&deployment[revision]=${git_hash}" https://api.newrelic.com/deployments.xml |
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
# Where n is a positive integer, the function f(n) satisfies the following: | |
# | |
# f(0) = 0 | |
# f(1) = 1 | |
# f(n) = f(n - 1) + f(n - 2) | |
# | |
# Create a program to find f(n) | |
def super_sum(number) | |
results = [0, 1] |
OlderNewer