Skip to content

Instantly share code, notes, and snippets.

View Nymphium's full-sized avatar
⚜️
百合

Nymphium Nymphium

⚜️
百合
View GitHub Profile
@Nymphium
Nymphium / .gitignore
Last active August 29, 2015 14:16
Tree Script (http://www.ialab.cs.tsukuba.ac.jp/~maeda/class/oo/treescript.html), written in MoonScript instead Java
*.cl
for i=1,100
s=""
if i%3<1 s="Fizz"
if i%5<1 s..="Buzz"
print s==""and i or s
@Nymphium
Nymphium / watch_clock.sh
Last active August 29, 2015 14:16
CPU Temp/Clock
watch -t -c -n 0.3 -p "cat /proc/cpuinfo | awk 'BEGIN{i = 0; cnt = 0} \$2 == \"MHz\" {i += \$4; cnt++}END{printf \"Average Clock: %4.2f MHz\", i / cnt}'"
split = (str) ->
return if not str
dim = "[^,]+"
ret = [piece for piece in str\gmatch dim]
return ret
valadd = (val) ->
switch val\match "%a"
require "compat53"
for _, i in utf8.codes("あいうえお百合") do
print(utf8.char(i))
end
@Nymphium
Nymphium / :version
Created May 4, 2015 06:56
vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 23 2015 11:27:15)
Included patches: 1-712
Compiled by Arch Linux
Huge version with GTK2 GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
+balloon_eval +float +mouse_urxvt -tag_any_white
+browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
@Nymphium
Nymphium / nvim.log
Created June 14, 2015 15:08
deoplete test
This file has been truncated, but you can view the full file.
2015-06-15 00:06:13,118 [DEBUG @ msgpack_stream.py:send:36] 28652 - sent [0, 1, b'vim_get_api_info', ()]
2015-06-15 00:06:13,119 [DEBUG @ base.py:send:113] 28652 - Sending 'b'\x94\x00\x01\xc4\x10vim_get_api_info\x90''
2015-06-15 00:06:13,119 [DEBUG @ base.py:run:138] 28652 - Entering event loop
2015-06-15 00:06:13,119 [DEBUG @ msgpack_stream.py:_on_data:57] 28652 - waiting for message...
2015-06-15 00:06:13,119 [DEBUG @ msgpack_stream.py:_on_data:59] 28652 - received message: [0, 1, b'poll', []]
2015-06-15 00:06:13,119 [DEBUG @ async_session.py:_on_request:77] 28652 - received request: b'poll', []
2015-06-15 00:06:13,119 [DEBUG @ msgpack_stream.py:_on_data:57] 28652 - waiting for message...
2015-06-15 00:06:13,119 [DEBUG @ msgpack_stream.py:_on_data:62] 28652 - unpacker needs more data...
2015-06-15 00:06:13,120 [DEBUG @ msgpack_stream.py:_on_data:57] 28652 - waiting for message...
2015-06-15 00:06:13,120 [DEBUG @ msgpack_stream.py:_on_data:59] 28652 - received message: [1, 1, None, [1, {b'functions': [{b'def
wget http://www.lua.org/ftp/lua-5.3.1.tar.gz
tar xf lua-5.3.1.tar.gz && cd lua-5.3.1 && make -j18 linux && make -j18 install INSTALL_TOP=$(pwd) && PATH+=$(pwd)/bin
lua -v
import P, S, V, R, C, Ct, match from require "lpeg"
Space = S' \n\t'^0
Num = C(P'-'^-1 * R'09'^1 ) * Space
Term = C(S'+-') * Space
Fact = C(S'*/%') * Space
Open = '(' * Space
Close = ')' * Space
G = P{
\documentclass[12pt]{ltjsarticle}
\usepackage{here}
\usepackage{fancybox}
\setlength{\topmargin}{-30mm}
\setlength{\textheight}{280mm}
\pagestyle{empty}
\newcommand{\tmarg}{\hspace{-.9\zw}}
\title{\LARGE\bf{情報科学類 情報特別演習 I, II テーマ報告書}}
\date{}
\begin{document}