var head = [
{
cols: [
{
sortId: 'column_1', // make column clicable and sortable
text: 'Column Name 1' // text in column
},
{
sortId: 'column_2', // make column clicable and sortable
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 glob = require("glob"); | |
var fs = require("fs"); | |
var browserify = require("browserify"); | |
var babelPresetEs2015 = require('babel-preset-es2015'); | |
var babelPresetReact = require('babel-preset-react'); | |
// Global Sources or Compiled Assets Destination Paths | |
var BUILD_ASSETS_PATH = '../www/assets-v2'; | |
var NODE_MODULES_PATH = './node_modules'; | |
var GLOBAL_SCSS_PATH = './scss'; |
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
@keyframes dropball { | |
0% { | |
bottom: 200px; | |
} | |
2% { | |
bottom: 198.89046144485474px; | |
} | |
4% { | |
bottom: 197.5577425956726px; | |
} |
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 WIN_WIDTH = 500; | |
const WIN_HEIGHT = 600; | |
function watchForWindowClose (win, callback) { | |
if (! win.closed) { | |
return setTimeout(() => { | |
watchForWindowClose(win, callback); | |
}, 1000); | |
} | |
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
// takes a {} object and returns a FormData object | |
var objectToFormData = function(obj, form, namespace) { | |
var fd = form || new FormData(); | |
var formKey; | |
for(var property in obj) { | |
if(obj.hasOwnProperty(property)) { | |
if(namespace) { |
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 | |
// php cli.php /update | |
require __DIR__ . '/vendor/autoload.php'; | |
if (PHP_SAPI == 'cli') { | |
$argv = $GLOBALS['argv']; | |
array_shift($argv); |
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
//source: http://electronics.stackexchange.com/q/59615 | |
int AC_LOAD = 3; // Output to Opto Triac pin | |
int dimming = 128; // Dimming level (0-128) 0 = ON, 128 = OFF | |
void setup() | |
{ | |
pinMode(AC_LOAD, OUTPUT); // Set the AC Load as output | |
attachInterrupt(0, zero_crosss_int, RISING); // Choose the zero cross interrupt # from the table above | |
} |
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
// Uncomment only when you use it in test: | |
// import * as diffhtml from 'diffhtml'; | |
// import morphdom from 'morphdom'; | |
// You need a document with <div id="root"></div> | |
var rootEl = document.getElementById('root'); | |
// Replace with big real HTML pice. | |
var tpl = `<div>Replace with real big HTML pice.</div>`; |
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
<div id="root"></div> |