Skip to content

Instantly share code, notes, and snippets.

@GitMurf
GitMurf / obsidian.live-preview.css.block-ref-inline.css
Last active April 27, 2024 07:28
CSS for inline block references that works for both NEW CM6 Live Preview and also Preview Mode for both CM5 (Legacy) and CM6 (New)
:root {
/* #7159de (similar to Obsidian purple) */
--block-ref-line-color: grey;
--block-ref-line-type: solid;
--block-ref-line-size: 2px;
/* Set to "inherit" for no bg color */
--block-ref-hover-bg-color: #d4d0d026;
}
/*
@kristw
kristw / .block
Last active April 27, 2024 07:28
Bangkok Metropolitan map
license: mit
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 27, 2024 07:30
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@ghostrider-05
ghostrider-05 / discord_app_protocols.md
Last active April 27, 2024 07:24
An unofficial list of discord app protocol routes

Discord app protocol routes

Home:

  • /: discord://-/
  • friends: discord://-/channels/@me/
  • nitro: discord://-/store
  • shop: discord://-/shop
  • message requests: discord://-/message-requests
  • family centre: discord://-/family-center
@bergmannjg
bergmannjg / rearct-native-app-in-wsl2.md
Last active April 27, 2024 07:21
Building a react native app in WSL2
@jjvillavicencio
jjvillavicencio / setup.sh
Last active April 27, 2024 07:21
Install Android SDK on Windows Bash (WSL)
cd /home/<user>/
sudo apt-get install unzip
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d Android
rm sdk-tools-linux-4333796.zip
sudo apt-get install -y lib32z1 openjdk-8-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc
cd Android/tools/bin
@dodgydre
dodgydre / 00 - Quill Vue Component.md
Last active April 27, 2024 07:20
Vue 3 Quill 2

Quill 2.0.0 component for vue 3

Using - "quill": "^2.0.0-rc.2"

Adjust app.js depending on your use case - I am using it in a Laravel/Inertia project so I've got the Editor component registered in the CreateInertiaApp.

The other files I've got in a quill folder (quill_options.js is quill/options.js, etc.)

@Yizack
Yizack / countries.json
Last active April 27, 2024 07:19
List of countries and territories in English and Spanish: name, continent, capital, dial code, country codes, TLD, and area in sq km. Lista de países y territorios en Inglés y Español: nombre, continente, capital, código de teléfono, códigos de país, dominio y área en km cuadrados. Updated 2023
{
"countries" : [
{
"name_en": "Afghanistan",
"name_es": "Afganistán",
"continent_en": "Africa",
"continent_es": "África",
"capital_en": "Kabul",
"capital_es": "Kabul",
"dial_code": "+93",
@Craftplacer
Craftplacer / FuckFandom.txt
Last active April 27, 2024 07:18
Filter for uBlock Origin that removes most of Fandom's elements from a wiki.
![Adblock Plus 2.0]
! Title: FuckFandom
! Expires: 30 days (update frequency)
! Homepage: https://gist.github.com/Craftplacer/04089c2c666c89e10818124c92d9c65b
fandom.com##.mcf-wrapper
fandom.com##.wds-global-footer
fandom.com##.global-navigation
fandom.com##.top-ads-container
@jb0gie
jb0gie / flutter.md
Created February 23, 2019 00:27 — forked from matteocrippa/flutter.md
Flutter Cheatsheet

Flutter

A quick cheatsheet of useful snippet for Flutter

Widget

A widget is the basic type of controller in Flutter Material. There are two type of basic Widget we can extend our classes: StatefulWidget or StatelessWidget.

Stateful

StatefulWidget are all the widget that interally have a dynamic value that can change during usage. It can receive an input value in the constructor or reference to functions. You need to create two classes like: