Skip to content

Instantly share code, notes, and snippets.

-- lick = require "lick"
-- lick.reset = true
function love.load()
love.graphics.setBackgroundColor(139, 137, 137)
love.graphics.setColor(205, 201, 201)
circle = {}
circle.x = 1
circle.y = 0
@cybojanek
cybojanek / 8_queens.py
Created September 15, 2013 05:25
Solve and print all 8 (or more) queens problems using backtracking
# Author: cybojanek
# Board size
SIZE=8
# ASCI value for queen
QUEEN='Q'
def number_to_row_permutation(n):
"""Retun the nth permutation of a row
import csv
import urllib
import urllib2
args = {
"title": "Special:Ask",
"p[format]": "csv",
"order_num": "ASC",
"p[limit]": "100",
"eq": ["yes", "yes"],
#!/usr/bin/env python
from twisted.internet.protocol import Protocol, Factory
from twisted.internet import reactor
from twisted.protocols.basic import LineReceiver
from uuid import uuid1 as uuid
import time
START_CHUNK_SIZE = 10 ** 6
@cybojanek
cybojanek / skeiner.c
Last active December 15, 2015 16:19
OMP Cracker
#include <omp.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "SHA3api_ref.h"
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>