Skip to content

Instantly share code, notes, and snippets.

@smkplus
smkplus / UnityShaderCheatSheet.md
Last active May 7, 2024 07:34
Controlling fixed function states from materials/scripts in Unity

16999105_467532653370479_4085466863356780898_n

Shader "MaterialPropertyDrawer"
{
Properties
{
_MainTex("Texture", 2D) = "white" {}
 
[HideInInspector] _MainTex2("Hide Texture", 2D) = "white" {}
@sesgoe
sesgoe / 01_scripts_and_styles.js
Last active May 7, 2024 07:32
Retool Realtime WebSocket
const webSocket = new WebSocket('wss://echo.websocket.org');
//Event listeners are the pillars upon which WebSockets are built. This event fires when the WebSocket is considered 'OPEN',
//which means that it has connected successfully.
webSocket.addEventListener('open', function(event) {
console.log('websocket connected successfully') //log this into the browser console so we can check if the websocket connected
});
//This is a global reference to the websocket that we created. We need this because otherwise multiple JS
@silas
silas / README.md
Created June 20, 2019 15:15
Anki JavaScript Cards

Anki JavaScript Cards

This demonstrates one method for creating JavaScript based Anki cards.

Tested on

  • [Anki for desktop computers][anki-desktop] version 2.1.13
  • [AnkiMobile][anki-mobile] (iOS) version 2.0.48

Instructions

@rxaviers
rxaviers / gist:7360908
Last active May 7, 2024 07:32
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:
@devops-school
devops-school / Prometheus-Pushgateway-Installation-Configuration-and-Using-tutorials.sh
Last active May 7, 2024 07:32
Prometheus Pushgateway Installation, Configuration and Using tutorials.
# Get the latest version of pushgateway from prometheus.io, then download and extract:
$ wget https://github.com/prometheus/pushgateway/releases/download/v0.8.0/pushgateway-0.8.0.linux-amd64.tar.gz
$ tar -xvf pushgateway-0.8.0.linux-amd64.tar.gz
# Create the pushgateway user:
$ useradd --no-create-home --shell /bin/false pushgateway
# Move the binary in place and update the permissions to the user that we created:
$ cp pushgateway-0.8.0.linux-amd64/pushgateway /usr/local/bin/pushgateway
$ chown pushgateway:pushgateway /usr/local/bin/pushgateway
@KillyMXI
KillyMXI / README.md
Last active May 7, 2024 07:31
Obsidian live-preview list threading and highlight
@FANMixco
FANMixco / gist:5d6b9d746cc801eb93da6ac898b020c3
Created March 4, 2024 17:29
OpenAI JSON sample for gpt-3.5-turbo-instruct
{
"choices": [
{
"text": "Generated text goes here."
}
],
"completion": {
"model": "gpt-3.5-turbo-instruct",
"prompt": "Your input prompt goes here.",
"temperature": 0.7,
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 7, 2024 07:31
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

{
"created": "11212121",
"data": [
{
"url": "https://...."
}]
}
@FANMixco
FANMixco / draggable_table.html
Created May 6, 2024 15:06
Draggable Table with Buttons
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Draggable Table with Buttons</title>
<style>
body {
color: black;
font-size: 25px;