Skip to content

Instantly share code, notes, and snippets.

View yochannah's full-sized avatar
🏳️‍🌈
pls send lots of cats

Yo Yehudi yochannah

🏳️‍🌈
pls send lots of cats
View GitHub Profile
@yochannah
yochannah / index.html
Last active August 29, 2015 14:27 — forked from anonymous/index.html
JS BinGeneric starter Cytoscape graph// source http://jsbin.com/mojuda
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Generic starter Cytoscape graph">
<script src="https://cdnjs.cloudflare.com/ajax/libs/cytoscape/2.4.4/cytoscape.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
#cyto{
width:300px;height:300px;
@yochannah
yochannah / index.html
Created September 29, 2015 16:55 — forked from jtrussell/index.html
jsbin - AngularJS, basic template
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Angular JS</title>
</head>
<body ng-app="jsbin">
<div ng-controller="DemoCtrl as demo">
<h1>Hello {{demo.name}}</h1>
</div>
@yochannah
yochannah / README.md
Created December 21, 2015 16:56 — forked from mbostock/.block
Bubble Chart

Bubble charts encode data in the area of circles. Although less perceptually-accurate than bar charts, they can pack hundreds of values into a small space. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

(ns breadth.views
(:require [re-frame.core :as re-frame]
[json-html.core :as json-html])
(:use [json-html.core :only [edn->hiccup]]))
(defn mymap []
[{:self :a
:myval " x "
:children
@yochannah
yochannah / cheese-hat
Last active May 23, 2016 17:01 — forked from Hendekagon/cheese-hat
Add a jaunty cheese-hat to any div
div.file-header::before {
width: 4em;
top: -40px;
height: 4em;
transform-origin: 50% 50%;
transform: rotate(-29deg);
position: relative;
z-index: 10000000;
content: url("data:image/svg+xml;utf8,<svg height='100%' viewBox='-8 -8 16 16' width='100%' xmlns='http://www.w3.org/2000/svg'><g><rect fill='white' height='5' stroke-width='0.25' stroke='black' transform='rotate(45) translate(8,8)' width='5' x='-10.5' y='-10.5'></rect><rect fill='white' height='5' stroke-width='0.25' stroke='black' width='15' x='-7.5' y='0'></rect><text font-family='monospace' font-size='2.5' x='-5' y='3.25'>CHEESE</text></g></svg>");
opacity: 0.8;
@yochannah
yochannah / EBI-10828997.json
Created November 14, 2016 12:20
SBGN-ML representation of EBI-10828997 interaction
{
name:"sbgn",
attrs: 'xmlns="http://sbgn.org/libsbgn/0.2"',
children: [
{name:'map',
attrs:{language:'entity relationship'},
children: [
{name:'glyph',
attrs : {id: "sufu_human", class : "entity"},
children: [
@yochannah
yochannah / index.html
Created February 2, 2017 11:26 — forked from anonymous/index.html
Mine Versions // source http://jsbin.com/zejuzib
<!doctype html>
<html>
<head>
<meta name="description" content="Mine Versions">
<style id="jsbin-css">
body { font-family:sans-serif; color:#333;}
.note { background:rgba(150,200,250,0.2); padding:1em; border:solid 1px cornflowerblue; border-radius:2px;
margin-top:0.5em;}
.note pre {display:inline}
(ns redgenes.routes
(:require [compojure.core :refer [GET POST defroutes context ANY]]
[compojure.route :refer [resources]]
[hiccup.page :refer [include-js include-css html5]]
[redgenes.api.modelcount :refer [modelcount modelcount-children cache cacheall]]
[redgenes.index :as index]
[ring.util.response :refer [response resource-response]]))
(defroutes routes
(GET "/" []
@yochannah
yochannah / AequatusGalaxyworkflow.md
Last active April 21, 2017 11:04
Aequatus and the Galaxy workflow workshop at BiVi2017

Setup

  • Imported basic setup from an .ova file so an entire galaxy is set up on your machine in a VM.
  • used two post-it note system to indicate if you're done (green) or need help (pink).

Intro to galaxy slides.

Galaxy is a workflow system that preserves history with many configurable tools - includes a galaxy "toolshed" to allow admins to install additional tools. https://toolshed.g2.bx.psu.edu/. I liked that you can keep an old version of the tool alongside a new version of the tool at once!

  • State in galaxy workflow is indicated with colour in the workflow history bar on the right.