Skip to content

Instantly share code, notes, and snippets.

View vernalkick's full-sized avatar

Kevin Clark vernalkick

View GitHub Profile
@vernalkick
vernalkick / ember_exporter.rb
Last active September 30, 2021 20:20
Ember Exporter
#!/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
@vernalkick
vernalkick / 0_reuse_code.js
Created March 23, 2016 17:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<title>{% if page.title != 'Home' %}{{ page.title }} — {% endif %}Kevin Clark</title>
require 'rest_client'
params = {
:path => "test.txt",
:message => "Test Commit",
:committer => {
:name => "Kevin Clark",
:email => "kevin@kevinclark.ca"
},
:content => "bXkgbmV3IGZpbGUgY29udGVudHM="
@vernalkick
vernalkick / Preferences
Created November 1, 2014 16:46
My Sublime settings
{
"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":
[
@vernalkick
vernalkick / media-ipad
Created September 10, 2014 14:24
Media query to target the iPad at a specific orientation
@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;
}
}
}
@function map-value($map, $n) {
@return nth(nth($map, $n), 2);
}
@vernalkick
vernalkick / install-ruby.sh
Last active December 20, 2015 00:59 — forked from lukearmstrong/install-ruby.sh
How to install everything you need to compile Sass files and include the Bourbon library).
# 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