Skip to content

Instantly share code, notes, and snippets.

@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
@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 / 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 }}
(ns om-sandbox.cards.root-query-bug
(:require
[cljs.pprint :refer [pprint]]
[clojure.string :as string]
[om.next :as om :refer-macros [defui]]
[om.dom :as dom])
(:require-macros
[devcards.core :as dc :refer [defcard deftest]]))
(enable-console-print!)
@maackle
maackle / NestedMonads.purs
Created July 16, 2017 00:00
purescript-nested-monad
module NestedMonads where
import Prelude
import Data.Array (foldl)
sum :: Array Int -> Int
sum = foldl (+) 0
-- The idea is to take the following Array of Arrays and generate
@maackle
maackle / post.md
Last active December 9, 2017 22:30
Blog test 1

This is a blog post with markdown.

A heading

  • Lists unfortunately do not show up in the excerpt
  • But I don't have time to handle such a case.

However the excerpt should filter out formatting.

Enjoy!

@maackle
maackle / post.md
Last active December 9, 2017 21:45
Another blog post

Using my public gist to create a longer blog post now. Here's some random text that I haven't even read yet.

Yelnitza, two year-old daughter in the night sky, and decided to extend these skills to recall some good.” Rhetorically speaking, I grew up. I will be an impoverished country with attention to me, and new things despite the university as cars and fundraise to increase my eyes, still see cute little for. It felt it wasn't the ability by attending the rest of my eyes to recall some of classes in American Politics taught - and keep fighting in running team as a real world of missing several teeth because this country with authority figures, any of puppy love, my camp when she started a back and widespread relationships or a toothbrush and Jose, a bit of the benefits of nursing.

In addition to the kids who loses from a family feeling of vision.

Yesterday I can be lost. Poetry makes me my experience would suspect a picture of nursing.

In addition to than I grew up. I assume the past summer as politicall

@maackle
maackle / post.md
Created December 10, 2017 04:04
Good things come in threes

That definitely includes fake blog posts

@maackle
maackle / holochain-dna-es6-transpilier
Created June 22, 2018 23:05
Watch es6 DNA zome files
if [ -z $1 ]
then
echo "starting"
fswatch -r0 -e ".*" -i ".*/src/.*\.js" dna \
| xargs -0n 1 -I {} $0 {}
else
echo $1
DIR=`echo $1 | sed -e "s/\(.*\)\/src\/\(.*\)$/\1/"`
SRCDIR=`echo $1 | sed -e "s/\(.*\/src\)\/\(.*\)$/\1/"`
@maackle
maackle / README.md
Created August 29, 2018 03:03
hc ts build system example

asdf