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
| @-moz-document url("chrome://browser/content/devtools/fontinspector/font-inspector.xhtml") { | |
| .font-preview { | |
| width: unset !important; | |
| } | |
| } |
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
| # Search shell history with peco: https://github.com/peco/peco | |
| # Adapted from: https://github.com/mooz/percol#zsh-history-search | |
| if which peco &> /dev/null; then | |
| function peco_select_history() { | |
| local tac | |
| { which gtac &> /dev/null && tac="gtac" } || \ | |
| { which tac &> /dev/null && tac="tac" } || \ | |
| tac="tail -r" | |
| BUFFER=$(fc -l -n 1 | eval $tac | \ | |
| peco --layout=bottom-up --query "$LBUFFER") |
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/python | |
| from math import * | |
| from random import * | |
| import sys | |
| # ANSI colors | |
| ANSI_COLORS = [(0x00, 0x00, 0x00), | |
| (0x80, 0x00, 0x00), | |
| (0x00, 0x80, 0x00), | |
| (0x80, 0x80, 0x00), |
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
| ;;; company-simple-complete.el --- Vim-like completion style | |
| ;; Package-Requires: ((company)) | |
| ;;; Commentary: | |
| ;; Modify company so that tab and S-tab cycle through completions without | |
| ;; needing to hit enter. | |
| ;;; Code: |
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
| # The original version is found at StackOverflow http://stackoverflow.com/a/25262470/2193620 | |
| # Modified by Yuta Taniguchi. | |
| import sys | |
| from pdfminer.pdfdocument import PDFDocument | |
| from pdfminer.pdfpage import PDFPage | |
| from pdfminer.pdfparser import PDFParser | |
| from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter | |
| from pdfminer.converter import PDFPageAggregator | |
| from pdfminer.layout import LAParams, LTTextBox, LTTextLine, LTFigure |
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
| def make_counter(init): | |
| count = [init] | |
| def f(): | |
| count[0] += 1 | |
| return count[0] - 1 | |
| return f | |
| c = make_counter(0) | |
| c() |
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
| fn main() { | |
| let mut x = (5, 4); | |
| { | |
| let mrx = &mut x; | |
| let y = &mut mrx.0; // Error: 'mut' needed! | |
| *y = 999; | |
| y = &mut mrx.1; | |
| *y = 000; | |
| } | |
| println!("{:?}", &x); |
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
| @-moz-document url(chrome://browser/content/browser.xul) { | |
| /* Force toolbars to appear in fullscreen mode. */ | |
| #main-window[inFullscreen][inDOMFullscreen] #navigator-toolbox, | |
| #main-window[inFullscreen][inDOMFullscreen] #fullscr-toggler, | |
| #main-window[inFullscreen][inDOMFullscreen] #sidebar-box, | |
| #main-window[inFullscreen][inDOMFullscreen] #sidebar-splitter, | |
| #main-window[inFullscreen]:not([OSXLionFullscreen]) toolbar:not([fullscreentoolbar=true]), | |
| #main-window[inFullscreen] #global-notificationbox, | |
| #main-window[inFullscreen] #high-priority-global-notificationbox { | |
| visibility: initial !important; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| --- /boot/config-5.0.16-gentoo-no-console 2019-05-18 12:57:52.000000000 +0900 | |
| +++ /boot/config-5.0.16-gentoo 2019-05-18 18:18:10.000000000 +0900 | |
| @@ -484,6 +484,7 @@ | |
| CONFIG_ACPI_PROCESSOR_IDLE=y | |
| CONFIG_ACPI_CPPC_LIB=y | |
| CONFIG_ACPI_PROCESSOR=y | |
| +# CONFIG_ACPI_IPMI is not set | |
| CONFIG_ACPI_HOTPLUG_CPU=y | |
| CONFIG_ACPI_PROCESSOR_AGGREGATOR=m | |
| CONFIG_ACPI_THERMAL=m |