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 ( | |
"fmt" | |
"log" | |
"unsafe" | |
"github.com/jgillich/go-opencl/cl" | |
) |
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 ( | |
"bufio" | |
"fmt" | |
"log" | |
"os" | |
) | |
func main() { |
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
@echo off | |
setlocal enabledelayedexpansion | |
set ifname="ローカル エリア接続" | |
set count=0 | |
if "%1" equ "" ( | |
for /F "tokens=1,2,3,4,5 delims=," %%i in (%~dp0ipset.csv) do ( | |
set "n=00!count!" | |
echo !n:~-2! %%i %%j |
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
if executable('typescript-language-server') | |
augroup LspTypeScript | |
au! | |
autocmd User lsp_setup call lsp#register_server({ | |
\ 'name': 'typescript-language-server', | |
\ 'cmd': {server_info->[&shell, &shellcmdflag, 'typescript-language-server', '--stdio']}, | |
\ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), 'tsconfig.json'))}, | |
\ 'whitelist': ['typescript'], | |
\ }) | |
autocmd FileType typescript setlocal omnifunc=lsp#complete |
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 livereload | |
import ( | |
"os" | |
"github.com/labstack/echo" | |
"github.com/labstack/echo/middleware" | |
"github.com/omeid/livereload" | |
) |
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 ( | |
"fmt" | |
"log" | |
"github.com/boltdb/bolt" | |
) | |
func main() { |
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/evalfunc.c b/src/evalfunc.c | |
index 8d288e0..ad017af 100644 | |
--- a/src/evalfunc.c | |
+++ b/src/evalfunc.c | |
@@ -13449,8 +13449,14 @@ f_writefile(typval_T *argvars, typval_T *rettv) | |
if (write_list(fd, list, binary) == FAIL) | |
ret = -1; | |
#ifdef HAVE_FSYNC | |
- else if (do_fsync && fsync(fileno(fd)) != 0) | |
- EMSG(_(e_fsync)); |
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 ( | |
"fmt" | |
"log" | |
"math/rand" | |
"regexp" | |
"strings" | |
"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
format: | |
subject: '### %{subject}' | |
line: '* [%{title}](%{url}) by @[%{user}](https://github.com/%{user}) %{status}' | |
dictionary: | |
status: | |
merged: '**merged!**' | |
closed: '**closed!**' |
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 <stdio.h> | |
int main(void) { | |
int n = 600000 * 3; | |
int i = 1; | |
long c; | |
char buf[BUFSIZ]; | |
setbuf(stdout, buf); | |
for (i = 1; i <= n; i++) { | |
if (i % 3 == 0 && i % 5 == 0) { |