Skip to content

Instantly share code, notes, and snippets.

Andrew-Max / index.html
Last active Apr 25, 2017
Math Birthday
View index.html
<!DOCTYPE html>
<title>Math B-Day</title>
<link href="" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="" />
<link href="" rel="stylesheet">
Andrew-Max / flattener.rb
Created Mar 22, 2017
Array Flattener in Ruby for Citrusbyte
View flattener.rb
require 'test/unit'
extend Test::Unit::Assertions
class Flattener
# Public interface does input validation and delegates to private method
def flatten(input)
raise ArgumentError, 'Argument is not array' unless input.is_a? Array
Andrew-Max / gist:305483febc3c367dbf57
Last active Jul 11, 2020
Route lifecycle hooks guide from Ember meetup lightning talk
View gist:305483febc3c367dbf57
App.LibraryRoute = App.ApplicationRoute.extend({
activate: function () {
//no longer enter
only called once on entering a route.
beforeModel: function () {
// any state you want in place before the model is initialized, this is called before any model promises are resolved
// also could be used to conditionally prevent access to a route by throwing transition.abort
View jsbin.nufusa.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Ember Starter Kit</title>
<link rel="stylesheet" href="">
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
View jsbin.wavewebi.css
/* Put your CSS here */
html, body {
margin: 20px;
View gist:6800184
<div class="icon">
<span class="typcn typcn-pencil-outline"></span>
<div class="icon">
<span class="typcn typcn-trash-outline"></span>
<div class="icon">
<span class="typcn typcn-message-outline"></span>
<div class="icon ">