Public Domain Scraps
Scrap | User | Syntax | License | Created | Updated |
---|---|---|---|---|---|
null matching in Scala
some code examples demonstrating null matching (and not matching). Taken from http://daily-scala.blogspot.com/2010/01/matching-nulls.html
|
anakryiko | Scala | Public Domain | 13 Jan 2010 | 12 years, 5 months ago |
user24 | PHP | Public Domain | 11 Jan 2010 | 12 years, 5 months ago | |
a REST helper class for java
Simple wrapper around HTTP GET and POST's to send and receive JSON data
|
flyswat | Java | Public Domain | 10 Jan 2010 | 12 years, 5 months ago |
GImmick
Used to create a list of bugs and features, and then close them.
|
ink-jet | Python | Public Domain | 16 Jan 2010 | 12 years, 5 months ago |
Transpose of an nxm matrix using Scheme
This code takes an input matrix as a list of lists, and outputs the transpose of the matrix as a list ...
|
vpoddar88 | Scheme | Public Domain | 10 Jan 2010 | 12 years, 5 months ago |
xor in Haskell
`xor` function/operator in Haskell
|
jwodder | Haskell | Public Domain | 12 Jan 2010 | 12 years, 5 months ago |
Transpose of an nxm matrix using SML and Pattern Matching
This code takes an input matrix as a list of lists, and outputs the transpose of the matrix as a list ...
|
vpoddar88 | Scheme | Public Domain | 10 Jan 2010 | 12 years, 5 months ago |
C# Find and Replace Text with Regex
Find and Replace Text with Regex
|
erbere | C# | Public Domain | 13 Jan 2010 | 12 years, 5 months ago |
Fix Broken Links
Updates redirected links, reports 404s. Beware, this is sometimes interpreted as a malicious robot, so it's important to check the output.
|
alan | Python | Public Domain | 09 Dec 2009 | 12 years, 5 months ago |
anakryiko | Sql | Public Domain | 04 Oct 2010 | 11 years, 9 months ago | |
PeakFinder
Finds peaks and peak widths in sampled function data
|
victorliu | C++ | Public Domain | 10 Jan 2010 | 12 years, 5 months ago |
Calculate X,Y Coordinates with Distance and Angle Sensor Data for iRobot Create Command Module
taken from [http://groups.google.com/group/irobot-create-forum/web/calculate-x-y-coordinates-with-distance-and-angle-sensor-data]
|
anakryiko | C | Public Domain | 16 Jan 2010 | 12 years, 4 months ago |
jwodder | Haskell | Public Domain | 13 Jan 2010 | 12 years, 5 months ago | |
Cocktail Sort
Cocktail Sort in Ruby
|
alan | Python | Public Domain | 24 Nov 2009 | 12 years, 5 months ago |
Dining Philosophers Problem
Some work from college
|
jmscharff2 | Java | Public Domain | 11 Jan 2010 | 12 years, 5 months ago |
Palindrome using lists
Given a sentence, this code finds the palindrome or the sentence
|
vpoddar88 | Scheme | Public Domain | 10 Jan 2010 | 12 years, 5 months ago |
It's All Text
Workaround for using the *It's All Text* Firefox plugin in Mac OS
|
alan | Bash | Public Domain | 15 Dec 2009 | 12 years, 5 months ago |
Reverse Forth stack
Reverse the top n elements of the stack in Forth
|
jwodder | Plain Text | Public Domain | 12 Jan 2010 | 12 years, 5 months ago |
convio.py
Class for interacting with Convio REST API
|
alan | Python | Public Domain | 12 Jan 2010 | 12 years, 5 months ago |
My .vimrc
.vimrc as of 9/9/2011
|
alan | Vim | Public Domain | 29 Oct 2010 | 10 years, 9 months ago |
Bubble sort
Learning implementation of bubble sort in Ruby
|
alan | Ruby | Public Domain | 15 Dec 2009 | 12 years, 5 months ago |
Clean DB
Sanitizes a database
|
alan | Python | Public Domain | 24 Nov 2009 | 12 years, 5 months ago |
PHP MySQLi DB_Conn Wrapper Class
Simple MySQLi connection handler class for PHP
|
chbrules | PHP | Public Domain | 10 Jan 2010 | 12 years, 5 months ago |
Preprocess HTML in Vim
Vim script for normalizing HTML
|
alan | Vim | Public Domain | 15 Dec 2009 | 12 years, 5 months ago |
Twitter Python
Description
|
alan | Python | Public Domain | 21 Nov 2009 | 12 years, 5 months ago |
foo(book):
Just for screenshots
|
alan | Python | Public Domain | 23 Dec 2009 | 12 years, 5 months ago |
Random Number Generator
Random Number Generator ahk autohotkey
|
jon | Text | Public Domain | 10 Jan 2010 | 12 years, 5 months ago |
modInverse.c
Calculate the multiplicative inverse of `a` modulo `n`
|
jwodder | C | Public Domain | 13 Jan 2010 | 12 years, 5 months ago |
C# Serialization for xml
C# Tutorial - XML Serialization
|
erbere | ABAP | Public Domain | 21 Jan 2010 | 12 years, 5 months ago |
Mutterings
Example code from Why's Poignant Guide to Ruby
|
alan | Ruby | Public Domain | 15 Dec 2009 | 12 years, 5 months ago |
Test
Testing Java
|
neoxic | Java | Public Domain | 11 Jan 2010 | 12 years, 5 months ago |
Distance
Simple application of the Pythagorean Theorem in Python
|
alan | Python | Public Domain | 15 Dec 2009 | 12 years, 5 months ago |
Random CSV processor
Nothing special, just a few reminders
|
alan | Python | Public Domain | 20 Aug 2010 | 11 years, 10 months ago |
Change
Given an amount of money (in pennies), gives the coins to make it
|
ink-jet | Lua | Public Domain | 25 Jan 2010 | 12 years, 5 months ago |
Internet Explorer Settings Script
This changes the IE settings, read the comments to understand which values you need to use. Some are numbers such as ...
|
dfnkt | Batch | Public Domain | 25 Jan 2011 | 11 years, 5 months ago |
Reading STDOUT
Because I can never remeber how to do this
|
alan | Python | Public Domain | 18 Feb 2010 | 12 years, 4 months ago |
Ugly jQuery workaround for Django admin
Hides dependent objects in admin deletion warning. Assumes that Thing.object_set.clear() has been called in a pre_delete signal or something.
|
alan | Javascript | Public Domain | 03 Dec 2010 | 11 years, 5 months ago |
Set an SQL column to 'NOT NULL'
I always forget how to do this
|
alan | Sql | Public Domain | 22 Apr 2010 | 12 years, 2 months ago |
Type coercion in JavaScript
Induces a NaN value if the variable is not a number.
|
alan | Javascript | Public Domain | 21 Jun 2010 | 12 years ago |
jwodder | Plain Text | Public Domain | 13 Jan 2010 | 12 years, 5 months ago | |
parseEscapes
Parse common escape sequences in a string
|
jwodder | C | Public Domain | 11 Jan 2010 | 12 years, 5 months ago |
GuestResponse
Custom model to handle a guests response for an invites system
|
dfnkt | C# | Public Domain | 22 Dec 2010 | 11 years, 6 months ago |
DB class for PHP
Simple DB class for php. Just DB::setPdoObject($pdo) and then DB::query()
|
des | PHP | Public Domain | 17 Jan 2010 | 12 years, 5 months ago |
tcpConnect.c
Create a TCP connection in POSIX C
|
jwodder | C | Public Domain | 15 Jan 2010 | 12 years, 5 months ago |
Tweak varchar length in psql without nuking content
Tweak varchar length in psql without nuking content
|
alan | Sql | Public Domain | 28 Apr 2010 | 12 years, 2 months ago |
ungets
Pushes a NUL-terminated string back into an input stream; returns the number of characters ungotten
|
jwodder | C | Public Domain | 11 Jan 2010 | 12 years, 5 months ago |
shuffleArray
Randomly rearrange the contents of an array
|
jwodder | C | Public Domain | 11 Jan 2010 | 12 years, 5 months ago |
bellrand.c
Randomly generate a number with a normal distribution
|
jwodder | C | Public Domain | 12 Jan 2010 | 12 years, 5 months ago |
vimRC
The vimrc file i've been lugging around/building for the past couple years.
|
mmhnef | Vim | Public Domain | 11 Jan 2010 | 12 years, 5 months ago |
Exponentiation in Forth
Integer exponentiation in Forth
|
jwodder | Plain Text | Public Domain | 12 Jan 2010 | 12 years, 5 months ago |
Page:
1 2 3 4 »