Skip to content

Instantly share code, notes, and snippets.

View jonathantorres's full-sized avatar
🎯
Focusing

Jonathan Torres jonathantorres

🎯
Focusing
View GitHub Profile
@jonathantorres
jonathantorres / Sublime-Packages.md
Last active December 1, 2015 15:50
Installed SublimeText Packages

Installed SublimeText Packages

  • Additional php snippets
  • Advanced New File
  • Apply Syntax
  • Babel
  • Behat
  • Better CoffeeScript
  • Blade Snippets
  • Blade Spacer
  • BracketHighlighter
@jonathantorres
jonathantorres / vendors-ideas.md
Last active September 3, 2015 02:30
Code/vendor names ideas

Code/vendor names ideas

  • Terminus
  • Fiction
  • Torres
  • Static
  • Mors
@jonathantorres
jonathantorres / goals.md
Last active January 10, 2016 22:24
Some professional goals - 2016

More proficiency (in order)

  • JavaScript and Node.js
  • Software Architecture (Design, Design Patterns)
  • SQL
  • unix and linux
  • bash and zsh
  • Nginx and Apache
  • Ruby
  • git
  • Laravel 5 (psr-4)
@jonathantorres
jonathantorres / Bindings
Last active August 29, 2015 14:09
Sublime key bindings
[
{ "keys": ["super+b"], "command": "toggle_side_bar" },
{ "keys": ["super+k", "super+b"], "command": "build" },
{ "keys": ["ctrl+shift+space"], "command": "import_namespace" },
{ "keys": ["ctrl+shift+i"], "command": "find_use" },
{ "keys": ["ctrl+shift+d"], "command": "goto_definition_scope" }
]
@jonathantorres
jonathantorres / Preferences
Last active December 1, 2015 15:40
SublimeText Preferences
{
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"detect_indentation": false,
"detect_slow_plugins": false,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
".svn",
".git",
@jonathantorres
jonathantorres / mongo.md
Last active August 29, 2015 13:58
Start MongoDB

Start mongo with mongod --config /usr/local/etc/mongod.conf then in another terminal window start the shell with mongo

// v1
private function _short_name($str, $replace = array(), $delimiter = '-')
{
if (!empty($replace)) {
$str = str_replace((array) $replace, ' ', trim($str));
}
$str = str_replace(array('ç', 'Ç'), 'c', $str);
$clean = iconv('UTF-8', 'ISO-8859-1//TRANSLIT//IGNORE', trim($str));
$clean = preg_replace("/[^a-zA-Z0-9\/_|+ -]/", '', $clean);
on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG, "_blank");
}
}
(function(window) {
function UI() { }
/**
* init UI
*/
UI.prototype.init = function() {
};