Skip to content

Instantly share code, notes, and snippets.

View gongcastro's full-sized avatar
👁️

Gonzalo García-Castro gongcastro

👁️
View GitHub Profile
@tmalsburg
tmalsburg / psychling_journals.opml
Last active June 3, 2023 05:15
RSS feeds of journals publishing work in (psycho)linguistics
<?xml version="1.0"?>
<opml version="1.0">
<head>
<title>(Psycho)linguistics journals</title>
</head>
<body>
<outline title="Annual Rev Ling" xmlUrl="https://www.annualreviews.org/action/showFeed?ui=45mu4&amp;mi=3fndc3&amp;ai=6690&amp;jc=linguistics&amp;type=etoc&amp;feed=atom"/>
<outline title="Brain &amp; Language" xmlUrl="https://rss.sciencedirect.com/publication/science/0093934X"/>
<outline title="Cognition" xmlUrl="http://rss.sciencedirect.com/publication/science/00100277"/>
<outline title="Cognitive Science" xmlUrl="https://onlinelibrary.wiley.com/feed/15516709/most-recent"/>
@moonmilk
moonmilk / README.md
Last active November 29, 2023 01:48
manually authorize a twitter app to a twitter account

So you're writting a twitterbot and you need to authorize your application to post to the account. You need an access token and secret for the account you're posting to. If the posting account is the same account that owns the application, no problem, you just push the button on your application's settings page to make the keys. But if you want to post to a different twitter account, there's no UI on apps.twitter.com to authorize it. So I made this bare-minimum node server to run through the authorization process. There's probably a much better way to do this, so please let me know what that way is!

ignore this and go down to the comments for better solutions

  • You'll need a server with node.js!
  • Make sure your application has a callback URL specified in its settings page, even if it's just a placeholder. If there's nothing in the callback URL slot, this method of authorization won't work.
  • In authorize.js, fill in your application's consumer key and secret, and the domain on which you'll be running th