Skip to content

Instantly share code, notes, and snippets.

View Echooff3's full-sized avatar

Echooff3 Echooff3

  • South of heaven
View GitHub Profile
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 ()
{
}
@Echooff3
Echooff3 / index.html
Created April 12, 2016 20:25 — forked from anonymous/index.html
React Sliding React Slider Example // source http://jsbin.com/fazuzi
<!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>
@Echooff3
Echooff3 / freakydeeky.js
Created August 11, 2015 20:25
Kill all intervals on page
var highestTimeoutId = setTimeout(";");
for (var i = 0 ; i < highestTimeoutId ; i++) {
clearTimeout(i);
}
@Echooff3
Echooff3 / grunt.txt
Created August 3, 2015 16:25
Quickie Beanstalk setup
copy: {
dist: {
files: [
// includes files within path
{
flatten: true,
expand: true,
src: ['<%= pkg.src %>/*'],
dest: '<%= pkg.dist %>/',
filter: 'isFile'
@Echooff3
Echooff3 / gist:30e0c7771d16a08fea16
Created July 6, 2015 17:17
Fix node permissions
sudo chown -R $(whoami) ~/.npm
@Echooff3
Echooff3 / gist:3414dd6404913c8efe4f
Created May 19, 2015 19:37
Rename JPEGS in folder in reverse order
find . -name '*.jpg' | sort -r | gawk 'BEGIN{ a=1 }{ printf "mv \"%s\" %04d.jpg\n", $0, a++ }' | bash
@Echooff3
Echooff3 / TupleList.cs
Created April 24, 2015 16:50
C# Tuple List
//Found this on stack. Credit to the guy that wrote it!
public class TupleList<T1, T2> : List<Tuple<T1, T2>>
{
public void Add( T1 item, T2 item2 )
{
Add( new Tuple<T1, T2>( item, item2 ) );
}
}
/*
find -f . png | while read line; do pngcrush -ow -brute $line; done
@Echooff3
Echooff3 / index.html
Created February 27, 2015 22:31
Example - example-$route-service-production // source http://jsbin.com/bumebu
<!doctype html>
<html lang="en">
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<meta charset="UTF-8">
<title>Example - example-$route-service-production</title>