Skip to content

Instantly share code, notes, and snippets.

@ryboe
ryboe / bad_css
Last active April 25, 2024 16:18
Non-standard and Obsolete CSS Properties
OBSOLETE PREFIXES
-xv-interpret-as // -xv- and -o- are old Opera prefixes for the Presto
-xv-phonemes // engine. Opera switched to the Blink engine with
-xv-voice-balance // version 15. The current version is 34.
-xv-voice-duration
-xv-voice-pitch
-xv-voice-pitch-range
-xv-voice-rate
-xv-voice-stress
-xv-voice-volume
@arjunv
arjunv / keyevents.json
Created December 2, 2018 00:01
All Android Key Events for usage with adb shell
{
"key_events": {
"key_unknown": "adb shell input keyevent 0",
"key_soft_left": "adb shell input keyevent 1",
"key_soft_right": "adb shell input keyevent 2",
"key_home": "adb shell input keyevent 3",
"key_back": "adb shell input keyevent 4",
"key_call": "adb shell input keyevent 5",
"key_endcall": "adb shell input keyevent 6",
"key_0": "adb shell input keyevent 7",
@HerringtonDarkholme
HerringtonDarkholme / nihongo.cpp
Last active April 25, 2024 16:16
g++ nihongo.cpp
#define エスティーディー std
#define γ‚’γ‚€γ‚ͺγƒΌγ‚ΉγƒˆγƒͺγƒΌγƒ  <iostream>
#define ユージング using
#define むフ if
#define むンクルード #include
#define γ‚€γƒ³γƒˆ int
#define γ‚·γƒΌγ‚’γ‚¦γƒˆ cout
#define シーむン cin
#define γƒγƒΌγƒ γ‚ΉγƒšγƒΌγ‚Ή namespace
#define ブール bool
@arkatsy
arkatsy / zustand-internals.jsx
Last active April 25, 2024 16:16
How zustand works internally
import { useSyncExternalStore } from "react";
// For more on the useSyncExternalStore hook, see https://react.dev/reference/react/useSyncExternalStore
// The code is almost identical to the source code of zustand, without types and some features stripped out.
// Check the links to see the references in the source code.
// The links are referencing the v5 of the library. If you plan on reading the source code yourself v5 is the best way to start.
// The current v4 version contains lot of deprecated code and extra stuff that makes it hard to reason about if you're new to this.
// https://github.com/pmndrs/zustand/blob/fe47d3e6c6671dbfb9856fda52cb5a3a855d97a6/src/vanilla.ts#L57-L94
function createStore(createState) {
@shellheim
shellheim / ydotool.md
Created April 25, 2024 12:17
How to use ydotool?

How to use ydotool.

ydotool requires that ydotoold be running in the background. Now to make this easier the developer ships a systemd unit file with the project.

A systemd unit file contains code to direct systemd to handle a resource called a systemd service. A service can either be : enabled or disabled. When enabled it can be started or stopped.

This file invokes ydotoold as a service and makes it run in the background so ydotool itself can be used. When you initially download the package the service is disabled by default. You can check this by running :

@rxaviers
rxaviers / gist:7360908
Last active April 25, 2024 16:14
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:
@icecr4ck
icecr4ck / ida_mc_notes.md
Last active April 25, 2024 16:14
Some notes about the IDA Microcode (intermediate language).
knmi.nl
rijksoverheid.nl
overheid.nl
duo.nl
politie.nl
koninklijkhuis.nl
defensie.nl
kadaster.nl
werkenbijdefensie.nl
cbs.nl
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 25, 2024 16:08
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;