Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am nestalk on github.
  • I am nestalk (https://keybase.io/nestalk) on keybase.
  • I have a public key ASCvZsLNREOOfvm0EzAeEXCxTnZ3tEVf8qEnXs-PVXcBDwo

To claim this, I am signing this object:

@nestalk
nestalk / setup.md
Last active February 13, 2017 09:00
windows setup
@nestalk
nestalk / vimcommands.md
Created September 29, 2016 08:32
vim commands

Vim commands

Movement

  • k - up
  • j - down
  • h - left
  • l - right
  • gg - top of file
  • G - bottom of file
@nestalk
nestalk / vimrc
Last active November 15, 2016 13:43
vimrc file
autocmd!
set nocompatible
syntax on
set hidden
colorscheme default
set t_Co=256
set background=dark
set number
set relativenumber
set scrolloff=3
@nestalk
nestalk / ReadInput.fs
Created September 2, 2016 14:54
Read input for hackerrank
open System
let rec readInput lines =
match Console.ReadLine() with
| null -> List.rev lines
| "" -> List.rev lines
| s -> readInput ((int s)::lines)
@nestalk
nestalk / conda.cmd
Last active August 10, 2016 14:58
Update anaconda to use the latest sickit-learn
conda update conda
conda install pip
pip install git+git://github.com/scikit-learn/scikit-learn.git
pip install graphviz
choco install graphviz
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
tab_width = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
@nestalk
nestalk / rstudio.md
Created May 5, 2016 08:56
R Studio font fix

Add to RStudio/www/index.htm

<style>*{text-rendering: optimizeLegibility;}</style>
@nestalk
nestalk / vscode-settings.json
Last active June 20, 2018 08:44
vscode settings
// Place your settings in this file to overwrite the default settings
{
// font setup
"editor.fontFamily": "Fira Code",
"editor.fontSize": 0,
"editor.fontLigatures": true,
// autocomplete only on tab
"editor.acceptSuggestionOnEnter": "off",
// Show icons
"workbench.editor.showIcons": true,
@nestalk
nestalk / poshgit_prompt.ps1
Last active June 20, 2018 08:43
My poshgit prompt
# Load posh-git example profile
if(Test-Path Function:\Prompt) {Rename-Item Function:\Prompt PrePoshGitPrompt -Force}
Import-Module 'D:\Development\posh-git\src\posh-git.psd1'
Start-SshAgent -Quiet
function Prompt() {
$windowsIdentity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$windowsPrincipal = new-object 'System.Security.Principal.WindowsPrincipal' $windowsIdentity
if ($psISE) { $color = "Black"; }
elseif ($windowsPrincipal.IsInRole("Administrators") -eq 1) { $color = "Red"; }
else { $color = "Green"; }