Skip to content

Instantly share code, notes, and snippets.

Prabir Shrestha prabirshrestha

Block or report user

Report or block prabirshrestha

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
prabirshrestha / log.log
Created Aug 9, 2017
performance - very slow compared to tsserver
View log.log
This file has been truncated, but you can view the full file.
DEBUG --> { method: 'initialize',
jsonrpc: '2.0',
id: 1,
{ rootUri: 'file:///D:/tmp/flow-helloworld',
capabilities: {},
rootPath: 'file:///D:/tmp/flow-helloworld' } }
DEBUG <-- { jsonrpc: '2.0',
method: '$/partialResult',
View autoload_asyncomni.vim
" save all the completions
let s:completions = []
function! asyncomni#omnifunc(findstart, base)
if a:findstart
let l:line_string = getline('.')
let l:line = line('.')
let l:col = col('.')
" locate start of the word
let l:start = l:col -1
View aad outlook graph api.html
<!DOCTYPE html>
<title>AAD Login</title>
<button id="login-button">Login</button>
prabirshrestha / init.vim for dein.vim
Last active Dec 24, 2016
bootstrap vim plugin managers
View init.vim for dein.vim
" to use existing vim configuration as neovim configuration
" ln -s ~/.vimrc ~/.config/nvim/init.vim
let mapleader = ' '
" vimrc {{{
nnoremap <leader>ev :e $MYVIMRC<cr>
nnoremap <leader>sv :source $MYVIMRC<cr>
" }}}
let s:settings = {}
prabirshrestha / client.vim
Last active Oct 22, 2016
async vim with channel
View client.vim
function! s:Handler(handle, msg)
echom a:handle
echom a:msg
let handle = ch_open('localhost:8000', {'mode': 'json'})
call ch_sendexpr(handle, 'hello', function('s:Handler'))
prabirshrestha / termbox-sample.go
Last active Sep 14, 2015
termbox-go with (partial) react style rendering.
View termbox-sample.go
package main
import (
type appState struct {
endEventLoop bool
View actions.js
export function increment() {
return {
function decrement() {
return {
prabirshrestha / index.html
Last active Jan 21, 2016
aad single signon in javascript
View index.html
<script src=""></script>
// register app at
var ac = new AuthenticationContext({
clientId: 'clientId',
tenant: 'tenantId',
prabirshrestha / web.go
Last active Aug 29, 2015
strongly typed context in golang -
View web.go
package main
import (
View goreman.nuspec
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="">
You can’t perform that action at this time.