This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Manejable... | |
$flavors1 = array('chocolate', 'strawberry', 'vanilla', 'cookie dough', | |
'chocolate chip', 'mint chocolate chip', 'rocky road', | |
'peach', 'fudge brownie', 'coffee', 'mocha chip'); | |
if ($condition == 1) { | |
$flavors1 = array('chocolate', 'strawberry', 'vanilla', 'cookie dough', | |
'chocolate chip', 'mint chocolate chip', 'rocky road', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SimpleClass { | |
public param1; | |
public param2; | |
public loggedUser = false; | |
// constructor, se ejectua al crear una instancia: | |
// $instancia = new SimpleClass('valueForParam1', 'valueForParam2', $userIdDeOtroLado); | |
function __construct($param1, $param2, $userId = false) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Gulp tutorial | |
* Based on: http://markgoodyear.com/2014/01/getting-started-with-gulp/ | |
*/ | |
// Requires gulp and gulp plugins | |
var gulp = require('gulp'), | |
less = require('gulp-less'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), |
NewerOlder