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 | |
function createLead($accessToken, array $lead) | |
{ | |
$method = 'post'; | |
$absUrl = 'https://api.getbase.com/v2/leads'; | |
$headers = array( | |
'User-Agent: BaseCRM/PHP Sample', | |
'Authorization: Bearer ' . $accessToken, | |
'Accept: application/json', |
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 gas = require('./gas'); | |
var speed = 0; | |
exports.drive = function () { | |
gas.burn(); | |
}; | |
exports.accelerate = function () { | |
speed += 10; |
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
// Answer to http://github.com/ry/http-parser/issues/#issue/1 | |
// UNTESTED | |
struct line { | |
char *field; | |
size_t field_len; | |
char *value; | |
size_t value_len; | |
}; |