My Recent Pastes (198 and counting)

Pastes by NoKarma (198 and counting)

Pages:

Below are the 15 most recent pasties by NoKarma.

September 07, 2007
4:05AM EDT
by NoKarma

class Array
  def each
    i = 0
    while i < self.length
      yield self.at(i)

September 07, 2007
4:00AM EDT
by NoKarma

An exception has occurred:
    No method 'access_assembly' on an instance of TrueClass. (NoMethodError)

Backtrace:
    Object(TrueClass)#access_assembly (method_missing) at kernel/core/object.rb:97

September 07, 2007
3:58AM EDT
by NoKarma

    Object(NilClass)#% (method_missing) at kernel/core/object.rb:97
                        main.__script__ at test.rb:6
                  BlockEnvironment#call at kernel/core/context.rb:109
                             Array#each at kernel/core/array.rb:524
                  BlockEnvironment#call at kernel/core/context.rb:109

September 07, 2007
3:56AM EDT
by NoKarma

#b[0] if b = [1, 2, 3]

values = [1, 2, 3, 4]
values.each do |a|
  values.shift

September 06, 2007
11:06AM EDT
by NoKarma

<?php

$values = $remaining_values = array(413, 898, 664, 991);
$pairs = array();
$cache = array();

September 06, 2007
10:48AM EDT
by NoKarma

  values = [ 413, 898, 664, 991 ] * 100
  remaining_values = values.dup
  
  $pairs = []
  

September 06, 2007
10:45AM EDT
by NoKarma

98.30
55.88
 9.64
83.96
35.88

September 06, 2007
10:36AM EDT
by NoKarma

98.30
55.88
 9.64
83.96
35.88

September 06, 2007
10:21AM EDT
by NoKarma

values = [ 413, 898, 664, 991 ]
remaining_values = values.dup

$pairs = []
values.each do |a|

September 05, 2007
7:40PM EDT
by NoKarma

class Object
  def coerce_to(type, method)
    raise TypeError, "can't convert #{self.class} into #{type}" unless self.respond_to?(method)
    result = self.__send__(method)
    raise TypeError, "#{self.class}##{method} should return #{type}" unless result.is_a?(type)

August 28, 2007
4:11PM EDT
by NoKarma

pagePosToMapPos        318        88.78%        2262.788ms        2262.788ms        7.116ms        0.098ms        120.1ms        worldmap.js (line 198)
onMouseMove        318        6.31%        160.7ms        2499.692ms        7.861ms        0.699ms        120.732ms        worldmap.js (line 102)
pointer        636        0.8%        20.398ms        20.398ms        0.032ms        0.021ms        0.139ms        prototype.js (line 3753)
$A        439        0.77%        19.667ms        19.712ms        0.045ms        0.013ms        12.063ms        prototype.js (line 792)
bindAsEventListener        333        0.54%        13.806ms        2518.347ms        7.563ms        0.044ms        120.774ms        prototype.js (line 201)

August 27, 2007
5:39PM EDT
by NoKarma

%div#world-map
  #load-msg{:style => 'display: none;'}
    %img{:src => '/images/simple_black/spinner.gif', :alt => '...'}
    Loading...
  %div#gold-view{:title => _('your_gold')}

August 23, 2007
11:40AM EDT
by NoKarma

arthur@arthur-desktop:~/workspace/rubinius$ ./bin/ci

An error has occured: Segmentation fault (SIGSEGV)


August 20, 2007
11:25AM EDT
by NoKarma

Index: /home/arthur/workspace/naruku/public/javascripts/worldmap.js
===================================================================
--- /home/arthur/workspace/naruku/public/javascripts/worldmap.js        (revision 983)
+++ /home/arthur/workspace/naruku/public/javascripts/worldmap.js        (working copy)
@@ -13,14 +13,15 @@

August 18, 2007
4:20AM EDT
by NoKarma

In file included from ../external_libs/lightning/lightning.h:47,
                 from subtend/ffi.c:12:
../external_libs/lightning/lightning/core.h:92:3: warning: multi-line comment
../external_libs/lightning/lightning/core.h:100:1: warning: multi-line comment
subtend/ffi.c: In function 'ffi_generate_c_stub':

Next page

Previous page