Skip to content

Instantly share code, notes, and snippets.

index e227f9f..d24acc5 100644
--- a/patternmatching/__init__.py
+++ b/patternmatching/__init__.py
@@ -8,7 +8,8 @@ class _Values(list):
def match(pattern, data, flatten=True):
def _match(pattern, data, success):
def _is_ignore(pattern):
- return not (isinstance(pattern, _Matcher) and not pattern.ignore)
+ #return isinstance(pattern, IGNORE)
+ return False
#!/usr/bin/env python
import zmq
import time
context = zmq.Context()
router = context.socket (zmq.XREP)
router.setsockopt (zmq.IDENTITY, "client")
router.bind("tcp://127.0.0.1:1234")
diff --git a/src/main/java/org/gcube/dataanalysis/ecoengine/evaluation/bioclimate/BioClimateAnalysis.java b/src/main/java/org/gcube/dataanalysis/ecoengine/evaluation/bioclimate/BioClimateAnalysis.java
index 26d0106..d99be5f 100644
--- a/src/main/java/org/gcube/dataanalysis/ecoengine/evaluation/bioclimate/BioClimateAnalysis.java
+++ b/src/main/java/org/gcube/dataanalysis/ecoengine/evaluation/bioclimate/BioClimateAnalysis.java
@@ -360,18 +360,24 @@ public class BioClimateAnalysis {
float statusstep = 80f / (float) numbOfTables;
// for each table
for (int i = 0; i < numbOfTables; i++) {
+ String preparationQuery = "drop table if exists tmpanalysis; create temp table tmpanalysis as select a.faoaream,eezall,lme,count(*) from %1$s as a where a.probability > #THRESHOLD# group by faoaream,eezall,lme;";
+
#!/usr/bin/env python
import dis
import inspect
def lineno():
"""Returns the current line number in our program."""
return inspect.currentframe().f_back.f_lineno
def test():
import stackless
c = stackless.channel()
def receiver(c, name):
while True:
val =c.receive()
print name, val
stackless.schedule()
import stackless
t = stackless.tasklet(lambda: 12)()
print t.switch()
print t.switch()
@mkmik
mkmik / hello.go
Created November 15, 2013 01:05
how to use http://martini.codegangsta.io/ with google app engine
package hello
import (
"net/http"
"github.com/codegangsta/martini"
)
func init() {
m := martini.Classic()
@mkmik
mkmik / index.html
Last active December 29, 2015 15:39 — forked from anonymous/index.html
<p>Hello</p>
#include <iostream>
template<int n, class T>
struct cons {
static const int value = n;
};
struct nil{};
/* count */
(defcustom jsfmt-command "jsfmt"
"The 'jsfmt' command"
:type 'string
:group 'go)
(defun jsfmt ()
"Formats the current buffer according to the jsfmt tool."
(interactive)