Skip to content

Instantly share code, notes, and snippets.

exports.config = {
// See http://brunch.io/#documentation for docs.
files: {
javascripts: {
joinTo: {
"js/app.js": /^(web\/static\/js)/,
"js/play.js": /^(web\/static\/js-play)/, // minimal js for play session
"js/vendor.js": /^(web\/static\/vendor)|(deps)/
},
order: {
Struct Cat {
function walk()
}
func TakeAWalk( Cat pet ) {
pet.walk()
}
--
struct Dog {
@curtislinden
curtislinden / gist:99eb4251c4e17d05be16
Last active August 29, 2015 14:07
food for thought...
(still test-set transactional memory semantics)
-- I went back to drawing board and asked the question - what if the resource version whas just a transparent mechanism of the resource - IE: model this as direct operations on remote resource...
I get the purchase
@curtislinden
curtislinden / gist:7223051
Created October 29, 2013 21:34
remove all gems
list=`command gem list --no-versions`
for gem in $list; do
command gem uninstall $gem -aIx
done
command gem list
command gem install bundler
@curtislinden
curtislinden / migrate_templates
Created May 15, 2013 18:27
dumb script to migrate jst.hamlc to hamlc
files = Dir["./app/assets/templates/**/*.jst.*"]
files.each do |file|
old_file = file
new_file = file.gsub("assets/templates","assets/javascripts/templates").gsub(".jst","")
dir = File.dirname(new_file)
puts "Creating directory for file"
`mkdir -p #{dir}`
puts "Copy #{old_file} into #{new_file}"
`cp -a #{old_file} #{new_file}`
end