Skip to content

Instantly share code, notes, and snippets.

View bantic's full-sized avatar
💭
Status!

Cory Forsyth bantic

💭
Status!
View GitHub Profile
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
tree: [{
id: 0,
name: 'Root',
isExpanded: true,
isSelected: false,
isVisible: true,
@bantic
bantic / application.controller.js
Last active July 19, 2018 21:58 — forked from rwjblue/application.controller.js
layoutName Ember 1.13
import Ember from 'ember';
export default Ember.Controller.extend({
emberVersion: Ember.computed(function() {
return Ember.VERSION;
})
});
@bantic
bantic / trie.py
Created November 7, 2017 23:31 — forked from truncs/trie.py
Simple Trie in python
#! /usr/bin/python
import unittest
class Trie(object):
""" Trie implementation in python
"""
def __init__(self, ):
""" So we use a dictionary at each level to represent a level in the hashmap
@bantic
bantic / components.template-tag.js
Last active April 6, 2017 22:37 — forked from knownasilya/components.template-tag.js
mobiledoc template fill in
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'span',
classNames: ['template-tag'],
click() {
let tag = this.get('tag');
let promise = this.get('onClick')(tag);
@bantic
bantic / components.template-tag.js
Created April 6, 2017 20:03 — forked from knownasilya/components.template-tag.js
mobiledoc template fill in
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'span',
classNames: ['template-tag'],
click() {
let tag = this.get('tag');
let promise = this.get('onClick')(tag);
@bantic
bantic / ie.gif
Last active March 15, 2017 21:58 — forked from nolanlawson/LICENSE
Scroll jank demo - wheel
ie.gif
RSpec::Matchers.define :be_signed_in do
match do |user|
warden.user == user
end
failure_message_for_should do |user|
"expected #{user} to be signed in, but was not"
end
failure_message_for_should_not do |user|
# mongo_template.rb
# fork of Ben Scofield's Rails MongoMapper Template (http://gist.github.com/181842)
#
# To use:
# rails project_name -m http://gist.github.com/gists/219223.txt
# remove unneeded defaults
run "rm public/index.html"
run "rm public/images/rails.png"
run "rm public/javascripts/controls.js"
/*
* This is the Towers of Hanoi example from the prolog tutorial [1]
* converted into Scala, using implicits to unfold the algorithm at
* compile-time.
*
* [1] http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/2_3.html
*/
object TowersOfHanoi {
import scala.reflect.Manifest
Deploying a Rails App with EC2 + S3 + Ubuntu
============================================
Create EC2 Instance
-------------------
create new instance ami-bf5eb9d6 [http://alestic.com/](http://alestic.com/)
create new elastic ip
attach elastic ip to instance
point dns to elastic ip