Skip to content

Instantly share code, notes, and snippets.

@mndvns
mndvns / Error message
Last active January 22, 2016 23:12
Poe API
15:17:13.350 [error] Ranch listener Api.HTTP.HTTP had connection process started with :cowboy_protocol:start_link/4 at #PID<0.448.0> exit with reason: {{%ArgumentError{message: "argument error"}, [{:erlang, :byte_size, [nil], []}, {Api.Service.Snow, :do_get, 4, [file: 'lib/api/service/snow.ex', line: 46]}, {Api.Resource.Cases.Hyperjson, :etude_14667509_exec, 5, [file: '/Users/michaelvanasse/Projects/optiv/poe-service-now-proxy/lib/api/resource/cases.ex', line: 7]}, {Api.Resource.Cases.Hyperjson, :etude_14667509, 4, [file: '/Users/michaelvanasse/Projects/optiv/poe-service-now-proxy/lib/api/resource/cases.ex', line: 7]}, {Api.Resource.Cases.Hyperjson, :etude_var_22987114, 4, [file: '/Users/michaelvanasse/Projects/optiv/poe-service-now-proxy/lib/api/resource/cases.ex', line: 6]}, {Api.Resource.Cases.Hyperjson, :etude_104760913, 4, [file: '/Users/michaelvanasse/Projects/optiv/poe-service-now-proxy/lib/api/resource/cases.ex', line: 14]}, {Api.Resource.Cases.Hyperjson, :etude_27645449, 4, [file: '/Users/michaelvana
import SimpleCards from './simple-cards.jade'
label overwrite
input(onChange=this.onChange.bind(null, 'overwrite') defaultValue=state.overwrite)
label frozen
input(onChange=this.onChange.bind(null, 'frozen') defaultValue=state.frozen)
json= state
SimpleCards
SimpleCards&props(state)
@mndvns
mndvns / constructor.ess
Last active August 29, 2015 14:18
ESS constructor pattern
var bg = props.bg
var family = props.family
background = bg || 'white'
font-family = family || 'Arial'
@mndvns
mndvns / highlight-react.js
Created February 27, 2015 07:48
highlight all react elements
setInterval(function() {
Array.prototype.slice.call(document.querySelectorAll('[data-reactid]'))
.forEach(function(element) {
element.style.background = 'rgba(255,0,0,0.1)';
});
}, 500)
@mndvns
mndvns / dick.sh
Last active August 29, 2015 14:16
some fine art
printf '\033[31m8.\033[0m'
Layout.margin-bottom-1
Layout(justified, style={background: bg, color: color}).pad-1xy.flex-1
strong= value.name
span= bg
@mndvns
mndvns / app.jade
Last active August 29, 2015 14:15
import './index.ess'
import './app.ess'
// App
:ess
import {floatLeft} from 'utils.ess'
.App
= floatLeft()
@mndvns
mndvns / animation.css
Last active August 29, 2015 14:15
Composable animations with ESS
@-webkit-keyframes thing {
html 0% {
opacity: 0
}
html 0% {
background: black;
}
html 100% {
opacity: 1
}
.test {}
.test:hover {
color: blue
}
.test {}
.test:hover {
color: blue
}
.test {}
.test:hover {
@mndvns
mndvns / colors.styl
Last active August 29, 2015 14:15
Programmatic stylus
colors = {
'black': #000,
'white': #fff
}
shades = {
'light': 20%,
'lighter': 40%,
'lightest': 60%
}