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
@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)
@jasonrudolph
jasonrudolph / 00-about.md
Created September 21, 2012 18:42
Rough Notes from Strange Loop 2012
@matthewmccullough
matthewmccullough / csosug-cd-talk.md
Created October 26, 2012 01:18
Colorado Springs Open Source User Group Continuous Delivery Talk
@sturadnidge
sturadnidge / tmux-1.8-on-CentOS-6.x.txt
Last active May 10, 2021 18:31
Install tmux 1.8 on CentOS 6.x minimal (64bit)
# 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
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 )
@gak
gak / fish-prompt.sh
Last active February 4, 2022 18:34
My custom fish prompt code explained at http://geraldkaszuba.com/tweaking-fish-shell/
function _common_section
printf $c1
printf $argv[1]
printf $c0
printf ":"
printf $c2
printf $argv[2]
printf $argv[3]
printf $c0
printf ", "
@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)
@ekiara
ekiara / how_to_install_tmux_on_centos
Last active August 16, 2019 13:02
HOW TO: Install tmux on Centos release 6.5
# Install tmux on Centos release 6.5
# http://superuser.com/questions/738829/attempting-to-install-tmux-on-centos-6-4-or-centos-6-5-fails-with-error-evbuff
#
# READ THIS FIRST!!!
# MAKE SURE YOU HAVE BUILD TOOLS/COMPILERS TO BUILD STUFF FROM SOURCES
# yum groupinstall "Development Tools"
# CD TO TEMPORARY DIRECTORY