Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
#Put into your .vimrc file
#The commands to comment a selection of text are as follows, begining with begining-of-line comments:
,# shell, perl, etc
,/ c
,> email quote
," vim
,% latex, prolog
,!...
0
1669
posted 19 years ago by yuconner
Copy the code below and place it in anywhere in your HTML code
3
1819
posted 19 years ago by yuconner
Select the last autoincrement index from the last inserted item in a table.
0
1731
posted 19 years ago by arcturus
All information: uname -a
Example: Linux hostname 2.6.15-20-k7 #1 SMP PREEMPT Tue Apr 4 19:26:13 UTC 2006 i686 GNU/Linux
0
1283
posted 19 years ago by yuconner
Examples
add that line to $HOME/.bashrc to have a permanent change
1
1568
posted 19 years ago by yuconner
Bash
Dynamic IP update (to DNS service like zoneedit or dyndns) inside a local LAN or behind a router
Useful if you are behind a router, or in a LAN, and you didn't make (or can't have) a direct ppp connection to the ISP.
Change "myweb.com" to the correct hostname
For example to update zoneedit zone:
#update_dns_ip.sh
wget -O - --http-user= --ht...
0
1461
posted 19 years ago by yuconner
Table with style as in;
http://24ways.org/examples/tables-with-style/table_columns.html
14
2903
posted 19 years ago by zensir
Shows how to create a DIV box that is scrollable and looks like a IFRAME.
6
1608
posted 19 years ago by hxseven
Read a page's GET URL variables and return them as an associative array.
----
Example for URL http://www.example.com/index.html?hello=bonjour&goodevening=bonsoir
var hash = getUrlVars();
alert(hash['hello']); // prints 'bonjour'
alert(hash...
35
13854
posted 19 years ago by Roshambo
To assert the difference in values before and after some code blocks. Save this as assert_helper.rb and include it in your test_helper.rb
1
1151
posted 19 years ago by ctran