Skip to content

Instantly share code, notes, and snippets.

@jacobmischka
jacobmischka / test.py
Created August 13, 2015 04:55
python
#!/usr/bin/python
from gi.repository import Gtk
# from twitter import *
# import os.path
# import webbrowser
class MainWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="Hello World")
self.button = Gtk.Button(label="Button")
<!DOCTYPE html>
<html>
<head>
<title>Be right back.</title>
<link href="//fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
<style>
html, body {
height: 100%;
@jacobmischka
jacobmischka / test.py
Created August 15, 2015 01:17
okay...
#!/usr/bin/python
from gi.repository import Gtk, GdkPixbuf
# this will be a twitter thing and objects will be created there of course
class Account():
def __init__(self, avatar, handle):
self.avatar = avatar
self.handle = handle
# other things
# class OAuthWindow(Gtk.Window):
# def __init__(self):
# Gtk.Window.__init__(self, title="Enter PIN")
# self.set_size_request(200, 100)
# vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=6)
# self.add(vbox)
# self.entry = Gtk.Entry()
# self.entry.set_placeholder_text("PIN")
# self.entry.connect("activate", Gtk.main_quit)
# vbox.pack_start(self.entry, True, True, 0)
class TweetModel(QAbstractTableModel):
def __init__(self):
super().__init__()
self.tweets = {}
self.indices = []
def rowCount(self, parent):
if parent.isValid():
return 0
return len(self.tweets)
/*
* Copyright 2013 The Board of Trustees of The Leland Stanford Junior University.
* All Rights Reserved.
*
* See the NOTICE and LICENSE files distributed with this work for information
* regarding copyright ownership and licensing. You may not use this file except
* in compliance with a written license agreement with Stanford University.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
@jacobmischka
jacobmischka / rs.py
Created August 29, 2015 21:33
rs name checker
import requests
from bs4 import BeautifulSoup
names = ["allie", "panty", "sici", "alison"]
token = "N2VOTGc2VW5zNExoZldEQ2dJTzJPajY3d05ZblM5ejNkaWhkMXEwSw=="
data = {"_token": token}
for rsn in names:
data["rsn"] = rsn
r = requests.post("http://178.62.54.243/name-check", data=data)
if "404 - Page not found" in r.text:
print(rsn)
@jacobmischka
jacobmischka / fiveorless.txt
Created August 29, 2015 21:50
fiveorless.txt
a
aah
aahed
aahs
ab
abaci
aback
abaft
abase
abash
@jacobmischka
jacobmischka / rs.py
Created August 29, 2015 21:55
asdfk
import requests
from bs4 import BeautifulSoup
token = "N2VOTGc2VW5zNExoZldEQ2dJTzJPajY3d05ZblM5ejNkaWhkMXEwSw=="
data = {"_token": token}
with open("fiveorless.txt") as words_file, open("availableorbanned.txt", "w") as out_file:
for rsn in words_file:
data["rsn"] = rsn
r = requests.post("http://178.62.54.243/name-check", data=data)
if "404 - Page not found" in r.text:
out_file.write(rsn+"\n")
@jacobmischka
jacobmischka / config.cfg
Created October 14, 2015 01:43
CSGO Config
unbindall
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"