Skip to content

Instantly share code, notes, and snippets.

View speedsticko's full-sized avatar

Kwan Lim speedsticko

View GitHub Profile
import Component from '@glimmer/component';
export default class extends Component {
}
@speedsticko
speedsticko / gist:787d42bc9503c6a202e5ab8ab6c079d7
Created May 7, 2018 03:02
This page loaded in ${loadTime} seconds
(function(){
const t = window.performance && performance.timing;
if (!t) {
return;
}
const loadTime = (t.loadEventEnd - t.navigationStart) / 1000;
alert(`This page loaded in ${loadTime} seconds`);
}())
src: http://www.phpied.com/this-page-loaded-in-x-seconds/
@speedsticko
speedsticko / jk_chinese_vocab.html
Created May 6, 2018 03:10
Junior Kindergarten Cantonese Vocabulary list
<pre lang="ko">
One - &#x4E00;
Two - &#x4E8C;
Three - &#x4E09;
Four - &#x56DB;
Five - &#x4E94;
Six - &#x516D;
Seven - &#x4E03;
Eight - &#x516B;
Nine - &#x4E5D;
http://tutorials.jenkov.com/java-persistence/dao-manager.html
@speedsticko
speedsticko / knowledgemap.js
Created November 9, 2015 16:18 — forked from kamens/knowledgemap.js
Knowledge Map file for Constellation Knowledge blog post
function KnowledgeMapInitGlobals() {
window.KnowledgeMapGlobals = {
colors: {
blue: "#0080C9",
green: "#8EBE4F",
red: "#E35D04",
gray: "#FFFFFF"
},

Offline-first tools for web developers

A quick list of tools for building HTML/CSS/JS apps that work well offline. Ping me at @nolanlawson if I missed anything!

Hybrid app development

Tools for bundling your HTML/CSS/JS into a native app.

@speedsticko
speedsticko / gist:480a2df578569a3adae7
Last active August 29, 2015 14:06
Canvas Docker steps
RUN for config in amazon_s3 delayed_jobs domain file_store outgoing_mail security scribd external_migration; \
do cp -v config/$config.yml.example config/$config.yml; done
RUN cp config/database.yml.example config/database.yml
RUN createdb canvas_development
RUN createdb canvas_queue_development
RUN bundle exec rake db:initial_setup
(ns async-tut1.core
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [goog.dom :as dom]
[goog.events :as events]
[cljs.core.async :refer [put! chan <!]])
(:import [goog.net Jsonp]
[goog Uri]))
(.log js/console (dom/getElement "query"))
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>DataTables example</title>
<link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.1/css/jquery.dataTables.css">
<script type="text/javascript" charset="utf8" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" charset="utf8" src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.1/jquery.dataTables.min.js"></script>
if('querySelector' in document && 'localStorage' in window && 'addEventListener' in window) {
}
document.getElementById('');
document.getElementsByTagName('');
document.getElementsByClassName('');
document.querySelectorAll('');
document.querySelector('');