Ruby On ActiveRecord find_by_sql

by Tj Holowaychuk, January 18, 2010 19:16

still there lol.. google sq...

F1e3ab214a976a39cfd713bc93deb10f Talk

Ruby On ActiveRecord find_by_sql

by Tj Holowaychuk, January 18, 2010 15:03

well there is a huge securi...

F1e3ab214a976a39cfd713bc93deb10f Talk

Ruby On Stable sort in ruby

by Tj Holowaychuk, December 14, 2009 16:07

whats wrong sort ?

F1e3ab214a976a39cfd713bc93deb10f Talk

C On Css minification

by Tj Holowaychuk, December 02, 2009 00:49

I like keeping the state ma...

F1e3ab214a976a39cfd713bc93deb10f Talk

C On Css minification

by Tj Holowaychuk, December 02, 2009 00:47

my bad, think your right. T...

F1e3ab214a976a39cfd713bc93deb10f Talk

JavaScript On Money formatting

by Tj Holowaychuk, November 26, 2009 06:59

damn, mine is twice as slow...

F1e3ab214a976a39cfd713bc93deb10f Talk

JavaScript On Money formatting

by Tj Holowaychuk, November 26, 2009 05:42

It can be done pretty easil...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
function format_money(n) {
  var buf = [], 
...

JavaScript Money formatting

by Tj Holowaychuk, November 25, 2009 23:05, 7 refactorings, tagged with money, formatting

Just needed to whip up a re...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
// 
// cssmin.c
// 
...

C Css minification

by Tj Holowaychuk, November 25, 2009 22:05, 5 refactorings, tagged with css, minification

Repo is here http://github....

F1e3ab214a976a39cfd713bc93deb10f Talk

C On LPT garland

by Tj Holowaychuk, November 18, 2009 16:39

SIGINT interrupts normally ...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
function GET($key, $default = null) {
  return $_GET[$key] || $default;
}

PHP On An easy one: traversing thr...

by Tj Holowaychuk, November 16, 2009 16:54

If only PHP did not suck so...

F1e3ab214a976a39cfd713bc93deb10f Talk

Ruby On lexer

by Tj Holowaychuk, November 13, 2009 22:27

ya an enumerator would work...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
    def get_token
      self.class.precedence.each do |token|
        if val = send(token)
...

Ruby lexer

by Tj Holowaychuk, November 13, 2009 16:41, 5 refactorings

Everything else in my lib i...

F1e3ab214a976a39cfd713bc93deb10f Talk

JavaScript On Need help with creating a loop

by Tj Holowaychuk, November 01, 2009 20:56

dont use for / in with an a...

F1e3ab214a976a39cfd713bc93deb10f Talk

C On Enumerator

by Tj Holowaychuk, October 29, 2009 20:30

Just playing around with a ...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
#include <stdio.h>
#include <stdlib.h>
...

C Enumerator

by Tj Holowaychuk, October 29, 2009 16:53, 3 refactorings

yup

F1e3ab214a976a39cfd713bc93deb10f Talk

C On C Array Implementation

by Tj Holowaychuk, October 19, 2009 21:17

ah lame. as far as i know t...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
Dice = Class({
  init: function(){
...

JavaScript On My1stJavascript: Dice roller

by Tj Holowaychuk, October 19, 2009 17:30

Check out my tiny js-oo lib...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
;(function(){
  Dice = function() {
...

JavaScript On My1stJavascript: Dice roller

by Tj Holowaychuk, October 19, 2009 17:29

Your not utilizing the OO a...

F1e3ab214a976a39cfd713bc93deb10f Talk

C On C Array Implementation

by Tj Holowaychuk, October 19, 2009 15:16

I dont know any C++ (well a...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
// 
// array.h - CKit
...

C C Array Implementation

by Tj Holowaychuk, October 19, 2009 00:24, 5 refactorings, tagged with c array

im no c pro. may be some me...

F1e3ab214a976a39cfd713bc93deb10f Talk

Ruby On Roman numeral parser

by Tj Holowaychuk, October 16, 2009 22:05

oh.. fuck.. haha I should h...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
module RomanNumeral
  
...

Ruby Roman numeral parser

by Tj Holowaychuk, October 16, 2009 18:43, 3 refactorings

little parser. I am working...

F1e3ab214a976a39cfd713bc93deb10f Talk
1
2
3
4
int
Version_compare(Version *a, Version *b) {
  return (a->major * 100 + a->minor * 10 + a->patch) - 
...

C On Version comparison

by Tj Holowaychuk, October 15, 2009 16:26

This allows for "1.0.0-alph...

F1e3ab214a976a39cfd713bc93deb10f Talk

C On Version comparison

by Tj Holowaychuk, October 15, 2009 16:24

ya thats an issue. 2.0 and ...

F1e3ab214a976a39cfd713bc93deb10f Talk