Skip to content

Instantly share code, notes, and snippets.

View calebklc's full-sized avatar
🤯
I may be slow to respond.

KwanLam Chan calebklc

🤯
I may be slow to respond.
  • Hong Kong
  • 04:17 (UTC +08:00)
View GitHub Profile
```language
Object.flatten = function(obj){
var result = {};
function recurse(src, prop) {
var toString = Object.prototype.toString;
if (toString.call(src) == '[object Object]') {
var isEmpty = true;
for (var p in src) {
isEmpty = false;
@calebklc
calebklc / README.md
Created March 19, 2020 15:23 — forked from nicejade/README.md
Generate a good README

Generate a good README

Generate a good README use `npx` commmd.

@calebklc
calebklc / README-Template.md
Created April 15, 2019 06:04 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@calebklc
calebklc / install-tomcat-8.5.14.sh
Created July 20, 2017 12:08 — forked from Clivern/install-tomcat-8.5.14.sh
How to Install Apache Tomcat 8 on Ubuntu 16.04
#!/bin/bash
# For More Info http://clivern.com/how-to-install-apache-tomcat-8-on-ubuntu-16-04
sudo apt-get update
sudo apt-get install default-jdk
sudo apt-get install unzip
cd /opt
curl -O http://apache.mirrors.ionfish.org/tomcat/tomcat-8/v8.5.15/bin/apache-tomcat-8.5.15.zip
sudo unzip apache-tomcat-8.5.15.zip
sudo mv apache-tomcat-8.5.15 tomcat
@calebklc
calebklc / ubuntu-server-setup-16.04.md
Created March 24, 2017 10:13 — forked from marcuslilja/ubuntu-server-setup-16.04.md
Server setup for Ubuntu 16.04 on Digital Ocean

Server setup for Ubuntu 16.04 on Digital Ocean

The setup installs the following software:

  • Nginx
  • MySQL
  • PHP
  • Node
  • Composer
@calebklc
calebklc / Awesome-PHP-Development-Environment-on-Antergos.md
Last active December 11, 2016 11:20 — forked from rhwilr/Awesome-PHP-Development-Environment-on-Arch.md
This is my awesome php development environment

Introduction

The following steps are required for a typical web developer stack for php and some front-end development. This is for a developer machine and not for a live environment!

Installation stack

@calebklc
calebklc / One Dark.icls
Created September 22, 2016 15:12 — forked from agentgt/One Dark.icls
Intellij Atom One Dark theme
<scheme name="One Dark" version="142" parent_scheme="Default">
<option name="LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_SIZE" value="12" />
<option name="CONSOLE_FONT_NAME" value="Monospaced" />
<option name="EDITOR_FONT_NAME" value="Menlo" />
<colors>
<option name="ADDED_LINES_COLOR" value="abb2bf" />
<option name="ANNOTATIONS_COLOR" value="ffffff" />
<option name="ANNOTATIONS_MERGED_COLOR" value="ffffff" />
<option name="CARET_COLOR" value="61afef" />