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
def tetration(a, n): | |
b = 1.0 | |
for i in range(n): b = a**b | |
return b |
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 sys, os, math, time | |
from PIL import Image | |
def tetration(l, t, w, h, sw, sh, mit): | |
data = [] | |
for ky in range(sh): | |
for kx in range(sw): | |
x = l + w * kx / (sw - 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
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <algorithm> | |
#include <cstdlib> | |
#include <cmath> | |
#ifdef _MSC_VER | |
inline double get_time() | |
{ |
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 <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <algorithm> | |
#include <cstdlib> | |
#include <cmath> | |
#include <sys/time.h> | |
#include "tbb/task_scheduler_init.h" | |
#include "tbb/parallel_for.h" |
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 sys, os | |
from PIL import Image | |
def main(args): | |
if len(args) < 3: | |
print >>sys.stderr, "Usage: %s datafile imagefile" % os.path.basename(args[0]) | |
sys.exit(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
// Last One solver by nox, 14 Oct. 2011 | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <vector> | |
#include <queue> | |
#include <algorithm> | |
#include <utility> |
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
27 273 1 3 6 | |
21 128 0 2 | |
125 23 1 9 | |
117 221 0 4 5 6 | |
141 178 3 7 | |
167 178 3 7 | |
195 178 0 3 7 | |
192 110 4 5 6 8 | |
193 91 7 9 | |
151 41 2 8 |
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 sys,re | |
from urllib2 import urlopen as U, Request as R | |
from json import loads as J | |
API,URL="https://www.googleapis.com/urlshortener/v1/url",sys.argv[1] | |
if re.match('http://goo\.gl/.+',URL):print J(U(API+'?shortUrl=%s'%URL).read())['longUrl'] | |
else:print J(U(R(API,'{"longUrl":"%s"}'%URL,{'Content-Type':'application/json'})).read())['id'] |
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(r"""%s'''gzga*%%%%,hmkl*ocr*nco`fc"a8ajp*mpf*a+\\0+.p%%%s'kormpv"mq.`cqg469gzga*`cqg46,fgamfgqvpkle*mq,rcvj,`cqglcog*]]dkng]]+Y8/1_++')))%%+++''')))"""%(lambda _:(_,_))("exec(''.join(map(lambda _:chr(ord(_)^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
// mandelbrot.scala with actor by nox, 2011.07.09 | |
import scala.actors._, Actor._ | |
import scala.annotation.tailrec | |
import java.io.FileOutputStream | |
import java.awt.image.BufferedImage | |
import java.awt.Color | |
import javax.imageio.ImageIO | |
import scala.testing.Benchmark |
OlderNewer