Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
you = "Frog" | |
me = "Frog" | |
you == me # True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GistTest | |
def test(foo='bar') | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Testing Gist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_awesome? | |
name == 'Shay Arnett' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a test file. You don't really need to read it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xxx | |
sdfsdf | |
sd | |
fs | |
df | |
sdf | |
sd | |
fs | |
df |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "error" if __FILE__ = $0 |