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 datetime import datetime | |
def create_birthday_cake(): | |
# Define the reference date: October 24th, 2016 at 2pm | |
reference_date = datetime(2016, 10, 24, 14, 0, 0) | |
# Get the current system time | |
current_time = datetime.now() | |
# Calculate the difference |
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 type { ComponentType } from "react" | |
import type { MotionValue, Transition } from "framer-motion" | |
import { | |
useViewportScroll, | |
useVelocity, | |
useTransform, | |
useAnimation, | |
useMotionValue, | |
animate, | |
} from "framer-motion" |
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 | |
# NOTE: | |
# * This was tested with python3.9 | |
# * This uses `gitstats`: http://gitstats.sourceforge.net/ | |
# * Also https://github.com/newren/git-filter-repo is required to work | |
import tempfile | |
import os | |
import subprocess |
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
name: ml-environment | |
channels: | |
- conda-forge | |
dependencies: | |
- python | |
- numpy | |
- pip | |
- pip: | |
- nbgitpuller | |
- sphinx-gallery |
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
async function fetchClickList(pageN, token, apiPathName, referrer) { | |
const url = `https://app.mailjet.com${apiPathName}` | |
const options = { | |
"headers": { | |
"accept": "*/*", | |
"accept-language": "de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7", | |
"cache-control": "no-cache", | |
"content-type": "application/x-www-form-urlencoded", | |
"pragma": "no-cache", | |
"sec-fetch-dest": "empty", |