- setup grunt-contrib-watch like handlebars
- test grunt-hub on windows. Update chokidar usage in task to work like grunt-contrib-watch.
This file contains hidden or 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
/* | |
* A) Simple Watch Events | |
*/ | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
nodeunit: { | |
files: ['test/**/*.js'], | |
}, | |
watch: { | |
test: { |
This file contains hidden or 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 | |
# which cake version that will be bundled in the zip file | |
CAKE_13_STABLE=1.3.15 | |
CAKE_21_STABLE=2.1.5 | |
# location of working repositories | |
CAKE_REPO=/Users/kyle/Documents/www/cake/ | |
CROOGO_REPO=/Users/kyle/Documents/www/croogo/app/ |
This file contains hidden or 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
Welcome to Git (version 1.7.11-preview20120710) | |
Run 'git help git' to display the help index. | |
Run 'git help <command>' to display help for specific commands. | |
Kyle@OFFICE-WIN ~ | |
$ cd Documents/grunt | |
Kyle@OFFICE-WIN ~/Documents/grunt (devel) |
This file contains hidden or 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
var assert = require('assert'); | |
module.exports = { | |
'pull-requests': { | |
'should log pull request object': function (pull) { | |
//assert.ok(/\-wip$/.test(pull.base.label)) | |
console.log(pull); | |
} | |
} | |
} |
This file contains hidden or 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
<?php | |
/** | |
* DONT DO THIS | |
* Just to show it is possible but if you are calling | |
* a helper from a controller then your code should likely | |
* be in a Model or Lib instead. | |
*/ | |
class ExamplesController extends AppController { | |
public function index() { |
A collection of notes as I use CakePHP and related projects. Could be items I plan to work on, misunderstandings or curiosities.
- basics.php - debug()
- Output bufferring doesn't work well with debug(), $var = print_r($var, true) can't be used with ob
- Debug method, mouse over to display file location (it gets in the way)
- Console
A game to play when answering questions in a support channel of an open source project to get people to read the docs.
- The player asks a question.
- If the answer can be found in the docs/wiki, the player gets 1 point.
- If the answer can be found in the readme, the player gets 1.5 points.
- If the answer can be found with a google search, the player gets 0.5 points.
This file contains hidden or 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
<?php | |
App::uses('Folder', 'Utility'); | |
App::uses('File', 'Utility'); | |
/** | |
* Fix Assert Shell | |
* Will correct the parameter ordering of assertEquals() | |
* Not perfect but gets most and only causes a few errors :) | |
* | |
* @author Kyle Robinson Young <kyle at dontkry.com> |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>jmpress.js | how to use jmpress.js step events</title> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript" src="jmpress.js"></script> | |
</head> |