Skip to content

Instantly share code, notes, and snippets.

View neodevelop's full-sized avatar
🏠
Working from home

José Juan Reyes Zuñiga neodevelop

🏠
Working from home
View GitHub Profile
@chochos
chochos / wtf.js
Created April 22, 2015 03:43
Go home, JavaScript, you're drunk...
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];
@tomaslin
tomaslin / Pivotal CSV to Trello.groovy
Created October 4, 2011 15:56
This is a groovy file ( http://groovy.codehaus.org/ ) that will import your Pivotal Tracker stories into your Trello board. It works with an empty board and will add stories to the first list.
@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.
@alcidesfp
alcidesfp / fizzbuzz.scm
Created August 23, 2012 18:57
FizzBuzz en Scheme/Kawa
;; -*- 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)
@matthewmccullough
matthewmccullough / csosug-cd-talk.md
Created October 26, 2012 01:18
Colorado Springs Open Source User Group Continuous Delivery 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 )
@rodrigoSaladoAnaya
rodrigoSaladoAnaya / BootStrap.groovy
Last active December 19, 2015 14:58
How to integrating Vert-x in Grails using a PlatformManager. (Test)
//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(
@Dierk
Dierk / StatelessKanbanFlowGOLmassive.groovy
Created August 28, 2013 13:01
Massively parallel stateless Game of Life with GPars KanbanFlow
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.
@edigreat
edigreat / FizzBuzHw.groovy
Last active December 26, 2015 22:09
FizzBuzz with Groovy
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)
@Bodacious
Bodacious / Rakefile
Created August 23, 2012 11:19
my Rakefile for lastest Rubymotion app
$:.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, :_],