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!
| //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( |
| function _common_section | |
| printf $c1 | |
| printf $argv[1] | |
| printf $c0 | |
| printf ":" | |
| printf $c2 | |
| printf $argv[2] | |
| printf $argv[3] | |
| printf $c0 | |
| printf ", " |
| 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 ) |
| # download latest libevent2 and tmux sources, and extract them somewhere | |
| # (thx bluejedi for tip on latest tmux URL) | |
| # | |
| # at the time of writing: | |
| # https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
| # http://sourceforge.net/projects/tmux/files/latest/download?source=files | |
| # | |
| # install deps | |
| yum install gcc kernel-devel make ncurses-devel |
Delivered by Matthew McCullough on 2012-10-25
Thanks for attending the talk!
This gist is a collection of my rough notes from Strange Loop 2012.
| ;; -*- 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) |
| $:.unshift("/Library/RubyMotion/lib") | |
| require File.join(File.dirname(__FILE__), 'version') | |
| require 'motion/project' | |
| require 'bundler' | |
| Bundler.require |
| ar http = require('http'); | |
| var fs = require('fs'); | |
| var util = require('util'); | |
| var fileCache; | |
| var sendFile = function(conn, file) { | |
| conn.writeHead(200, {"Content-Type": "text/html", "Content-Length": file.length}); | |
| conn.write(file); | |
| conn.end(); | |
| } |