This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"comment": "This is the settings file for the SVGO Compressor Plugin. For more info, please check <https://github.com/BohemianCoding/svgo-compressor>", | |
"pretty": false, | |
"indent": 2, | |
"plugins": [ | |
{ | |
"name": "cleanupAttrs" | |
}, | |
{ | |
"name": "cleanupEnableBackground" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --author="YOUR_NAME_HERE" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* sample cubic beziers */ | |
linear = [0.250, 0.250, 0.750, 0.750]; | |
ease = [0.250, 0.100, 0.250, 1.000]; | |
easeIn = [0.420, 0.000, 1.000, 1.000]; | |
easeOut = [0.000, 0.000, 0.580, 1.000]; | |
easeInOut = [0.420, 0.000, 0.580, 1.000]; | |
function reverseCubicBezier(cubicBezier) { | |
return [ | |
1 - cubicBezier[2], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/<?\(p\)\@! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Quotes App", | |
"quotes": [{ | |
"body": "It was the best of times, it was the worst of times", | |
"author": "Charles Dickens", | |
"date": "1859", | |
"source": "A Tale of Two Cities" | |
}, { .. }] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Accepts a path, defaults to . | |
function tree { | |
local dir=${1:-.}; | |
find $dir -print | sed -e 's;[^/]*/;|--;g;s;--|; |;g'; | |
} | |
# | |
# Just add this into a file in your path, .bashrc for example. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Twitter Card Generator | |
Description: This plugin provides a class to generate the meta tag properties for a player twitter card. | |
Version: 0.1 | |
Author: Matthew Simo | |
*/ | |
if(!class_exists('Twitter_Card')){ | |
class Twitter_Card{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Matthew Simo | |
email = matthew.a.simo@gmail.com | |
[core] | |
excludesfile = /Users/matthewsimo/.gitignore_global | |
editor = vim | |
ui = true | |
[alias] | |
st = status | |
ci = commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function goto { | |
local item=$1; | |
if [[ ${item} == '--list' || ${item} == '-l' ]] | |
then | |
boom p; | |
else | |
cd $(boom echo $item); | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILE=$1 | |
$(gzip < $FILE > $FILE.gz) |