This file contains 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
local wp = { | |
"wallpaper1.png", | |
"wallpaper2.png" | |
} | |
for i = 1, #wp do | |
gears.wallpaper.fit(os.getenv("HOME") .. "/.config/awesome/" .. wp[i], i) | |
end | |
This file contains 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
*.cl |
This file contains 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
for i=1,100 | |
s="" | |
if i%3<1 s="Fizz" | |
if i%5<1 s..="Buzz" | |
print s==""and i or s |
This file contains 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
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}'" |
This file contains 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
split = (str) -> | |
return if not str | |
dim = "[^,]+" | |
ret = [piece for piece in str\gmatch dim] | |
return ret | |
valadd = (val) -> | |
switch val\match "%a" |
This file contains 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
require "compat53" | |
for _, i in utf8.codes("あいうえお百合") do | |
print(utf8.char(i)) | |
end |
This file contains 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
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 |
This file has been truncated, but you can view the full file.
This file contains 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
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 |
This file contains 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
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 |
This file contains 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
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{ |