Skip to content

Instantly share code, notes, and snippets.

@eellpp
eellpp / svelte.md
Last active May 23, 2021 15:56 — forked from peltho/svelte.md
Svelte cheatsheet
Singapore Residential Property Price Index
https://tradingeconomics.com/singapore/housing-index
Your REAL Rental Yield in Singapore is likely ZERO
http://frugalinsingapore.com/real-rental-yields-singapore-zero/
India
http://economictimes.indiatimes.com/wealth/real-estate/should-you-buy-or-rent-a-house/articleshow/56389410.cms
http://www.huffingtonpost.in/manu-rishi-guptha/why-its-plain-stupid-to-buy-a-house-in-india_a_21702571/
@eellpp
eellpp / pushExistingProjectToGithub.txt
Created April 20, 2017 04:12
How to push an existing project to github
# create the repo at github
# get the project url by clicking on clone or download
git init
git add .
git commit -m "Initial commit"
git remote add origin <project url>
git push -f origin master
## set this up, to just do git push later
Statistical Analysis with Missing Data, 2nd Edition
Statistical analysis of data sets with missing values is a pervasive problem for which standard methods are of limited value. The first edition of Statistical Analysis with Missing Data has been a standard reference on missing-data methods. Now, reflecting extensive developments in Bayesian methods for simulating posterior distributions, this Second Edition by two acknowledged experts on the subject offers a thoroughly up-to-date, reorganized survey of current methodology for handling missing-data problems.
vim Help
- help
- help <String>Tab
- help grep
cnext, cprev, cfile
vimgrep pattern files
Repeat a character n times without typing
<C-o>80i-<Esc>
## Pragmatic Software Development Tips Extracted From The Pragmatic Programmer
Reference:
- <https://pragprog.com/the-pragmatic-programmer/extracts/tips>
- The essence of "Pragmatic Programmer" <http://www.inf.fu-berlin.de/inst/ag-se/teaching/K-CCD-2014/Pragmatic-Programmer-summary.pdf>
1. Care About Your Craft
Why spend your life developing software unless you care about doing it well?
/*
* testApp.java
*
* Copyright (c) 2000-2012, The University of Sheffield.
*
* This file is part of GATE (see http://gate.ac.uk/), and is free
* software, licenced under the GNU Library General Public License,
* Version 3, 29 June 2007.
*
* A copy of this licence is included in the distribution in the file
http://www.grcdi.nl/gsb/summary_%20company%20legal%20forms.html
https://en.wikipedia.org/wiki/Types_of_business_entity
https://gate.ac.uk/sale/tao/splitap6.html
https://github.com/hpcc-systems/TextAnalytics/blob/master/hpcc/GATE_Annie/plugins/ANNIE/resources/NE/name.jape
## Java * References
https://www.oreilly.com/learning/java-8-functional-interfaces
http://refactoring.info/tools/LambdaFicator/
@eellpp
eellpp / multiplot.R
Created May 21, 2016 11:25
Plot multiple ggplot charts together
# From http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_(ggplot2)/
#
#Multiple plot function
#
# ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects)
# - cols: Number of columns in layout
# - layout: A matrix specifying the layout. If present, 'cols' is ignored.
#
# If the layout is something like matrix(c(1,2,3,3), nrow=2, byrow=TRUE),
# then plot 1 will go in the upper left, 2 will go in the upper right, and
@eellpp
eellpp / gist:fcdcb03ca02fbd495b67ce7e488422f5
Last active August 17, 2018 12:02
Running Hadoop in pseudo-distributed mode on mac
> brew install hadoop
This installs hadoop at /usr/local/Cellar/hadoop/2.7.3
Find java home
> cd /usr/local/Cellar/hadoop/2.7.3
> vim etc/hadoop/hadoop-env.sh
The JAVA_HOME should be set as below in file
export JAVA_HOME="$(/usr/libexec/java_home)"