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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
import React from 'react' | |
import { Observable } from 'rxjs' | |
import { createContext } from 'react-zedux' | |
const tick$ = Observable.interval(1000) | |
const TickContext = createContext(tick$) | |
const App = () => ( | |
<TickContext.Provider> | |
<Clock /> |
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
import React from 'react' | |
import { createContext } from 'react-zedux' | |
import { createStore } from 'redux' | |
import rootReducer from './reducers' | |
const store = createStore(rootReducer) | |
const Context = createContext(store) | |
const App = () => ( | |
<Context.Provider> |
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 fragmentShader = ` | |
#define PI 3.1415926535897932384626433832795 | |
uniform float u_time; | |
uniform vec2 u_res; | |
float range01(float num) { | |
return .5 + .5 * sin(num); | |
} | |
float getRed(vec2 xy) { |
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
<?php | |
class Sasser { | |
private $hexChars = array('a' => 10, 'b' => 11, 'c' => 12, 'd' => 13, 'e' => 14, 'f' => 15); | |
public function toRGB($hex) { | |
if (is_array($hex)) return $hex; | |
if (substr($hex, 0, 1) === '#') $hex = substr($hex, 1); | |
if (strlen($hex) === 3) $hex = $hex[0] . $hex[0] . $hex[1] . $hex[1] . $hex[2] . $hex[2]; |
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 drawCanvas = function() { | |
var time, | |
mouse = {x: 0, y: 0}; | |
var Star = function(ctx, width, height) { | |
this.ctx = ctx; | |
this.height = height; | |
this.width = width; | |
Math.random() > height / width * .5 | |
? (this.x = parseInt(Math.random() * width)) && (this.y = 0) |
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
/** | |
* LiteBox -- version 0.1.1 -- Jan. 22, 2016 | |
* | |
* Another library by Joshua Claunch | |
* https://github.com/bowheart | |
* https://gist.github.com/bowheart | |
* | |
* A jQuery-dependent/integrated lightbox library | |
*/ | |
(function($) { |
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
/** | |
* Another library by Joshua Claunch | |
* https://github.com/bowheart | |
* https://gist.github.com/bowheart | |
* | |
* A jQuery-dependent input masking/filtering/limiting library. | |
* | |
* class Masker | |
* Makes input fields more intelligent. Handles three data-* attributes on input elements: | |
* 1) data-filter -- A regex whitelist. Anything not in this whitelist is discarded. |
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
/** | |
* Another library by Joshua Claunch | |
* https://github.com/bowheart | |
* https://gist.github.com/bowheart | |
* | |
* A jQuery-dependent form feedback library. | |
*/ | |
$(function() { | |
var fontIsLoaded = function(fontName, content, callback) { |
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
/** | |
* Another library by Joshua Claunch | |
* https://github.com/bowheart | |
* https://gist.github.com/bowheart | |
* | |
* A jQuery-dependent secret intelligence library. :O | |
*/ | |
(function() { | |
var Autofiller = function(zipInput, cityInput, stateInput, phoneInput) { |