Skip to content

Instantly share code, notes, and snippets.

View casperdcl's full-sized avatar
🎩
Python/C++/CUDA, Cloud, CI/CD & Git consultancy

Casper da Costa-Luis casperdcl

🎩
Python/C++/CUDA, Cloud, CI/CD & Git consultancy
View GitHub Profile
@casperdcl
casperdcl / .env
Last active August 1, 2023 21:16
paperspace helper
#!/usr/bin/env bash
MACHINE_ID=<...your id...>
API_KEY=<...your key...>
alias _paper_api="curl -fsSL -H 'X-Api-Key: $API_KEY' -X"
_paper_api_get(){
_paper_api GET https://api.paperspace.io/machines/getMachinePublic?machineId=$MACHINE_ID | jq "$@"
}
_paper_api_post(){
_paper_api POST https://api.paperspace.io/machines/$MACHINE_ID/"$@"
}

Keybase proof

I hereby claim:

  • I am casperdcl on github.
  • I am casperdcl (https://keybase.io/casperdcl) on keybase.
  • I have a public key ASC52Q_0Arf4xFDLzMrXO0-ulh6iDnZVNeIuXrDpZBwt6wo

To claim this, I am signing this object:

@casperdcl
casperdcl / ghstats-5.svg
Last active April 15, 2024 19:33
lines of code written stats
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@casperdcl
casperdcl / chen2019.py
Last active April 20, 2021 11:40
Radiol. 290(3) 649-656
"""
Residual U-net implementation based on [1].
Usage:
>>> from chen2019 import network
>>> # input_data.shape == (num_slices, slice_height, slice_width, num_channels)
>>> model = network(input_data.shape[1:])
>>> model.fit(input_data, output_date, epochs=100, batch_size=input_data.shape[0] // 4, ...)
@casperdcl
casperdcl / COVID-19
Last active January 19, 2023 18:23
COVID-19 Status
ID Date Cases( change) Deaths(chnge)
US 2023-01-18 101,858,337(127,694) 1,102,794(1,574)
BR 2023-01-18 36,572,898( 12,425) 695,698( 91)
IN 2023-01-18 44,684,667( 134) 523,355( 0)
RU 2023-01-18 21,561,796( 5,442) 386,588( 46)
ME 2023-01-18 7,316,602( 0) 324,585( 0)
PE 2023-01-18 4,480,312( 941) 219,407( 26)
GB 2023-01-18 23,407,181( 0) 214,415( 0)
IT 2023-01-18 25,363,890( 0) 186,024( 0)
DE 2023-01-18 37,649,808( 12,001) 164,400( 238)
@casperdcl
casperdcl / ● Hyperlocal Weather
Last active April 1, 2023 10:47
Hyperlocal Weather
10.5C 93% 12kt|● Mostly cloudy for the hour.
Prb| |6:41
Amt| |0mm/h
10.5C 95% 12kt|● Mostly cloudy for the hour.
Prb| |6:41
Amt| |0mm/h
@casperdcl
casperdcl / gsod2019.md
Last active December 3, 2019 14:17
GSoD 2019 Wrap-up
@casperdcl
casperdcl / YTD Strava Metrics
Last active May 19, 2021 08:00
🚴 This year in sport
Running 0.00 km ░░░░░░░░░░░░░░░░░░░ 0.00/h
Swimming 0.00 km ░░░░░░░░░░░░░░░░░░░ 0.00/h
Cycling 83.65 km ███████████████████ 16.56/h
Last month 43.47 km 2:21h
@casperdcl
casperdcl / 🎵 My last week in music
Last active November 6, 2023 08:04
🎵 Last week in music
The Birthday Massacre █████████████████ 2 plays