Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

José Juan Reyes Zuñiga neodevelop

🏠
Working from home
View GitHub Profile
View Rakefile
$:.unshift("/Library/RubyMotion/lib")
require File.join(File.dirname(__FILE__), 'version')
require 'motion/project'
require 'bundler'
Bundler.require
@neodevelop
neodevelop / delete1.groovy
Last active Aug 29, 2015
Batch delete in #grails
View delete1.groovy
groupsToDelete = []
Group.list().each { group ->
if(group.members.isEmpty())
groupsToDelete << link
}
groupsToDelete*.delete()
@neodevelop
neodevelop / request.md
Created Jul 15, 2015
request_php_devs
View request.md

Hola!!!

Estamos buscando un desarrollador con conocimientos en:

  • PHP
  • C++
  • construcción de scripts
  • ejecución de pruebas
  • manejo de pruebas
  • ideal conocimiento en POS y electrónica básica
View primes.lisp
(defun is-prime (n)
(cond ((= 2 n) t) ;; Hard-code "2 is a prime"
((= 3 n) t) ;; Hard-code "3 is a prime"
((evenp n) nil) ;; If we're looking at an even now, it's not a prime
(t ;; If it is divisible by an odd number below its square root, it's not prime
(loop for i from 3 to (isqrt n) by 2
never (zerop (mod n i))))))
(print (is-prime 13195))
@neodevelop
neodevelop / cpmx3
Created Jul 21, 2011
Playera final
View cpmx3
println “new enum Organization{ def estatus; void expectation(){ long o; p as String; } }”.tokenize(‘ ‘).collect(){ it.charAt(0)}.join(”).toLowerCase().substring(0,10)
@neodevelop
neodevelop / brew install -v clisp
Created Dec 26, 2011
Problem installing clisp
View brew install -v clisp
==> Installing clisp dependency: libsigsegv
Warning: Formula will not build with LLVM, using GCC
==> Downloading http://ftpmirror.gnu.org/libsigsegv/libsigsegv-2.10.tar.gz
File already downloaded in /Users/neodevelop/Library/Caches/Homebrew
/usr/bin/tar xf /Users/neodevelop/Library/Caches/Homebrew/libsigsegv-2.10.tar.gz
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libsigsegv/2.10 --enable-shared
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libsigsegv/2.10 --enable-shared
Build Tools:
checking for a BSD-compatible install... /usr/bin/install -c
@neodevelop
neodevelop / MakeTraffic.groovy
Created Jan 26, 2012
Wants a lil' of traffic
View MakeTraffic.groovy
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.5.1' )
import groovyx.net.http.*
import static groovyx.net.http.ContentType.*
import static groovyx.net.http.Method.*
import static groovyx.gpars.GParsPool.withPool
import java.util.Random
def peticiones = []
def urls = [
"http://neodevelop.jelastic.servint.net/"
View KataNumbersToLCD.groovy
class NumberToLCD{
def ledsDisplaySmall = ["_","|","|","_","|","|","_"]
def ledsDisplayBig = [" ","-"," ","|"," ","|"," ","-"," ","|"," ","|"," ","-"," "]
def displaysBig = [
[2,4,6,10,12,14], // 0
[6,12], // 1
[2,6,8,10,14], // 2
[2,6,8,12,14], // 3
[4,6,8,5,12], // 4
@neodevelop
neodevelop / Digito.cs
Created Mar 16, 2012
Solución de Rodrigo Salado Anaya a NumbersToLCD
View Digito.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DigitosCool
{
class Digito
{
/// <summary>
@neodevelop
neodevelop / tomcat.sh
Created Nov 22, 2012 — forked from valotas/tomcat.sh
Tomcat init.d script
View tomcat.sh
#!/bin/bash
#
# tomcat7 This shell script takes care of starting and stopping Tomcat
#
# chkconfig: - 80 20
#
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network $syslog
# Required-Stop: $network $syslog