- hypercore works with individual posts in an append-only feed
- hyperdrive abstracted filestore / works with files
- hyperdiscovery create p2p swarms for hypercores, hyperdrives, and hyperdbs
- hyperdb key-value database
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| 'use strict' | |
| /* | |
| This is meant to be a concise explanation on the difference between | |
| functions declaration, function expressions, and es6 fat arrow functions | |
| You should be able to just clone this or paste it in a file and run `node <filname>` | |
| */ | |
| /* |
| require 'webrick' | |
| require 'fileutils' | |
| BIND_ADDRESS = "127.0.0.1" | |
| PORT = 8080 | |
| BACKUP_DIR = 'bak' | |
| if ARGV.length != 0 | |
| root = ARGV.first.gsub('\\', '/') |
| %YAML 1.2 | |
| --- | |
| name: 'GoHTML' | |
| file_extensions: | |
| - gohtml | |
| - html.go | |
| scope: text.html.gohtml | |
| contexts: | |
| main: | |
| - match: '' |
[ Update 2025-03-24: Commenting is disabled permanently. Previous comments are archived at web.archive.org. ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.
Making a bot? Making a bot in Python? Making a bot in Python that uses the Mastodon API? If so, chances are you need to get some credentials. Here's how I did it!
(The following tutorial uses Python 2.7, but if you're using Python 3+ everything should work substantially the same.)
I just started using it, but it looks like Mastodon.py is a pretty great library for working with the Mastodon API! However, all of the authentication examples use static files to store credentials, which I don't like—I'm afraid I'll accidentally push them to Github. I like to keep my authentication as close to the actual command that runs the program as possible, so usually I pass them on the command line to the script running my bot. To do this, I need to get the appropriate credentials on their own, as separate strings that I can cut and paste.
| # <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
| # |<---- Using a Maximum Of 50 Characters ---->| | |
| # Explain why this change is being made | |
| # |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
| # Provide links or keys to any relevant tickets, articles or other resources | |
| # Example: Github issue #23 |
| import random | |
| class PseudoMarkov(): | |
| def __init__(self): | |
| self.associations = {} | |
| # pass it the corpus filepath | |
| def gen(self, filepath): | |
| sentences = [] |
| #! /bin/sh | |
| # | |
| # convert.sh | |
| # | |
| # Copyleft (ↄ) 2015 jkirchartz <jkirchartz@gmail.com> | |
| # | |
| # Distributed under terms of the NPL (Necessary Public License) license. | |
| # | |
| for file in ./sources/*.txt; do |