Skip to content

Instantly share code, notes, and snippets.

you = "Frog"
me = "Frog"
you == me # True
compress_url:
function () {
var currentPos = 0;
while ($('status').value.indexOf("http://", currentPos) != -1)
{
var firstPosition = $('status').value.indexOf("http://", currentPos);
var endPosition = $('status').value.indexOf(" ", firstPosition);
if (endPosition == -1) {
if ($('status').value.charAt(document.getElementById('status').selectionEnd - 1) == '.') {
var endPosition = document.getElementById('status').selectionEnd - 1;
class GistTest
def test(foo='bar')
end
end
Testing Gist
def is_awesome?
name == 'Shay Arnett'
end
This is a test file. You don't really need to read it.
We couldn’t find that file to show.
xxx
sdfsdf
sd
fs
df
sdf
sd
fs
df
from socket import *
print "*** Client - Welcomato nella chat a turni ***\n"
IP = 'localhost'
PORT = 4000
ADS = (IP, PORT)
tcpsoc = socket(AF_INET, SOCK_STREAM)
tcpsoc.connect(ADS)
@hchoroomi
hchoroomi / hi.rb
Created July 22, 2008 00:21 — forked from anonymous/hi.rb
puts "error" if __FILE__ = $0