Skip to content

Instantly share code, notes, and snippets.

View tbarbugli's full-sized avatar

Tommaso Barbugli tbarbugli

View GitHub Profile
@tbarbugli
tbarbugli / video_example.css
Last active August 11, 2023 14:27
CSS example for video layout
#root {
background:linear-gradient(90deg, Red, Orange, Yellow, Green, Blue, Indigo,violet);
}
.str-video__video-placeholder {}
.str-video__participant-details {}
.str-video__participant-details__name {}
{
"openapi": "3.0.0",
"info": {
"description": "Stream Analytics API",
"version": "1.0.0",
"title": "Stream Analytics",
"contact": {
"email": "[email protected]"
}
},
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];
}
})(window, function(__WEBPACK_EXTERNAL_MODULE_react__) {
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']

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:

try:
res = get_resource()
process_resource(res)
close_resource(res)
except:
print "something went wrong!"
import random
random.seed(1)
l = []
for i in range(1, 10000):
r = random.randint(1, 1000)
append_sorted(l, r)
print(l)
@tbarbugli
tbarbugli / test.js
Created December 14, 2016 09:30
test.js
alert('yo');
<?php
class A {
public static function who() {
echo __CLASS__;
}
public static function test() {
self::who();
}
}
@tbarbugli
tbarbugli / sqs_policy_stream.json
Created April 1, 2016 15:17
sqs_policy_stream.json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1459523779000",
"Effect": "Allow",
"Action": [
"sqs:GetQueueUrl",
"sqs:SendMessage",
"sqs:SendMessageBatch",