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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "1024", "--cpus", "2"] | |
end | |
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
package main | |
import( | |
"fmt" | |
"os" | |
"runtime" | |
"path/filepath" | |
) |
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
#!/usr/bin/env node | |
function add(param1){ | |
return function(param2){ | |
return param1+param2; | |
} | |
} | |
function substract(param1){ |
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
function _ifElseFn(condition, cb, cb2){ | |
var result = {true:cb,false:cb2}; | |
return result[condition](); | |
} | |
function sayYourCarIsOld(){ | |
console.log('your car is old'); | |
} | |
function sayYourCarIsNew(){ |
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
-module(poc). | |
-export([all/0,say_hello/1]). | |
-record(person,{name,genre,age}). | |
new_person(Name, Genre, Age) -> | |
#person{name=Name, genre=Genre, age=Age}. | |
isOlderThanAveragePeople(Age,AverageAge)-> | |
Age>=AverageAge. |
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
var shoppingCartTotalPrice = (function(){ | |
var items = [ | |
{ | |
name:'Domus IPA', | |
amount:3, | |
unitPrice:2.5, | |
}, | |
{ | |
name:'Cibeles', |
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
var task = (function(){ | |
var _days = [31,28,31,30,31,30,31,31,30,31,30,31]; | |
function addDays(date,days){ | |
date.setDate(date.getDate() + days); | |
return date; | |
} | |
function isLeapYear(year){ |
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
# app.py | |
__author__ = "Iván Corrales Solera <[email protected]>" | |
__written_date = "23/04/2016" | |
import falcon | |
class BookResource(object): |
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
# app.py | |
__author__ = "Iván Corrales Solera <[email protected]>" | |
__written_date = "23/04/2016" | |
import falcon | |
from resources.books import BookResource |
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
# app.py | |
__author__ = "Iván Corrales Solera <[email protected]>" | |
__written_date = "23/04/2016" | |
import falcon | |
from resources.books import BookResource |
OlderNewer