A simple rake task that replicates the rails console
for Lotus Framework
I assume that your config/application.rb
is the place where you
initialize all Lotus boot config
below is my config/application.rb
for your interest
# http://yehudakatz.com/2010/02/21/ruby-is-not-a-callable-oriented-language/ | |
module DoAsYouPlease | |
Object.send :include, self | |
def method_missing(name, *args, &block) | |
self.class.const_get(name).call(*args, &block) | |
end | |
end | |
Foo = proc { 42 } |
hide do
_ _ _
/\ /(_) __| | __| | ___ _ __
/ /_/ / |/ _` |/ _` |/ _ \ '_ \
/ __ /| | (_| | (_| | __/ | | |
\/ /_/ |_|\__,_|\__,_|\___|_| |_|
end
Install rbenv.
Download and compile OpenSSL 0.9.8x:
$ tar zxvf openssl-0.9.8x.tar.gz
$ cd openssl-0.9.8x
$ ./config
$ make
$ make test
$ make install
Check out the progress on redirectable/preventable transitions.
This consists almost entirely of a rewrite of router.js, with hardly any changes to the Ember codebase. Lots of things have been added router-wise, but this particular demo focuses on how attempted transitions can be intercepted/redirected/prevented/decorated by defining transition event handlers in a transitions
hash on Ember.Route. I also added support for URL-less routes (see the URL-less States Demo at the top in the link below). You can test this out yourself with this branch of Ember, which has the new router.js code i've been working on in it.
I ended up reusing the Emblem test app, so try not to be distracted by the template syntax stuff (sorry, twas most readily available for trying this new transition code). You can check out the code for this transition demo here. Below I've highlighted the m
# spec/support/factory_girl.rb | |
# This file is here to limit the use of factories to only integration tests and not unit tests. | |
# | |
# If you really want to use a factory you can add the tag :factories to a test | |
# | |
module FactoryGirlBlocker | |
mattr_accessor :disabled | |
def self.with_disabled | |
self.disabled = true |
First Generate Ember application using Yo Ember generator
npm install -g yo grunt-cli bower
npm install -g generator-ember
mkdir webapp && cd webapp
yo ember
grunt server
require 'tmpdir' | |
# Usage: | |
# add to ruhoh-site/plugins/publish/github.rb | |
# - Your GitHub remote must be setup properly but The command will try to walk you through it. | |
# - You must have a clean working directory to publish to GitHub pages since the hook is actually triggered by commits. | |
# | |
# $ cd ruhoh-site | |
# $ bundle exec ruhoh publish github | |
class Ruhoh |
/** | |
* Definition for a binary tree node. | |
* function TreeNode(val) { | |
* this.val = val; | |
* this.left = this.right = null; | |
* } | |
*/ | |
/** | |
* @param {TreeNode} root | |
* @return {TreeNode} |
vendor/ | |
.bundle/ | |
node_modules/ | |
Gemfile.lock |