Skip to content

Instantly share code, notes, and snippets.

View derekdowling's full-sized avatar
🏄‍♂️
Shredding the software gnar.

Derek Dowling derekdowling

🏄‍♂️
Shredding the software gnar.
  • Together AI
  • San Francisco, California
  • 23:57 (UTC -07:00)
  • LinkedIn in/derekdowling
View GitHub Profile
@derekdowling
derekdowling / action-button.hbs
Created September 10, 2015 00:07
Simple Action Button in Ember 2.0
{{yield}}
@derekdowling
derekdowling / authenticator_test.go
Created October 11, 2014 19:51
GoConvey Tests for Authenticator Package
package authentication
import (
"code.google.com/p/go.crypto/bcrypt"
. "github.com/smartystreets/goconvey/convey"
"log"
"strings"
"testing"
)
@derekdowling
derekdowling / authenticator.go
Created October 11, 2014 19:44
Basic Password Handler for Go Apps/Websites
package authentication
// This will handle all aspects of authenticating users in our system
// For password managing/salting I used:
// http://austingwalters.com/building-a-web-server-in-go-salting-passwords/
import (
"code.google.com/p/go.crypto/bcrypt"
"crypto/rand"
"log"
@derekdowling
derekdowling / TestKernel.php
Last active August 29, 2015 14:06
Non-PHPUnit based Symfony TestKernel
<?php namespace PROJECT\Tests;
// PATH TO YOUR AUTOLOADER
require_once(__DIR__ . '/../../../../app/autoload.php');
// PATH TO YOUR SYMFONY APP KERNEL
require_once(__DIR__ . '/../../../../app/AppKernel.php');
use AppKernel;
@derekdowling
derekdowling / Dynamic Alternating Grid
Last active December 11, 2015 06:29
Dynamically Generate Content In A Grid Rows Using Jade
- var row = 0;
each tweet, t in twitter
if t % 3 == 0
.row-fluid.tweets
- row = row + 1
each rowElement in twitter.slice(t, t + 3)
.span4
if row % 2 == 0
.span3.image
img(src='../public/img/twitter/#{tweet.handle}.jpg')
#!/bin/sh
# This has to be run from master
git checkout master
# Update our list of remotes
git fetch
git remote prune origin
# Remove local fully merged branches