Skip to content

Instantly share code, notes, and snippets.

View artburkart's full-sized avatar
💭
why

Arthur Burkart artburkart

💭
why
  • Coinbase
  • somewhere rainy, probably
View GitHub Profile
@artburkart
artburkart / dog_breeds_lowercase.json
Created June 25, 2014 23:10
dog breeds in JSON form
[
"affenpinscher",
"afghan hound",
"afghan shepherd",
"aidi",
"airedale terrier",
"akbash",
"akita inu",
"alano español",
"alaskan klee kai",
@artburkart
artburkart / .jshintrc
Last active August 29, 2015 14:04
my .jshintrc file
{
"undef": true,
"bitwise": true,
"eqeqeq": true,
"forin": true,
"freeze": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
@artburkart
artburkart / bs_tooltip_component
Last active August 29, 2015 14:05
ember with bootstrap tooltip
(function () {
'use strict';
/* Very simple integration, you can add more of the options to
* the component from the list in the 'Options' section of
* http://getbootstrap.com/javascript/#tooltips-usage
*
* Usage:
* <button type="button">{{#bs-tooltip title="tooltip text"}}Words{{/bs-tooltip}}</button>
*/
@artburkart
artburkart / ember_initializer
Created August 29, 2014 02:24
deferReadiness() to load current user
/*
* This was the quickest way I could figure out how to load
* the authenticated user into the app. It would make more sense
* if I only made one query to the server for the authenticated user
* (I could put the user id into a hidden input and load it from there)
*/
App.initializer({
name: 'loadCurrentUser',
after: 'store',
@artburkart
artburkart / comment_controller
Created October 15, 2014 02:56
saving multiple records in ember
// Using the underscore library to loop
comments = _.map(ids, function (id) {
return self.store.createRecord('comment', {
date: new Date(),
owner: id,
type: 'Mailed Notice'
});
});
comments.invoke('save');
@artburkart
artburkart / add_string_nums.py
Last active August 29, 2015 14:08
add string numbers
def add_string_nums(s1, s2):
if s1 is None or s2 is None:
raise AttributeError()
val = 0
rev_s1 = s1[::-1]
rev_s2 = s2[::-1]
for i in range(len(s1)):
curr = ord(rev_s1[i])
if curr >= 48 and curr <= 57:
val += (curr - 48) * 10 ** i
@artburkart
artburkart / .gitconfig
Last active March 1, 2016 00:33
gitconfig
[user]
email = artburkart@gmail.com
name = Arthur Burkart
[core]
editor = vim
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
@artburkart
artburkart / BRANCHPOPPING.md
Last active August 29, 2015 14:27
A walk-through on how to pop a commit out of your history

Branch Popping

  • Set up the branches

git checkout master

git branch MAXT-F

git checkout -b MAXT-B

@artburkart
artburkart / gulpfile.js
Created September 28, 2015 20:01
gulpfile.js that reads system environment variables
var gulp = require('gulp');
gulp.task('default', function() {
console.log(process.env.HELLO);
});
@artburkart
artburkart / acceptance_automation.md
Last active March 1, 2016 01:57
Resources and Tips for Tackling Acceptance Automation

HTML Lesson

  • Reliable Sources:
  • Books:
  • Style guide
  • Definitions
    • HTML
    • XHTML
    • Tags
  • HTML attributes