Skip to content

Instantly share code, notes, and snippets.

View kennyki's full-sized avatar
🏠
Working from home

Kenny Ki kennyki

🏠
Working from home
View GitHub Profile
{
"allOf":[
{
"type":"object",
"required":[
"payload_type_document",
"payload_type_parcel"
],
"properties":{
"payload_type_document":{
@kennyki
kennyki / gist:35578c24a854923484e2
Created July 28, 2015 09:33
AngularJS directive for `autocomplete=off` (that works.. so far)
angular.module('dont_fill', [])
// cross-browser trick to prevent input being auto-filled
// where autocomplete=off don't work as intended a lot of time
.directive('dontFill', function() {
return {
restrict: 'A',
@kennyki
kennyki / docpad.js
Created January 29, 2013 14:50
docpad.js that throws “module” is undefined
/*
* Export our DocPad Configuration
*/
module.exports = {
// Change the port DocPad uses from the default 9778 to 8080
port: 8080,
/*
* Template Data