Skip to content

Instantly share code, notes, and snippets.

View samaaron's full-sized avatar

Sam Aaron samaaron

View GitHub Profile
#!/bin/zsh
#stored in the file ~/beans
for i in {1..100} ; do ; sleep 2 ; echo 'BEANS BEANS BEANS\n' ; done
ideas_data = {
#'label' => [neg_votes, pos_votes]
'A' => [ 1 , 200 ],
'B' => [ 10000 , 1000000],
'C' => [ 0 , 40],
'D' => [ 0 , 10 ],
'E' => [ 1 , 10 ],
'F' => [ 100 , 300],
require 'rubygems'
require 'open4'
cmd = 'echo hello'
Open4::popen4(cmd) do |pid, stdin, stdout, stderr|
puts stdout.gets
end
∴ /Users/sam/Development/melwin
λ bin/ioke test/lib/text_scanner_spec.ik
*** - couldn't find cell 'shouldRun?' on 'ISpec_0x22D1230D' (Condition Error NoSuchCell)
ISpec shouldRun? [/Users/sam/Development/melwin/lib/ioke/ispec/runner.ik:46:42]
ISpec Runner registerAtExitHook [/Users/sam/Development/melwin/lib/ioke/ispec/describeContext.ik:5:19:in `create']
=(context, ISpec DescribeContext create) [/Users/sam/Development/melwin/lib/ioke/ispec/extendedDefaultBehavior.ik:14:36:in `describe']
describe(TextScanner, it("should have the correc [test/lib/text_scanner_spec.ik:4:0]
abacus 1.0.2 available Abacus Calculator
archive-downloader 1.1 available Download files from archive.org
asciidoc 0.1 available asciidoc text file development support
auto-dictionary 1.0.1 available automatic dictionary switcher for flyspell
blank-mode 6.6 installed Minor mode to visualize blanks
bubbles 0.5 available Puzzle game for Emacs.
cal-china-x 0.6 available Chinese calendar extras
caps-mode 1.0 available (minor mode) letters are inserted capitalized
changelog-url 0.1 available ChangeLog bugzilla buttonizer
chess 1.96 installed Play chess in Emacs
use("ispec")
use("../lib/tik")
describe(Tik,
it("should exist and have the correct kind",
Tik should have kind("Tik")
)
describe("create",
it("should be possible to create a new template from a given source text",
diff --git a/build.xml b/build.xml
index 297a3d7..d0b0bba 100644
--- a/build.xml
+++ b/build.xml
@@ -4,7 +4,6 @@
<description>
ioke is a next generation language, based on Io, Self, Smalltalk, Ruby and Lisp
</description>
-
<property file="build.properties"/>
require 'rubygems'
require 'libxml'
xml = <<END
<?xml version="1.0" encoding="UTF-8"?>
<location lat="54.444" long="23.232" />
END
#create parser for the xml string
parser = LibXML::XML::Parser.string(xml)
require 'rubygems'
require 'spec/autorun'
describe "binding sockets" do
it "should be possible to bind to a socket" do
s = UDPSocket.new
s.bind('localhost', 4422)
end
it "should be possible to bind to a socket again" do
require 'rubygems'
require 'spec/autorun'
describe "binding sockets" do
it "should be possible to bind to a socket" do
s = UDPSocket.new
s.bind('localhost', 4422)
end
it "should be possible to bind to a socket again" do