Skip to content

Instantly share code, notes, and snippets.

@hanjeahwan
hanjeahwan / monokai-neon-glow.css
Last active May 22, 2024 01:45
VSCode Custom CSS - Monokai Neon Glow Syntax
.mtk1 {
color: #f8f8f2;
text-shadow: 0 0 2px rgba(0, 0, 0, 0), 0 0 3px rgba(0, 0, 0, 0), 0 0 5px rgba(0, 0, 0, 0), 0 0 8px #f8f8f2;
}
.mtk4 {
color: #fdfdfd;
text-shadow: 0 0 2px #03edf975, 0 0 4px #03edf975, 0 0 6px #03edf975, 0 0 8px #03edf975;
}
@realvjy
realvjy / ChoasLinesShader.metal
Last active May 22, 2024 01:41
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
@lsloan
lsloan / pycon_pdf_to_png.py
Last active May 22, 2024 01:41
A small program to convert the PDF of the PyCon US 2024 venue map to individual PNG images.
import urllib.request
import pymupdf # pip install PyMuPDF
url = ('https://pycon-assets.s3.amazonaws.com/2024/media/'
'documents/DLCC-Floorplan-Marked_up_PyCon_US_2024.pdf')
# url = 'file:DLCC-Floorplan-Marked_up_PyCon_US_2024.pdf'
with urllib.request.urlopen(url) as response:
pdfStream = response.read()
@bgallagh3r
bgallagh3r / gist:3745112
Created September 18, 2012 19:04
Ascii Meme: Epic Smiley
...gNMMM@@MMMNa+..
..M@M#"=!........?7TWMMN&,
..MMY=...`.....`...```....?YMMa.
.JM#^..``.```````````````....`.JW@N.
.M#^.``.`.```````````````.`..````.,WMh.
.MM5.J.J..```.````````..`.JJ.,,`...``.JMN.
.MM.JY^` .MMa .```````.`.M"= .dMN,`.`.`.MM,
.@M.M$ @@MMN.``````.`dF J@@MMp````..MM,
M@^JF ?WH"Jb .`````JF "H"^M,..```.@N
JMF dF JN `````.@F gF `.`.`J@F
@ECHO OFF
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDPrivate
:CONFIRM
echo Are you sure to lock this folder? (Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
@ibuildthecloud
ibuildthecloud / quickstart-playground.gpt
Created May 22, 2024 00:43
GPTScript to mimic Windows DevHome "Quickstart Playground" features
description: Generates a dev env from a prompt
tools: lang, prog, language-deps, devcontainer, launch
arg: prompt: The description of the program you would like to create
Do the following sequentially, not in parallel
1. Call @lang with ${prompt} to determine what programming language would be best suited for this task
1. Call @prog with ${prompt} and the determined language
1. Call @language-deps
1. Call @devcontainer
.css-selector {
    background: linear-gradient(43deg, #055783, #116e7c, #055783, #19699d);
    background-size: 800% 800%;
    -webkit-animation: see-meets-sun 26s ease infinite;
    -moz-animation: see-meets-sun 26s ease infinite;
    -o-animation: see-meets-sun 26s ease infinite;
    animation: see-meets-sun 26s ease infinite;
}
@-webkit-keyframes see-meets-sun {
    0%{background-position:53% 0%}
@StevenACoffman
StevenACoffman / goGetPrivate.md
Last active May 22, 2024 01:30 — forked from dmitshur/gist:6927554
How to `go get` private repos using SSH key auth instead of password auth.

Set GOPRIVATE to match your github organization

Cloning the repo using one of the below techniques should correctly but you may still getting an unrecognized import error.

As it stands for Go v1.13, I found in the doc that we should use the GOPRIVATE variable like so:

GOPRIVATE=github.com/ORGANISATION_OR_USER_NAME go get -u -f github.com/ORGANISATION_OR_USER_NAME/REPO_NAME

The 'go env -w' command (see 'go help env') can be used to set these variables for future go command invocations.

How to go get private repos using SSH key auth instead of password auth.