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
^(?!.*?log)
#!/bin/bash
CD_CMD="cd "\\\"$(pwd)\\\"" && clear"
if echo "$SHELL" | grep -E "/fish$" &> /dev/null; then
CD_CMD="cd "\\\"$(pwd)\\\""; and clear"
fi
VERSION=$(sw_vers -productVersion)
OPEN_IN_TAB=0
OPEN_TYPE="window"
var gui = {
indAjust:0,
indPoint:0,
dat:null,
newPoint:null,
};
gui.new = function(){
if(gui.dat) return;
gui.dat = new dat.GUI({autoPlace:false});
{
"close_windows_when_empty": false,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"folder_exclude_patterns":
[
".svn",
".hg",
"CVS"
],
"font_options":
@webcaetano
webcaetano / randomCollection.js
Last active May 30, 2016 20:03
Random Collection
console.log('bola')
this.col = [
{
"isActive": true,
"age": 31,
"name": "Louise Knight",
"gender": "female"
},
{
@webcaetano
webcaetano / Terminal.sublime-settings
Created March 28, 2016 07:45
My sublime terminal config for windows.
{
// 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%"]
#!/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 / dragonBones.js
Created December 24, 2015 12:25
Phaser Dragon Bone
var dragonBones;
(function (dragonBones) {
(function (display) {
var PhaserDisplayBridge = (function () {
function PhaserDisplayBridge() {
}
PhaserDisplayBridge.prototype.getVisible = function () {
return this._display ? this._display.visible : false
};
@webcaetano
webcaetano / gh-pages.md
Created December 3, 2015 16:35
Deploying to GitHub Pages

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.
@webcaetano
webcaetano / swingParticle.js
Created November 27, 2015 17:31
Phaser Tweened Particle.
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;
}