Skip to content

Instantly share code, notes, and snippets.

Tommaso Barbugli tbarbugli

Block or report user

Report or block tbarbugli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View analytics-api.json
{
"openapi": "3.0.0",
"info": {
"description": "Stream Analytics API",
"version": "1.0.0",
"title": "Stream Analytics",
"contact": {
"email": "support@getstream.io"
}
},
View testthis.js
This file has been truncated, but you can view the full file.
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("React"));
else if(typeof define === 'function' && define.amd)
define(["React"], factory);
else {
var a = typeof exports === 'object' ? factory(require("React")) : factory(root["React"]);
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
View read.py
import stream
client = stream.connect(api_key, api_secret)
feed = client.feed('user', 'raji')
activity_adds = [a for a in feed.get(limit=100)['results'] if a['verb'] == 'add']
View keybase.md

Keybase proof

I hereby claim:

  • I am tbarbugli on github.
  • I am tbarbugli (https://keybase.io/tbarbugli) on keybase.
  • I have a public key ASCmbtrXl-iWwYw0cN6pWX2vSq32qtDbRENwxD0h5m5LkQo

To claim this, I am signing this object:

View exc_handling.py
try:
res = get_resource()
process_resource(res)
close_resource(res)
except:
print "something went wrong!"
View insort.py
import random
random.seed(1)
l = []
for i in range(1, 10000):
r = random.randint(1, 1000)
append_sorted(l, r)
print(l)
View lsb.php
<?php
class A {
public static function who() {
echo __CLASS__;
}
public static function test() {
self::who();
}
}
View sqs_policy_stream.json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1459523779000",
"Effect": "Allow",
"Action": [
"sqs:GetQueueUrl",
"sqs:SendMessage",
"sqs:SendMessageBatch",
View create_stream_jwt.js
var streamSigner = require('getstream/src/lib/signing');
var api_key = 'AAABBBCCCDDD';
streamSigner.JWTScopeToken(api_key, 'feed', '*', {'feedId': '*'});
You can’t perform that action at this time.