Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@akashin
akashin / manifest-template.json
Created May 24, 2014 14:01
Scripts for uploading wookie pipeline to cocaine
{
"slave": "APP"
}
@akashin
akashin / gist:f7f6bad32b70bbfd36ee
Last active August 29, 2015 14:09
CompMath, Task 2, Andrey Kashin
{
"metadata": {
"name": "",
"signature": "sha256:8a990c7a47921ab2a81c1be9cf13ba0b55e6b3b1afbf9f1c38b36c8215d3cf0a"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@akashin
akashin / Dinic.nix
Last active February 5, 2016 22:04
FASTFLOW
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <algorithm>
#include <memory.h>
#include <vector>
using namespace std;
const int inf = 1000000000;

Keybase proof

I hereby claim:

  • I am iiotep9huy on github.
  • I am akashin (https://keybase.io/akashin) on keybase.
  • I have a public key ASBOuRLGaC2OK10xt2auktv2H6DsQJT2ybdyzcldT553BQo

To claim this, I am signing this object:

Line # Hits Time Per Hit % Time Line Contents
==============================================================
77 def decode(s, H, q, schedule="parallel", damping=1,
78 max_iter=10, tol_beliefs=1e-4, display=False):
79 1 4 4.0 0.0 m, n = H.shape
80 1 5087 5087.0 0.1 Meh = np.zeros((n, m, 2))
81 1 5171 5171.0 0.1 Mhe = np.zeros((m, n, 2))
82 1 23 23.0 0.0 b = np.zeros((n, 2))
83
84 1 4 4.0 0.0 def p(e):
#!/usr/bin/env bash
# memusg -- Measure memory usage of processes
# Usage: memusg COMMAND [ARGS]...
#
# Author: Jaeho Shin <netj@sparcs.org>
# Created: 2010-08-16
############################################################################
# Copyright 2010 Jaeho Shin. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
#include <iostream>
#include <cassert>
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#include <vector>
#include <set>
#include <map>
#include <iomanip>
#include <math.h>
#include <iostream>
#include <cassert>
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#include <vector>
#include <set>
#include <map>
#include <iomanip>
#include <math.h>