<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
/*! ****************************** | |
Handlebars helpers | |
*******************************/ | |
// debug helper | |
// usage: {{debug}} or {{debug someValue}} | |
// from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/) | |
Handlebars.registerHelper("debug", function(optionalValue) { | |
console.log("Current Context"); | |
console.log("===================="); |
/*! ****************************** | |
Handlebars helpers | |
*******************************/ | |
// debug helper | |
// usage: {{debug}} or {{debug someValue}} | |
// from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/) | |
Handlebars.registerHelper("debug", function(optionalValue) { | |
console.log("Current Context"); | |
console.log("===================="); |
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<handlers> | |
<add name="iisnode" path="index.js" verb="*" modules="iisnode" /> | |
</handlers> | |
<iisnode node_env="production" /> | |
<rewrite> | |
<rules> | |
<rule name="LogFile" patternSyntax="ECMAScript" stopProcessing="true"> |
var apn = require('apn'); | |
var token = "<token here>"; | |
var service = new apn.connection({ | |
maxConnections: 1 | |
}); | |
service.on("completed", function() { console.log("Completed!")}); | |
service.on("connected", function() { console.log("Connected"); }); |
public static void postNewComment(Context context,final UserAccount userAccount,final String comment,final int blogId,final int postId){ | |
mPostCommentResponse.requestStarted(); | |
RequestQueue queue = Volley.newRequestQueue(context); | |
StringRequest sr = new StringRequest(Request.Method.POST,"http://api.someservice.com/post/comment", new Response.Listener<String>() { | |
@Override | |
public void onResponse(String response) { | |
mPostCommentResponse.requestCompleted(); | |
} | |
}, new Response.ErrorListener() { | |
@Override |
var fnCreateDirectoryInFileSystem = function (rootPath, newFolderName) { | |
var deferred = Q.defer(); | |
var fnDirFail = function (err) { | |
//Root path missing | |
deferred.reject(); | |
}; | |
var fnGotDir = function (dirEntry) { | |
//Create the first directory |
var fnCreateDirectoryInFileSystem = function (rootPath, newFolderName) { | |
var deferred = Q.defer(); | |
var fnDirFail = function (err) { | |
//Root path missing | |
deferred.reject(); | |
}; | |
var fnGotDir = function (dirEntry) { | |
//Create the first directory |
I hereby claim:
To claim this, I am signing this object: