Skip to content

Instantly share code, notes, and snippets.

View chentepixtol's full-sized avatar

Vicente Mendoza chentepixtol

View GitHub Profile
$migrations['916-LATAMZ-8432-0'] = array('module' => 'local/modules/catalog', 'file' => 'LATAMZ-8432-Migration-option-for-Brands.php');
$migrations['916-LATAMZ-8432-1'] = array('module' => 'local/modules/catalog', 'file' => 'LATAMZ-8432-Migration-option-for-Brands-acl.php');
$migrations['916-LATAMZ-8843-0'] = array('module' => 'local/modules/catalog', 'file' => 'LATAMZ-8843-GLOBAL-Migration-option-for-Category.php');
$migrations['916-LATAMZ-8843-1'] = array('module' => 'local/modules/catalog', 'file' => 'LATAMZ-8843-GLOBAL-Migration-option-for-Category-acl.php');
$migrations['916-LATAMZ-8844-0'] = array('module' => 'local/modules/catalog', 'file' => 'LATAMZ-8844-Migration-option-for-Attributes.php');
$migrations['916-LATAMZ-8844-1'] = array('module' => 'local/modules/catalog', 'file' => 'LATAMZ-8844-Migration-option-for-Attributes-acl.php');
$migrations['916-LATAMZ-8804-0'] = array('module' => 'local/modules/catalog', 'file' => 'LATAMZ-8804-Migration-option-for-migration_attribute_sets.php');
$migrations['916

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
@chentepixtol
chentepixtol / gist:4693809
Created February 1, 2013 20:15
OAuth javascript
// configurar provider
jso_configure({
"facebook": {
client_id: "454779664560438",
redirect_uri: "http://localhost:9300/#facebook/",
authorization: "https://www.facebook.com/dialog/oauth",
presenttoken: "qs"
}
});
@chentepixtol
chentepixtol / robot.js
Created December 5, 2012 00:18
chentebot
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(50);
robot.back(50);
@chentepixtol
chentepixtol / gist:3297799
Created August 8, 2012 19:18
scroll in tabs
<div style="overflow: hidden; height: 34px !important; width: 70px; ">
<ul id="myTab" class="nav nav-tabs" style="width: 700px;">
<li class="active">
<a href="#home" data-toggle="tab">Home</a>
</li>
<li class="">
<li class="dropdown">
</ul>
</div>
<div id="myTabContent" class="tab-content">
var oldDelegateEvents = Backbone.View.prototype.delegateEvents;
var oldUndelegateEvents = Backbone.View.prototype.undelegateEvents;
var callbacks = {};
_.extend(Backbone.View.prototype, {
delegateEvents: function(events){
var Module = function(init){
this.init = _.once(_.bind(init, this));
};
var UserModule = new Module(function(){
console.log("initialize User Module");
this.Views = {
'UserList': "log de user list"
};
});
@chentepixtol
chentepixtol / gist:3238094
Created August 2, 2012 15:53
mutation events
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
console.log("iniciando jquery");
$("#add").click(function(){
var li = $("<li>", {
@chentepixtol
chentepixtol / gist:3084176
Created July 10, 2012 15:38
Layout for Application
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
@chentepixtol
chentepixtol / searcher.js
Created June 15, 2012 15:25
autocompletado
var Searcher = {
lastWord: '',
timeout: null,
delay: 400,
characters: 1,
init: function(inputElement, successFunction ){
$(inputElement).keyup(function(){
var q = $(inputElement).val();
if( q.length == 0 ){
Searcher.lastWord = '';