This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace FileTransfer | |
{ | |
class Program |
This file contains 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 tkinter as tk | |
from tkinter import ttk | |
import webbrowser | |
import sqlite3 | |
#Create database | |
db = sqlite3.connect('storagetest.db') | |
cursor = db.cursor() | |
cursor.execute('''CREATE TABLE IF NOT EXISTS content(id INTEGER PRIMARY KEY, name TEXT)''') | |
db.commit() |
This file contains 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 sqlite3 | |
conn = sqlite3.connect('dogrecord.db') | |
def createTable(): | |
conn.execute("CREATE TABLE if not exists DOG_INFO( \ | |
ID INTEGER PRIMARY KEY AUTOINCREMENT, \ | |
NAME TEXT, \ | |
GENDER TEXT, \ | |
MICROCHIP INT, \ |
This file contains 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
from tkinter import * | |
from tkinter import ttk | |
import webbrowser | |
import sqlite3 | |
#Create database | |
db = sqlite3.connect('storagetest.db') | |
cursor = db.cursor() | |
cursor.execute('''CREATE TABLE IF NOT EXISTS content(id INTEGER PRIMARY KEY, name TEXT)''') | |
db.commit() |
This file contains 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
message = "Fraq hf gur pbqr lbh hfrq gb qrpbqr guvf zrffntr" | |
def decode_entry(num) | |
if num == 32 | |
num.chr | |
elsif num < 78 | |
(num + 13).chr | |
else | |
(num - 13).chr | |
end |
This file contains 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 wx | |
import sqlite3 | |
import os | |
import datetime as dt | |
import time | |
import shutil | |
class Frame(wx.Frame): | |
def __init__(self, title): | |
wx.Frame.__init__(self, None, title=title, size=(500,250)) |
This file contains 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 wx | |
import os | |
import datetime as dt | |
import shutil | |
class Frame(wx.Frame): | |
def __init__(self, title): | |
wx.Frame.__init__(self, None, title=title, size=(300,250)) | |
panel = wx.Panel(self) |
This file contains 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
from datetime import datetime, timedelta | |
from pytz import timezone | |
#Time Format | |
fmt = "%H:%M:%S" | |
now_pacific = datetime.now(timezone('US/Pacific')) | |
print 'Portland HQ Time:', now_pacific.strftime(fmt) | |
now_eastern = now_pacific.astimezone(timezone('US/Eastern')) |
This file contains 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
from tkinter import * | |
from phones import * | |
import pickle | |
def whichSelected () : | |
print ("At %s of %d" % (select.curselection(), len(phonelist))) | |
return int(select.curselection()[0]) | |
def addEntry () : | |
phonelist.append ([nameVar.get(), phoneVar.get()]) |
This file contains 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
from tkinter import * | |
from tkinter import ttk | |
from tkinter import messagebox | |
class Feedback: | |
def __init__(self, master): | |
master.title('Explore Cali Feedback Form') | |
master.resizable(False, False) |
NewerOlder