Skip to content

Instantly share code, notes, and snippets.

Avatar

Leonard Kinday kinday

View GitHub Profile
View SketchSystems.spec
Blitz
IDLE
start -> RUNNING
RUNNING
complete -> COMPLETED
error -> FAILED
reset -> IDLE
spin -> RUNNING
FAILED
reset -> IDLE
View SketchSystems.spec
Blitz
IDLE*
spin -> RUNNING
RUNNING
error -> FAILED
reset -> IDLE
spin -> RUNNING
FAILED
reset -> IDLE
retry -> RUNNING
@kinday
kinday / functions.php
Last active Feb 12, 2016
WordPress performance stats
View functions.php
<?php
// Register function if WordPress is in debug mode
if ( true == 'WP_DEBUG' ) {
add_action( 'wp_footer', 'the_performance_stats' );
}
@kinday
kinday / model.js
Last active Oct 13, 2015
Object literal shorthands and Boolean values
View model.js
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 / Preferences.sublime-settings
Last active Aug 29, 2015
Sublime Text 3 settings
View Preferences.sublime-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":
[