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 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
// This widget is the root of your application. |
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
""" | |
Commit with message "yo" | |
never commit untracked files | |
`git add` is user's responsibility. once added to tracker | |
has 2 settings | |
commitEvery=1 # minute | |
uploadEvery=10 # minute | |
singleDeveloper=True # default | |
works only when a `whatamIdoing` file exists and if not singleDeveloper then branch != main | |
""" |
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 |
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
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
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
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
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
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
# 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 |
NewerOlder