Skip to content

Instantly share code, notes, and snippets.

@nilesmc
nilesmc / codeofconduct.md
Created April 2, 2018 04:23
Code of Conduct For Portland Elixir
@nilesmc
nilesmc / async.js
Created February 21, 2018 19:38
Using ES2017 Async syntax
function reachOut(val) {
console.log('reach out called with:', val)
return new Promise(resolve => {
setTimeout(() => {
resolve(val);
}, 10)
})
}
async function adderSequence(x) {
@nilesmc
nilesmc / Squisher
Created December 15, 2017 00:49
Citrus
class Squisher
def initialize(items)
@inputs = items
@outputs = []
end
attr_reader :outputs, :inputs
def build
@nilesmc
nilesmc / declarative concise break points
Created November 28, 2016 19:08
A set of declarative concise break points for my next Sass based project.
@mixin for-phone-only {
@media (max-width: 599px) { @content; }
}
@mixin for-tablet-portrait-up {
@media (min-width: 600px) { @content; }
}
@mixin for-tablet-portrait-only {
@media (min-width: 600px) and (max-width: 899px) { @content; }
}
@mixin for-tablet-landscape-up {
# sample/sample_app.rb
require 'sinatra'
require 'pry'
# We us "classic" mode where you don't actually see the class
# inheriting from Sinatra::Base and you don't start the app with
# rackup. This makes the object structure less obvious but lets
# Sinatra do more of the behind-the-scenes
# sample/sample_app.rb
require 'sinatra'
require 'pry'
# We us "classic" mode where you don't actually see the class
# inheriting from Sinatra::Base and you don't start the app with
# rackup. This makes the object structure less obvious but lets
# Sinatra do more of the behind-the-scenes
# sample/sample_app.rb
require 'sinatra'
require 'pry'
# We us "classic" mode where you don't actually see the class
# inheriting from Sinatra::Base and you don't start the app with
# rackup. This makes the object structure less obvious but lets
# Sinatra do more of the behind-the-scenes