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
$:.unshift("/Library/RubyMotion/lib")
require File.join(File.dirname(__FILE__), 'version')
require 'motion/project'
require 'bundler'
Bundler.require
@neodevelop
neodevelop / delete1.groovy
Last active August 29, 2015 14:20
Batch delete in #grails
groupsToDelete = []
Group.list().each { group ->
if(group.members.isEmpty())
groupsToDelete << link
}
groupsToDelete*.delete()
@neodevelop
neodevelop / request.md
Created July 15, 2015 15:58
request_php_devs

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
@neodevelop
neodevelop / primes.lisp
Created July 15, 2015 20:56
Prime number
(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 July 21, 2011 11:50
Playera final
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 December 26, 2011 18:08
Problem installing 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 January 26, 2012 18:06
Wants a lil' of traffic
@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/"
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 March 16, 2012 18:27
Solución de Rodrigo Salado Anaya a NumbersToLCD
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DigitosCool
{
class Digito
{
/// <summary>
@neodevelop
neodevelop / tomcat.sh
Created November 22, 2012 02:35 — forked from valotas/tomcat.sh
Tomcat init.d script
#!/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