Skip to content

Instantly share code, notes, and snippets.

@theRemix
theRemix / Default (OSX).sublime-keymap
Created June 3, 2013 21:26
Disabling cut and copying an entire line in Sublime Text 2 when no text is selected. It's so irritating when i accidentally Cmd+x and it deletes the whole line or Cmd+c then i lose my previous buffer. put this in Preferences -> Settings - User
[
{ "keys": ["super+c"], "command": "noop" },
{ "keys": ["super+c"], "command": "copy", "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": ["super+x"], "command": "noop" },
{ "keys": ["super+x"], "command": "cut", "context":
[
@theRemix
theRemix / GameScene.hx
Last active April 26, 2017 10:53
Main class for HaxePunk with variable screen size for mobile, tablet, and desktop discussion: http://www.openfl.org/community/general-discussion/developing-multiple-devices-screen-sizes/
package scenes;
import com.haxepunk.Scene;
class GameScene extends Scene
{
public function new()
{
super();
@theRemix
theRemix / Propeller templates
Created January 14, 2014 02:02
templates for Fly-By-Night
Propeller Templates
propeller.html
<body>
<div id="content">
{{ partial 'header' }}
<h1>{{page.name}}</h1>
<span class="question">
@theRemix
theRemix / maybe_fly.js
Last active August 29, 2015 13:56
Flappy Doge Fly Mod
// such new game in Flappy Doge
// http://www.dogetek.co/game/
// plz developer tools in chrome
// much paste in console
// move mouse expert
(function () {
var pos = null;
$(window).mousemove(function (e) {
@theRemix
theRemix / PidginScript.md
Created February 20, 2014 19:39
PidginScript or BrahScript Fun language stuff

#PidginScript ###or BrahScript

variable assignment => dakine example: dakine name stay "Jon"

NULL => sostay
= operator => stay

!= operator => not

@theRemix
theRemix / js_are_hands.js
Created March 13, 2014 21:24
cause this is important and i'm four.
$(function() {
var dict = [ "((_)==jjjj=D",
"((_)=jjjj==D",
"((_)jjjj===D",
"((_)=jjjj==D",
"((_)==jjjj=D",
"((_)===jjjjD",
"((_)==jjjj=D",
"((_)=jjjj==D",
"((_)jjjj===D",
@theRemix
theRemix / app.js
Created April 1, 2014 23:30
Socket.io Angular Express Mongo
/**
* Module dependencies
*/
var express = require('express'),
routes = require('./routes'),
tweets = require('./routes/tweets'),
api = require('./routes/api'),
http = require('http'),
path = require('path');
@theRemix
theRemix / bench.md
Last active August 29, 2015 14:00
Mongolab and Usergrid
@theRemix
theRemix / 1or2.js
Created May 6, 2014 01:50
which is better?
// 1
for (var p in parameters){
if(p.indexOf(SIGNATURE_KEYNAME) === 0){
delete parameters[p];
}
}
// 2
@theRemix
theRemix / Test.hx
Created May 25, 2014 01:09
Test for js.JQuery.hx update
import js.Lib;
import js.JQuery;
import js.JQuery.JqEvent;
class Test
{
public function new()
{
new JQuery('body').on('click', 'button.added_after_domready', click_button);
}