Skip to content

Instantly share code, notes, and snippets.

View PiotrSokol's full-sized avatar

Piotr Sokol PiotrSokol

  • Stony Brook
View GitHub Profile
@PiotrSokol
PiotrSokol / visa.py
Created April 17, 2023 19:43 — forked from yaojialyu/visa.py
ais usvisa reschedule
# -*- coding: utf8 -*-
import time
import json
import random
import platform
from datetime import datetime
import requests
from selenium import webdriver
@PiotrSokol
PiotrSokol / stack_trace.jl
Created January 22, 2021 02:04
MWE for LSTM/CUDA error
ERROR: MethodError: no method matching unsafe_convert(::Type{Float64}, ::ForwardDiff.Dual{Nothing,Float64,8})
Closest candidates are:
unsafe_convert(::Type{T}, ::T) where T at essentials.jl:390
unsafe_convert(::Type{Ref{T}}, ::Any) where T at refpointer.jl:61
unsafe_convert(::Type{PtrOrCuPtr{T}}, ::Any) where T at /home/piotr/.julia/packages/CUDA/FlHUF/src/pointer.jl:118
...
Stacktrace:
[1] macro expansion at /home/piotr/.julia/packages/CUDA/FlHUF/lib/utils/call.jl:42 [inlined]
[2] macro expansion at /home/piotr/.julia/packages/CUDA/FlHUF/lib/cudnn/libcudnn.jl:919 [inlined]
[3] macro expansion at /home/piotr/.julia/packages/CUDA/FlHUF/src/pool.jl:430 [inlined]
@PiotrSokol
PiotrSokol / synthwaveglow.md
Created February 11, 2020 05:13 — forked from sbinlondon/synthwaveglow.md
Get the synth wave glow theme working for VS Code on Mac

Get the synth wave glow working for VS Code on Mac

These notes are pretty much the same steps as the two extensions list, it's just that I had to collate them together because neither seems to list it fully in the proper order.

  1. Install Synthwave ’84/Synthwave + Fluoromachine theme on VS Code (I used the Fluoromachine one)

  2. Install Custom CSS and JS Loader

  3. Command + Shift + P to open command palette > "Preferences: Open settings (JSON)"