Skip to content

Instantly share code, notes, and snippets.

angry glasses, who hurt you?

Matt-Jensen Matt-Jensen

angry glasses, who hurt you?
Block or report user

Report or block Matt-Jensen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View forEachBug.js
(async () => {
const itterations = Array.from({length: 4});
console.log('starting');
itterations.map(async (_, i) => {
await wait(300);
console.log(`itteration done ${i}`);
});
View gomakefile
include .env
PROJECTNAME=$(shell basename "$(PWD)")
# Go related variables.
GOBASE=$(shell pwd)
GOPATH="$(GOBASE)/vendor:$(GOBASE)
GOBIN=$(GOBASE)/bin
GOFILES=$(wildcard *.go)
View compose.js
export default (...fns) => x => fns.reduceRight((v, f) => f(v), x)
// compose(double, add1)(2) === 6
View pipe.js
export default (...fns) => x => fns.reduce((v, f) => f(v), x);
// pipe(double, add1)(2) === 5
View Koven Address
0xFbbf996d047D49488CDb782e823817ecE779247C
View gist:bcc1d5aa12c6395265b159d8e0b7349f
Verifying that +mattjensen is my blockchain ID. https://onename.com/mattjensen
@Matt-Jensen
Matt-Jensen / gist:9dc5b00bae4e167b31c3
Last active Aug 29, 2015
Expensify Invoice Constructor
View gist:9dc5b00bae4e167b31c3
function Invoicerizer(date, duration, tasks) {
this.date = date;
this.duration = duration;
this.tasks = tasks;
}
Invoicerizer.prototype = {
init: function() {
$('.expensicons.expensicons-plus').trigger('click');
View gist:ebc439d942bed2ec10c8
<!-- Place favicon.ico and apple-touch-icon(s) in the root directory -->
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-ipad-retina.png" />
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-iphone-retina.png" />
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-ipad.png" />
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-iphone.png" />
View gist:7935008
var phoneRegExp = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;
@Matt-Jensen
Matt-Jensen / Sass Retina Query Mixin
Last active Dec 22, 2015
A sass function to generate retina media queries.
View Sass Retina Query Mixin
/* Update: 5/3/14 - supports IE9+, FF3.5+, Opera9.5+ */
@mixin retina($query: null, $density: 2) {
$dpi: $density * 96;
/* Accepts optional @media query conditions */
@if $query {
$query: "and (#{$query})";
}
@else {
You can’t perform that action at this time.