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
(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"] |
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
# 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 |
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
# 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 |