Skip to content

Instantly share code, notes, and snippets.

@pr1ntr
pr1ntr / SassMeister-input.scss
Created March 16, 2015 23:46
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
@import "compass";
.wtf {
@include transition(top .2s ease-in-out, transform .2s ease-in-out);
}
@pr1ntr
pr1ntr / SassMeister-input-HTML.html
Last active August 29, 2015 14:17
Generated by SassMeister.com.
<div class="loading-image">
<svg width="110" height="188" xmlns="http://www.w3.org/2000/svg">
<g>
<path id="water-tower" d="m84.771,94.48901c1.09399,-2.285 1.78601,-4.36002 2.15799,-5.625h2.72403v-4.40302h-1.94302v-13.17001h-5.78299v-25.44598v-0.886v-4.664l-25.56201,-6.36v-0.856c0,-1.17299 -0.94998,-2.123 -2.12299,-2.123c-1.17401,0 -2.12399,0.95001 -2.12399,2.123v0.85501l-25.56201,6.36099v4.664v0.886l0.043,25.44699h-4.67599h-1.151v13.16901h-1.94501v4.40302h2.724c0.00101,0.00299 0.00201,0.00598 0.00299,0.00998h12.02701c0,0 0,1.444 -2.095,1.51401c-3.42099,0.116 -6.535,0.23099 -9.33099,0.34c0.38501,1.09201 0.896,2.38699 1.55402,3.76102l-14.15201,68.375h4.33701l13.05298,-63.065c1.04401,1.33398 2.24701,2.57599 3.634,3.59998c4.66299,3.43802 12.53799,4.74002 17.91202,5.23801l-2.61002,54.229h4.25101l2.599,-53.95499c0.953,0.03299 1.51099,0.03098 1.51099,0.03098s2.81403,0.00702 6.64502,-0.39297l2.616,54.315h4.25198l-2.646,-54.888c4.52002,-0.76501 9.47302,-2.13101 12.79401,-4.58002c1.388,-1.021 2
@pr1ntr
pr1ntr / SassMeister-input.scss
Created April 21, 2015 18:28
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
@pr1ntr
pr1ntr / SassMeister-input.scss
Created April 21, 2015 22:20
Generated by SassMeister.com.
// ----
// libsass (v3.1.0)
// ----
$xs-min:480px;
$mq-xs-min: "(min-width: #{$xs-min})";
/*@media $mq-xs-min {
.k {
@pr1ntr
pr1ntr / SassMeister-input-HTML.jade
Created January 15, 2016 22:41
Generated by SassMeister.com.
.tvt-desktop-infographic-block.tvt-desktop-infographic-arrow.display-flex.flex-rows.flex-content-center
.tvt-desktop-infographic-arrow-dot
.tvt-desktop-infographic-arrow-dot
.tvt-desktop-infographic-arrow-dot
.tvt-desktop-infographic-arrow-dot
.tvt-desktop-infographic-arrow-dot
.tvt-desktop-infographic-arrow-dot
.tvt-desktop-infographic-arrow-dot
.tvt-desktop-infographic-arrow-dot
.tvt-desktop-infographic-arrow-dot
@pr1ntr
pr1ntr / imageSequenceLoader.js
Created February 11, 2016 19:43
Image Sequence Loader using a Generator
import http from './http';
const mapLoadImage = src => loadImage(src);
function loadImage(src) {
return new Promise((r, f) => {
let image = new Image();
stage all changedd files for a commit

git add .

stage specific file for a commit

git add /path/to/file

for some reason you want to unstage

git reset unstage all files
git reset /path/to/file unstage specific file

'use strict';
let webpack = require('webpack');
let shared = require('./webpack.config.shared');
module.exports = {
entry: shared.entry,
output: shared.output,
externals: shared.external,
module: {
@pr1ntr
pr1ntr / async.js
Created March 25, 2016 20:55
async / await vs promise
/**
* getSomeShit()
* returns Promise
* */
function getSomeShit() {
return fetch('http://some.api/endpoint', {method:"GET", header:{'content-type': 'application/json' }}).then(r => r.json())
}
function vector(n) {
let arr = Array.apply(null, Array(n));
return arr.map((x, i) => i);
}