Skip to content

Instantly share code, notes, and snippets.

View edwardkenfox's full-sized avatar
🎯
Focusing

Edward Fox edwardkenfox

🎯
Focusing
View GitHub Profile
@edwardkenfox
edwardkenfox / Preferences.sublime-settings
Created March 15, 2015 14:02
Sublime Text 3: personal settings
{
"bold_folder_labels": true,
"caption": "Git: Grep",
"color_scheme": "Packages/User/Monokai (SL).tmTheme",
"command": "git_grep",
"dictionary": "Packages/Language - English/en_US.dic",
"disable_tab_abbreviations": true,
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
@edwardkenfox
edwardkenfox / open_closed_comments.js
Last active April 27, 2016 06:43
Open all outdated comments to pull request on GitHub
[].forEach.call(document.querySelectorAll(".discussion-item-toggle-closed"), function(comment) { comment.click() })
@edwardkenfox
edwardkenfox / blip.html
Created March 26, 2015 08:54
blip.html
<html>
<head>
<style>
.centered {
width:100%;
height:100%;
display:-webkit-box;
-webkit-box-orient:vertical;
-webkit-box-pack:center;
-webkit-box-align:center;
@edwardkenfox
edwardkenfox / .gitconfig
Last active November 9, 2016 10:10
git wip command
# other git configs
[alias]
wip = "!f(){ git add . && git commit -m \"WIP [ci skip]\"; };f"
@edwardkenfox
edwardkenfox / index.html
Created September 20, 2016 01:12
d3 test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>d3 test</title>
<link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet">
</head>
<body>
<style type="text/css">
.tick line{
@edwardkenfox
edwardkenfox / ideas.md
Last active May 31, 2020 03:24
ideas.md
@edwardkenfox
edwardkenfox / poll-promise.js
Created November 2, 2016 11:50 — forked from jfairbank/poll-promise.js
poll promise
function poll(fn, timeout, interval) {
var endTime = Number(new Date()) + (timeout || 2000);
interval = interval || 100;
return new Promise(function(resolve, reject) {
(function p() {
// If the condition is met, we're done!
if (fn()) {
resolve();
}
@edwardkenfox
edwardkenfox / loader.html
Last active December 24, 2016 01:20
minimalistic loader
<!DOCTYPE html>
<head>
</head>
<body>
<style type="text/css">
@keyframes spin-frame { to { transform: translateY(-15.0em); } }
.loader {
display: inline-block;
height: 1.3em;
line-height: 1.5em;
@edwardkenfox
edwardkenfox / LICENSE.txt
Created November 30, 2016 15:50 — forked from Fedia/LICENSE.txt
John Resig's Micro-Templating in 140 bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2015 Fedia <fedia@psih.ru>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@edwardkenfox
edwardkenfox / 20161221_s3_cors_test.html
Created December 21, 2016 07:19
20161221_s3_cors_test.html
<!doctype html>
<html class="no-js" lang="">
<head>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<div id="app">
<button @click="getAndExecuteFile">Get {{filename}}</button>
<br>