Skip to content

Instantly share code, notes, and snippets.

View jansanchez's full-sized avatar

Jan Sanchez jansanchez

View GitHub Profile
@jansanchez
jansanchez / gist:9568126
Last active August 29, 2015 13:57
Crunchbang Basics
@jansanchez
jansanchez / gist:9398009
Created March 6, 2014 19:52
Install phantomjs a browser in console
@jansanchez
jansanchez / gist:8867881
Last active August 29, 2015 13:56
modulo.js yOSON
/**
Descripción del modulo yOSON
@class nombre_del_modulo
@main nombre_archivo_js_actual
@author Nombre del Autor
*/
yOSON.AppCore.addModule('nombre_del_modulo', function (Sb) {
/**
Main settings of the module(these can be overridden)
@property st
@jansanchez
jansanchez / gist:8720303
Created January 30, 2014 21:31
Agregando un tag de git al proyecto

Agregando un tag de git al proyecto

Creando tag

git tag -a v1.6 -m "add jshint"

subiendo tag

{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum errors before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"node" : true,
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
aws: grunt.file.readJSON('config/grunt-aws.json'),
datetime: Date.now(),
jshint: {
/**
Modulo para cargar los tags leyendo desde la cookie "search"
@class generateTags
@main empresas
@author Jan Sanchez
*/
yOSON.AppCore.addModule('generateTags', function(Sb) {
/**
Object to store the dom of this module
@jansanchez
jansanchez / gist:8542403
Last active January 4, 2016 00:29
Git basics

Git basics

Generando nuestra clave ssh

ssh-keygen -t rsa -C "[email protected]"

Registrando el email de mi usuario git

@jansanchez
jansanchez / gist:8531593
Last active January 3, 2016 22:59
generar archivo comprimido .tar.gz incluyendo sus rutas de acceso

Comprimir archivos incluyendo sus rutas de acceso

Compress

tar -zcvf nombreDelArchivo.tar.gz public/js/modules/all.js frontend/js/application/yoson.js

UnCompress