Skip to content

Instantly share code, notes, and snippets.

@maackle
maackle / demo.html
Last active November 19, 2015 21:31
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js"></script>
</head>
<body>
<div ng-app="app">
<div ng-controller="Ctrl">
<select ng-options="idx as item.label for (idx, item) in items" ng-model="selected"></select>
<br/>
{{ selected }}
@maackle
maackle / construct_call_graph.py
Created June 2, 2015 18:53
python call graph
#!/usr/bin/env python
'''
generates call graph of given python code file
in dot format input for graphviz.
limitations:
* statically tried to figure out functions calls
* does not understand classes
* algorithm is naive and may not statically find
@maackle
maackle / 0_reuse_code.js
Created August 18, 2014 19:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console