Skip to content

Instantly share code, notes, and snippets.

import ast
import builtins
def make_stmts(exps):
exps = [simplify(exp) for exp in exps]
if len(exps) == 1:
return exps[0]
else:
return ["stmts", *exps]
function checkWeeklyReport() {
var rootFolder = DriveApp.getFolderById('xxx');
Logger.log(rootFolder.getName());
var sheet = SpreadsheetApp.getActive().getSheetByName('シート1');
sheet.clear();
var editor_dic = {};
Logger.log("===");
var i = 1;
@akimach
akimach / imagenet1000_clsid_to_human.json
Last active July 23, 2018 17:16 — forked from yrevar/imagenet1000_clsidx_to_labels.txt
text: imagenet 1000 class id to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
{
"0" : "tench, Tinca tinca",
"1" : "goldfish, Carassius auratus",
"2" : "great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias",
"3" : "tiger shark, Galeocerdo cuvieri",
"4" : "hammerhead, hammerhead shark",
"5" : "electric ray, crampfish, numbfish, torpedo",
"6" : "stingray",
"7" : "cock",
"8" : "hen",
"/System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py" -o ~/path/to/merged.pdf ~/path/to/merge/*.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@akimach
akimach / ipynb2docx.py
Last active March 15, 2021 13:08
Convert .ipynb to .docx
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# Convert .ipynb to .docx
## Dependency
* Jupyter notebook
* Pandoc
@akimach
akimach / main.go
Last active November 12, 2017 11:31
Sleep sort
package main
/*
$ go run main.go
[3 9 2 4 1]
[1 2 3 4 9]
*/
import (
"fmt"
@akimach
akimach / generate-react-skelton.py
Created November 8, 2017 10:14
Generate a skelton of react.
#!/usr/bin/env python
#!coding: utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
import os, os.path
import subprocess
import json
@akimach
akimach / file0.txt
Last active January 3, 2018 14:15
Pelican と Github PagesでJupyter Notebooksを公開する ref: https://qiita.com/akimach/items/11728ba1c9bb3d1f176b
$ git clone git@github.com:akimach/note.git
Title: Linear regression of Boston Housing Dataset using R
Slug: linear-regression-with-r
Date: 2017-11-06 17:00
Category: Notebook
Tags: R