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
module Main exposing (..) | |
import Html exposing (Html, button, div, text) | |
import Html.Events exposing (onClick) | |
import Http | |
import Json.Decode as Decode | |
main = | |
Html.program |
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 websockets as faker |
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
# code from snarky.ca, making my own debugger cuz pdb doesn't halt time | |
from debugger import db # see gist named debugger.py | |
import datetime | |
import heapq | |
import types | |
import time | |
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 shutil | |
import inspect | |
prompt = lambda: input('debug>>> ') | |
disp_width = shutil.get_terminal_size().columns | |
def words_gen(lst, chunk): | |
ans = list() | |
while True: | |
try: |
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 copy | |
import hashlib | |
from lesspass__renderPwd import render_password | |
DEFAULT_PROFILE = { | |
"site": "", | |
"login": "", | |
"options": { | |
"uppercase": True, |
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
from urllib.request import urlretrieve | |
title = "" | |
with open("youtube-urls.txt", mode='rt') as i: | |
for url in i: | |
urlretrieve(url, "temp.txt") | |
with open("temp.txt", mode="rt") as t: | |
con = t.read() | |
kv = con.split("&") |
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
zcnave | |
zcnave | |
Ritz | |
bull.bull |
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 trunklucator | |
import json | |
#You can change this format in frontend part. | |
#Current format - (label text, returning value, key code for shortcut) | |
META = {"buttons":[('Cat (A)', 1, 65), ('Dog (X)', 0, 88), ('Skip (Enter)', -1, 13)]} | |
sys_stdin = [ | |
'{"html":"<img src=\\"/data/10005.jpg\\">", "file":"10005.jpg"}', | |
'{"html":"<img src=\\"/data/10006.jpg\\">", "file":"10006.jpg"}', |
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
# python3.6 -m doctest algebraic_data_type.py | |
""" | |
A practice that implement algebraic data type in Python. | |
> data Maybe a = Just a | Nothing | |
Usage of `Maybe`: | |
>>> Just(3) |
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/env python3 | |
import subprocess | |
import json | |
import os | |
from pathlib import Path | |
import requests | |
from requests.compat import urljoin |