Skip to content

Instantly share code, notes, and snippets.

@irisyupingren
irisyupingren / eg.hs
Created February 20, 2020 21:26
reanimateEG
#!/usr/bin/env stack
-- stack runghc --package reanimate
{-# LANGUAGE OverloadedStrings #-}
module Main(main) where
import Reanimate
@irisyupingren
irisyupingren / getreponames.sh
Created August 22, 2018 09:39
Get names of all repos from one user
curl -s https://api.github.com/users/username/repos\?per_page\=200 | jq ".[].name" | xargs -n 1 echo
import csv
address = '/Users/irisren/Downloads/2.csv'
from itertools import groupby
import collections
data = []
with open(address, 'rb') as csvfile:
reader = csv.reader(csvfile, delimiter = ',', quotechar = '|')
for row in reader:
data.append(row)
@irisyupingren
irisyupingren / subexpr.py
Last active November 23, 2017 10:11 — forked from anj1/subexpr.py
update to python3
import types
import tensorflow as tf
import numpy as np
# Expressions are represented as lists of lists,
# in lisp style -- the symbol name is the head (first element)
# of the list, and the arguments follow.
# add an expression to an expression list, recursively if necessary.
def add_expr_to_list(exprlist, expr):