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
#!/usr/bin/env bash | |
exists () { | |
type "$1" >/dev/null 2>/dev/null | |
} | |
if exists "psql"; then | |
PSQL=psql | |
else | |
for v in $(seq 17 14); do |
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
class Currency: | |
_currencies = {} | |
def __init__(self, code, symbol, name): | |
self.code = code.upper() | |
self.symbol = symbol | |
self.name = name | |
Currency.register(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
import xchat | |
__module_name__ = "* epx L" | |
__module_version__ = "0.1.0" | |
__module_description__ = "Ensina como usar /clear" | |
def clear_cb(word, word_eol, userdata): | |
ctx = xchat.get_context() | |
ctx.command("me acha que limpar a tela eh para os fracos!") |
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 time | |
from datetime import datetime | |
class Clock: | |
def now(self): | |
return datetime.now() | |
class Timer: | |
# or a simpler alternative... |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<rss version="2.0" | |
xmlns:content="http://purl.org/rss/1.0/modules/content/" | |
xmlns:wfw="http://wellformedweb.org/CommentAPI/" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:atom="http://www.w3.org/2005/Atom" | |
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" | |
xmlns:slash="http://purl.org/rss/1.0/modules/slash/" | |
xmlns:georss="http://www.georss.org/georss" | |
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" |
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
$ GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 poetry update -vvv | |
Using virtualenv: [redacted]/poetry/bugreport/.venv | |
Updating dependencies | |
Resolving dependencies... | |
1: fact: bugreport is 0.1.0 | |
1: derived: bugreport | |
0: Duplicate dependencies for grpcio | |
0: Different requirements found for grpcio (^1.46.0) with markers platform_machine != "arm64" and grpcio (1.46.1) with markers platform_machine == "arm64". | |
1: Version solving took 12.312 seconds. | |
1: Tried 1 solutions. |
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
{ | |
"meta": { | |
"page": { | |
"offset": 0, | |
"limit": 25, | |
"count": 1, | |
"total": 1 | |
}, | |
"filter": { | |
"identifiers": { |
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
>>> d1 = d2 = { | |
'name': 'Osvaldo', | |
'address': { | |
'street': 'Rua Goiania', | |
'number': '1597', | |
'complement': 'sob 34' | |
} | |
} | |
>>> patch = { |
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
function highlightWords() { | |
wordList = ["obséquio", "amplexos", "mormente", "vós"]; | |
content = DocumentApp.getActiveDocument().getBody(); | |
wordList.forEach((word) => { | |
let range = content.findText("(?i)" + word); | |
let element = range.getElement(); | |
element.asText().setBackgroundColor("#ff0000"); | |
}) | |
} |
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
| neumann | johnathafelix/main | ~/Work/experiments/node-chromedriver | |
$ npm install | |
> chromedriver@93.0.1 install | |
> node install.js | |
Current existing ChromeDriver binary is unavailable, proceeding with download and extraction. | |
Downloading from file: https://chromedriver.storage.googleapis.com/93.0.4577.15/chromedriver_mac64_m1.zip | |
Saving to file: /var/folders/68/xm9lt4hn05g87sh09p2ycb500000gn/T/93.0.4577.15/chromedriver/chromedriver_mac64_m1.zip | |
Received 1040K... |
NewerOlder