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
<html> | |
<head> | |
</head> | |
<body> | |
<pre> | |
<?php | |
$GH_BASE="http://github.com/api/v2/json/"; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $GH_BASE . "repos/show/JAChapmanII"); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
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
#!/bin/sh | |
cd /tmp | |
TMP="`mktemp -d`" | |
cd $TMP | |
git clone -l $GL_REPO_BASE_ABS/$GL_REPO | |
rm -rf /srv/http/* | |
mv $GL_REPO/* /srv/http/ | |
chmod -R go+rx /srv/http/* |
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
[24/Apr/2011 17:20:44] "POST /json/textchunk/submit/ HTTP/1.1" 200 118 | |
Traceback (most recent call last): | |
File "/usr/lib/pymodules/python2.6/django/core/servers/basehttp.py", line 279, in run | |
self.result = application(self.environ, self.start_response) | |
File "/usr/lib/pymodules/python2.6/django/core/servers/basehttp.py", line 651, in __call__ | |
return self.application(environ, start_response) | |
File "/usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py", line 241, in __call__ | |
response = self.get_response(request) | |
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 115, in get_response | |
return debug.technical_404_response(request, e) |
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
66.249.66.185 - - [05/Jul/2011:01:07:30 -0700] "GET /code/detc/.git/objects/info/ HTTP/1.1" 404 1097 | |
67.220.78.114 - - [05/Jul/2011:01:33:49 -0700] "GET /admin/config.php HTTP/1.1" 404 1082 | |
87.250.255.243 - - [05/Jul/2011:02:10:47 -0700] "GET / HTTP/1.1" 200 7355 | |
66.249.66.185 - - [05/Jul/2011:02:22:47 -0700] "GET /code/detc/.git/refs/heads/ HTTP/1.1" 404 1097 | |
66.249.66.185 - - [05/Jul/2011:03:38:13 -0700] "GET /code/detc/.git/refs/heads/master HTTP/1.1" 404 1097 | |
66.249.66.185 - - [05/Jul/2011:04:40:16 -0700] "GET /code/detc/.git/refs/remotes/origin/ HTTP/1.1" 404 1097 | |
71.79.168.23 - - [05/Jul/2011:07:40:37 -0700] "GET / HTTP/1.1" 200 7355 | |
71.79.168.23 - - [05/Jul/2011:07:40:37 -0700] "GET /style/main.css HTTP/1.1" 200 2170 | |
71.79.168.23 - - [05/Jul/2011:07:40:37 -0700] "GET /favicon.ico HTTP/1.1" 404 1093 | |
72.14.183.116 - - [05/Jul/2011:07:40:50 -0700] "CONNECT 178.79.134.133:6667 HTTP/1.0" 200 7389 |
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
import java.awt.Graphics; | |
import javax.swing.JComponent; | |
import javax.swing.JFrame; | |
class rect extends JComponent { | |
public static void main(String[] args) { | |
JFrame window = new JFrame(); | |
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
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
EXEC=clock | |
CXXFLAGS= | |
LDFLAGS=-lsfml-graphics -lsfml-window -lsfml-system | |
#LFLAGS+=-lGL | |
ifdef profile | |
CXXFLAGS+=-pg | |
endif |
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 <unistd.h> | |
#include <stdio.h> | |
#include <string.h> | |
int main(int argc, char **argv) { | |
printf("argv[1]: %s\n", argv[1]); | |
// this is this function, not the subproc | |
int outOfThis[2], intoThis[2]; | |
if((pipe(outOfThis) < 0) || (pipe(intoThis) < 0)) | |
return -2; |
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 <cmath> | |
class Vector { | |
public: | |
Vector() : x(0), y(0), z(0) { | |
} | |
Vector(double iX, double iY, double iZ) : x(iX), y(iY), z(iZ) { | |
} | |
double magnitude() const { |
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
public class Rublets { | |
public static void main(String[] args) { | |
Rublets.Test t = new Rublets.Test(); | |
t.run(); | |
} | |
public static class Test { | |
public void run() { | |
System.out.println("Hello"); | |
} |
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> | |
// idx = p q o | |
// arr = [ ] | |
// { } { } | |
// s l arr[o] | |
// | |
// returns array slice, sum, leftover | |
// | |
// if(arr[o] + l >= 0) |
OlderNewer