Skip to content

Instantly share code, notes, and snippets.

@avidale
avidale / create_rut5-base.ipynb
Created April 30, 2021 21:51
create_rut5-base.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HungryProton
HungryProton / depth_override_shader.gdshader
Last active March 29, 2024 12:45
A Godot 4 shader to make things appear on top of other things within a range.
// A Godot 4 shader to make things appear on top of other things within a range.
// Initially, this was made so my characters' facial features would be rendered on top of their hair.
shader_type spatial;
render_mode unshaded;
uniform sampler2D depth_texture : hint_depth_texture, repeat_disable, filter_nearest;
// Maximum depth we can overdraw relative to the object original depth, in ENGINE UNITS.
@rxaviers
rxaviers / gist:7360908
Last active March 29, 2024 12:42
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@SivaramPg
SivaramPg / pdf2base64.js
Last active March 29, 2024 12:34
Convert a PDF file to Base64 String
const pdfFilePath = path.resolve(__dirname, './sample.pdf');
/**
* https://www.npmjs.com/package/pdf2pic
* https://github.com/yakovmeister/pdf2image#readme
*
* Following is an overview of the options that can be passed on the pdf2pic methods:
* quality - set output's image quality
* format - set output's file format
* width - set output's width
@SivaramPg
SivaramPg / buffer2png.js
Last active March 29, 2024 12:34
Convert Base64 image URI to buffer and read buffer as PNG
/**
* https://www.npmjs.com/package/pngjs
* https://github.com/lukeapage/pngjs
* Recreate PNG with metadata from extracted Base64 data URI
*/
const buffer = Buffer.from(dataUri, 'base64');
const png = PNG.sync.read(buffer);
@SivaramPg
SivaramPg / png-qr-code-extractor.js
Last active March 29, 2024 12:34
Read and display QR Code from PNG created using pngjs.
/**
* https://www.npmjs.com/package/jsqr
* https://github.com/cozmo/jsQR#readme
* Extract the Code from recreated PNG using jsQR
*/
const code = jsQR(Uint8ClampedArray.from(png.data), png.width, png.height);
const qrCodeText = code?.data;
console.log('QR Code Text: ', qrCodeText);
@DHosseiny
DHosseiny / migrate-to-version-catalog.kts
Last active March 29, 2024 12:32
Script to migrate gradle dependencies and plugins to version catalog. This script looks for libs.version.toml file and uses existing added libraries and logs not added libraries(just copy from logs and paste in libraries section)
import java.io.File
val path = "path/to/project/directory" // TODO: change here
println("Processing in folder: $path")
println()
fun writeDependenciesFromVersionCatalog(path: String) {
@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active March 29, 2024 12:31
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus