Skip to content

Instantly share code, notes, and snippets.

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

Nymphium Nymphium

⚜️
百合
View GitHub Profile
nil = \x x
cons = \x \y \f f x y
car = \x \y x
cdr = \x \y y
true = \x \y x
false = \x \y y
if = \b \t \e b t e
zero = \f \x x
@penguin2716
penguin2716 / toast-alc.rb
Last active September 29, 2015 20:16
クリップボードにある文字列を英辞郎で検索してポップアップ通知で結果を表示してくれるプログラム.xbindkeys等でショートカットキーを設定すると良い.(MIT License)
#!/usr/bin/env ruby
require 'nokogiri'
require 'open-uri'
require 'clipboard'
require 'cgi'
require 'sqlite3'
dbname = File.join(ENV['HOME'], '.toast-alc.db')
table_name = 'query_result'
@perky
perky / ProFi.lua
Created May 30, 2012 20:32
ProFi, a simple lua profiler that works with LuaJIT and prints a pretty report file in columns.
--[[
ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php.
Example:
ProFi = require 'ProFi'
ProFi:start()
some_function()
another_function()
coroutine.resume( some_coroutine )
ProFi:stop()
@alexander-yakushev
alexander-yakushev / asyncshell.lua
Last active April 28, 2023 13:07
Asyncronous io.popen replacement for Awesome
-- Asynchronous io.popen for Awesome WM.
-- How to use...
-- ...asynchronously:
-- asyncshell.request('wscript -Kiev', function(f) wwidget.text = f:read("*l") end)
-- ...synchronously
-- wwidget.text = asyncshell.demand('wscript -Kiev', 5):read("*l") or "Error"
local awful = require('awful')
asyncshell = {}