Skip to content

Instantly share code, notes, and snippets.

View blindFS's full-sized avatar
🤔
I may be slow to respond.

zc he blindFS

🤔
I may be slow to respond.
View GitHub Profile
\usepackage{fontspec}
\setmainfont{Arial}
\usepackage{xeCJK}
\setCJKmainfont{SimHei}
\usepackage[english]{babel} % English language/hyphenation
\usepackage{amsmath,amsfonts,amsthm} % Math packages
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{url}
#include <memory.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "openssl/aes.h"
void do_aes(char *method, unsigned char *inString, int inLen, char *passwd, int pwdLen)
{
#!/usr/bin/env python2
import random
import time
def back_trace(n, k, col, diag45, diag135):
if k == n:
# print zip(col, range(n))
return True
for j in range(n):
import random
import math
import time
n = 9999
val = range(1, n+1)
random.shuffle(val)
def get_ptr(v):
--- a/autoload/youcompleteme.vim
+++ b/autoload/youcompleteme.vim
@@ -387,8 +387,11 @@ endfunction
function! s:SetCompleteFunc()
- let &completefunc = 'youcompleteme#Complete'
- let &l:completefunc = 'youcompleteme#Complete'
+ if exists('g:neocomplete#force_overwrite_completefunc') &&
+ \ !g:neocomplete#force_overwrite_completefunc
URxvt.font: xft:monaco for powerline:size=10:style=Regular:antialias=true,xft:Source Han Sans J Medium:size=10:style=Regular:antialias=true, xft:Symbola:pixelsize=10
URxvt.boldfont: xft:monaco for powerline bold:size=10:style=BOld:antialias=true,xft:Source Han Sans J Medium:size=10:style=Bold:antialias=true, xft:Symbola:pixelsize=10
let s:vimproc = vimproc#pgroup_open("sleep 10 | echo 'hello'")
call s:vimproc.stdin.close()
let s:result = ""
augroup vimproc_async_test
execute "autocmd! CursorHold,CursorHoldI * call"
\ "s:receive_vimproc_result()"
augroup END
function! s:receive_vimproc_result()
function! s:async_test()
python << EOF
import vim
import time
import threading
def viminter():
time.sleep(3)
vim.command('echo 3')
--[[
Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham
--]]
local helpers = require("lain.helpers")
blacklist nvidia_uvm
blacklist nvidia
install nvidia_uvm /bin/false