Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
going to use twitterlocal to play around a bit with pygooglechart.
0
1320
posted 17 years ago by mandric
In FF the page will "jump around" when moving from page to page due to the scrollbars. Find out how to make that stop.
2
1880
posted 17 years ago by neal_grosskopf
I was looking for a way to post new articles remotely, and cross domain. I only needed to post new articles, not read, edit or anything like that, so I did not need a whole GUI or any other Interface like those WP-Desktop-clients. I wrote this script...
0
1582
posted 17 years ago by j_junyent
Given an an associative list ((k1 . v1) (k2 . v2) ... (kn . vn)), with possibly equal values for ki, it returns another alist where all cells have distinct keys and where values originally associated to the same key have been grouped as a list in the...
1
3589
posted 17 years ago by jarnaldich
After having trouble with xss and .getJSON() I wrote this. Solved my problems so here you go.
3
1342
posted 17 years ago by twoism
Slim down the size of your javascript by using these custom functions.
2
1237
posted 17 years ago by neal_grosskopf
Any time I make PHP applications that interact with a database, I use this script. It generates one or more self-populating "View Objects" (a class that represents a single record from a DB). For example, rather than access a MySQL record-set by arra...
1
1654
posted 17 years ago by donkawechico
Gets the present time and date in PHP and formats it for input into a MYSQL database DATETIME field
1
1067
posted 17 years ago by TimFletcher
This gets the current page addr. and send it...
Modify form action="" to send values to proper mail function - or - class.
3
1666
posted 17 years ago by skywalker
This is an example of how to search within a Ferret index (based upon http://kasparov.skife.org/blog/src/ruby/ferret.html).
1
1369
posted 17 years ago by narkisr
This is a simple example for building a search index with the Ferret library (based upon http://kasparov.skife.org/blog/src/ruby/ferret.html).
1
1540
posted 17 years ago by narkisr
Very minimal. Some homegrown API seeds from a while ago. Just posting for use as some php examples.
0
1425
posted 17 years ago by mandric
Not sure why I'm posting this madness. Bash can be good for some things though. I think part of the reason I used bash was because I was calling alot of external commands.
0
1458
posted 17 years ago by mandric
Changing default settings
The defaults for the ssh-related commands can be altered for each account in a configuration file ~/.ssh/config (there is also a system-wide file, usually /etc/ssh/ssh_config). Each entry starts with a Host keyword. You c...
0
1356
posted 17 years ago by cczona