My Recent Pastes (253 and counting)
Pastes by Denis Defreyne (253 and counting)
Below are the 15 most recent pasties by Denis Defreyne.
January 09, 2008
1:08PM EDT
by Denis Defreyne
View all 27 lines
require 'singleton' module Nanoc class PluginManager
January 08, 2008
2:25PM EDT
by Denis Defreyne
View all 23 lines
#include <stdio.h> #include <unistd.h> cilk void test(char *string, int max, int duration) {
January 08, 2008
2:20PM EDT
by Denis Defreyne
View all 23 lines
#include <stdio.h> #include <unistd.h> cilk void test(char *string, int max, int duration) {
December 09, 2007
7:36AM EDT
by Denis Defreyne
View all 30 lines
module Nanoc class Compiler attr_reader :stack
December 08, 2007
6:47AM EDT
by Denis Defreyne
View all 12 lines
### Header Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. <pre><code>int i = 5;
December 07, 2007
4:53AM EDT
by Denis Defreyne
View all 7 lines
# Build stack stack = [] current = @page until current.nil? do stack << current
November 30, 2007
4:36PM EDT
by Denis Defreyne
View all 9 lines
class Cat puts self.inspect # => Cat class << self
November 13, 2007
7:58AM EDT
by Denis Defreyne
View all 29 lines
require 'net/http' require 'uri' require 'rexml/document' require 'rexml/xpath'
November 11, 2007
5:41AM EDT
by Denis Defreyne
View all 138 lines
# This is the module where the trivial data source will live in. It's not # really _necessary_ to create a separate module/namespace for each data # source, but it can be useful, especially when the data source needs extra # classes (for example, the database data source defines uses ActiveRecord, so # it needs classes for each table).
November 10, 2007
9:52AM EDT
by Denis Defreyne
View all 123 lines
module Nanoc::DataSource::Trivial # This is the implementation of a trivial data source. It doesn't do much # except return bogus data. It is meant to be a very simple example of a # data source, and it should be quite useful for those who want to write
November 10, 2007
9:23AM EDT
by Denis Defreyne
View all 116 lines
module Nanoc::DataSource::Trivial # This is the implementation of a trivial data source. It doesn't do much # except return bogus data. It is meant to be a very simple example of a # data source, and it should be quite useful for those who want to write
November 09, 2007
3:48PM EDT
by Denis Defreyne
View all 61 lines
module Nanoc::DataSource::Trivial # This is the implementation of a trivial data source. It doesn't do much # except return bogus data. It is meant to be a very simple example of a # data source, and it should be quite useful for those who want to write
November 09, 2007
3:29PM EDT
by Denis Defreyne
View all 30 lines
module Nanoc::DataSource::Trivial
class TrivialDataSource < Nanoc::DataSource
def pages
November 09, 2007
1:54PM EDT
by Denis Defreyne
View all 38 lines
module Nanoc::DataSource::Trivial
class FileSystemDataSource < Nanoc::DataSource
def pages
November 09, 2007
1:30PM EDT
by Denis Defreyne
View all 24 lines
module Nanoc::DataSource::Trivial
class TrivialDataSource < Nanoc::DataSource
def pages