This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last login: Sat Feb 18 17:18:54 on ttys003 | |
~/.config/fish/config.fish (line 1): pyenv init -|psub | |
^ | |
in command substitution | |
called on line -1 of file ~/.config/fish/config.fish | |
from sourcing file ~/.config/fish/config.fish | |
called during startup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from invoke import task | |
AUTHOR = 'yassu' | |
MAIN_BASENAME = 'main' | |
LATEX = 'platex' | |
DVIP = 'dvipdfmx' | |
VIEW_PDF = 'evince' | |
@task |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn sgn(x: f32) -> f32 { | |
x/x.abs() | |
} | |
fn get_y(x: f32) -> f32 { | |
1.0/(1.0 + sgn(x)) + 1.0/(1.0-sgn(x)) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scriptencoding utf-8 | |
set encoding=utf-8 | |
set fileencodings=utf-8,euc-jp,iso-2022-jp,sjis | |
set runtimepath+=~/.vim/dein/repos/github.com/Shougo/dein.vim | |
call dein#begin(expand('~/.vim/dein/')) | |
call dein#add('thinca/vim-quickrun') | |
autocmd BufRead,BufNewFile *_test.py set filetype=python.test | |
let g:quickrun_config = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
N = 100 | |
def is_divisable(n, k): | |
return n % k == 0 | |
def get_number_of_divisable_numbers(n): | |
number = 0 | |
for k in range(1, n + 1): | |
if is_divisable(n, k): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remote: Counting objects: 1956, done. | |
remote: Compressing objects: 100% (57/57), done. | |
remote: Total 1956 (delta 1670), reused 1631 (delta 1631), pack-reused 268 | |
Receiving objects: 100% (1956/1956), 2.33 MiB | 67.00 KiB/s, done. | |
Resolving deltas: 100% (1792/1792), completed with 847 local objects. | |
From https://github.com/vim/vim | |
1195669..789a5c0 master -> origin/master | |
* [new tag] v8.0.0003 -> v8.0.0003 | |
* [new tag] v7.4.2269 -> v7.4.2269 | |
* [new tag] v7.4.2270 -> v7.4.2270 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
type Animal interface { | |
Cow() string | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
基本: | |
tmux ls: セッションの確認 | |
<pre>d: セッションのデタッチ | |
tmux attach: 直近のセッションにアタッチ | |
tmux kill-session: セッションの削除 | |
<pre>$: セッションのリネーム | |
windowの操作: | |
<pre>c: 新規window | |
<pre>{win-num}: windowの移動 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |