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
♢ FreedomConnector | |
An unauthenticated visit to the front page | |
✓ should have a status of 200 | |
✓ should have an active logo anchor | |
✓ OK » 2 honored (1.087s) |
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
$ npm.cmd --version | |
/c/node/npm.cmd: line 1: unexpected EOF while looking for mat | |
/c/node/npm.cmd: line 7: syntax error: unexpected end of file | |
$ node -e 'console.log(process.platform)' | |
win32 | |
$ npm --version | |
sh.exe": npm: command not found |
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
info it worked if it ends with ok | |
verbose cli [ 'node', | |
verbose cli '/home/vagrant/.nvm/v0.4.12/bin/npm', | |
verbose cli 'install' ] | |
info using npm@1.0.105 | |
info using node@v0.4.12 | |
verbose config file /home/vagrant/.npmrc | |
verbose config file /home/vagrant/.nvm/v0.4.12/etc/npmrc | |
verbose config file /home/vagrant/.nvm/v0.4.12/lib/node_modules/npm/npmrc | |
silly testEngine { name: 'kaching', |
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
// Disable replies to a message. | |
$items[$url_prefix . '/lock/%privatemsg_thread'] = array( | |
'title' => 'Lock Thread', | |
'page callback' => 'gac_privatemsg_lock_thread', | |
'page arguments' => array($url_prefix_arg_count + 1), | |
'access callback' => 'gac_privatemsg_lock_access', | |
'access arguments' => array($url_prefix_arg_count + 1), | |
'type' => MENU_CALLBACK, | |
); |
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
<?php | |
// Archived (deleted) messages. | |
$items[$url_prefix . '/archived'] = array( | |
'title' => 'Archived Messages', | |
'page callback' => 'privatemsg_list_page', | |
'page arguments' => array('archived', $url_prefix_user_arg_position), | |
'file' => 'privatemsg.pages.inc', | |
'file path' => drupal_get_path('module', 'privatemsg'), | |
'access callback' => 'privatemsg_menu_access', | |
'type' => MENU_LOCAL_TASK, |
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
### | |
The following is in a Cakefile and when I run it it causes errors. | |
However, if I just run: `vows test/*.coffee --spec` on the command line, all is fine. | |
### | |
{spawn} = require 'child_process' | |
task 'test', 'Run Vows tests', -> | |
args = ['test/*.coffee', '--spec'] |
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
{exec, spawn} = require 'child_process' | |
task 'test', 'Run Mocha tests', -> | |
proc = spawn 'mocha', ['-R', 'spec', '--colors'] | |
proc.stdout.on 'data', (buffer) -> console.log buffer.toString() | |
proc.stderr.on 'data', (buffer) -> console.error buffer.toString() | |
proc.on 'exit', (status) -> | |
process.exit(1) if status != 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
<a href="javascript: void(0);" onmouseover="(function(elem) { someLibraryFunction(elem); })(this);">Fancy Text</a> |
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
<?php | |
/** | |
* Save a remote image. Returns a file object. | |
*/ | |
function download_image($url) { | |
// Check if the file extension is valid. | |
$extensions = 'jpg jpeg png gif'; | |
$parsed = parse_url($url); | |
$regex = '/\.(' . @ereg_replace(' +', '|', preg_quote($extensions)) . ')$/i'; | |
if (!preg_match($regex, $parsed['path'], $matches)) { |
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
cpsubrian@blink ~/projects/node/gac (master) | |
$ cake repl | |
-------------------------- | |
____ _ ____ | |
/ ___| / \ / ___| | |
| | _ / _ \| | | |
| |_| |/ ___ \ |___ | |
\____/_/ \_\____| | |
GAC REPL - try 'help' |