Skip to content

Instantly share code, notes, and snippets.

View gsklee's full-sized avatar

G. Kay Lee gsklee

View GitHub Profile
@gsklee
gsklee / W3C HTML
Last active September 17, 2018 18:57
<body> → COMPOSITION
<article> → COMPOSITION #(X <main>)
<section> → COMPOSITION
COMPOSITION → HEADING <header>:? <article>:* <section>:* <aside>:* <footer>:?
<aside> → HEADING <header>:? <article>:* <section>:* <footer>:? #(X <main>)
<header> → <nav>:* SECTION_FLAT:* ASIDE_FLAT:* #(X <main>)
<footer> → <nav>:* SECTION_FLAT:* ASIDE_FLAT:* #(X <main>)
SECTION_FLAT -> HEADING <nav>:*
ASIDE_FLAT -> HEADING <nav>:*
<nav> → HEADING #(X <main>)
@gsklee
gsklee / mayfair.css
Created November 10, 2015 04:22
Bio-Inspired Frontend Engineering
.backgrounds {
position: relative;
-webkit-filter: contrast(1.1) saturate(1.1);
filter: contrast(1.1) saturate(1.1);
}
.backgrounds::after {
content: '';
display: block;
width: 100%;
@gsklee
gsklee / atom-language-packages.json
Created January 28, 2015 02:32
Grabbed on 2015.01.27
[
{
"language": "haml",
"downloads": 15570,
"stars": 44
},
{
"language": "jade",
"downloads": 14318,
"stars": 72
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AbandonProcessGroup</key>
<true/>
<key>Label</key>
<string>local.automount.sshfs</string>
<key>ProgramArguments</key>
<array>
# Add the Typesafe Repository
# http://typesafe.com/stack
$ wget http://apt.typesafe.com/repo-deb-build-0002.deb
$ dpkg -i repo-deb-build-0002.deb
$ apt-get update
# Install OpenJDK Development Kit and Typesafe Stack
$ apt-get install openjdk-7-jdk typesafe-stack
# (Extra) Add Vim Support
@gsklee
gsklee / _.sh
Last active November 14, 2020 16:00
Node.js + Express Setup on Linux: The Best Practice @ http://gsklee.tumblr.com/post/47097805306/node-js-express-setup-on-linux-the-best-practice
# Install Node Version Manager
# https://github.com/creationix/nvm
$ curl https://raw.github.com/creationix/nvm/master/install.sh | sh
$ nvm install 0.10.3
$ nvm alias default 0.10.3
# Install Express
# https://github.com/visionmedia/express
$ npm install -g express
@gsklee
gsklee / coffeemaker
Created October 18, 2011 09:40
Carefree CoffeeScript Auto-compiler
#!/bin/bash
#
# --------------------------------------------------------------------------------------
# http://blog.gantrithor.com/post/12535461464/carefree-coffeescript-auto-compiler-part-3
# --------------------------------------------------------------------------------------
DIR_ROOT="$(cd "$(dirname "$0")" && pwd)"
function compile_tree() {
find "$1" -name "*.coffee" -type f | while read PATH_COFFEE; do