Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View MikeTatsky's full-sized avatar

Mike Tatsky MikeTatsky

View GitHub Profile
new ZG.Form({
id: 'zg-form',
renderTo: 'container',
style: {
'float': 'left'
},
items: [{
type: 'string',
value: 'Ted',
labelText: 'Name',
zingchart.exec("demo-chart", "select", [{
"plotindex":0,
"nodeindex":"0-2",
"toggle":true
},{
"plotindex":1,
"nodeindex":[1,3]
}]);
Was
render: function(o){
var tpl = o.tpl,
params = o.params;
params.value = '$' + ZG.Format.number(params.value);
if(o.tpl){
return tpl.getHtml(params);
}
else{
#!/bin/bash
# Set the ROOM_ID & AUTH_TOKEN variables below.
# Further instructions at https://www.hipchat.com/docs/apiv2/auth
ROOM_ID=XXX
AUTH_TOKEN=XXX
MESSAGE="Hello world!"
curl -H "Content-Type: application/json" \
jkhjk
function whichTransitionEvent(){
var t;
var el = document.createElement('fakeelement');
var transitions = {
'transition':'transitionend',
'MSTransition':'msTransitionEnd',
'MozTransition':'transitionend',
'WebkitTransition':'webkitTransitionEnd'
}
@MikeTatsky
MikeTatsky / gist:4975367
Created February 18, 2013 06:00
Just for test
console.log('just for test');
void function() {//closure
var global = this
, _initKeyboardEvent_type = (function( e ) {
try {
e.initKeyboardEvent(
"keyup" // in DOMString typeArg
, false // in boolean canBubbleArg
, false // in boolean cancelableArg
, global // in views::AbstractView viewArg
@MikeTatsky
MikeTatsky / cookie.js
Last active November 9, 2016 05:08
Cookie Selection
var arr = [];
function isOdd(n){
return Math.abs(n % 2) == 1;
}
function isSortedAsc(arr){
var value = arr[0],
i = 1,
iL = arr.length;