This file contains hidden or 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 "rubygems" | |
| require "rake" | |
| require "pathname" | |
| require "rexml/document" | |
| manifest = REXML::Document.new(File.read("AndroidManifest.xml")) | |
| PACKAGE = manifest.elements["/manifest/@package"].value | |
| NAME = manifest.elements["/manifest/application/activity/@android:name"].value |
This file contains hidden or 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
| " Knuth Subtractive Random Number Generator | |
| let s:knuth_random = { 'index': 0, 'state': repeat([0], 56) } | |
| function! s:knuth_random.seed(seed) dict | |
| let l:seed = 161803398 - (a:seed < 0 ? -a:seed : a:seed) | |
| let self.state[55] = l:seed | |
| let [l:i, l:j, l:k] = [0, 0, 1] | |
| for l:i in range(1, 54) | |
| let l:j = (21 * l:i) % 55 |
This file contains hidden or 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 qualified Text.Parsec as P | |
| main = do | |
| print $ ", hello, world,!" `split` ", " | |
| t `split` b = case P.parse (split' (P.string b)) "split" t of Right x -> x | |
| split' b = P.anyChar `P.manyTill` (P.eof P.<|> (P.try b >> return ())) `P.manyTill` P.eof |
This file contains hidden or 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 'uri' | |
| require 'rubygems' | |
| require 'curb' | |
| require 'json' | |
| require 'rubytter' | |
| module Lingrvim | |
| class << self | |
| AT = ['', ''] | |
| OA = ['', ''] |