Skip to content

Instantly share code, notes, and snippets.

View sveggiani's full-sized avatar
🚀
brand new day

Sebastián Veggiani sveggiani

🚀
brand new day
View GitHub Profile
@sveggiani
sveggiani / gist:e023eb6e14ccd9ae2350
Created March 6, 2015 12:35 — forked from lttlrck/gist:9628955
git rename local and remote branch #git #branch
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
@sveggiani
sveggiani / long_line_breaking.php
Last active August 29, 2015 14:10
Long lines breaking #php
<?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',
@sveggiani
sveggiani / SimpleClass.php
Last active August 29, 2015 14:04
Simple class creation and properties asignation #php #class #oop
<?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) {
@sveggiani
sveggiani / gulpfile.js
Last active August 29, 2015 14:04
Playing with gulp.js #javascript #gulp
/**
* 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'),