Skip to content

Instantly share code, notes, and snippets.

View khushmeeet's full-sized avatar
🖥️
Software Engineer at Apple

Khushmeet Singh khushmeeet

🖥️
Software Engineer at Apple
View GitHub Profile
Verifying my Blockstack ID is secured with the address 18EYowXYPtb4AZ1kdJPVQ1Yp48H3UuwCkj https://explorer.blockstack.org/address/18EYowXYPtb4AZ1kdJPVQ1Yp48H3UuwCkj
@khushmeeet
khushmeeet / y.py
Created November 30, 2017 14:13
Factorial in python using y-combinator
def Y(f):
def g(h):
return lambda x: f(h(h))(x)
return g(g)
def q(r):
return lambda x: 1 if x == 0 else x * r(x - 1)
factorial = Y(q)
Verifying that "1GqzeLWnJHty3ouUEJDS8QijUSNPCbqPWd.id" is my Blockstack ID. https://onename.com/1GqzeLWnJHty3ouUEJDS8QijUSNPCbqPWd

Keybase proof

I hereby claim:

  • I am khushmeet on github.
  • I am khushmeet (https://keybase.io/khushmeet) on keybase.
  • I have a public key whose fingerprint is CF7D FC07 5697 8C01 9808 26FE 5489 C75E 36B2 4892

To claim this, I am signing this object:

@khushmeeet
khushmeeet / .zshrc
Last active August 3, 2017 02:54
oh my zsh conf file
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/khushmeetsingh/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# ZSH_THEME=“apple”
@khushmeeet
khushmeeet / cloudSettings
Last active September 4, 2017 22:36
Visual Studio Code Sync Settings GIST
{"lastUpload":"2017-09-04T22:35:58.164Z","extensionVersion":"v2.8.3"}
@khushmeeet
khushmeeet / .bash_profile
Last active December 4, 2016 09:25
.bash_profile for my Mac
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export NVM_DIR="/Users/khushmeetsingh/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
# added by Anaconda3 4.1.1 installer
export PATH="/Users/khushmeetsingh/anaconda/bin:$PATH"
export CLASSPATH=".:/usr/local/lib/antlr-4.5.3-complete.jar:$CLASSPATH"
export PATH=${PATH}:/usr/local/mysql/bin
@khushmeeet
khushmeeet / Numpy cheatsheet.ipynb
Created July 20, 2016 16:34
Numpy cheatsheet
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.