Skip to content

Instantly share code, notes, and snippets.

View yassu's full-sized avatar
💭
👨‍💼

yassu yassu

💭
👨‍💼
  • JP
View GitHub Profile
@yassu
yassu / collect_texts.json
Last active December 20, 2015 09:28
友達とのtwitterでの絡み具合を調べる
{
"aiya": ["aiya", "あいや", "@aiya_000", "@public_ai000ya"],
"カワズ": ["カワズ", "@MrBoilingFrog"],
"ピヨ": ["@cyclic_select", "ピヨ"]
}
@yassu
yassu / memo
Created October 30, 2015 00:11
Emacsのチュートリアルのメモ
C-x C-c: Emacsを終了する
C-v: 次の画面に進む
M-v: 前の画面に戻る
C-l: 画面を書き直す
C-p: 前の行に戻る
C-b: 前の文字に戻る
C-f: 次の文字に移動
C-n: 次の行に移動
@yassu
yassu / installedsofts.markdown
Last active October 15, 2015 22:10
my installed softs in ubuntu

Installed Softs

environment:

  • vim-gnome
  • zsh
  • rake
  • ctags
  • git
  • dropbox
@yassu
yassu / reportlab_sample.py
Last active August 30, 2015 22:43
Simple Sample for grid of reportlab
# -*- coding:utf-8 -*-
import os, sys
from reportlab.pdfgen import canvas
CANVAS = canvas.Canvas("sample.pdf", bottomup=False)
OFFSET = (50, 50)
XPAD, YPAD = (5, 5)
FONT_SIZE = 30
CANVAS.setFont("Helvetica", FONT_SIZE)
@yassu
yassu / nums.hs
Last active August 29, 2015 14:25
long long tuple. This occurs error
t = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50)
main = print t
-- OutPuts:
-- nums.hs:2:6:
-- No instance for (Num t0) arising from the literal `1'
-- The type variable `t0' is ambiguous
-- Possible cause: the monomorphism restriction applied to the following:
-- t :: (t0,
from timeit import timeit
N = 10**9
eq_plus = """
a = 1
a += 2
"""
subst_plus = """
\documentclass{article}
\usepackage{amsmath, amssymb}
\usepackage{amsthm}
\newcommand{\RR}{\mathbf{R}}
\begin{document}
We define diffeomorphism $\phi \colon \RR^2 \to \RR^2$ by identify:
\[
\phi(x, y) = (x, y).
\]