Skip to content

Instantly share code, notes, and snippets.

View eskatos's full-sized avatar
⚒️
Crafting software

Paul Merlin eskatos

⚒️
Crafting software
View GitHub Profile
public class ThreadedPrimeNumbersSeeker
extends Thread
{
private static final int ceiling = 100;
private static final int interval = 1000;
private static final int delay = 100;
public int count = 0;
public int current = 2;
public class PrimeNumbersSeeker
{
private static final int ceiling = 100;
private static final int delay = 100;
public static void main( String[] args )
{
new PrimeNumbersSeeker().seek();
}
#!/usr/bin/perl
use CGI;
use File::Tail;
print "Content-type: text/html\n\n";
$| = 1; #set auto flush on
# hardcode filename
@eskatos
eskatos / webkit.py
Created May 20, 2011 15:36
simple pyqt4 webview
#!/usr/bin/env python
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *
app = QApplication(sys.argv)
web = QWebView()
web.load(QUrl("http://google.fr"))