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
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 |
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
#!/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' |
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
--[[ | |
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() |
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
-- 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 = {} |