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
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"path/filepath" | |
"time" | |
) |
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
diff -r bfc3682510d6 src/search.c | |
--- a/src/search.c Sat Jul 04 15:05:14 2015 +0200 | |
+++ b/src/search.c Thu Jul 09 19:13:39 2015 +0900 | |
@@ -548,6 +548,7 @@ | |
pos_T start_pos; | |
int at_first_line; | |
int extra_col; | |
+ int start_char_len; | |
int match_ok; | |
long nmatched; |
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
// cl /LD ctrlshiftkey.c user32.lib | |
#include <windows.h> | |
#ifdef _MSC_VER | |
# define EXPORT __declspec(dllexport) | |
# else | |
# define EXPORT | |
#endif |
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
diff --git a/src/ops.c b/src/ops.c | |
index 62d88a7..7fda2c7 100644 | |
--- a/src/ops.c | |
+++ b/src/ops.c | |
@@ -5407,6 +5407,8 @@ do_addsub(command, Prenum1, g_cmd) | |
int did_change = FALSE; | |
pos_T t = curwin->w_cursor; | |
int maxlen = 0; | |
+ pos_T startpos; | |
+ pos_T endpos; |
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
// cl /Idtl abcdiff.cpp | |
// https://github.com/cubicdaiya/dtl | |
#include <dtl/dtl.hpp> | |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <vector> | |
#include <string> |
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
#include <windows.h> | |
#include <stdio.h> | |
#include <string.h> | |
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); | |
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) { | |
HWND hwnd; | |
MSG msg; | |
WNDCLASSEX cls; |
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
package main | |
// Patience Diff Advantages | |
// http://bramcohen.livejournal.com/73318.html | |
// | |
// Patience Diff, a brief summary | |
// http://alfedenzo.livejournal.com/170301.html | |
// | |
// 1. Match the first lines of both if they're identical, then match the | |
// second, third, etc. until a pair doesn't match. |
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(){ | |
var http_get = function(url) { | |
var async = false; | |
var req = new XMLHttpRequest(); | |
req.open("GET", url, async); | |
req.withCredentials = true; | |
req.send(); | |
return req.responseText; | |
}; |
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
" glibc-2.12.1: random_r.c | |
let s:RAND_MAX = 2147483647 | |
function! Srand(seed) | |
call s:srandom_r(a:seed, s:state) | |
endfunction | |
function! Rand() | |
return s:random_r(s:state) |
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
" Visual C++ 2010: rand.c | |
let s:RAND_MAX = 32767 | |
let s:seed = 0 | |
function! Srand(seed) | |
let s:seed = a:seed | |
endfunction |