Skip to content

Instantly share code, notes, and snippets.

View volkovasystems's full-sized avatar
🏠
Working from home

Richeve S. Bebedor volkovasystems

🏠
Working from home
  • volkovasystem
  • Philippines
View GitHub Profile
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
@volkovasystems
volkovasystems / README.md
Last active August 29, 2015 14:07 — forked from pnull/entypo.css

entypo-css

Entypo css binding from my gist, entypo.css forked from pnull/entypo.css

@volkovasystems
volkovasystems / load-base64-image.html
Created October 30, 2014 03:07
Convert loaded image to base64 encoding and display it in img element.
<html>
<body>
<p>Select a File to Load:</p>
<input id="inputFileToLoad" type="file" onchange="loadImageFileAsURL();" />
<br />
<p>File Contents as DataURL:</p>
@volkovasystems
volkovasystems / Model Text Parser
Created November 11, 2014 09:24
Stack algorithm for parsing model text.
/**
* Method parseModel
*
* This will parse the model text and output this structure:
* {
* "type": "subcircuit" | "model",
* "name": "<model name>" | "<subcircuit name>",
* "parameterCount": <parameter count>
* }
*
@volkovasystems
volkovasystems / CountdownControl.js
Last active August 29, 2015 14:10 — forked from srph/CountdownControl.js
A revision of countdown timer made with React way of thinking.
var CountdownControl = React.createClass({
// Simplified for brevity
render: function() {
var control = this.props.status
? 'Pause'
: 'Resume';
return (
<span onClick={this._handleClick}>
@volkovasystems
volkovasystems / reference-tag-mantra.html
Last active August 29, 2015 14:10
Reference Tag Mantra
<text-input />
@volkovasystems
volkovasystems / name-attribute-mantra.html
Created December 2, 2014 02:30
Name Attribute Mantra
<text-input name="firstName" />
@volkovasystems
volkovasystems / react-test.html
Created December 4, 2014 09:15
Hack into Angular + React
<html ng-app="TextInput">
<head>
</head>
<body>
<text-input
style="height:100px;"
class="first-name-input"
name="firstName">
</text-input>
@volkovasystems
volkovasystems / eeProject.js
Last active August 29, 2015 14:11
eeProject FSM Implementation
eeProject.prototype.initializeStateMachine = function initializeStateMachine( ){
this.projectState = Stately.machine( {
"SAVING_PROJECT": {
"onProjectSaved": function onProjectSaved( ){
return this.IDLE_PROJECT;
},
"onProjectSavingError": function onProjectSavingError( ){
@volkovasystems
volkovasystems / property.js
Last active August 29, 2015 14:12
Angular module for manipulating properties of entities.
angular
.module( "Property", [ "Meta" ] )
.factory( "Property", [
"Meta",
function factory( Meta ){
var Property = function Property( propertyName ){
this.propertyName = propertyName;