To run:
python3 -m pip install websockets
python3 simple_websocket_server.py
Then in another terminal, run
To run:
python3 -m pip install websockets
python3 simple_websocket_server.py
Then in another terminal, run
[package] | |
name = "keccak-test" | |
version = "0.1.0" | |
authors = ["Michael Recachinas <[email protected]>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
tiny-keccak = { version = "2.0", features = ["cshake", "kmac"] } |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
from __future__ import print_function | |
import urllib2 | |
import httplib | |
from bs4 import BeautifulSoup, SoupStrainer | |
import string | |
import time | |
def get_wiki(link): | |
try: |
extension String { | |
subscript(i: Int) -> Character { | |
return self[index(startIndex, offsetBy: i)] | |
} | |
subscript(r: Range<Int>) -> String { | |
return substring(with: index(startIndex, offsetBy: r.startIndex)..<index(startIndex, offsetBy: r.endIndex)) | |
} | |
} |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim:sw=4:sts=4:et | |
import math | |
import locale | |
def calc_taxes(annual_salary, plan, filing): | |
filing_plan = plan[filing] | |
taxes = 0 | |
for salary_range in filing_plan: |
#!/usr/bin/env python | |
# vim:sw=4:sts=4:et | |
import bs4 | |
import urllib2 | |
import httplib | |
import datetime | |
def parse_html(html_str, now): | |
"""Parses HTML from OPM's current status website to return open/close | |
// First Topological Sort in Apple's new language Swift | |
// Updated on 10/30/2016 to account for the newest version of Swift (3.0) | |
// Michael Recachinas | |
enum TopologicalSortError : Error { | |
case CycleError(String) | |
} | |
/// Simple helper method to check if a graph is empty | |
/// - parameters: | |
/// - dependency_list: a `Dictionary<String, [String]>` containing the graph structure |
// First Brainf*** Interpreter in Swift | |
import Cocoa | |
func input() -> String { | |
var keyboard = NSFileHandle.fileHandleWithStandardInput() | |
var inputData = keyboard.availableData | |
return NSString(data: inputData, encoding:NSUTF8StringEncoding) | |
} |