Skip to content

Instantly share code, notes, and snippets.

@p4ul
p4ul / test
Created August 15, 2014 03:07 — forked from anonymous/test
lkjlkjlkjlkj
@p4ul
p4ul / gist:2956382
Created June 19, 2012 20:34
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@p4ul
p4ul / jquery.ba-tinypubsub.js
Created May 29, 2012 05:17 — forked from cowboy/HEY-YOU.md
jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery.
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011
* http://benalman.com/
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(function($) {
var o = $({});
$.subscribe = function() {
o.on.apply(o, arguments);
@p4ul
p4ul / mimeapps.list
Created May 3, 2012 02:34 — forked from marfillaster/mimeapps.list
Sublime Text ubuntu xdebug url handler
#~/.local/share/applications/mimeapps.list
[Added Associations]
#...
x-scheme-handler/subl=subl-urlhandler.desktop
@p4ul
p4ul / gist:1896018
Created February 24, 2012 00:15 — forked from adamsilver/gist:701596
Qunit 'raises' assertion for JsTestDriver adapter
window.raises = function(fn, msg) {
try {
fn();
ok(false, msg ? msg : '')
} catch(e) {
ok(e.name === "AssertError" ? false : true, msg ? msg : '');
}
};