Skip to content

Instantly share code, notes, and snippets.

View kinday's full-sized avatar

Leonard Kinday kinday

View GitHub Profile
Blitz
IDLE
start -> RUNNING
RUNNING
complete -> COMPLETED
error -> FAILED
reset -> IDLE
spin -> RUNNING
FAILED
reset -> IDLE
Blitz
IDLE*
spin -> RUNNING
RUNNING
error -> FAILED
reset -> IDLE
spin -> RUNNING
FAILED
reset -> IDLE
retry -> RUNNING
@kinday
kinday / model.js
Last active October 13, 2015 15:27
Object literal shorthands and Boolean values
import mongoose, { Schema } from 'mongoose';
// Define helper for `required` property and never
// write `required: true` again.
// Why? It’s DRY and improves readability.
const required = true;
export default (function _createTaskModel() {
let model;
@kinday
kinday / functions.php
Last active February 12, 2016 00:17
WordPress performance stats
<?php
// Register function if WordPress is in debug mode
if ( true == 'WP_DEBUG' ) {
add_action( 'wp_footer', 'the_performance_stats' );
}
@kinday
kinday / Preferences.sublime-settings
Last active August 29, 2015 14:03
Sublime Text 3 settings
{
"bold_folder_labels": true,
"caret_style": "phase",
"close_windows_when_empty": true,
"copy_with_empty_selection": false,
"create_window_at_startup": false,
"detect_indentation": false,
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[