This file contains 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
<!doctype html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> --> | |
<title>css hack</title> | |
<style> | |
body { font-family: monospace; } | |
summary { list-style: none; } | |
summary::-webkit-details-marker { display:none; } |
This file contains 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 YouTube - Hide Live Chat | |
// @namespace https://gist.github.com/LazyMammal/1c60c45e9df26602f688d025f3b20f0c#gistcomment-3656586 | |
// @version 0.4 | |
// @description Hide live chat by default on live streams | |
// @author LM, bastiMQ, IrisNebula, lbmaian | |
// @match https://www.youtube.com/* | |
// @exclude https://www.youtube.com/embed/* | |
// @run-at document-end | |
// @grant none |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00000411] | |
"Layout File"="kbddvp.dll" |
This file contains 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
.s + div, .exp-outline, .kno-kp, .mnr-c, .g-blk, #extrares |
This file contains 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
dconf write /org/gnome/terminal/legacy/profiles:/:<id>/allow-bold false |
This file contains 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
// #![recursion_limit="1003"] | |
// macro_rules! count { | |
// () => (0usize); | |
// ($x:tt $($xs:tt)*) => (1usize + count!($($xs)*)); | |
// } | |
macro_rules! count { | |
() => (0usize); | |
($one:tt) => (1usize); | |
($($pairs:tt $_p:tt)*) => (count!($($pairs)*) << 1usize); |
This file contains 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
[{"week":"2007-12-31", "val":18848}, | |
{"week":"2008-01-07", "val":18567}, | |
{"week":"2008-01-14", "val":7916}, | |
{"week":"2008-01-21", "val":7337}, | |
{"week":"2008-01-28", "val":-1296}, | |
{"week":"2008-02-04", "val":7038}, | |
{"week":"2008-02-11", "val":3522}, | |
{"week":"2008-02-18", "val":4957}, | |
{"week":"2008-02-25", "val":-6891}, | |
{"week":"2008-03-03", "val":10226}, |
This file contains 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
// Fast luminance inversion. | |
int luminv(int rgb) { | |
int r = rgb >> 16, | |
g = rgb >> 8 & 0xff, | |
b = rgb & 0xff; | |
switch (((r > g) << 1 | (g > b)) << 1 | (b > r)) { | |
case 4: // r > b > g | |
case 3: // g > b > r | |
return rgb + (255 - r - g) * 0x10101; | |
case 2: // g > r > b |
This file contains 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
(* | |
Compute all possible Feynman diagrams with 1 el + 1 pos input, | |
1 el + 1 pos output, 4 nodes, and no self-energetic transitions. | |
*) | |
open Core.Std | |
type particle = Electron | Positron | Photon [@@deriving compare, sexp] | |
let inverse = function | |
| Photon -> Photon |
This file contains 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/python | |
# Copyright 2007 by Tobia Conforto <tobia.conforto@gmail.com> | |
# | |
# This program is free software; you can redistribute it and/or modify it under the terms of the GNU General | |
# Public License as published by the Free Software Foundation; either version 2 of the License, or (at your | |
# option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the | |
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
NewerOlder