This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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;"; | |
+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import stackless | |
c = stackless.channel() | |
def receiver(c, name): | |
while True: | |
val =c.receive() | |
print name, val | |
stackless.schedule() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import stackless | |
t = stackless.tasklet(lambda: 12)() | |
print t.switch() | |
print t.switch() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package hello | |
import ( | |
"net/http" | |
"github.com/codegangsta/martini" | |
) | |
func init() { | |
m := martini.Classic() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>Hello</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
template<int n, class T> | |
struct cons { | |
static const int value = n; | |
}; | |
struct nil{}; | |
/* count */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defcustom jsfmt-command "jsfmt" | |
"The 'jsfmt' command" | |
:type 'string | |
:group 'go) | |
(defun jsfmt () | |
"Formats the current buffer according to the jsfmt tool." | |
(interactive) |