Skip to content

Instantly share code, notes, and snippets.

import urllib.request
def getSolutionFor(i):
f = urllib.request.urlopen('http://www.entwickler-ecke.de/files/eeags2012paranuss.php?q=' + str(i))
s = str(f.read())
return s.split('\'')[1]
def saveSolutionsToFile(lowerBound, upperBound, fileName):
pass
import urllib.request
def getSolutionFor(i):
f = urllib.request.urlopen('http://www.entwickler-ecke.de/files/eeags2012paranuss.php?q=' + str(i))
s = str(f.read())
return s.split('\'')[1]
def saveSolutionsToFile(lowerBound, upperBound, fileName):
pass
import urllib.request
import concurrent.futures
lowerBound = -1
upperBound = -1
lowerBound = int(input("von :?"))
upperBound = int(input("bis :?"))
# Retrieve a single page and report the url and contents
{
"metadata": {
"language": "Julia",
"name": "Heatmap"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"metadata": {
"language": "Julia",
"name": "Heatmap_Image"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"metadata": {
"language": "Julia",
"name": "Heatmap_Image"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"metadata": {
"name": "testdrive"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@lhk
lhk / PrimeBenchmark
Created December 21, 2014 12:52
A simple Benchmark based on Primes
//============================================================================
// Name : Benchmark.cpp
// Author : Lars Klein
// Version : 0.3
// Copyright : CC
// Description : A simple benchmark based on primes
//============================================================================
#include <iostream>
#include <math.h>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lhk
lhk / tictactoe.py
Last active November 13, 2015 20:49
python tictactoe with bruteforce minmax ai
import unittest
class Game:
def __init__(self):
self.field=[[0 for x in range(3)] for y in range(3)]
def print(self):
for line in self.field:
print(str(line[0])+" "+str(line[1])+" "+str(line[2]))
print("")