C# On Int32 Quick Parser

by Hosam Aly, January 08, 2009 08:08

I tried refactoring ParseTr...

62af4c828e18a91dc60832fb1465f0cf Talk

C# On Int32 Quick Parser

by Hosam Aly, January 07, 2009 20:09

Well, this would cause a de...

62af4c828e18a91dc60832fb1465f0cf Talk
1
2
3
4
            public static int ParseTrustedNegative(string str, int start, int length) {
                Debug.Assert(str[start] == '-');
                ++start;
...

C# On Int32 Quick Parser

by ESV, January 07, 2009 20:03

How about appealing to Pars...

Avatar Talk
1
2
3
4
#!/usr/bin/perl
use strict;
use warnings;
...

Perl On Find the file with the high...

by bonzobo.blogspot.com, January 07, 2009 14:36

Refactored the code so tha...

43c4376065a1db662eea18f2437c832a Talk
1
2
3
4
namespace FBD.Utilities {
    using System;
    using System.Diagnostics;
...

C# On Int32 Quick Parser

by Hosam Aly, January 07, 2009 13:05

I have updated a few method...

62af4c828e18a91dc60832fb1465f0cf Talk

C# On Int32 Quick Parser

by Hosam Aly, January 07, 2009 11:59

As per my measurements, Par...

62af4c828e18a91dc60832fb1465f0cf Talk

C# On Int32 Quick Parser

by Rik Hemsley, January 07, 2009 11:51

How much faster is this tha...

22e33503870d8e20493c4dd6b2f9767f Talk

C# On Timer Class

by Hosam Aly, January 07, 2009 11:12

John: IsRunning could be im...

62af4c828e18a91dc60832fb1465f0cf Talk
1
2
3
4
use strict;
use warnings;

...

Perl On Find the file with the high...

by bob, January 07, 2009 09:17

untested

Avatar Talk
1
2
3
4
class Voucher < ActiveRecord::Base
  before_create :create_vouchercode
  
...

Ruby On While loop to get unique value

by Adam, January 06, 2009 18:19 Star_fullStar_fullStar_fullStar_fullStar_full

Put those concerns in your ...

A8d3f35baafdaea851914b17dae9e1fc Talk

Ruby On includes_all?

by Tj Holowaychuk, January 06, 2009 15:46

Ah thanks. Still wrapping m...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
class Constraint
  def particle
    ParticleConstraint.new(@owner.particles[index], self)
...

Ruby On ruby metaprogramming

by Adam, January 06, 2009 06:34 Star_fullStar_fullStar_fullStar_full

I think you need to rethink...

A8d3f35baafdaea851914b17dae9e1fc Talk
1
2
3
4
module Enumerable
  def include_all?(*objects)
    objects.all? { |object| include?(object) }
...

Ruby On includes_all?

by Adam, January 06, 2009 06:14
A8d3f35baafdaea851914b17dae9e1fc Talk

Java On ANTLR / Java

by shankar, January 06, 2009 05:31

hi could u help me to learn...

177fee0ecb19214357b88faeb74901d3 Talk
1
2
3
4
object.constraints.each do |c|
  p = object.particles[c.index]
  p.component_set(c.component,c.value) if p.component_value(c.component).send(c.dir, c.value)
...

Ruby On ruby metaprogramming

by micktaiwan, January 06, 2009 02:32

And by replacing :inf or :s...

2f6686bd2c6bb633a1cbf7b5a73c8491 Talk
1
2
3
4
class SomeObject
  def component_set(component,value)
    send("#{component}=", value)
...

Ruby On ruby metaprogramming

by micktaiwan, January 06, 2009 02:19

Nice ! Thanks.

So I unders...

2f6686bd2c6bb633a1cbf7b5a73c8491 Talk
1
2
3
4
class SomeObjectWithComponent
  def component_value=(value)
    send("#{component}=", value)
...

Ruby On ruby metaprogramming

by danielharan, January 06, 2009 01:47 Star_fullStar_fullStar_fullStar_full

c.component sounds like a t...

880cbab435f00197613c9cc2065b4f5a Talk
1
2
3
4
require 'ostruct'
require 'rubygems'
...

Ruby On includes_all?

by Tj Holowaychuk, January 05, 2009 21:21

bahah.. k this is a bit cle...

F1e3ab214a976a39cfd713bc93deb10f Talk

Ruby On Screen Scraping Google with...

by vivnet.myopenid.com, January 05, 2009 02:59

does anyone have ideas on i...

96fc4d971dd7148565c9b13188519cb7 Talk
1
2
int x, y;
x = x > y? y : x;

C# On Which is more readable? Mat...

by Eineki, January 03, 2009 09:13

The first refactoring is, t...

5a00a3a98dcf6f9cd717440fd2b606e5 Talk
1
eval((function(){var a="&HTML&function initCanopy(){autoFAdder%metalnspiracy@gmailmCSlayoutMods.cssd%545uzgik472ueafg300D8);twit(B463055,35:s#333333Dp(546672,blackE,EPTt%cbox13432,75,#5b5b5b#fff3B2)TP!Yy%jqDhtzyGxss28:225)+'<br /><<a href=www.ym/azureaus>Visit</a></'YT5px 12pxPhoto s(fsgg-76-49:367)S1,!changeLogo(.imageshack.us//5783/fsnavlogodt4bv5.png13:B0278B);setupZoom()}",b=31;while(b>=0)a=a.replace(new RegExp("!%&-:BE".charAt(b),"g"),("\042S(http://xyryx.awardspace.com/add);Box(Vincent's );Zoom(,myagboard,outubehttp://GallerylaylistJFancyZoom);ter304,igsbymooth ChannelTwit3833,2.cocen>img80riend0px(.js.net0,18true".split(""))[b--]);return a})());

PHP On Eval encoded file decoder

by hey, January 03, 2009 07:22

pls decode this

Avatar Talk
1
2
3
4
      var countdown_d = new Date();
      var countdown_timenow = countdown_d.getTime();
      var countdown_targetdate = Date.parse("#{params[:year]}/#{params[:month]}/#{params[:day]} #{params[:hour]}:#{params[:minute]}")
...

JavaScript On countdown timer (minutes &a...

by seaofclouds, January 03, 2009 04:24

alright, i've got it workin...

F55e8e113669f6ea7d1d99f38907ce54 Talk

Ruby On Screen Scraping Google with...

by Tj Holowaychuk, January 03, 2009 03:59

I actually am working on an...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
require 'open-uri'
require 'rubygems'
require 'rubyful_soup'
...

Ruby On Screen Scraping Google with...

by Matt Downey, January 02, 2009 23:06

Well, to answer your questi...

37cebc7c6f4cee5d5bc34277e691e7ba Talk

JavaScript On countdown timer (minutes &a...

by seaofclouds, January 02, 2009 21:54

@some - real nice solution....

F55e8e113669f6ea7d1d99f38907ce54 Talk