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

Thanks to Vivek for his great proposal! https://gist.github.com/vivekkrish/2e5e4128efbbf2014c194aae6b83d245

Assumptions:

  • js Dependencies are bundled into the app (requirejs, browserify, webpack)

Our justification is that sharing dependencies between third party tools introduces levels of complexity that are expensive (time consuming) and can be challenging to developers. If we find that third party apps are truly to large then we'll reconsider a more complicated approach.

App structure:

(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 / 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}
@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 / 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.

@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 / 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;