Skip to content

Instantly share code, notes, and snippets.

# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@paulovera
paulovera / Sublime3 from terminal
Last active August 29, 2015 14:01
Sublime3 from terminal
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
@paulovera
paulovera / CONSOLE FIXER.js
Last active December 23, 2015 19:49
CONSOLE FIX FOR IE8 <
var CONSOLEFIXER = (function() {
if (!window.console) {
window.console = {};
}
// union of Chrome, FF, IE, and Safari console methods
var m = [
"log", "info", "warn", "error", "debug", "trace", "dir", "group",
"groupCollapsed", "groupEnd", "time", "timeEnd", "profile", "profileEnd",
"dirxml", "assert", "count", "markTimeline", "timeStamp", "clear"
];
@paulovera
paulovera / as3 check number of parents of a movieclip.as
Last active December 20, 2015 03:39
CHECK NUMBER OF PARENTS OF A LOADED SWF OR MOVIECLIP
function checkParent() {
var container:DisplayObjectContainer = this;
var level:uint = 0;
while ( container.parent != null ) {
container = container.parent;
trace( 'parent in level'+ level +' : ' + container );
level++;
}
@paulovera
paulovera / fetch.json
Last active December 16, 2015 20:19 — forked from ariunbat/fetch
My Sublime Text 2 Packages Definition for Fetch Plugin
{
"files":
{
"avgrundjs": "https://raw.github.com/voronianski/jquery.avgrund.js/master/js/jquery.avgrund.js",
"backbone": "http://documentcloud.github.com/backbone/backbone.js",
"backbone.localStorage": "https://raw.github.com/jeromegn/Backbone.localStorage/master/backbone.localStorage.js",
"backbone.min": "http://documentcloud.github.com/backbone/backbone-min.js",
"d3js": "http://d3js.org/d3.v3.min.js",
"raphaeljs": "http://github.com/DmitryBaranovskiy/raphael/raw/master/raphael-min.js",
"history": "https://raw.github.com/balupton/history.js/master/scripts/compressed/history.js",
/*
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
@paulovera
paulovera / sublime-mac.textile
Last active April 12, 2022 10:42 — forked from lucasfais/gist:1207002
SUBLIME TEXT MAC- Keyboard's Shortcuts Cheat Sheet

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@paulovera
paulovera / sublime-pc.textile
Last active December 10, 2015 19:48
SUBLIME TEXT PC - KEYBOARD 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