Delivered by Matthew McCullough on 2012-10-25
- http://teach.github.com/articles/lesson-continuous-delivery/
- http://teach.github.com/articles/lesson-continuous-integration/
Thanks for attending the talk!
function meta(f) { | |
console.log("en meta"); | |
f(); | |
} | |
var lista=[meta,meta,meta]; | |
var fun=function() { | |
console.log("funcion"); | |
} | |
for(var i=0;i<lista.length;i++) { | |
var item=lista[i]; |
@Grapes([ | |
@Grab("org.codehaus.geb:geb-core:0.6.0"), | |
@Grab("org.seleniumhq.selenium:selenium-firefox-driver:2.4.0"), | |
@Grab("net.sf.opencsv:opencsv:2.0") | |
]) | |
import geb.Browser | |
import au.com.bytecode.opencsv.* | |
def fileLocation = 'secret_escapes_20111004_1436.csv' // the location of your csv file. You can go to your pivotal board and do an export to CSV. |
;; -*- coding: utf-8; mode: Scheme -*- | |
;; FizzBuzz en Scheme R5 (Kawa, Chicken) sin utilizar funciones de bibliotecas extras | |
;;------------------------------------------------------------------------ | |
(define (my-iota n #!optional (i 0)) | |
"Regresa una lista de N numeros naturales consecutivos que van desde | |
I=0 hasta N-1 por default y opcionalmente desde I hasta N si se | |
proporciona I >= 0" | |
(if (and (>= n 0) (integer? n)) ;; Definida solo para los Naturales | |
;; Versión recursiva con NAMED LET es efectivamente iterativa | |
(let loop ((j i) |
Delivered by Matthew McCullough on 2012-10-25
Thanks for attending the talk!
import org.apache.catalina.loader.WebappLoader | |
eventConfigureTomcat = { tomcat -> | |
def newContextRoot = "/extjs_src" | |
File newContextPath = new File( "C:/Developer/Tools/javascript/ext-4.2.0.663/src" ) | |
if( newContextPath.exists() ) { | |
context = tomcat.addWebapp( newContextRoot, newContextPath.getAbsolutePath() ) | |
context.reloadable = true | |
WebappLoader loader = new WebappLoader( tomcat.class.classLoader ) |
//grails-app/conf/BootStrap.groovy | |
import org.vertx.java.platform.PlatformLocator | |
class BootStrap { | |
def vertxPlatformManager | |
def init = { servletContext -> | |
vertxPlatformManager = PlatformLocator.factory.createPlatformManager() | |
URL[] classpath = [new File('./src/verticles').toURI().toURL()] | |
vertxPlatformManager.deployVerticle( |
import groovyx.gpars.dataflow.KanbanFlow | |
import groovyx.gpars.dataflow.KanbanLink | |
import groovyx.gpars.dataflow.KanbanTray | |
import groovyx.gpars.dataflow.ProcessingNode | |
import static groovyx.gpars.dataflow.ProcessingNode.node | |
/* | |
A massively parallel game of life with KanbanFlow. | |
Every cell signals to all neighbors when it has a new value. | |
Every cell waits for signals from all its neighbors. |
class FizzBuzz { | |
String isPrintable ( divisor1=3, divisor2=5, number ) { | |
(number % (divisor1 * divisor2) == 0) ? "FIZZBUZZ" : | |
(number % divisor2 == 0) ? "BUZZ": | |
(number % divisor1 == 0) ? "FIZZ": "$number" | |
} | |
Map calcula(List lista){ | |
if(lista.size()==1) |
$:.unshift("/Library/RubyMotion/lib") | |
require File.join(File.dirname(__FILE__), 'version') | |
require 'motion/project' | |
require 'bundler' | |
Bundler.require |
defmodule Sudoku do | |
def solve do | |
sudoku = [ | |
[5, 3, :_, :_, 7, :_, :_, :_, :_], | |
[6, :_, :_, 1, 9, 5, :_, :_, :_], | |
[:_, 9, 8, :_, :_, :_, :_, 6, :_], | |
[8, :_, :_, :_, 6, :_, :_, :_, 3], | |
[4, :_, :_, 8, :_, 3, :_, :_, 1], | |
[7, :_, :_, :_, 2, :_, :_, :_, 6], | |
[:_, 6, :_, :_, :_, :_, 2, 8, :_], |