Skip to content

Instantly share code, notes, and snippets.

Avatar
🦄
Working from home

Andre Caetano webcaetano

🦄
Working from home
View GitHub Profile
@webcaetano
webcaetano / onlyanimation.plugin.jsfl
Last active Oct 11, 2015
JSFL SpriteSheet to Export to Phaser Only The animation frames and basic information
View onlyanimation.plugin.jsfl
function getPluginInfo(lang){
pluginInfo = new Object();
pluginInfo.id = "onlyani";
pluginInfo.name = "onlyani";
pluginInfo.ext = "json";
pluginInfo.encoding = "utf8";
pluginInfo.capabilities = new Object();
pluginInfo.capabilities.canRotate = true;
pluginInfo.capabilities.canTrim = true;
pluginInfo.capabilities.canShapePad = true;
View Package Control.sublime-settings
{
"bootstrapped": true,
"in_process_packages":
[
"ControlScroll"
],
"installed_packages":
[
"Better JavaScript",
"Chain of Command",
@webcaetano
webcaetano / JSON.jsfl
Last active Dec 7, 2015
@webcaetano personal PhaserJS-JSON-JSFL
View JSON.jsfl
var haveAFrame;
var symbolName = "";
var symbolFrames = [];
var repeatTest = [];
var frameIndex = 1;
var symbolPivot = {};
var symbolAnimation = null;
var boot = false;
var resp = {
sprites:{}
View ffmpeg.md

Timelapse .png sequence to video

ffmpeg -r 20 -i "video/img (%d).png" -q:v 1 -b:v 1500k "../timelapse.avi"

View HelpWantedHunt.md

Find issues marked with help wanted

label:"help wanted" language:javascript

@webcaetano
webcaetano / swingParticle.js
Created Nov 27, 2015
Phaser Tweened Particle.
View swingParticle.js
function create() {
// console.log(game.add)
var rand = function(min, max){
if(!min) min = 0;
if(!max) max = 100;
return Math.floor(Math.random() * (max - min + 1)) + min;
}
@webcaetano
webcaetano / gh-pages.md
Created Dec 3, 2015
Deploying to GitHub Pages
View gh-pages.md

Deploying to GitHub Pages

Deploying your app using git subtree allows the use of GitHub Pages. Your gh-pages branch will contain the files from dist.

Steps

Prerequisites

  1. If not already available, install git-subtree.
View dragonBones.js
var dragonBones;
(function (dragonBones) {
(function (display) {
var PhaserDisplayBridge = (function () {
function PhaserDisplayBridge() {
}
PhaserDisplayBridge.prototype.getVisible = function () {
return this._display ? this._display.visible : false
};
View blinktrade_example_restapi.py
#!/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
@webcaetano
webcaetano / Terminal.sublime-settings
Created Mar 28, 2016
My sublime terminal config for windows.
View Terminal.sublime-settings
{
// The command to execute for the terminal, leave blank for the OS default
// On OS X the terminal can be set to iTerm.sh to execute iTerm
"terminal": "C:\\Windows\\system32\\cmd.exe",
// A list of default parameters to pass to the terminal, this can be
// overridden by passing the "parameters" key with a list value to the args
// dict when calling the "open_terminal" or "open_terminal_project_folder"
// commands
"parameters": ["/START", "%CWD%"]
You can’t perform that action at this time.