Skip to content

Instantly share code, notes, and snippets.

View igorbrigadir's full-sized avatar

Igor Brigadir igorbrigadir

View GitHub Profile
@igorbrigadir
igorbrigadir / twitter_timeline_mutes.md
Created March 2, 2019 11:40
Twitter Timeline Mute Keywords

Mute the following "words" to remove Algo timeline suggestions. https://twitter.com/oscaron/status/1042035784092708864

suggest_recycled_tweet suggest_recap suggest_who_to_follow suggest_activity suggest_pyle_tweet suggest_ranked_timeline_tweet suggest_recycled_tweet_inline suggest_activity_tweet

library(magrittr)
library(rtweet)
root_status <- '1116361675618361345'
x1 <- rtweet::lookup_tweets(root_status)
# The question
cat(x1$text)
#> Who do you:
@igorbrigadir
igorbrigadir / not_truncated_tweet.json
Created April 19, 2019 23:36
Truncated Tweets from Premium Search
{
"created_at": "Thu Apr 11 23:58:59 +0000 2019",
"id": 1116490861460762600,
"id_str": "1116490861460762624",
"text": "I'm entered in this Captain Marvel Premium Format Figure #SideshowGiveaway, are you? https://t.co/c1bZtH2alc",
"source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
@igorbrigadir
igorbrigadir / GephiMaker.java
Created April 21, 2019 00:39
Use Gephi in Java without GUI
import java.awt.Color;
import java.io.File;
import java.io.IOException;
import org.gephi.data.attributes.api.AttributeColumn;
import org.gephi.data.attributes.api.AttributeController;
import org.gephi.data.attributes.api.AttributeModel;
import org.gephi.filters.api.FilterController;
import org.gephi.graph.api.DirectedGraph;
import org.gephi.graph.api.GraphController;
@igorbrigadir
igorbrigadir / elephants.ipynb
Created May 17, 2019 01:39
Where's My Elephant?
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@igorbrigadir
igorbrigadir / twitter_timeline_mutes.txt
Last active January 31, 2020 13:15
Twitter Timeline Mute Keywords
ActivityTweet
RankedOrganicTweet
suggest_activity
suggest_activity_Highlights
suggest_activity_retweet
suggest_activity_tweet
suggest_activity_tweet_inline
suggest_grouped_tweet_hashtag
suggest_pyle_tweet
suggest_ranked_organic_tweet
@igorbrigadir
igorbrigadir / rm_dm.js
Created September 18, 2019 15:43
rm_dm.js
// ==UserScript==
// @name rm_dm
// @namespace http://tampermonkey.net/
// @version 0.1
// @description remove DMs menu from twitter, visit https://twitter.com/messages manually
// @author igorbrigadir
// @match https://twitter.com/*
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
@igorbrigadir
igorbrigadir / corrDist.py
Created October 21, 2019 18:39
Compute the distance between 2 correlation matrices. https://twitter.com/lopezdeprado/status/1186090591370842112
def corrDist(corr0,corr1):
num=np.trace(http://np.dot(corr0,corr1))
den=np.linalg.norm(corr0,ord='fro')
den*=np.linalg.norm(corr1,ord='fro')
cmd=1-num/den
return cmd
@igorbrigadir
igorbrigadir / white_space.md
Created October 23, 2019 20:40
white space characters

U+0009 character tabulation U+000A line feed U+000B line tabulation U+000C form feed U+000D carriage return U+0020 space U+0085 next line U+00A0 no-break space U+1680 ogham space mark U+180E mongolian vowel separator

@igorbrigadir
igorbrigadir / blocked_tweet_1187423014822076418.json
Last active October 25, 2019 11:39
Twitter Unavailable Tweet Glitch, viewing reply, blocked tweet is invisible https://twitter.com/kareem_carr/status/1187425216537997314 viewing blocked tweet directly works: https://twitter.com/generativist/status/1187423014822076418
{
"created_at": "Thu Oct 24 17:38:02 +0000 2019",
"id": 1187423014822076418,
"id_str": "1187423014822076418",
"full_text": "HACK THE PLANET!\n\n(I waited until no one was presenting for this. Sorry to pollute the channel. @IgorBrigadir sorta nudged me into making the \"anything exploitable will be exploited point\" for the auto-play-tweets screen at #BlockLegalTech.) https://t.co/Almw993kh6",
"truncated": false,
"display_text_range": [
0,
241
],