Skip to content

Instantly share code, notes, and snippets.

View jdlich's full-sized avatar

Jacob Lichner jdlich

View GitHub Profile
#
# generate ant tasks
#
def uportal command
Dir.chdir(UPORTAL) { system command }
end
def ant_tasks
# TODO: check for build.properties
#
# COMPILING SKIN STYLES
#
# Run `rake -T` to see a list of available tasks (this is the `ant -p` equivalent).
#
# Run `rake compile` from within the skin directory to compile CSS.
#
# ABOUT RAKE
#
# Rake is a ruby build tool similar to ant. If you
10
dir
104725
https://source.sakaiproject.org/svn/portal/branches/sakai-2.8.1
https://source.sakaiproject.org/svn
2011-10-11T21:28:59.965559Z
#
# List of comma-separated packages that start with or equal this string
# will cause a security exception to be thrown when
# passed to checkPackageAccess unless the
# corresponding RuntimePermission ("accessClassInPackage."+package) has
# been granted.
package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
#
# List of comma-separated packages that start with or equal this string
# will cause a security exception to be thrown when
[INFO] Unable to find resource 'org.sakaiproject.basiclti:basiclti-api:jar:1.3.4' in repository caret-dev (http://www2.caret.cam.ac.uk/maven2dev)
Downloading: http://rci.rutgers.edu/~oirt/repos/org/sakaiproject/basiclti/basiclti-api/1.3.4/basiclti-api-1.3.4.jar
[INFO] Unable to find resource 'org.sakaiproject.assignment:sakai-assignment-api:jar:${sakai.assignment.version}' in repository caret-dev (http://www2.caret.cam.ac.uk/maven2dev)
Downloading: http://rci.rutgers.edu/~oirt/repos/org/sakaiproject/assignment/sakai-assignment-api/${sakai.assignment.version}/sakai-assignment-api-${sakai.assignment.version}.jar
[INFO] Unable to find resource 'org.sakaiproject.basiclti:basiclti-api:jar:1.3.4' in repository local-hack (http://rci.rutgers.edu/~oirt/repos)
Downloading: http://source.sakaiproject.org/maven2/org/sakaiproject/basiclti/basiclti-api/1.3.4/basiclti-api-1.3.4.jar
[INFO] Unable to find resource 'org.sakaiproject.assignment:sakai-assignment-api:jar:${sakai.assignment.version}' in repository local-hack (htt
desc "Configures dev environment"
task :config => [ "config:build_properties", "config:catalina_properties", "config:server_xml", "config:disable_cache"] do
puts ""
puts "Run initportal while running hsql to get started."
end
namespace :config do
desc "Configures build.properties"
task :build_properties do
system "cp #{UPORTAL}/build.properties.sample #{UPORTAL}/build.properties"
hello from gist
sass = OaklandSass.new("scss/portal.scss", "portal.css")
desc "Compile sass."
task :compile do
sass.compile
puts "Compiled portal.css"
end
desc "Autocompile sass on file save."
task :watch do
$ gist < file.txt
$ echo secret | gist --private # or -p
$ echo "puts :hi" | gist -t rb
$ gist script.py
$ gist script.js notes.txt
$ pbpaste | gist -p # Copy from clipboard - OSX Only
$ gist -
the quick brown fox jumps over the lazy dog
^D
#
# Rake is a ruby build tool similar to ant. See:
# http://rake.rubyforge.org/files/doc/rational_rdoc.html
#
# If you have Ruby installed, you have Rake.
#
# Run `rake -T` to see list of available tasks (this is the ant equivalent of `ant -p`).
#
begin