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
| joshua@deimos:~/Desktop/perltest$ perl query.pl | |
| Bareword "Save" not allowed while "strict subs" in use at query.pl line 66. | |
| Execution of query.pl aborted due to compilation errors. | |
| at query.pl line 66. |
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
| python -m SimpleHTTPServer |
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
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <style> | |
| .link { | |
| stroke: #000; | |
| stroke-width: 1.5px; | |
| } | |
| .node { |
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
| /^[0-9]{0,}[a-zA-Z]:[0-9]{1,}[.]{2}[0-9]{0,}$/g |
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
| ... some participant in an interaction... | |
| { | |
| "id": "12", | |
| "interactorRef": "uniprotkb_P39079", | |
| "stoichiometry": "2", | |
| "bioRole": { | |
| "id": "MI:0499", | |
| "name": "unspecified role" | |
| }, | |
| "features": [ |
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
| Object::hasprop = (propstring) -> | |
| split = propstring.split '.' | |
| obj = @ | |
| i = 0 | |
| while i < split.length | |
| if !obj or !obj.hasOwnProperty split[i] then return false | |
| obj = obj[split[i]] | |
| i++ | |
| obj | |
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
| Dancing Graphs: | |
| * http://wwwdev.ebi.ac.uk/intact/complex/details/EBI-9003834 |
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
| (defn get-all-projects [] | |
| (let [results (sql-get-all-projects) | |
| acc (atom [])] | |
| (info "modified" modified) | |
| (doseq [next_project results] | |
| (let [project_contents (sql-get-single-project (:id next_project)) | |
| project_with_contents (assoc next_project :contents project_contents)] |
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
| (defn make-tree-orig | |
| ([coll] (info "SINGLERUN")(let [root (first (remove :parent_id coll))] | |
| {:node root :children (make-tree-orig root coll)})) | |
| ([root coll list] | |
| (info "DOUBLERUN") (for [x coll :when (= (:parent_id x) (:id root))] | |
| {:node x :children (make-tree-orig x coll)}))) |
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
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <style> | |
| .bar { | |
| fill: steelblue; | |
| } | |
| .bar:hover { | |
| fill: brown; |
OlderNewer