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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(magrittr) | |
| library(rtweet) | |
| root_status <- '1116361675618361345' | |
| x1 <- rtweet::lookup_tweets(root_status) | |
| # The question | |
| cat(x1$text) | |
| #> Who do you: |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Author: Qiushi Pan (@qqhann) | |
| # This is a code snippet with sample usage, to get replies to a specific tweet. | |
| # ===== | |
| import tweepy | |
| import time | |
| import os | |
| from collections import defaultdict | |
| from dotenv import load_dotenv, find_dotenv | |
| env = load_dotenv(find_dotenv(), override=True) |