- python-gobject
chmod +x watermark
./watermark
# Usage: python3 tldr_fail_test.py ${HOSTNAME} | |
# | |
# You can optionally pass the destination IP with --addr | |
# | |
# Author: davidben [at] chromium [dot] org | |
import argparse | |
import socket | |
import time |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.// make sure you have changed your working directory to your project | |
cd app | |
// svelte | |
// see https://github.com/sveltejs/svelte/issues/2900#issuecomment-701644971 | |
npm install svelte | |
sed -i 's/svelte-\$/_$/g' ./node_modules/svelte/compiler.js | |
// sapper | |
npm install sapper |
ANSI escape codes can be printed to a shell to as instructions. The below is a list of codes I have used often in my CLI programs and I find myself looking up over and over again.
A great article about it can be found here.
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
With 2^0 = 1 bit signed integers, Unix time will overflow on: 00:00:01 UTC January 01, 1970 | |
With 2^0 = 1 bit unsigned integers, Unix time will overflow on: 00:00:02 UTC January 01, 1970 | |
With 2^1 = 2 bit signed integers, Unix time will overflow on: 00:00:02 UTC January 01, 1970 | |
With 2^1 = 2 bit unsigned integers, Unix time will overflow on: 00:00:04 UTC January 01, 1970 | |
With 2^2 = 4 bit signed integers, Unix time will overflow on: 00:00:08 UTC January 01, 1970 | |
With 2^2 = 4 bit unsigned integers, Unix time will overflow on: 00:00:16 UTC January 01, 1970 | |
With 2^3 = 8 bit signed integers, Unix time will overflow on: 00:02:08 UTC January 01, 1970 |
''' | |
Check if user in github follow you back or not | |
''' | |
import requests | |
username = input("Enter your username: ") | |
def main(username): |
WITH double_entry_book AS ( | |
-- debits | |
SELECT | |
array_to_string(inputs.addresses, ",") as address | |
, inputs.type | |
, -inputs.value as value | |
, block_timestamp | |
FROM `bigquery-public-data.crypto_bitcoin.inputs` as inputs | |
UNION ALL |