Skip to content

Instantly share code, notes, and snippets.

View bmatusiak's full-sized avatar
👌
Having Fun

Bradley Matusiak bmatusiak

👌
Having Fun
View GitHub Profile
@bmatusiak
bmatusiak / google-chrome-app.bash
Created December 3, 2012 01:51
cloud9 launcher
#!/bin/bash
google-chrome --app="$1" --user-data-dir=$2
@bmatusiak
bmatusiak / re.js
Created December 3, 2012 23:52
remove space new lines and tabs
replace(/(\r\n|\n|\r|\t| + )/gm,"")
// History.js It!
// v1.0.1 - 30 September, 2012
// https://gist.github.com/854622
(function(window,undefined){
// Prepare our Variables
var
History = window.History,
$ = window.jQuery,
document = window.document;
var _privAlien = {
x: null
};
var alien = {
get x() {
return function (x) {
if (!x) return _privAlien.x;
else _privAlien.x = x;
};
@bmatusiak
bmatusiak / 0 - top .md
Last active December 15, 2015 16:59
cloud9 Image Processing
/**
* Compatibility layer for Webkit based browsers.
* @private
*/
apf.runWebkit = function(){
if (XMLHttpRequest.prototype.sendAsBinary === undefined) {
if (window.ArrayBuffer) {
@bmatusiak
bmatusiak / what it needs to be.js
Last active December 16, 2015 05:19
Uncaught TypeError: undefined is not a function apf_release.js:15360
this.$createNode = function(doc, nodeType, xmlNode, namespaceURI, nodeName, nodeValue){
var o;
switch (nodeType) {
case 1:
var id, prefix;
if (xmlNode) {
if ((namespaceURI = xmlNode.namespaceURI || apf.ns.xhtml)
&& !(prefix = doc.$prefixes[namespaceURI])) {
doc.$prefixes[prefix = xmlNode.prefix || xmlNode.scopeName || ""] = namespaceURI;
<html>
<head>
</head>
<body>
<script>
var gui = require('nw.gui');
var win;
var spawn = require('child_process').spawn;
var c9Proc = spawn('node', ['cloud9/server.js','-w', process.env.HOME]);
@bmatusiak
bmatusiak / gist:5465577
Created April 26, 2013 07:42
Heroku domain ip list
@: 75.101.145.87
@: 75.101.163.44
@: 174.129.25.170
@bmatusiak
bmatusiak / keyboard.cc
Last active September 6, 2021 11:02
c++ keyboard define
#define VK_ABNT_C1 0xC1 //Abnt C1
#define VK_ABNT_C2 0xC2 //Abnt C2
#define VK_ADD 0x6B //Numpad +
#define VK_ATTN 0xF6 //Attn
#define VK_BACK 0x08 //Backspace
#define VK_CANCEL 0x03 //Break
#define VK_CLEAR 0x0C //Clear
#define VK_CRSEL 0xF7 //Cr Sel
#define VK_DECIMAL 0x6E //Numpad .
#define VK_DIVIDE 0x6F //Numpad /