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
function! s:map () | |
map <buffer> <Return> <Cmd>exe 'wincmd p \|' line('.') 'cc'<CR> | |
endfunction | |
function! s:unmap () | |
unmap <buffer> <Return> | |
endfunction | |
function! s:list () | |
return expand('<amatch>')[0] == 'l' ? getloclist(0) : getqflist() |
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/cachedGCs.c b/cachedGCs.c | |
index 8393478..f0088b1 100644 | |
--- a/cachedGCs.c | |
+++ b/cachedGCs.c | |
@@ -500,7 +500,7 @@ setCgsCSet(XtermWidget xw, VTwin *cgsWin, CgsEnum cgsId, unsigned cset) | |
#endif | |
void | |
-setCgsFont(XtermWidget xw, VTwin *cgsWin, CgsEnum cgsId, XTermFonts * font) | |
+setCgsFont2(XtermWidget xw, VTwin *cgsWin, CgsEnum cgsId, XTermFonts * font, VTFontEnum which) |
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
" Quick Vimade-like fading plugin I hacked onto the end of my theme. | |
" Probably won't look any good in your terminal without some tweaks. | |
" It should gray-out all but the active buffer. Split and see. | |
" Actual effect probably depends entirely on your colorscheme. | |
" Might be nvim only, I dunno. If vim has NormalNC hlgroup, :+1: | |
" Detects diffs, too. Or at least it should. | |
" | |
" This method requires you to explicitly define each hlgroup. | |
" I'm sure a more reflective approach could be devised. I'll keep at it. | |
" You might have to clear some highlights too, I dunno. |
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 python | |
import webbrowser | |
from webbrowser import WindowsDefault, BackgroundBrowser | |
from urllib.parse import parse_qs, quote | |
chrome = "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe" | |
safe = "%/:=&?~#+!$,;'@()*[]" | |
class ChromeBrowser(BackgroundBrowser): |
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
" This is a very simple implementation of automatic :augroup - | |
" that is, whenever a vim script is sourced, that file will | |
" automatically default to a group name based on the path. | |
" It turns out this doesn't really break anything; scripts are | |
" still able to define their own augroups, it's just that they | |
" can't clobber other scripts' autocmds with a careless :au! | |
augroup init | |
autocmd! init SourceCmd * exe 'augroup' expand('<afile>:~:r') | source <afile> | exe 'augroup end' | |
augroup end |
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
! vim: ft=xdefaults | |
! tell xterm to do the CSI-u thing for most cases | |
XTerm*formatOtherKeys: 1 | |
XTerm*modifyOtherKeys: 1 | |
! support ctrl/shift + backspace/space as well | |
XTerm*vt100.translations: #override \ | |
Ctrl Shift <Key>BackSpace: string("\033[127;6u") \n\ | |
Ctrl <Key>BackSpace: string("\033[127;5u") \n\ |
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 React, { Children, PropTypes } from 'react'; | |
import cssModules from 'react-css-modules'; | |
import styles from './style.css'; | |
import { omit } from 'lodash'; | |
function makeLabel(child, index) { | |
const { selected } = this.state; | |
const onClick = () => this.setState({ selected: index }); | |
const styleName = index === selected ? 'tab-label-selected' : 'tab-label'; | |
return React.cloneElement(child.props.children[0], { onClick, styleName }); |
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 React, { Children, PropTypes } from 'react'; | |
import cssModules from 'react-css-modules'; | |
import styles from './style.css'; | |
import { omit } from 'lodash'; | |
import { find } from 'wu'; | |
const isLabel = node => node.tagName === 'label'; | |
const isContent = node => node.tagName === 'content'; | |
const getLabel = node => find(node.childNodes.values(), isLabel); | |
const getContent = node => find(node.childNodes.values(), isContent); |
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 React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import App from './containers/App'; | |
import Relay from 'react-relay'; | |
import { applyRouterMiddleware, Router, browserHistory } from 'react-router'; | |
import { useScroll } from 'react-router-scroll'; | |
import { IntlProvider } from 'react-intl'; | |
import useRelay from 'react-router-relay'; | |
import 'sanitize.css/sanitize.css'; | |
import './index.css'; |
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
execve("/usr/bin/nvim", ["/usr/bin/nvim", "-u", "NONE", "-N"], [/* 67 vars */]) = 0 | |
brk(NULL) = 0x1164000 | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=111550, ...}) = 0 | |
mmap(NULL, 111550, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f2b927f0000 | |
close(3) = 0 | |
open("/usr/lib/libuv.so.1", O_RDONLY|O_CLOEXEC) = 3 | |
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0n\0\0\0\0\0\0"..., 832) = 832 | |
fstat(3, {st_mode=S_IFREG|0755, st_size=147152, ...}) = 0 |
NewerOlder