Skip to content

Instantly share code, notes, and snippets.

View chi-feng's full-sized avatar

Chi Feng chi-feng

  • Suno AI
  • Singapore
View GitHub Profile

Original CSS

body {
	font-size: 14px;
	font-family: Helvetica, Arial, sans-serif;
	line-height: 1.4;
}

.header {
	color: red;
@chi-feng
chi-feng / github_ssh_auth.md
Created January 9, 2020 21:59
github ssh auth
  1. run ssh-keygen and press enter repeatedly until done. This creates a public/private key pair in ~/.ssh/
  2. run cat ~/.ssh/id_rsa.pub to print out the public key
  3. copy the key to your clipboard
  4. visit https://github.com/settings/keys and click [New SSH key] and paste your key when prompted
  5. You're done!

Now you can git clone via ssh (make sure to copy the repository url for cloning using SSH instead of HTTPS). The repository url should look like: [email protected]:user/repo.git

@chi-feng
chi-feng / pagerank.ipynb
Created October 18, 2019 22:44
pagerank.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chi-feng
chi-feng / git_examples.sh
Last active October 9, 2019 12:58
99% of the Git commands you'll need at work, demonstrated in a single script (credit BitPusher16)
#!/bin/bash
##########
# contents
##########
# contents
# notes
# script setup
# git config files
conda install -c conda-forge jupyter_contrib_nbextensions
conda install -c conda-forge jupyter_nbextensions_configurator
conda install -c conda-forge gensim
conda install -c conda-forge spacy
python -m spacy download en_core_web_sm
@chi-feng
chi-feng / preamble
Created September 17, 2013 01:38
Latex Listings language definition/style for Julia
\usepackage{inconsolata} % very nice fixed-width font included with texlive-full
\usepackage[usenames,dvipsnames]{color} % more flexible names for syntax highlighting colors
\usepackage{listings}
\lstset{
basicstyle=\ttfamily,
columns=fullflexible, % make sure to use fixed-width font, CM typewriter is NOT fixed width
numbers=left,
numberstyle=\small\ttfamily\color{Gray},
stepnumber=1,