Skip to content

Instantly share code, notes, and snippets.

View dav-s's full-sized avatar

Davis Robertson dav-s

View GitHub Profile
@dav-s
dav-s / solve.py
Created April 23, 2020 22:32
picross
from enum import Enum
from collections import defaultdict
class State(Enum):
UNKNOWN = 1
FILLED = 2
NONE = 3
OUT_OF_BOUNDS = 4
def __str__(self):
@dav-s
dav-s / Perlin.cs
Created November 16, 2018 23:30
Noise
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Perlin : MonoBehaviour {
// Use this for initialization
void Start () {
GameObject obj = GameObject.Find("Terrain");

Keybase proof

I hereby claim:

  • I am dav-s on github.
  • I am daviskr (https://keybase.io/daviskr) on keybase.
  • I have a public key whose fingerprint is EF6F DAA2 9007 734C 7624 7517 672E CCC2 45B6 577E

To claim this, I am signing this object:

# Davis Robertson
import random
# 0 Spades
# 1 Clubs
# 2 Hearts
# 3 Diamonds
# Used if cards need to be represented as strings
@dav-s
dav-s / memevote.py
Last active September 21, 2015 03:32
import httplib
import time
memes = 0
burl = "www.surveygizmo.com"
conn = httplib.HTTPConnection(burl)
while True:
try:
@dav-s
dav-s / dankvote.py
Last active September 19, 2015 20:53
import httplib
import time
burl = "www.surveygizmo.com"
conn = httplib.HTTPConnection(burl)
while True:
conn.request("GET", "/s3/polljs/2337483-DJB6S4HDQM9NATJC8E99C482B82PRZ?cookie=null")
getreq = conn.getresponse()
gresp = getreq.read()
@dav-s
dav-s / MinesweeperPlayer.java
Created April 23, 2015 02:41
A small little minesweeper implementation in Java.
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
/**
* Created by Davis Robertson on 4/22/15
*
* @author Davis Robertson
*/
public class MinesweeperPlayer {
@dav-s
dav-s / envars.bat
Created March 18, 2015 16:22
Envars
rundll32 sysdm.cpl,EditEnvironmentVariables
### Keybase proof
I hereby claim:
* I am EpicDavi on github.
* I am daviskr (https://keybase.io/daviskr) on keybase.
* I have a public key whose fingerprint is EF6F DAA2 9007 734C 7624 7517 672E CCC2 45B6 577E
To claim this, I am signing this object:
@dav-s
dav-s / run.py
Last active February 13, 2018 05:41
pd
import httplib
import time
p = "8438346"
b = "0"
a = "38392389,"
o = ""
va = "0"
cookie = "0"
url = "http%3A//usatodayhss.com/2014/poll-which-high-school-in-the-greater-houston-area-has-the-most-spirit-this-week-7"