Skip to content

Instantly share code, notes, and snippets.

acpi
adobe-source-code-pro-fonts
alsa-firmware
alsa-plugins
alsa-utils
apvlv
arandr
autoconf
automake
banner
@kenyonj
kenyonj / bacpac
Created September 25, 2015 02:50
this
class BenchmarksChart {
constructor(type, data) {
this.type = type;
this.data = data;
this.chart = new Chartist.Bar(".ct-${this.type}-chart", this.data, this._options)
this.chart.on("draw", function(data) {
if(data.type === "bar") {
let barWidth = 40;
@kenyonj
kenyonj / public_key
Last active April 5, 2016 20:06
PGP Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQINBFcEF7MBEADHMrqUdUh7ANHVH1UPgoxdkhgktsK+axwEUo9O+x21CMl0v1Dc
jE85rXJaIATmyl5MKDMVbTn1xNWLGQt0op/Yh+NB0ahxkLLZ4Qn7iktRoWxvcrJm
jLuw01k4eWAz/C3FxUx2xM4mvnw4uv71OP1z3KZK/1BETUsOKjf6auEkRFz0hVpX
ALqnVvo5MTsNmxCfXILVOtmkVAoyuoRt1gWB5SXWvMHg1fedqUZGrle1qtskukiD
iwDcXNI9lUOjoWoDuObjs97CYcLQLosQENtzg7qNqDaQdsjrK5zhx3wyR/H7E2E/
GP+kDjXeAverMdmBMMCRpsYNPXt4juUa0JnEbJ1ElJVMmxeBdvc0gUnW9TmCdeGk
SkLBWHCesECST4wER+H+EwVfjOCsjJClvi8As9VDzj4sy/wR2AOrdvHGwHqJCMLw
append_to_zshrc() {
local text="$(sed 's/\\n//g' <<< $1)"
local zshrc
if [[ -w "$HOME/.zshrc.local" ]]; then
zshrc="$HOME/.zshrc.local"
else
zshrc="$HOME/.zshrc"
fi
# set gitconfig.local keys and define gpair() and gsolo()
gh_name=("${(s/ /)$(echo `git config user.name`)}")
gh_email=("${(s/@/)$(echo `git config user.email`)}")
gh_co_domain=$(echo `git config company.domain`)
# set the company email domain name in gitconfig.local, only do this once
if [[ $gh_co_domain == "" ]]; then
echo "\nPlease enter your company email domain name: [thoughtbot.com] "
read co_domain
@kenyonj
kenyonj / gpair-gsolo
Last active August 29, 2015 14:07
defining gpair() and gsolo()
# set gitconfig.local keys and define gpair() and gsolo()
gh_name=("${(s/ /)$(echo `git config user.name`)}")
gh_email=("${(s/@/)$(echo `git config user.email`)}")
gh_co_domain=$(echo `git config company.domain`)
# set the company email domain name in gitconfig.local, only do this once
if [[ $gh_co_domain == "" ]]; then
echo "\nPlease enter your company email domain name: [thoughtbot.com] "
read co_domain
var _ = require('lodash'),
concat = require('gulp-concat'),
debug = require('gulp-debug'),
gulp = require('gulp'),
ignore = require('gulp-ignore'),
jshint = require('gulp-jshint'),
karma = require('karma').server,
htmlmin = require('gulp-htmlmin'),
includeSource = require('gulp-include-source'),
minifyCss = require('gulp-minify-css'),
describe "User views settings for a form", ->
it "they export the form to JSON", ->
create('form').then (form) ->
visit("/f/#{form.get("id")}/edit").then ->
click(".ember-view a:contains('Export')").then ->
click(".button.export-to-json").then ->
expectedURL = "/f/#{form.get("id")}.json"
expect(currentURL()).to.equal(expectedURL, "expected #{currentURL()} to equal #{expectedURL}")
class SessionsController < ApplicationController
skip_before_action :require_login, only: [:new, :create]
def new
end
def create
@user = authenticate_session(session_params, email_or_username: [:email, :username])
if sign_in(@user)