Skip to content

Instantly share code, notes, and snippets.

View chrisvogt's full-sized avatar
🌸
✿◕‿◕

Chris Vogt chrisvogt

🌸
✿◕‿◕
View GitHub Profile
@chrisvogt
chrisvogt / ~.bash_profile
Last active June 8, 2017 05:57
My personal ~/.bash_profile script.
# Wakatime
# source ~/.wakatime/bash-wakatime.sh
# NVM
export NVM_DIR="$HOME/.nvm"
. "$(brew --prefix nvm)/nvm.sh"
# Init Archey
# archey

Keybase proof

I hereby claim:

  • I am chrisvogt on github.
  • I am chrisvogt (https://keybase.io/chrisvogt) on keybase.
  • I have a public key whose fingerprint is D338 B559 0ED6 F208 CF23 2BB9 8F29 1CD8 5D66 FB9F

To claim this, I am signing this object:

@chrisvogt
chrisvogt / summaries.json
Created November 6, 2015 07:51
Temporary
{
"data": [
{
"editors": [],
"entities": [],
"grand_total": {
"digital": "0:00",
"hours": 0,
"minutes": 0,
@chrisvogt
chrisvogt / ship-object.php
Last active September 30, 2015 20:14
PHP objects example using Ship objects.
<?php
/**
* A fake $_POST array.
*
* @var array
*/
$_pseudoPOST = [
'name' => 'USS Constitution',
'shipwright' => "Edmund Hartt's Shipyard",
{
"quotes": [
{
"text": "It has been my philosophy of life that difficulties vanish when faced boldly,",
"cite": "Isaac Asimov, Foundation"
},
{
"text": "There is a simple way to package information that, under the right circumstances, can make it irresistible. All you have to do is find it.",
"cite": "Malcolm Gladwell, The Tipping Point"
},
@chrisvogt
chrisvogt / teacher-est-avg-salary.json
Created September 15, 2015 18:25
A JSON dictionary of the estimated average annual salary of teachers in public elementary and secondary schools, by state from nces.ed.gov. (Source: National Education Association, Estimates of School Statistics, 1969-70 through 2012-13.)
{
"United States": { "1969-70":52829.79, "1979-80":47591.63, "1989-90":57151.63, "1999-2000":57133.04, "2009-10":58924.98, "2011-12":56340.38, "2012-13":56383.00},
"Alabama": { "1969-70":41756.72, "1979-80":38919.64, "1989-90":45237.38, "1999-2000":50138.83, "2009-10":50779.33, "2011-12":48801.96, "2012-13":47949.00},
"Alaska": { "1969-70":64674.54, "1979-80":81087.55, "1989-90":78626.09, "1999-2000":63494.51, "2009-10":63696.45, "2011-12":63464.00, "2012-13":65468.00},
"Arizona": { "1969-70":53350.37, "1979-80":44861.89, "1989-90":53571.34, "1999-2000":50429.91, "2009-10":50118.58, "2011-12":49501.41, "2012-13":49885.00},
"Arkansas": { "1969-70":38627.11, "1979-80":36651.81, "1989-90":40726.03, "1999-2000":45624.98, "2009-10":49849.59, "2011-12":47084.85, "2012-13":46632.00},
"California": { "1969-70":63174.04, "1979-80":53700.76, "1989-90":69233.52, "1999-2000":65159.02, "2009-10":72802.81, "2011-12":69671.63, "2012-13":69324.00},
"Colorado": { "1969-70":47532.11, "1979-80":48291.94, "1989-90"
@chrisvogt
chrisvogt / summaries.json
Created September 13, 2015 23:06
WT summaries experiment
{
"data": [
{
"editors": [],
"grand_total": {
"digital": "0:00",
"hours": 0,
"minutes": 0,
"text": "0 minutes",
"total_seconds": 0
@chrisvogt
chrisvogt / generic-vagrant-bootstrap.sh
Created July 20, 2015 07:37
A generic Vagrant bootstrap file...
#!/usr/bin/env bash
# -----------------------------
# Vagrant bootstrap script
# -----------------------------
# Update repositories
sudo apt-get update && sudo apt-get upgrade -y -q
# Point the default virtualhost to the app's /webroot directory

Keybase proof

I hereby claim:

  • I am chrisvogt on github.
  • I am chrisvogt (https://keybase.io/chrisvogt) on keybase.
  • I have a public key whose fingerprint is 48DD CA76 067C 9B5C B126 79AC A63F 9EE3 9564 3483

To claim this, I am signing this object:

@chrisvogt
chrisvogt / extract-tally-github-commits.js
Last active August 29, 2015 14:23
Use JavaScript to extract and tally all public commits made to GitHub this month. Uses the GitHub web api.
/**
* Extract and tally all public commits made to GitHub this month for a user.
* @author CJ Vogt <mail@chrisvogt.me>
*/
$(function() {
$('#loading').html('loading...');
/**
* Contains GitHub User PushEvents
* @type {object}