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
{ | |
"1": { | |
"light": "https://images.unsplash.com/photo-1600266573467-16ab6cb278ec?w=2000&q=100", | |
"dark": "https://images.unsplash.com/photo-1506296933720-1a0ce9bed41d?w=2000&q=100" | |
}, | |
"2": { | |
"light": "https://images.unsplash.com/photo-1498234611539-1cfb1e28fa6f?w=2000&q=100", | |
"dark": "https://images.unsplash.com/photo-1584351583369-6baf055b51a7?w=2000&q=100" | |
}, | |
"3": { |
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
--- a/src/common.cpp | |
+++ b/src/common.cpp | |
@@ -103,7 +103,7 @@ static relaxed_atomic_t<pid_t> initial_fg_process_group{-1}; | |
/// This struct maintains the current state of the terminal size. It is updated on demand after | |
/// receiving a SIGWINCH. Use common_get_width()/common_get_height() to read it lazily. | |
static constexpr struct winsize k_invalid_termsize = {USHRT_MAX, USHRT_MAX, USHRT_MAX, USHRT_MAX}; | |
-static owning_lock<struct winsize> s_termsize{k_invalid_termsize}; | |
+static relaxed_atomic_t<struct winsize> s_termsize(k_invalid_termsize); | |
static relaxed_atomic_bool_t s_termsize_valid{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
https://github.com/fish-shell/fish-shell/issues/6994#issuecomment-633303722 | |
diff --git a/src/common.cpp b/src/common.cpp | |
index f76445fc0..57d66695a 100644 | |
--- a/src/common.cpp | |
+++ b/src/common.cpp | |
@@ -103,7 +103,7 @@ static relaxed_atomic_t<pid_t> initial_fg_process_group{-1}; | |
/// This struct maintains the current state of the terminal size. It is updated on demand after | |
/// receiving a SIGWINCH. Use common_get_width()/common_get_height() to read it lazily. | |
static constexpr struct winsize k_invalid_termsize = {USHRT_MAX, USHRT_MAX, USHRT_MAX, USHRT_MAX}; | |
-static owning_lock<struct winsize> s_termsize{k_invalid_termsize}; |
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
set autoupdategist | |
set noautofocus | |
set nocncpcompletion | |
set smoothscroll | |
set hud | |
set noregex | |
set noinsertmappings | |
set typelinkhints | |
set defaultnewtabpage |
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
#!/bin/bash | |
# | |
# Get A Phil Papers Item (gappi); version 0.3 | |
# by Kevin C. Klement (klement@philos.umass.edu) | |
# Feel free to email Kevin with suggestions or questions | |
# License: GPLv3 | |
# | |
# get the name of the script | |
SCRIPTNAME="$(basename "$0")" |
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
C G Am F | |
You get online and the world forms 'round you | |
C G Dm F | |
It's been a while, haven't played since point 2! | |
C G Am F | |
You break a smile, 'cause you've almost forgot to mine | |
C G Dm F C G | |
It's just been such a long time! And every time you're denied | |
Am F C G |
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
" Some folding functions for using Vim with RIS files... | |
" Lines starting with 'TY -' trigger folds | |
set foldexpr=RIS_Fold() | |
set foldmethod=expr | |
fun! RIS_Fold() | |
let thisline = getline(v:lnum) | |
if thisline =~ '^TY -.*' | |
return '>1' |
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/env ruby | |
bibfile = "~/.pandoc/default.bib" | |
matches = ARGF.read.scan(/@(.*?)[\.,:;\] ]/) | |
reg = "\\(" + matches.join("\\)\\|\\(") + "\\)" | |
system 'bibtool -X \'' + reg + '\' ' + bibfile |
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/env python | |
""" | |
ODT2PANDOC | |
========== | |
ODT2PANDOC is a slight variant of ODT2TXT. Right now, the only differences are that it generates ATX style headers and uses *asterisks* for italics, neither of which is in any way specific to pandoc's extended markdown. | |
ODT2TXT | |
======= |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<!-- | |
This is an HTML version of a great [VIM movements cheatsheet][] designed by Ted Naleid. | |
I made this because I wanted more control over the way the text was displayed, and I'd rather tweak CSS than mess with Omnigraffle. If you just want Ted's graphic overlaid on your desktop, you should download the [transparent version] of the VIM movements cheatsheet. | |
I use it with [NerdTool][]. Sadly, NerdTool can't overlay transparent HTML. So I supply a background-image URL. You'll want to change that to something on your local filesystem. Here is a [screenshot][] of the results. The background image is taken from the always great [Bibliodyssey][], resized to the size of my screen. |
NewerOlder