Skip to content

Instantly share code, notes, and snippets.

@mjeries
mjeries / development.config.js
Last active April 23, 2018 17:04
expo-env example with git variables
function run_cmd(cmd) {
const { execSync } = require('child_process');
const value = execSync(cmd);
return value.toString().trim();
}
module.exports = (() => {
return {
commitHash: run_cmd('git rev-parse --short HEAD'),
gitBranch: run_cmd('git rev-parse --abbrev-ref HEAD'),
@mjeries
mjeries / index.html
Created July 28, 2017 20:35 — forked from feyderm/index.html
D3 v4 single axis jitterplot pan and zoom
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
</head>
<body>
<div id="block"></div>
<script>
// dimensions
@mjeries
mjeries / index.html
Last active July 28, 2017 20:32 — forked from rutgerhofste/index.html
D3 V4 zoom with Axis explained
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="style.css">
<body></body>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="script.js"></script>
@mjeries
mjeries / .block
Last active July 28, 2017 18:58 — forked from mbostock/.block
Zoomable Area
license: gpl-3.0