Skip to content

Instantly share code, notes, and snippets.

@kberg
kberg / ares-notes.md
Last active September 22, 2020 03:24
konigsberg's TM development notes

Quick links:

Current PRs

Simple notes

When you run npm run start, it reads package.json, specifically 'scripts' So npm run start seems to launch the 'start' script there. It runs server.js, which is server.ts, and you can tell because at the bottom it logs stuff.

Running works with launch.json listed at the bottom. Remember to build first with Ctrl-Shift-B!

from __future__ import division
from collections import Counter
from functools import reduce
from itertools import permutations
from statistics import stdev
decks = [
[+1, +1, +1, 0, 0, 0, 0, 0, -1, -1],
[+1, +1, +1, 0, 0, 0, 0, -1, -1],
[+1, +1, +1, 0, 0, 0, -1, -1],
@kberg
kberg / README.md
Last active August 29, 2015 14:21
Log Scales along the x and y axis.

This example demostrates log scale visualziation across the x and y axes.

Note that x axis log scales are not permitted when the x axis is a date.

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://dygraphs.com/dygraph-combined-dev.js"></script>
</head>
<body>
<div id="div_g1" style="width:600px; height:300px;"></div>
<center>
<input id='ylog' type="button" value="y log scale" onclick="setLogScale('y', true)">
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://dygraphs.com/dygraph-combined-dev.js"></script>
</head>
<body>
<div id="div_g1" style="width:600px; height:300px;"></div>
<center>
<input id='ylog' type="button" value="y log scale" onclick="setLogScale('y', true)">
@kberg
kberg / index.html
Created May 26, 2015 18:35
Series highlighting
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://dygraphs.com/dygraph-combined-dev.js"></script>
<style type='text/css'>
body { margin-top: 20px; margin-left: 20px; }
.few .dygraph-legend > span.highlight { border: 1px solid grey; }
.many .dygraph-legend > span { display: none; }
.many .dygraph-legend > span.highlight { display: inline; }
@kberg
kberg / README.md
Last active August 29, 2015 14:21
Synchronization across graphs
@kberg
kberg / index.html
Created May 26, 2015 17:34
Custom Circles
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://dygraphs.com/dygraph-combined-dev.js"></script>
<script type="text/javascript" src="http://dygraphs.com/extras/shapes.js"></script>
</head>
<style>
body {
margin-top:40px;
}
<!DOCTYPE html>
<html>
<head>
<title>Custom Circles</title>
<!--
For production (minified) code, use:
<script type="text/javascript" src="dygraph-combined.js"></script>
-->
<script type="text/javascript" src="http://dygraphs.com/dygraph-combined-dev.js"></script>
<script type="text/javascript" src="http://dygraphs.com/extras/shapes.js"></script>
<!DOCTYPE html>
<html>
<head>
<title>Custom Circles</title>
<!--
For production (minified) code, use:
<script type="text/javascript" src="dygraph-combined.js"></script>
-->
<script type="text/javascript" src="http://dygraphs.com/dygraph-combined-dev.js"></script>
<script type="text/javascript" src="http://dygraphs.com/extras/shapes.js"></script>