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
\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} |
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
#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) | |
{ |
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 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): |
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 random | |
import math | |
import time | |
n = 9999 | |
val = range(1, n+1) | |
random.shuffle(val) | |
def get_ptr(v): |
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
--- 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 |
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
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 |
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
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() |
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:async_test() | |
python << EOF | |
import vim | |
import time | |
import threading | |
def viminter(): | |
time.sleep(3) | |
vim.command('echo 3') |
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
--[[ | |
Licensed under GNU General Public License v2 | |
* (c) 2013, Luke Bonham | |
--]] | |
local helpers = require("lain.helpers") |
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
blacklist nvidia_uvm | |
blacklist nvidia | |
install nvidia_uvm /bin/false |