Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
/** | |
* Library for Lightweight Seft-Protecting JavaScript | |
* By Phu H Phung 2008 | |
* Version: 1.1a | |
* Last modified: 2008, Sept 16 | |
*/ | |
(function() { | |
var _debug = true; | |
/** |
$$$$$$\ $$\ $$\ $$\ $$\ $$\ | |
$$ __$$\ $$ | \__| $$ | \__| $$ | | |
$$ / \__|$$$$$$$\ $$\ $$$$$$$\ $$$$$$$\ $$\ $$$$$$\ $$$$$$\ | |
\$$$$$$\ $$ __$$\ $$ |$$ _____|$$ __$$\ $$ |\_$$ _| $$ __$$\ | |
\____$$\ $$ | $$ |$$ |\$$$$$$\ $$ | $$ |$$ | $$ | $$ / $$ | | |
$$\ $$ |$$ | $$ |$$ | \____$$\ $$ | $$ |$$ | $$ |$$\ $$ | $$ | | |
\$$$$$$ |$$ | $$ |$$ |$$$$$$$ |$$ | $$ |$$ | \$$$$ |\$$$$$$ | | |
\______/ \__| \__|\__|\_______/ \__| \__|\__| \____/ \______/ |
The premise of this exercise is contained in Daniel Himelein's quote:
"The first thing I always do when playing around with a new software platform is to write a concurrent "Hello World" program. The program works as follows: One active entity (e.g. thread, Erlang process, Goroutine) has to print "Hello " and another one "World!\n" with the two active entities synchronizing with each other so that the output always is "Hello World!\n". Here is the concurrent Hello World program in Go, Erlang and in C++ using the Mindroid framework."
Here is a Hello World example in Ruby/Celluloid. Five, actually.
set :user, "deploy" | |
set :runner, "deploy" | |
set :application, "example.com" | |
set :deploy_to, "/var/apps/#{application}" | |
set :shared_children, %w(sockets) | |
set :scm, :git | |
set :repository, "[email protected]:example.git" | |
set :deploy_via, :remote_cache |
ENV["RAILS_ENV"] = "test" | |
require File.expand_path('../../config/environment', __FILE__) | |
require "minitest/autorun" | |
require "minitest/rails" | |
require "minitest/rails/capybara" | |
require "database_cleaner" | |
require "factory_girl" | |
require "carrierwave/test/matchers" |
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
# test/support/custom_capybara_expectations.rb | |
module CustomCapybaraExpectations | |
def has_flash_message?(message) | |
within '#flash' do | |
has_content? message | |
end | |
end | |
end | |
Capybara::Session.send :include, CustomCapybaraExpectations | |
CustomCapybaraExpectations.public_instance_methods(false).each do |name| |
// blog post: http://blog.slashpoundbang.com/post/15096433153/css3-scss-mixins | |
// Mixins ---------------------------------------------------------------------- | |
// http://css3please.com/ | |
@mixin background-rgba($red, $green, $blue, $opacity, $rgba) { | |
background-color: transparent; | |
background-color: rgba($red, $green, $blue, $opacity); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$rgba}',endColorstr='#{$rgba}'); | |
zoom: 1; | |
} |
# encoding: utf-8 | |
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) | |
require 'rvm/capistrano' | |
set :application, "hirefireapp" | |
set :repository, "[email protected]:meskyanichi/myapp.git" | |
set :branch, "develop" | |
set :rvm_ruby_string, "1.9.2" |