A Pen by Christopher Hoage on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("form").bind("liszt:ready", function(event, chosen) { | |
var chooseInstance = chosen.chosen, | |
$chosenDrop = $(chooseInstance.search_results).parent(); | |
var $addHtml = $("<div/>", { | |
html: $("<input/>", { | |
type: "text", | |
keypress: function(e) { | |
if(e.which == 13) { | |
e.preventDefault(); | |
var $this = $(this), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Backbone.Marionette.TemplateCache.prototype.loadTemplate = function(templateId){ | |
// load your template here, returning a the data needed for the compileTemplate | |
// function. For example, you have a function that creates templates based on the | |
// value of templateId | |
if (Handlebars.templates === undefined || Handlebars.templates[templateId] === undefined) { | |
var deffered = $.ajax({ | |
url : '/templates/' + templateId + '.handlebars', | |
dataType : 'text', | |
success : function(data) { | |
if (Handlebars.templates === undefined) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title>Creative Engineering Code Challenge - July 2015</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
kwmc=$HOME/bin/kwmc | |
currentFocus=$($kwmc read focus) | |
currentMouse=$($kwmc read mouse-follows) | |
tag=$($kwmc read tag) | |
if [ "$1" = 'quit' ]; then | |
killall kwm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import AppKit | |
func parseFrame(args: Array<String>) -> NSRect { | |
var frameHash = [String: Int]() | |
frameHash["w"] = 0 | |
frameHash["h"] = 0 | |
frameHash["x"] = 0 | |
frameHash["y"] = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
kwmc=$HOME/bin/kwmc | |
currentFocus=$($kwmc query focus-follows-mouse) | |
currentMouse=$($kwmc query mouse-follows-focus) | |
tag=$($kwmc query space active mode) | |
if [ "$1" = 'quit' ]; then | |
killall kwm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"plugins": [ | |
"stylelint-order" | |
], | |
"rules": { | |
"color-hex-case": "lower", | |
"color-hex-length": "short", | |
"color-named": "never", | |
"color-no-invalid-hex": true, | |
"font-family-name-quotes": "always-unless-keyword", |
I hereby claim:
- I am chrishoage on github.
- I am chrishoage (https://keybase.io/chrishoage) on keybase.
- I have a public key ASDAjKt3BXXaK8YhBcS9KNVE17eCpPmpXgEP5YfgEeok7Ao
To claim this, I am signing this object: