A Pen by Zach Schneider on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
copy: { | |
dist: { | |
files: [ | |
// includes files within path | |
{ | |
flatten: true, | |
expand: true, | |
src: ['<%= pkg.src %>/*'], | |
dest: '<%= pkg.dist %>/', | |
filter: 'isFile' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var highestTimeoutId = setTimeout(";"); | |
for (var i = 0 ; i < highestTimeoutId ; i++) { | |
clearTimeout(i); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="React Slider Example"> | |
<meta charset="utf-8" /> | |
<title>React Sliding</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react-dom.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class InterpolatedInt | |
{ | |
private float _currentValue = 0.0f; | |
private float _targetValue = 0.0f; | |
private float _percent = 1.0f; | |
public float easingValue = 0.25f; | |
public InterpolatedInt () | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0"> | |
<title>Document</title> | |
<link rel="stylesheet" href="reset.css" type="text/css" media="screen"> | |
<style type="text/css" media="screen"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Your utility library for express | |
*/ | |
var basicAuth = require('basic-auth'); | |
/** | |
* Simple basic auth middleware for use with Express 4.x. | |
* | |
* @example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let x = Array.from(new Array(10), () => {return (Math.random() * (20 - 1) + 1) | 0}) | |
const _xorSort = (x) => { | |
for( i = 0; i < x.length; i++) { | |
for( j = 0; j < x.length; j++) { | |
if(x[i] < x[j]) { | |
x[i] = x[i] ^ x[j] | |
x[j] = x[i] ^ x[j] | |
x[i] = x[i] ^ x[j] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = require('request') | |
const stream = require('stream') | |
const buffer = require('buffer') | |
class CSVStream extends stream.Writable { | |
constructor() { | |
super() | |
this._count = 0 | |
this._buff = "" | |
this._push = (x) => { | |
//TODO figure out whether to dedup here or on DB Side |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var eml = fs.readFileSync('./eml.txt').toString('utf8').split('\r\n'); | |
function parseEmailText(eml) { | |
var sectionFound = false; | |
var found = []; | |
var tmp = ""; | |
for (var x in eml) { | |
var l = eml[x]; |