Skip to content

Instantly share code, notes, and snippets.

View chochos's full-sized avatar
💩
(╯°□°)╯︵ ┻━┻

Enrique Zamudio chochos

💩
(╯°□°)╯︵ ┻━┻
View GitHub Profile
@gbirke
gbirke / ael.xml
Created August 18, 2010 11:43
jEdit edit mode for Asterisk AEL files
<?xml version="1.0"?>
<!DOCTYPE MODE SYSTEM "xmode.dtd">
<MODE>
<PROPS>
<PROPERTY NAME="lineComment" VALUE="//" />
</PROPS>
<RULES>
@jehrhardt
jehrhardt / build.gradle
Created July 26, 2012 07:24
Groovy 2.0 with invokedynamic in Gradle
apply plugin: "groovy"
sourceCompatibility = 1.7
targetCompatibility = 1.7
compileGroovy {
groovyOptions.metaClass.optionMap = { [indy: true, encoding: "UTF-8"] }
}
compileTestGroovy {
@jponge
jponge / Fibonacci.java
Created April 16, 2013 12:54
Memoization with invokedynamic
/*
* Copyright (C) 2013 Julien Ponge
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
@renatoathaydes
renatoathaydes / ScalaVSCeylon.scala
Last active October 17, 2018 08:29
Scala VS Ceylon
// This is a comparison between Scala and Ceylon based on this previous comparison I made between Haskell and Groovy:
// https://gist.github.com/renatoathaydes/5078535
// Ex 1. If we have two lists, [2,5,10] and [8,10,11] and we want to get the products of all the possible
// combinations between numbers in those lists, here's what we'd do.
/* SCALA */
for { x <- List(2,5,10); y <- List(8,10,11) } yield x*y