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
# Cakefile to document, compile, join and minify CoffeeScript files for | |
# client side apps. Just edit the config object literal. | |
# | |
# -jrmoran | |
fs = require 'fs' | |
{exec, spawn} = require 'child_process' | |
# order of files in `inFiles` is important | |
config = |
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
/** | |
Descripcion del modulo | |
@class nombre-del-modulo | |
@main empresas | |
@author frontend | |
*/ | |
yOSON.AppCore.addModule('nombre-del-modulo', function(Sb) { | |
/** | |
Object to store the dom of this module |
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
/* | |
Cookies can only store strings. Therefore, you need to convert your array of objects into a JSON string. | |
If you have the JSON library, you can simply use JSON.stringify(people) and store that in the cookie, | |
then use $.parseJSON(people) to un-stringify it. | |
In the end, your code would look like: | |
*/ | |
var people = [ | |
{ 'name' : 'Abel', 'age' : 1 }, | |
{ 'name' : 'Bella', 'age' : 2 }, |
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
$ sudo date -s hhmm | |
$ sudo date -s 1205 |
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
/* | |
Replace this file in place of "Custom.css" inside of: | |
~/.config/google-chrome/Default/User StyleSheets/ | |
*/ | |
/**********************************************/ |
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
//esquema de toda la web es un objeto javascript | |
//var objeto = {key : value} // esta compuesto por clave y valor ({key:value}) | |
//var objeto = {'numero' : {'uno' : 1}} | |
// objeto.numero // objeto | |
// objeto.numero.uno // 1 | |
// Que tipos de datos puedes almacenar en un objeto? | |
// integer, string, boolean, object y function |
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
/** | |
* Descripcion del Modulo | |
* @submodule nombre-del-modulo | |
* @main empresas | |
* @author Jan Sanchez | |
*/ | |
yOSON.AppCore.addModule('nombre-del-modulo', function(Sb) { | |
var afterCatchDom, catchDom, changeFile, clearFields, collection, defaults, dom, st, submitFiles, suscribeEvents; | |
st = {}; | |
dom = {}; |
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
sudo apt-get install oracle-jdk7-installer |
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
[user] | |
name = Jan Sanchez | |
email = [email protected] | |
[credential] | |
helper = cache --timeout=3600 | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] |
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
# Clone the boilerplate | |
git clone https://github.com/chaplinjs/chaplin-boilerplate.git | |
# inside of the project path | |
coffee --bare --output js/ coffee/ | |