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
local M = { | |
"neoclide/coc.nvim", | |
branch = "master", | |
build = "yarn install --frozen-lockfile", | |
} | |
M.config = function() | |
-- Some servers have issues with backup files, see #649 | |
vim.opt.backup = false | |
vim.opt.writebackup = 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
/** | |
* @brief Configure the MPU attributes as Write Through for External SDRAM. | |
* @note The Base Address is 0xD0000000 . | |
* The Configured Region Size is 32MB because same as SDRAM size. | |
* @param None | |
* @retval None | |
*/ | |
void MPU_Config(void) | |
{ | |
MPU_Region_InitTypeDef MPU_InitStruct; |
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
from . import app | |
from flask.sqlalchemy import get_debug_queries | |
if app.debug: | |
app.after_request(sql_debug) | |
def sql_debug(response): | |
queries = list(get_debug_queries()) | |
query_str = '' |
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 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 | |
# Usage: python pyGitDiff.py hash1 hash2 | |
# Help: python pyGitDiff.py -h | |
import subprocess | |
import os | |
import shutil | |
from datetime import datetime | |
import argparse | |
ignoreList = [".gitignore"] |
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
function! ClipboardCopy(lines, regtype) | |
let sum = TryClipboardCmd('md5sum', a:lines) | |
call writefile(sum, s:regtype_sum, 'S') | |
call writefile([a:regtype], s:regtype_txt, 'S') | |
return TryClipboardCmd('clipboard-provider copy', a:lines) | |
endfunction | |
function! ClipboardPaste() | |
let lines = TryClipboardCmd('clipboard-provider paste') | |
let regtype = 'V' |
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
" ripgrep | |
if executable('rg') | |
let $FZF_DEFAULT_COMMAND = 'rg --files --hidden --follow --glob "!.git/*"' | |
set grepprg=rg\ --vimgrep | |
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>).'| tr -d "\017"', 1, <bang>0) | |
" Overriding fzf.vim's default :Files command. | |
" Pass zero or one args to Files command (which are then passed to Fzf_dev). Support file path completion too. | |
command! -nargs=? -complete=file Files call Fzf_dev(<q-args>) |
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
/** | |
* Compile: | |
* gcc -std=gnu11 -Wall -Wextra c_priority_queue_threads.c -o priority_queue_threads -lpthread -lrt | |
*/ | |
#include <errno.h> | |
#include <mqueue.h> | |
#include <fcntl.h> /* For O_* constants. */ | |
#include <sys/stat.h> /* For mode constants. */ |
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
mru() { | |
local -a f | |
f=( | |
~/.vim_mru_files(N) | |
~/.unite/file_mru(N) | |
~/.cache/ctrlp/mru/cache.txt(N) | |
~/.frill(N) | |
) | |
if [[ $#f -eq 0 ]]; then | |
echo "There is no available MRU Vim plugins" >&2 |
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/sh -exu | |
dev=$1 | |
cd $(mktemp -d) | |
function umountboot { | |
umount boot || true | |
umount root || true | |
} | |
# RPi1/Zero (armv6h): |
NewerOlder