Skip to content

Instantly share code, notes, and snippets.

View thisandagain's full-sized avatar

Andrew Sliwinski thisandagain

View GitHub Profile
@thisandagain
thisandagain / index.html
Last active August 29, 2015 14:14
Button Styles
<!--<link rel="stylesheet" href="//code.cdn.mozilla.net/fonts/fira.css">-->
<button class="btn">Open My App</button>

Keybase proof

I hereby claim:

  • I am thisandagain on github.
  • I am thisandagain (https://keybase.io/thisandagain) on keybase.
  • I have a public key whose fingerprint is F287 5050 6007 C5AF C2A1 4884 9866 8F77 BE20 50EE

To claim this, I am signing this object:

@thisandagain
thisandagain / kern.js
Created October 23, 2013 20:54
Kerning... without any gosh darn jQuery! *tableflip*
/**
* Framework-less kerning support for browsers.
*
* @package kern
* @author Andrew Winterman <[email protected]>
* Andrew Sliwinski <[email protected]>
*/
/**
* Export
@thisandagain
thisandagain / gist.md
Last active December 15, 2015 14:38
Always Command+V as "Paste and Match Style" (without formatting)

Instructions (Mac OS X)

  • Open "System Preferences"
  • Select "Keyboard"
  • Select tab "Keyboard Shortcuts"
  • Select "Application Shortcuts" from the left list box
  • Click "+" below the right list box
  • Select "All Applications" for "Application" input box
  • Type "Paste and Match Style" into the "Menu Title" input box
  • In the "Keyboard Shortcut" input box, type command-v
@thisandagain
thisandagain / install-beanstalkd.sh
Last active December 15, 2015 01:58
Beanstalkd 1.8 Install
# Installation
https://github.com/kr/beanstalkd/archive/v1.9.tar.gz
tar xf v1.9
cd beanstalkd-1.9
sudo make install
screen -d -m beanstalkd
# Upstart setup
sudo wget https://raw.github.com/kr/beanstalkd/master/adm/upstart/beanstalkd.conf -O /etc/init/beanstalkd.conf
@thisandagain
thisandagain / health.json
Last active December 14, 2015 15:49
DIY's API /health route
{
"head": {
"code": 200,
"status": "OK",
"url": "/health",
"method": "GET",
"stamp": "2013-03-07T18:21:26.569Z"
},
"response": {
"uptime": 23,
@thisandagain
thisandagain / encode.js
Created February 21, 2013 17:43
Encode / decode example for Paul
/**
* This function takes any words and splits them up into individual letters.
*
* @param {String} Input string
*
* @return {Array}
*/
function tokenize (input) {
return input.split('');
}
@thisandagain
thisandagain / subl.sh
Created January 26, 2013 04:15
Sublime CLI install
ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
@thisandagain
thisandagain / hash.js
Created December 13, 2012 00:25
Hash stuff for jlord
// Starting point
var array = [
{
id: 1,
title: 'Hello',
tools: [1,2,3]
},
{
id: 2,
title: 'World',