Skip to content

Instantly share code, notes, and snippets.

(defproject sutime-clojure "0.1.0-SNAPSHOT"
:description "Wrapper around the time functionality in Stanford NLP Suite"
:url "https://github.com/shriphani/sutime-clojure"
:license {:name "MIT License"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.4.0"]
[edu.stanford.nlp/stanford-corenlp "1.3.4"]
[edu.stanford.nlp/stanford-corenlp "1.3.4" :classifier "models"]
[clj-time "0.5.0"]]
:jvm-opts ["-Xmx2000M"]
@isaacbowen
isaacbowen / will_paginate.rb
Created August 30, 2011 21:37
extends will_paginate to play well with Twitter's Bootstrap
# config/initializers/will_paginate.rb
module WillPaginate
module ActionView
def will_paginate(collection = nil, options = {})
options[:renderer] ||= BootstrapLinkRenderer
super.try :html_safe
end
class BootstrapLinkRenderer < LinkRenderer
@JosephPecoraro
JosephPecoraro / shell-execution.rb
Last active September 28, 2025 09:58
Shell Execution in Ruby
# Ways to execute a shell script in Ruby
# Example Script - Joseph Pecoraro
cmd = "echo 'hi'" # Sample string that can be used
# 1. Kernel#` - commonly called backticks - `cmd`
# This is like many other languages, including bash, PHP, and Perl
# Synchronous (blocking)
# Returns the output of the shell command
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111