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/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") |
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
<!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%; |
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/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 |
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
# 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) |
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
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) |
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
/* | |
* 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 |
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 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) |
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
a | |
aah | |
aahed | |
aahs | |
ab | |
abaci | |
aback | |
abaft | |
abase | |
abash |
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 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") |
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
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" |