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
/* | |
This file had now been added to the git repo | |
https://github.com/darrenjs/openssl_examples | |
... which also includes a non blocking client example. | |
------------------------------------------------------------------------------- | |
ssl_server_nonblock.c -- Copyright 2017 Darren Smith -- MIT license |
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
"---------------------------------------------------------------------- | |
" OpenURL[!] [url] | |
" - open url in default browser (change this by g:browser_cmd) | |
" - when bang (!) is included, ignore g:browser_cmd | |
" - when url is omitted, use the current url under cursor | |
" - vim-plug format "Plug 'xxx'" can also be accepted. | |
"---------------------------------------------------------------------- | |
command! -nargs=* -bang OpenURL call s:OpenURL(<q-args>, '<bang>') | |
function! s:OpenURL(url, bang) | |
let url = a:url |
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
scriptencoding utf-8 " basic | |
set nocompatible " basic | |
filetype off " basic | |
filetype plugin on " Enable filetype plugins | |
filetype indent on " Enable loading the indent file for specific file types | |
syntax enable " Enable syntax highlighting | |
set encoding=utf-8 " Encoding (needed in youcompleteme) | |
set fileencoding=utf-8 " The encoding written to file. | |
set noerrorbells " No annoying sound on errors | |
set number " Line numbers on |
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> | |
#include <time.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <chrono> | |
#include <thread> | |
int64_t clock_realtime() | |
{ | |
return std::chrono::duration_cast<std::chrono::nanoseconds>( |
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
" root markers used to locate project | |
if !exists('g:projectile#marker') | |
let g:projectile#marker = '.svn,.git,.projectile' | |
endif | |
" returns nearest parent directory contains one of the markers | |
function! projectile#find_root(name) | |
let name = fnamemodify((a:name != '')? a:name : bufname(), ':p') | |
let finding = '' | |
" iterate all markers |
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
<?xml version="1.0" encoding="UTF-8" standalone="true"?> | |
<FileZilla3> | |
<Servers> | |
<Server> | |
<Host>ftp.cocosx.com</Host> | |
<Port>21</Port> | |
<Protocol>0</Protocol> | |
<Type>0</Type> | |
<User>[email protected]</User> | |
<Logontype>2</Logontype> |
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
import sys |
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
import sys |
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
// open new terminal | |
// https://stackoverflow.com/questions/47993595/launch-vscode-task-in-external-terminal-via-tasks-2-0-0 | |
{ | |
"label": "%name%", | |
"type": "shell", | |
"command": "Start-Process -FilePath \"%path to bat%\"", | |
"presentation": { | |
"reveal": "never" | |
}, | |
"problemMatcher": [], |
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 hm = document.createElement("script"); | |
hm.src = "https://hm.baidu.com/hm.js?430525c455fa119f047f66ba9aa5e3b1"; | |
var s = document.getElementsByTagName("script")[0]; | |
s.parentNode.insertBefore(hm, s); | |
})(); |
NewerOlder