I hereby claim:
- I am antonioshadji on github.
- I am antonioshadji (https://keybase.io/antonioshadji) on keybase.
- I have a public key ASAqQHrfa898wvvQfSnZggzRQzIwBT4d_4QA6CdB_MBHcAo
To claim this, I am signing this object:
// This script reqires a local server to be running at localhost:3000 | |
// to handle the cryptographic signature. | |
// store your signing key in your enviroment | |
const signingKey = pm.environment.get("signing_key"); | |
// javascript Date.now() returns unix timestamp in ms, convert to s | |
const timestamp = Math.floor(Date.now() / 1000) | |
const method = pm.request.method.toString(); | |
// Postman does not substitute URL parameters before running this script |
// The example at https://blog.postman.com/adding-external-libraries-in-postman/ | |
// was failing for me due to exports, for this particular library stripping the last 3 lines loaded the library successfully. | |
// NOTE: this particular library does not work in Postman due to missing dependencies from node/browser | |
function removeLastLines(text, num) { | |
// Split the text into lines | |
const lines = text.split('\n'); | |
// Remove the last two lines | |
lines.splice(-num); |
""" Place the resulting output into the style of a draw.io shape. | |
Edit Style -> paste output at end. | |
""" | |
import numpy as np | |
# generate connection points for draw.io shapes | |
hnum=16 # sections along the horizontal | |
vnum=4 # sections along the vertical | |
precision=4 | |
points=[] |
# tiers are for married filing jointly 2024 | |
over = [ | |
0, | |
23200, | |
94300, | |
201050, | |
383900, | |
487450, | |
731200 | |
] |
ARG UNAME=antonios | |
ARG UID=1000 | |
ARG GID=1000 | |
RUN groupadd -g $GID -o $UNAME | |
RUN useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME | |
RUN usermod -aG sudo $UNAME | |
USER $UNAME |
I hereby claim:
To claim this, I am signing this object:
#define _POSIX_C_SOURCE 199309L | |
#include <stdio.h> | |
#include <time.h> | |
int main(int argc,char* argv[]) | |
{ | |
time_t now; | |
time(&now); | |
printf("Today is: %s", ctime(&now)); |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import os | |
from pathlib import Path | |
import datetime | |
import time | |
print(os.path.dirname(__file__)) | |
print(type(os.path.dirname(__file__))) | |
print(os.path.dirname(os.path.abspath(__file__))) |
import timeit | |
import random | |
def test(setup, cmd): | |
repeat = 3 | |
precision = 3 | |
t = timeit.Timer(stmt=cmd, setup=setup) | |
number, _ = t.autorange() | |
r = t.repeat(repeat, number) |