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
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE EmptyCase #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE KindSignatures #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE ScopedTypeVariables #-} |
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/ruby | |
require 'json' | |
JSON.load(`namecoind name_list`).each do |domain| | |
if domain['expires_in'] < 5000 | |
command = "namecoind name_update '#{domain['name']}' '#{domain['value']}'" | |
puts command | |
puts `#{command}` | |
end | |
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
#!/bin/bash | |
MSGID=$(grep 'Message-Id' | head -n 1 | sed 's/Message-Id: /:/') | |
hsgtd add "$@" "$MSGID" |
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
(* defines the Ast.binding for a function of form: | |
let fun_name ?(opt_arg1) ?(opt_arg2) final_ident = function_body ... | |
XXX: figure out the quotation magic for this, if such exists | |
*) | |
let function_with_label_args _loc ~fun_name ~final_ident ~function_body ~return_type opt_args = | |
let opt_args = opt_args @ [ <:patt< $lid:final_ident$ >> ] in | |
let rec fn _loc = function | |
|hd::tl -> <:expr< function $hd$ -> $fn _loc tl$ >> | |
|[] -> <:expr< ( $function_body$ : $return_type$ ) >> | |
in |