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
// Constants | |
var API_HOST = 'api.instagram.com'; | |
var API_BASE_URL = '/v1'; | |
var CLIENT_ID = 'the id'; | |
var CLIENT_SECRET = 'the secret'; | |
var OAuth= require('oauth').OAuth; | |
var https = require('https'); | |
var util = require('util'); |
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
/** | |
* When I try to test with my app ... I get the error below. | |
*/ | |
process.env['NODE_ENV'] = 'test'; | |
var vows = require('vows'), | |
tobi = require('tobi'), | |
should = require('should'), | |
app = require('../app'), | |
conf = require('../conf'); |
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
var vows = require('vows') | |
, tobi = require('tobi') | |
, port = 80 | |
, host = 'www.google.com'; | |
/** | |
* Topic macro to GET a url. | |
*/ | |
var getUrl = function(url) { | |
return function() { |
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
### | |
This is what the below example produces. | |
### | |
vows = require 'vows' | |
should = require 'should' | |
# Create the test suite. | |
suite = vows.describe('QuickVows') | |
# Test quickVows |
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'] |
OlderNewer