Skip to content

Instantly share code, notes, and snippets.

@HanggiAnggono
HanggiAnggono / alacritty.yml
Created October 11, 2022 04:04
tmux and alacritty config
cursor:
style:
shape: Beam
blinking: Always
blinking_interval: 500
vi_mode_style:
shape: Block
selection:
# This string contains all characters that are used as separators for
@HanggiAnggono
HanggiAnggono / gather_mic_shortcut.js
Last active March 30, 2022 13:31
Gather Mic Shortcut
// put this in your browser console!
qwe = () => document.onkeypress = e => {
if (e.keyCode == 118) {
let button = document.querySelector('.GameVideo-self-video-container button');
if (!button) button = document.querySelector('.GameVideosContainer-videobar-content button');
button.click();
}
}
const BarcodeReader = ({ onScan }) => {
const [str, setStr] = useState('')
function handleReceive(scanData) {
const key = scanData.key
// if it's enter key then perform onScan
if (key === 'Enter' && onScan) {
onScan(str)
setStr('')
@HanggiAnggono
HanggiAnggono / plugins and settings.md
Last active July 9, 2019 04:52
SublimeText installed plugins and settings

plugins

[
  "AdvancedNewFile",
  "AutoFileName",
  "Babel",
  "Color Highlight",
  "Emmet",
  "Git",
 "Git blame",