Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexstrat
alexstrat / async_report_patch.py
Created June 22, 2015 20:07
Monkey pathc FB ads SDK to allow async_report
# Monkeypatch AdAccount to have async report support
import facebookads
import time
class ReportStatsAsyncJob(facebookads.objects.AbstractCrudObject):
class Field(object):
id = "id"
async_status = "async_status"
async_percent_completion = "async_percent_completion"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
db.sjse_match_share.find({
page_id:180463558653282,
$or: [
{gooddata_exportable:true},
{gooddata_exportable: {$exists: 0}}
], {
share_wording:1,
uid:1,
post_tentative_at:1
}).map(function(b){
function(a) {
var f = "linkedin_oauth_" + IN.ENV.auth.api_key;
if (!IN.ENV.auth.is_set_client_auth_cookie || a === "" || a === null) {
window.setTimeout(function d() {
document.cookie = f + "=null;path=/;secure;expires=0";
document.cookie = f + "_crc=null;path=/;expires=0"
}, 0);
return
}
if (typeof a === $_CONSTANTS.types.string) {
<div class="w4l_fb_editable_profile account">
<i class="channel icon-fb-logo"></i>
<div class="header">
<div class="avatar">
<img src="https://graph.facebook.com/100004445193277/picture?type=square" alt="Alexandre Dev Lacheze">
</div>
--- /tmp/subl stdin rRABqE.txt
+++ /tmp/subl stdin PgKei7.txt
@@ -31,9 +31,9 @@
this._options = {
/* Next button label in tooltip box */
- nextLabel: 'Next &rarr;',
+ nextLabel: 'Next',
/* Previous button label in tooltip box */
- prevLabel: '&larr; Back',
@alexstrat
alexstrat / inlinenestedmodel.js
Created December 5, 2012 10:29 — forked from philfreo/inlinenestedmodel.js
Backbone-Forms InlineNestedModel
var Form = Backbone.Form,
editors = Form.editors;
// we don't want our nested form to have a (nested) <form> tag
// (currently bbf includes form tags: https://github.com/powmedia/backbone-forms/issues/8)
// aside from being strange html to have nested form tags, it causes submission-upon-enter
Form.setTemplates({
nestedForm: '<div class="bbf-nested-form">{{fieldsets}}</div>'
});
@alexstrat
alexstrat / gist:4069162
Created November 13, 2012 23:33
How to launch KadOH UDP DHT and start the debug UI

First of all, clone the repo somewhere :

$ git clone https://github.com/jinroh/kadoh.git
$ cd kadoh

Then, intall the (dev) dependencies :