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 / EBI-10828997_sufu_gli3_human.xml
Last active September 20, 2017 09:30
Rendering protein complexes in SBGN-ML
<sbgn>
<map language="entity relationship">
<glyph id="sufu_human" class="entity"><label text="sufu_human"/><bbox y="10" x="10" h="40" w="70"/>
<glyph id="sufu_human_type" class="unit of information"><label text="mt:prot"/><bbox y="40" x="20" h="20" w="50"/></glyph>
</glyph>
<glyph id="gli3_human" class="entity"><label text="gli3_human"/><bbox y="90" x="90" h="40" w="70"/>
<glyph id="gli3_human_type" class="unit of information"><label text="mt:prot"/><bbox y="120" x="100" h="20" w="50"/></glyph>
</glyph>
<arc target="sufu_human" source="gli3_human" class="interaction" id="x">
<glyph id="gli3_human_sufu_human"><bbox y="50" x="10" h="170" w="170"/><start y="50" x="80"/><end y="90" x="90"/></glyph>