Skip to content

Instantly share code, notes, and snippets.

Avatar
😏

Sam Seay samueljseay

😏
View GitHub Profile
@samueljseay
samueljseay / nz-mtg-coc.md
Last active Oct 25, 2018 — forked from didichanoch/sample-discord-coc.md
New Zealand MTG Code of Conduct
View nz-mtg-coc.md

New Zealand MTG Code of Conduct

Welcome!

The New Zealand MTG Discord channel is a place for Magic players throughout NZ to gather, talk, trade and arrange games together. We hope you have fun!

The current admins are:

  • Sam Seay
View ubuntu14.04-command-line-install-android-sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
@samueljseay
samueljseay / gist:82cf59d73eb884c4f91c
Created Jan 25, 2016
Everything you can override in a refinerycms project with refinerycms-blog
View gist:82cf59d73eb884c4f91c
When starting a project that includes refinerycms-blog:
$ rake refinery:override view=refinery/pages/*
$ rake refinery:override view=layouts/*
$ rake refinery:override view=refinery/blog/shared/*
$ rake refinery:override view=refinery/blog/posts/*
$ rake refinery:override view=refinery/*
$ rake refinery:override controller=refinery/blog/*
$ rake refinery:override controller=refinery/*
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
something: Ember.computed(function() {
return 8;
}),
list: [
View ember.computed.stored.coffee
###
Creates a computed property that persists into local storage, all
instances share the same value for the same property.
App.AuthController = Ember.Controller.extend({
token: Em.computed.stored()
});
controller = App.__container__.lookup('controller:auth')
controller.set('token', 'abc123foo456bar')
@samueljseay
samueljseay / gist:7779276
Last active Jul 19, 2021 — forked from jimbojsb/gist:1630790
Color highlight and copy code for presentations
View gist:7779276

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

View haml_cheatsheet.haml
-# HTML5 doctype
!!! 5
!!! strict
!!! XML
%html
-#ie conditionals
/[if IE]
%a{ href: "http://www.mozilla.com/en-US/firefox/" }