My Recent Pastes (180 and counting)
Recent Pasties by Denis Defreyne (180 and counting)
Below are summaries of the 15 most recent pasties by Denis Defreyne.
June 28, 2009
5:25PM EDT
by Denis Defreyne
View more (246 lines)
1 2 3 4 5 |
#import <Alpaca/Model/ALMap_TerrainGeneration.h> @implementation ALMap (TerrainGeneration) - (void)equalizeHeightmap:(double **)aHeightmap |
June 25, 2009
9:46AM EDT
by Denis Defreyne
View more (45 lines)
1 2 3 4 5 |
▸ cat content/aaa/aaa.html The title of the home page is <%= @items.find { |i| i.identifier == '/' }[:title] %>. ▸ nanoc3 co -V Compiling site... |
June 25, 2009
9:44AM EDT
by Denis Defreyne
View more (22 lines)
1 2 3 4 5 |
▸ nanoc3 co -V Compiling site... update [0.01s] output/aaa/index.html update [0.00s] output/index.html skip [0.00s] output/bbb/index.html |
June 25, 2009
6:34AM EDT
by Denis Defreyne
View more (139 lines)
1 2 3 4 5 |
# encoding: utf-8 require 'test/helper' class Nanoc3::DependencyTrackerTest < MiniTest::Unit::TestCase |
June 24, 2009
7:39AM EDT
by Denis Defreyne
View more (39 lines)
1 2 3 4 5 |
$filename = 'test.dat' [ 'a', 'aa' ].each do |data| puts "=== Trying with data = '#{data}'" |
June 24, 2009
7:39AM EDT
by Denis Defreyne
View more (39 lines)
1 2 3 4 5 |
$filename = 'test.dat' [ 'a', 'aa' ].each do |data| puts "=== Trying with data = '#{data}'" |
June 24, 2009
7:32AM EDT
by Denis Defreyne
View more (43 lines)
1 2 3 4 5 |
$filename = 'test.dat' [ '', 'a', 'aa' ].each do |data| # Write data File.open($filename, 'w') { |io| io.write(data) } |
June 24, 2009
7:31AM EDT
by Denis Defreyne
View more (30 lines)
1 2 3 4 5 |
$filename = 'test.dat' [ '', 'a', 'aa' ].each do |data| # Write data File.open($filename, 'w') { |io| io.write(data) } |
June 22, 2009
4:58AM EDT
by Denis Defreyne
View more (9 lines)
1 2 3 4 5 |
#!/usr/bin/env ruby # encoding: utf-8 # Set up load paths $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/lib')) |
June 22, 2009
4:55AM EDT
by Denis Defreyne
1 2 3 |
# Configure load paths $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib')) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'vendor', 'diff-lcs-1.1.2', 'lib')) |
June 10, 2009
5:02AM EDT
by Denis Defreyne
View more (69 lines)
1 2 3 4 5 |
source ~/.profile
########## ZSH STUFF
autoload colors
|
May 28, 2009
5:49PM EDT
by Denis Defreyne
View more (18 lines)
1 2 3 4 5 |
require 'ramaze' require 'json' class MainController < ::Ramaze::Controller |
May 24, 2009
2:43PM EDT
by Denis Defreyne
View more (13 lines)
1 2 3 4 5 |
class Translizzator::Controllers::MainTest < MiniTest::Unit::TestCase include Rack::Test::Methods def app |
May 23, 2009
6:30AM EDT
by Denis Defreyne
View more (10 lines)
1 2 3 4 5 |
task :compile do Nanoc::NotificationCenter.on(:compilation_ended) do |rep| item = rep.respond_to?(:page) ? rep.page : rep.asset puts "We have compiled #{item.path}:#{rep.name}!" if rep.compiled? end |
May 22, 2009
4:46AM EDT
by Denis Defreyne
View more (13 lines)
1 2 3 4 5 |
--- a/lib/chronos/datetime/gregorian.rb +++ b/lib/chronos/datetime/gregorian.rb @@ -257,8 +257,8 @@ module Chronos # change to another timezone, also gives the opportunity to change language def change_zone(timezone=nil, language=nil) |
Pastie