Skip to content

Instantly share code, notes, and snippets.

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

yassu yassu

💭
👨‍💼
  • JP
View GitHub Profile
@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,
@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 / 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 / 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 / collect_texts.json
Last active December 20, 2015 09:28
友達とのtwitterでの絡み具合を調べる
{
"aiya": ["aiya", "あいや", "@aiya_000", "@public_ai000ya"],
"カワズ": ["カワズ", "@MrBoilingFrog"],
"ピヨ": ["@cyclic_select", "ピヨ"]
}
@yassu
yassu / main.js
Created January 29, 2016 18:09
with bugs
enchant();
var CELL_LENGTH = 32;
window.onload = function() {
var core = new Core(350, 320);
core.fps = 30;
core.preload("chara1.png");
core.preload("map0.png");
基本:
tmux ls: セッションの確認
<pre>d: セッションのデタッチ
tmux attach: 直近のセッションにアタッチ
tmux kill-session: セッションの削除
<pre>$: セッションのリネーム
windowの操作:
<pre>c: 新規window
<pre>{win-num}: windowの移動
@yassu
yassu / free_group.py
Created March 20, 2016 05:07
class for free groups
#!/usr/bin/env python
# coding: UTF-8
class Character(str):
pass
ONE = (Character('1'), 0)
class Word(list):
# list of pair of Character and power