This file contains hidden or 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
#include <stdio.h> | |
void foo (int *p) | |
{ | |
printf ("\t1. p is pointing to: %p\n", p); | |
p = 0; | |
printf ("\t2. p is pointing to: %p\n", p); | |
} |
This file contains hidden or 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
# | |
## | |
setopt auto_pushd | |
setopt PUSHD_IGNOREDUPS | |
setopt PUSHD_SILENT | |
setopt no_beep |
This file contains hidden or 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
#!/usr/bin/env python | |
import httplib, urllib | |
params = urllib.urlencode( { | |
'characterID': 260629291, | |
'userid': 435411, | |
'apikey': '70E6A6C6FF04D9BBC04E4A08E8082FE2E8BEDD84B6A4CD4A9AE1C72E0B22CD0', | |
} ) | |
headers = { "Content-type": "application/x-www-form-urlencoded" } |
This file contains hidden or 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
var http = require('http'); | |
var sys = require("sys"); | |
var content = ""; | |
var server = http.createServer(function(req, res) { | |
var connection = http.createClient(80, "api.eveonline.com"); | |
var request = connection.request('GET', "/char/AccountBalance.xml.aspx?characterID=206029291&userid=435410&apikey=70E86A6CFF04D9BBC04E4A08E8082FE2E8BEDD84B6A4CD4A9AE1C72E0B22CD0", {"host" : "api.eve-online.com"}); | |
request.addListener("response", function(response){ | |
var responseBody = ""; | |
response.setEncoding("utf8"); |
This file contains hidden or 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
PYTHON SUCKS! |
This file contains hidden or 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
python for fuckup: | |
for i in range(1, 5): | |
print i | |
bla(i) | |
//code (intentionally) outside of your for loop | |
x = x * 5; | |
if you fuckup your whitespace/tabs in the line with "bla(i);" (line 5) |
This file contains hidden or 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
#include <stdio.h> | |
#include <vector> | |
class Vector2D | |
{ | |
public: | |
int getX (void); | |
void setX (int _x); | |
Vector2D (); |
NewerOlder