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 | |
/** | |
* A simple OAuth client class for CakePHP. | |
* | |
* Uses the OAuth library from http://oauth.googlecode.com/svn/code/php/ | |
* | |
* Copyright (c) by Daniel Hofstetter (http://cakebaker.42dh.com) | |
* | |
* Licensed under The MIT License | |
* Redistributions of files must retain the above copyright notice. |
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 urlLib = require('url'); | |
function UrlAdapter(urlString) { | |
this.urlObj = urlLib.parse(urlString, true); | |
// XXX remove the search property to force format() to use the query object when transforming the url object to a string | |
delete this.urlObj.search; | |
} | |
exports.UrlAdapter = UrlAdapter; |
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 http = require("http"), | |
sys = require("sys"); | |
function read(callback) { | |
connection = http.createClient(8000, "127.0.0.1"); | |
var request = connection.request("/index"); | |
request.finish(function (response) { | |
var responseBody = ""; | |
response.setBodyEncoding("utf8"); | |
response.addListener("body", function(chunk) { | |
responseBody += chunk; |
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 | |
/** | |
* A simple shell script to run NoseRub's migrations. | |
* | |
* Requires the Migration model from NoseRub (http://noserub.com) and a | |
* folder app/config/sql/migrations for the migrations. | |
* | |
* Copyright (c) by Daniel Hofstetter (http://cakebaker.42dh.com) | |
* | |
* Licensed under The MIT License |
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
# | |
# fou (follow or unfollow) is a simple script which allows you to | |
# follow/unfollow twitter users from the command line. | |
# | |
# Copyright (c) by Daniel Hofstetter (http://cakebaker.42dh.com) | |
# | |
# Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php | |
# Redistributions of files must retain the above copyright notice. | |
# | |