Skip to content

Instantly share code, notes, and snippets.

View neight-allen's full-sized avatar

Nate Allen neight-allen

View GitHub Profile
var situation = 'pigs';
var conditionEnd = ' like it\'s hot.';
switch (situation) {
case 'pigs':
console.log('Park it' + conditionEnd);
break;
case 'pimps':
console.log('Drop it' + conditionEnd);
break;
@neight-allen
neight-allen / git nexttag
Last active August 29, 2015 14:07
I use this to tag commits when I'm ready to deploy to production. I made this so I don't have to remember what the last version was, and so I don't have to type the command either. To use as a git command (git nexttag) save it as git-nexttag somewhere on the path, like /usr/local/bin.
#!/bin/bash
lasttag=$(git describe --abbrev=0 --tags)
tagparts=(${lasttag//./ })
if [ ! -z $1 ] && [ $1 == "--hotfix" ]
then
declare -i hotfix
hotfix=1
javascript: (function () {var jsCode = document.createElement('script'); jsCode.setAttribute('src', 'https://localhost/~nateallen/ytwall/ytwall.js'); document.body.appendChild(jsCode); }());
@neight-allen
neight-allen / movies.txt
Created February 5, 2016 17:32
List of movies with a score from 0-100
71, Hannibal Buress: Animal Furnace
80, Hannibal Buress: Comedy Camisado
17, Meet My Valentine
55, Experimenter
75, French Dirty
11, Love
7, I Love You Phillip Morris
9, A Ballerina's Tale
67, Hellions
65, The Land Before Time XIV: Journey of the Brave
class MastermindTest
def test_if_I_input_i_do_I_get_game_instructions
mastermind = Mastermind.new
output = mastermind.process_input("i")
assert_equal "instructions", output
  • Go to c9.io in your browser
  • Click "Try it Now"
  • Fill in username, email, and password
  • Click "Create your free account"
  • Click "Go to your dashboard"
  • Click "Create a new workspace"
  • Under "Choose a template" click "Wordpress"
  • Click "Create workspace" at the bottom
  • Wait for your workspace to load
  • Find your files on the left

Electives

  • Gitx
    • There's different versions
    • Use cases
      • Stage
        • Making multiple small commits after a lot of work
        • Eliminating generated files
  • Viewing history
brew install letsencrypt
letsencrypt certonly --manual
# Enter your email
# Accept terms
# Enter 'localhost' as the domain
# Say 'No' to re-entering domain names

Let's Encrypt on Wordpress on digital ocean

@neight-allen
neight-allen / index.css
Last active May 16, 2016 15:17
Example code used for a Turing lesson about basic jQuery DOM traversal and manipulation
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600);
body {
background-color: white;
font-family: "Open Sans", Helvetica, sans-serif;
font-size: 12px;
}
td, th {
padding: 0.5em;
@neight-allen
neight-allen / values.md
Last active July 11, 2016 17:39
Some notes to guide our discussion on values

What are they?

  • The things that affect how you feel about your actions. If you take action consistent with your values, you feel good about yourself. If you take actions inconsistent with your values, you will dwell on it, and feel bad about yourself.
  • They're often called core values.

Why do I care?

  • A lot of your thoughts, feelings and actions are affected by your core values.
  • Through an understanding of your values, you can put yourself in situations that are more likely to result in actions that you feel good about.
  • Ultimately, this does affect your productivity.