This file contains hidden or 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
#!/usr/bin/env ruby | |
# Input arguments | |
source_path = ARGV[0] | |
destinationPath = ARGV[1] || '~/Desktop/ember_backup' | |
# Creade destination directory if it doesn't exist | |
`mkdir -p #{destinationPath}` | |
# Find the embersnaps in the directory and count them |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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>{% if page.title != 'Home' %}{{ page.title }} — {% endif %}Kevin Clark</title> |
This file contains hidden or 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
require 'rest_client' | |
params = { | |
:path => "test.txt", | |
:message => "Test Commit", | |
:committer => { | |
:name => "Kevin Clark", | |
:email => "[email protected]" | |
}, | |
:content => "bXkgbmV3IGZpbGUgY29udGVudHM=" |
This file contains hidden or 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
{ | |
"auto_indent": true, | |
"bold_folder_labels": true, | |
"caret_style": "smooth", | |
"close_windows_when_empty": true, | |
"color_scheme": "Packages/User/Flatland Dark.tmTheme", | |
"create_window_at_startup": false, | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ |
This file contains hidden or 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
@mixin media-ipad($orientation: false) { | |
@include not-legacy { | |
$orientation-media-declaration: if($orientation, "and (orientation: #{$orientation})"); | |
$media-query: "only screen and (min-device-width: 768px) and (max-device-width: 1024px) #{$orientation-media-declaration}"; | |
@media #{$media-query} { | |
@content; | |
} | |
} | |
} |
This file contains hidden or 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 map-value($map, $n) { | |
@return nth(nth($map, $n), 2); | |
} |
This file contains hidden or 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
# lol redhat | |
su | |
# Install deps | |
yum install libyaml libyaml-devel openssl libxml2-devel bison libxslt-devel openssl-devel tcl tk libffi tcl-devel tk-devel libffi-devel | |
# Download Ruby | |
cd /usr/local/src/ | |
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | |
tar -xvzf ruby-1.9.3-p392.tar.gz |