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 python | |
| # -*- coding: utf-8 -*- | |
| import json | |
| from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser | |
| from time import localtime | |
| import plotly.graph_objects as go | |
| def read_from(fpath): |
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
| [ | |
| { "keys": [":"], "type": "function", "command": "enter_command_line_mode" }, | |
| { "keys": ["TAB","l"], "type": "function", "command": "focus_next" }, | |
| { "keys": ["SHIFT_TAB","h"], "type": "function", "command": "focus_previous" }, | |
| { "keys": ["UP","k"], "type": "function", "command": "move_up" }, | |
| { "keys": ["DOWN","j"], "type": "function", "command": "move_down" }, | |
| { "keys": ["PAGE_UP","{"], "type": "function", "command": "page_up" }, | |
| { "keys": ["PAGE_DOWN","}"], "type": "function", "command": "page_down" }, | |
| { "keys": ["ENTER"], "type": "function", "command": "activate" }, | |
| { "keys": ["DELETE", "BACKSPACE"], "type": "function", "command": "delete" }, |
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
| # Function for macOS alias | |
| cda () { | |
| thePath=`osascript <<EOD | |
| set toPath to "" | |
| tell application "Finder" | |
| set toPath to (POSIX file "$1") as alias | |
| set theKind to kind of toPath | |
| if theKind is "Alias" then | |
| set toPath to ((original item of toPath) as alias) | |
| end if |
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
| #!/bin/bash | |
| time_run=2940 # 49 mins in secs | |
| time_rest=60 | |
| func="minergate-cli --user <your.email@server.suffix> --<target-currency>" | |
| #Loop and record | |
| while true; do | |
| start_time=`date +%Y/%m/%d\ %H:%m:%s` | |
| timeout $time_run $func |
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 python | |
| # -*- coding: utf-8 -*- | |
| # version: 0.1 | |
| import requests | |
| from bs4 import BeautifulSoup | |
| import pandas as pd | |
| def download_from_web(url: str) -> str: | |
| ''' |
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 python | |
| # -*- coding: utf-8 -*- | |
| import datetime | |
| import os | |
| import shutil | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| from matplotlib.offsetbox import AnchoredText |
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
| IN: DictionaryLookup[Repeated[_, {3}]] | |
| OUT: {"aah", "ABC", "Abe", "abs", "ABS", "ace", "act", "Ada", "add", \ | |
| "ado", "ads", "adz", "aft", "age", "ago", "aha", "aid", "ail", "aim", \ | |
| "air", "aka", "alb", "ale", "Ali", "all", "alp", "amp", "Amy", "Ana", \ | |
| "and", "Ann", "ans", "ant", "any", "AOL", "ape", "apt", "arc", "are", \ | |
| "ark", "arm", "art", "Art", "ash", "ask", "asp", "ass", "ate", "ATP", \ | |
| "auk", "Ava", "Ave", "awe", "awl", "awn", "axe", "aye", "AZT", "baa", \ | |
| "bad", "bag", "bah", "ban", "bap", "bar", "Bar", "bat", "bay", "BBC", \ | |
| "bed", "bee", "beg", "Ben", "bet", "bey", "bib", "Bic", "bid", "big", \ |
NewerOlder