Skip to content

Instantly share code, notes, and snippets.

(ns foo-cart.core
(:require [goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[om.dom :as dom]
[cljs.pprint :as pp]))
(enable-console-print!)
(defmulti read om/dispatch)
(defmulti mutate om/dispatch)
(ns om-tutorial.core
(:require [goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[om.dom :as dom]))
(enable-console-print!)
(defmulti read om/dispatch)
; this is a better version of my read function, where I should be able to supply a key by which to filter like parent-id e.g.
thebes $ brew install pdfsandwich
==> Downloading http://downloads.sourceforge.net/project/pdfsandwich/pdfsandwich%200.1.4/pdfsandwich-0.1.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/pdfsandwich-0.1.4.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/pdfsandwich/0.1.4
==> make install
mkdir -m 755 -p /usr/local/Cellar/pdfsandwich/0.1.4/bin /usr/local/Cellar/pdfsandwich/0.1.4/share/doc/pdfsandwich /usr/local/Cellar/pdfsandwich/0.1.4/share/man/man1
install -s pdfsandwich /usr/local/Cellar/pdfsandwich/0.1.4/bin
install: pdfsandwich: No such file or directory
make: *** [install] Error 71
# Documentation: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md
# http://www.rubydoc.info/github/Homebrew/homebrew/master/frames
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Pdfsandwich < Formula
desc "A tool to make \"sandwich\" OCR pdf files"
homepage "http://www.tobias-elze.de/pdfsandwich/"
url "http://downloads.sourceforge.net/project/pdfsandwich/pdfsandwich%200.1.4/pdfsandwich-0.1.4.tar.bz2"
version "0.1.4"
sha256 "8b82f3ae08000c5cae1ff5a0f6537b0b563befef928e5198255b743a46714af3"
# ./config/database.yml is standard except specifying reaping_frequency
# adapter: postgresql
# database: all_products
# username: postgres
# host: localhost
# pool: 2
# reaping_frequency: 30
require 'rubygems'
require 'bundler/setup'
function mergesort(array) {
console.log('Merge Sorting Array:');
console.log(array);
var working_arrays = [];
var sorted_array = [];
var final_length = array.length;
var next_item;
bes:ruby-debug-base19-0.11.23 kunal$ rake compile
(in /Users/kunal/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.23)
cd tmp/x86_64-darwin10.3.0/ruby_debug/1.9.2
make
gcc -dynamic -bundle -o ruby_debug.bundle breakpoint.o ruby_debug.o -L. -L/Users/kunal/.rvm/rubies/ruby-1.9.2-p0/lib -L. -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -lruby.1.9.1 -lpthread -ldl -lobjc
i686-apple-darwin10-gcc-4.2.1: breakpoint.o: No such file or directory
make: *** °ruby_debug.bundle§ Error 1
rake aborted!
Command failed with status (2): °make...§
-rw-r--r-- 1 kunal staff 5480 Aug 22 00:50 ../../../../ext/ruby_debug/Makefile
-rw-rw-rw- 1 kunal staff 14870 Aug 22 00:50 ../../../../ext/ruby_debug/breakpoint.c
-rw-r--r-- 1 kunal staff 39636 Aug 22 00:50 ../../../../ext/ruby_debug/breakpoint.o
-rw-rw-rw- 1 kunal staff 827 Aug 22 00:50 ../../../../ext/ruby_debug/extconf.rb
-rw-r--r-- 1 kunal staff 6632 Aug 22 00:50 ../../../../ext/ruby_debug/mkmf.log
-rwxr-xr-x 1 kunal staff 65504 Aug 22 00:50 ../../../../ext/ruby_debug/ruby_debug.bundle
-rw-rw-rw-@ 1 kunal staff 73843 Aug 22 00:50 ../../../../ext/ruby_debug/ruby_debug.c
-rw-rw-rw- 1 kunal staff 3994 Aug 22 00:50 ../../../../ext/ruby_debug/ruby_debug.h
-rw-r--r-- 1 kunal staff 140372 Aug 22 00:50 ../../../../ext/ruby_debug/ruby_debug.o
thebes:ruby-debug-base19-0.11.23 kunal$ rake clean ; rake
(in /Users/kunal/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.23)
rm -r tmp/x86_64-darwin10.3.0/ruby_debug/1.9.2
cd ext
cd -
(in /Users/kunal/.rvm/gems/ruby-1.9.2-p0/gems/ruby-debug-base19-0.11.23)
mkdir -p tmp/x86_64-darwin10.3.0/ruby_debug/1.9.2
cd tmp/x86_64-darwin10.3.0/ruby_debug/1.9.2
/Users/kunal/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -I. ../../../../ext/ruby_debug/extconf.rb
checking for rb_method_entry_t.body in method.h... no
CHILD NODE:
require 'rubygems'
require 'ffi-rzmq'
link = "tcp://127.0.0.1:5557"
context = ZMQ::Context.new 1
socket = context.socket ZMQ::UPSTREAM