PHP On horrific html

by Nathan, April 13, 2010 13:24

Are you asking us to fix th...

D5145c421cd25af6fa577c15219add90 Talk

Ruby On bluetooth Device class

by Nathan, April 07, 2010 08:34

I like what you've done wit...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
class Device
  @@all = Array.new
  
...

Ruby bluetooth Device class

by Nathan, April 06, 2010 09:50, 2 refactorings, tagged with bluetooth, class methods

I've put together a quick r...

D5145c421cd25af6fa577c15219add90 Talk
1
$('#my-element').text($('#my-element').html());

JavaScript On Escape HTML

by Nathan, March 31, 2010 13:59

D'oh, just realised you can...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
function encodeHTML(html)
{
  encoded = encodeURI(html);
...

JavaScript Escape HTML

by Nathan, March 31, 2010 13:48, 2 refactorings

All HTML special characters...

D5145c421cd25af6fa577c15219add90 Talk

Ruby On Create database records

by Nathan, March 19, 2010 13:20

Refactoring isn't really me...

D5145c421cd25af6fa577c15219add90 Talk

JavaScript On Rotate co-ordinates

by Nathan, March 08, 2010 08:51

Great. It passes my unit te...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
this.rotate = function (antiClockwise)
{
  if (antiClockwise)
...

JavaScript Rotate co-ordinates

by Nathan, March 05, 2010 15:49, 5 refactorings, tagged with co-ordinates, rotate, matrix

A nice and fun one here. I ...

D5145c421cd25af6fa577c15219add90 Talk

JavaScript On Search a string with wildcards

by Nathan, March 03, 2010 06:54

Thanks for that DPM. I had ...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
function matches(matchString,list)
...

JavaScript Search a string with wildcards

by Nathan, March 03, 2010 00:48, 5 refactorings

I want to have a string whi...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
rightOffset = 20;
topOffset = 20;
               
...

JavaScript Center text along a sloping...

by Nathan, February 26, 2010 23:46, 1 refactoring

I've written a countdown to...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
function changeColours(headerClassColour,contentClassColour,bannerDivColour)
{
	document.getElementById("content").className = contentClassColour + "-content";
...

JavaScript Colour changer

by Nathan, February 19, 2010 13:55, 2 refactorings

Intended to give a create a...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
<?php
function get_title($html_page)
{
...

PHP Get Title of HTML page

by Nathan, February 09, 2010 14:02, 3 refactorings, tagged with html, title, regular expression

Extract and return the bits...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
<?php
function get_handle($type='!') // $type set to something invalid, so that user explicitly has to declare it.
{
...

PHP On Return the appropriate file...

by Nathan, February 09, 2010 10:17

Thanks for that. It does ma...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
<?php
function get_handle($type)
{
...

PHP Return the appropriate file...

by Nathan, February 09, 2010 00:35, 2 refactorings, tagged with if else, file handle

This method feels like it's...

D5145c421cd25af6fa577c15219add90 Talk

VB.NET On Many-to-many list box inter...

by Nathan, February 03, 2010 11:16

Oh, should have said its in...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
Private Sub cmdAddAmbassador_Click()
' Run when the user clicks the "<" button to add an ambassador to an event

...

VB.NET Many-to-many list box inter...

by Nathan, January 25, 2010 13:56, 2 refactorings, tagged with microsoft access, many-to-many, vba

VBA, not VB.NET.

This is...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
#!/bin/ruby

characters_to_use="ABCD"
...

Ruby brute-force password cracker

by Nathan, October 10, 2008 22:29, 5 refactorings, tagged with password, brute-force, crack, combination, permutation

Just a quick-and-dirty for ...

D5145c421cd25af6fa577c15219add90 Talk