This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Remove YouTube Number Hotkeys | |
// @match https://www.youtube.com/watch | |
// @run-at document-end | |
// ==/UserScript== | |
document.addEventListener('keydown', (event) => { | |
if (event.target.id === 'movie_player' && | |
["1", "2", "3", "4", "5", "6", "7", "8", "9"].includes(event.key)) { | |
event.stopPropagation(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Reference: | |
# https://github.com/r45635/HVAC-IR-Control/blob/master/Protocol/Panasonic%20HVAC%20IR%20Protocol%20specification.pdf | |
import argparse | |
import enum | |
import pathlib | |
import subprocess | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Google Classic Search Results | |
// @version 0.0 | |
// @author Shota Nozaki | |
// @match https://www.google.com/search* | |
// @match https://www.google.co.jp/search* | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
powershell -NoProfile -ExecutionPolicy Unrestricted .\pdf2jpg.ps1 | |
echo Done. | |
pause > nul |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE FlexibleInstances, OverloadedLists, OverloadedStrings, TypeFamilies #-} | |
import Data.Monoid | |
import Data.String | |
import GHC.Exts | |
data Sql = Sql (DiffList Char) (DiffList SqlBinding) | |
deriving (Show) | |
data SqlBinding = SqlString String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
block in inet6 all | |
pass in quick on lo0 inet6 all | |
pass in quick inet6 proto icmp6 all | |
pass out inet6 all keep state |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# | |
# Google Translate command-line tool | |
# | |
# Usage: | |
# google-translate [-s SRC_LANG] [-d DEST_LANG] [TEXT] | |
import argparse | |
import json | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { TemplateResult, render } from 'lit-html'; | |
import { PropTypes } from './propTypes'; | |
interface StatefulComponentClass<TProps, TState> { | |
new(): StatefulComponent<TProps, TState>; | |
defaultProps: Partial<TProps>; | |
getInitialState(props: Readonly<TProps>): TState; | |
observedAttributes: string[]; | |
propTypes: PropTypes<TProps>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type RedBlackTree<T> = RedBlackTreeNode<T> | RedBlackTreeLeaf; | |
interface RedBlackTreeNode<T> { | |
left: RedBlackTree<T>; | |
right: RedBlackTree<T>; | |
color: Color; | |
value: T; | |
} | |
type RedBlackTreeLeaf = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/mixer.cc b/src/mixer.cc | |
index d888ff81..a72f39cf 100644 | |
--- a/src/mixer.cc | |
+++ b/src/mixer.cc | |
@@ -48,12 +48,10 @@ | |
#endif /* __OpenBSD__ */ | |
#endif /* HAVE_LINUX_SOUNDCARD_H */ | |
-#define MIXER_DEV "/dev/mixer" | |
- |