Rails Version: 4.1.0.rc2
As you can see, in the tree there is are numerous files under the app/assets/images/icons
directory. None of them are being precompiled.
Here is the ERb.
class AccountDecorator | |
attr_accessor :account | |
def initialize(account) | |
@account = account | |
end | |
def method_missing(method_name, *args, &blk) | |
if account.respond_to?(method_name) | |
account_method_result(method_name, *args, &blk) |
#!/usr/bin/env ruby | |
require 'optparse' | |
require 'ostruct' | |
require 'pathname' | |
class Text | |
attr_reader :string |
require_relative './example_logger' | |
class ExampleClass | |
def initialize | |
ExampleLogger.info("Initializing ExampleClass") | |
end | |
end | |
ExampleClass.new |
// My first Rust program | |
// Simply outputs fibbonaci numbers from 20 to 0 | |
use core::task::spawn; | |
fn fib(number: int) -> int { | |
if number > 1 { | |
return fib(number - 1) + fib(number - 2); | |
} else { | |
return number; |
require 'benchmark' | |
ITERATIONS = 10_000 | |
Benchmark.bm do |bm| | |
bm.report("#<< -> #flatten!: ") do | |
array = [1,2,3] | |
ITERATIONS.times do | |
array << [4,5,6] | |
array.flatten! |
#!/bin/sh | |
# | |
# Script built from the reference at | |
# http://digitalsanctum.com/2009/10/01/installing-erlang-on-mac-os-x/ | |
sudo -v | |
wget http://www.erlang.org/download/otp_src_R16B01.tar.gz | |
tar -xzf otp_src_R16B01.tar.gz |
#!/bin/sh | |
sudo apt-get -y update | |
sudo add-apt-repository ppa:nginx/stable | |
sudo apt-get -y update | |
sudo apt-get install -y git-core postgresql-9.1 mysql-server libpq-dev \ | |
curl build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev | |
cd /tmp |
require 'minitest' | |
require 'minitest/autorun' | |
require 'benchmark/ips' | |
def sort(list) | |
new_list = list.dup | |
idx = 0 | |
while idx < list.size | |
i = idx + 1 |
I hereby claim:
To claim this, I am signing this object: