Skip to content

Instantly share code, notes, and snippets.

View russianryebread's full-sized avatar

Ryan Hoshor russianryebread

View GitHub Profile
@gre
gre / easing.js
Last active October 30, 2024 16:49
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
@kartikshah
kartikshah / tail-color.sh
Created February 17, 2012 22:44
Color output of linux tail command
$tail -100f /var/log/applications/application.log | awk '
/INFO/ {print "\033[32m" $0 "\033[39m"}
/Exception/ {print "\033[31m" $0 "\033[39m"}
'
@russianryebread
russianryebread / index.html
Last active August 29, 2015 14:04
Bootstrap Basic Template (CDN URLs & Local Paths)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
@robertcastle
robertcastle / CMVideoSamplingPatcher.cs
Created October 3, 2014 09:41
When using Xcode 6 and Unity 4.3.4 or earlier, iOS builds fail due to a missing include in CMVideoSampling.mm. This PostProcessBuild script adds the glext.h header to the CMVideoSampling.mm file if it is missing.
//-------------------------------------------------------------
//
// CMVideoSamplingPatcher
// Copyright © 2014 Egomotion Limited
//
// When using Xcode 6 and Unity 4.3.4 or earlier, iOS builds
// fail due to a missing include in CMVideoSampling.mm.
//
// This PostProcessBuild script adds the glext.h header
// to the CMVideoSampling.mm file if it is missing.
@russianryebread
russianryebread / index.html
Last active May 13, 2019 22:01
Bare-Bones HTML 5 Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<!-- page content -->
</body>
</html>