Skip to content

Instantly share code, notes, and snippets.

View webcaetano's full-sized avatar
🦄
Working from home

Andre Caetano webcaetano

🦄
Working from home
View GitHub Profile
@og2t
og2t / AS3 HexColor transform utils
Created January 28, 2010 09:24
AS3 Hex color utils
/*---------------------------------------------------------------------------------------------
[AS3] HexColor
=======================================================================================
Based on: http://www.razorberry.com/blog/archives/2006/03/28/colour-utility-methods/
VERSION HISTORY:
v0.1 Born on 2008-08-07
[
{ "keys": ["super+shift+q"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["super+up"], "command": "toggle_word"},
{ "keys": ["super+down"], "command": "toggle_word"},
{ "keys": ["super+shift+1"], "command": "open_terminal_project_folder" },
{
"keys": ["super+shif+e"],
"command": "chain",
"args": {
"commands": [
#!/usr/bin/python2.7
import getopt, sys, os
def fmt(fmt, dic):
for k in dic:
fmt = fmt.replace("{" + k + "}", str(dic[k]))
return fmt
INFILE = "*.png"
OUTFILE = "timelapse.avi"
@negue
negue / NinePatchGroup.js
Created March 1, 2014 01:23
Phaser NinePatchGroup
/**
* NinePatchGroup
*
* @author Negue
* @extends {Phaser.Group}
* @param game
* @constructor
*/
var NinePatchGroup = function (game, x, y, targetWidth, targetHeight, imageKey) {
Phaser.Group.call(this, game);
@bevacqua
bevacqua / gulp-npm-publish.js
Created January 18, 2014 16:22
Publish packages to `npm` using Gulp.
var spawn = require('child_process').spawn;
gulp.task('npm', function (done) {
spawn('npm', ['publish'], { stdio: 'inherit' }).on('close', done);
});
@theprojectsomething
theprojectsomething / Timer.js
Created March 17, 2014 07:26
Timer - a simple JS timing implementation utilising requestAnimationFrame.
/*
Timer
- utilises animation frames (with a fallback to setTimeout when using the polyfill, below)
- returns remaining (or running) time
- pass a callback [fn], with an optional duration [ms] and autotart [bool], to the constructor or 'init' method
eg. new Timer(foo, 1000) *or* (new Timer()).init(foo, 0, true)
- for uniform x-browser support combine with the requestAnimationFrame polyfill from Erik Möller, et. al.
[https://github.com/darius/requestAnimationFrame]
*/
@phiresky
phiresky / .gitignore
Last active April 24, 2022 16:59
parity auto-kill script
/node_modules
*.log
#!/usr/bin/env python
import hashlib
import hmac
import time
import requests
import datetime
# Q. Do you have A Websocket API?
# A. Yes, and we strongly recommend you to use it. Please, check our JavaScript websocket implementation for our WebSocket API here:
# https://github.com/blinktrade/frontend/blob/master/jsdev/bitex/api/bitex.js
IMPORTANT
Please duplicate this radar for a Safari fix!
This will clean up a 50-line workaround.
rdar://22376037 (https://openradar.appspot.com/radar?id=4965070979203072)
//////////////////////////////////////////////////////////////////////////////
(Now available as a standalone repo.)