Two awsome things were released yesterday :
- bittorrent sync aka btsync
- backupsy
Compare this to the pricing of : dropbox pro
## | |
# This provides `create_enum` and `drop_enum` methods for migrations, which creates | |
# a Postgres ENUM type with the provided values. | |
# | |
# It'll also dump these into the schema.rb to be loaded into another DB (e.g. rake db:test:load) | |
# | |
# In order to reference the new enums as actual types, ActiveRecord needs to know about them, so | |
# make sure they are all represented in the `types` array below | |
# | |
# Then you can reference them in your migrations, e.g. |
Two awsome things were released yesterday :
Compare this to the pricing of : dropbox pro
function onMouseenter(e) { | |
el = $(e.target); | |
url = 'https://twitter.com/intent/tweet?text=' | |
url += encodeURIComponent(el.text()); | |
url += ' ' + window.location.href; | |
// el.css('position', 'relative'); | |
el.append('<a href="' + url + '" target="_blank" class="tweet-this" style="position: relative; left: 5px;">Tweet this</a>'); | |
}; | |
function onMouseleave(e) { |
Moved to a proper Git repository.
parseLocation = -> | |
out = {} | |
for key in window.location.search.substring(1).split "&" | |
pair = key.split "=" | |
out[pair[0]] = pair[1] | |
return out |
"""This is main.py, where the main stuff happens. | |
""" | |
import sys | |
import os | |
# lets assume your file is in /home/oli/nuke_files/main.py | |
# | |
# __file__ is a magic variable which python automatically populates, and is the | |
# full path to the file which is currently being executed (i.e. this one), | |
# so __file__ == '/home/oli/nuke_files/main.py' |
❷ > QUEUE=* rake resque:work --trace | |
** Invoke resque:work (first_time) | |
** Invoke resque:preload (first_time) | |
** Invoke resque:setup (first_time) | |
** Execute resque:setup | |
** Execute resque:preload | |
rake aborted! | |
No such file to load -- devise/confirmations_controller | |
/Users/stefan/.rvm/gems/ruby-1.9.2-p290@my-rails-project/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:306:in `rescue in depend_on' | |
/Users/stefan/.rvm/gems/ruby-1.9.2-p290@my-rails-project/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:301:in `depend_on' |
<!-- Example one shows the most verbose way of specifying a template that is only rendered if someObject is defined in the current view model | |
This information was culled from https://github.com/SteveSanderson/knockout/blob/1.3/src/binding/defaultBindings.js#L445 | |
--> | |
<script type="text/html" id="sub-example-one"> | |
<h2 data-bind="text: title"></h2> | |
<p data-bine="text: description"></p> | |
</script> | |
<script type="text/html" id="example-one"> |
#!/bin/bash | |
# | |
# Author: Brian Beck <[email protected]> | |
# Usage: watch PATH COMMAND... | |
# | |
# This script watches PATH and runs COMMAND whenever PATH or a descendent | |
# of PATH is modified. COMMAND is everything after the first argument. | |
# | |
# If PATH is "-", then the list of paths comes from standard input. | |
# |
# simply run rake jammit:package to compile your coffeescript and then package up all your assets | |
# including the newly compiled javascripts | |
namespace :jammit do | |
task :package do | |
Rake::Task["barista:brew"].invoke | |
Jammit.package! | |
end | |
end |