Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
- ⌘ : Command key
- ⌃ : Control key
- ⌫ : Delete key
- ← : Left arrow key
- → : Right arrow key
- ↑ : Up arrow key
#!/usr/bin/env python3 | |
# | |
# This script prepares fonts for use for embedded software. It minimizes them | |
# (to reduce size and increase performance), encodes them into C files (needed | |
# by devices without file systems), and prints debug info. | |
# | |
# When minimizing, it subsets the glyphs (to a latin set as-is here) and strips | |
# out layout features. It provides options for whether to keep kerning and in | |
# which format. | |
# |
diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js | |
index e641d59f4..9b6f84fa1 100644 | |
--- a/app/javascript/mastodon/features/compose/components/compose_form.js | |
+++ b/app/javascript/mastodon/features/compose/components/compose_form.js | |
@@ -90,7 +90,7 @@ class ComposeForm extends ImmutablePureComponent { | |
const fulltext = this.getFulltextForCharacterCounting(); | |
const isOnlyWhitespace = fulltext.length !== 0 && fulltext.trim().length === 0; | |
- return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 500 || (isOnlyWhitespace && !anyMedia)); | |
+ return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 5000 || (isOnlyWhitespace && !anyMedia)); |
#!/bin/sh | |
# ////////////////////////////////////////////////////////////////////// | |
# | |
# linespace.sh | |
# A shell script that modifies all .otf and .ttf fonts in the | |
# working directory to $PERCENT_UPM% UPM line spacing | |
# Copyright 2018 Christopher Simpkins | |
# MIT License | |
# |
#!/bin/sh | |
# ///////////////////////////////////////////////////////////////// | |
# | |
# hack-linux-installer.sh | |
# A shell script that installs the Hack fonts from repository | |
# releases by release version number | |
# | |
# Copyright 2018 Christopher Simpkins | |
# MIT License |
diff --git a/app/javascript/mastodon/features/compose/components/compose_form.jsx b/app/javascript/mastodon/features/compose/components/compose_form.jsx | |
index 9222b2dc8..962310a28 100644 | |
--- a/app/javascript/mastodon/features/compose/components/compose_form.jsx | |
+++ b/app/javascript/mastodon/features/compose/components/compose_form.jsx | |
@@ -100,7 +100,7 @@ class ComposeForm extends ImmutablePureComponent { | |
const fulltext = this.getFulltextForCharacterCounting(); | |
const isOnlyWhitespace = fulltext.length !== 0 && fulltext.trim().length === 0; | |
- return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 500 || (isOnlyWhitespace && !anyMedia)); | |
+ return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 5000 || (isOnlyWhitespace && !anyMedia)); |
diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js | |
index 6a65f44da..b1e364451 100644 | |
--- a/app/javascript/mastodon/features/compose/components/compose_form.js | |
+++ b/app/javascript/mastodon/features/compose/components/compose_form.js | |
@@ -90,7 +90,7 @@ class ComposeForm extends ImmutablePureComponent { | |
const fulltext = this.getFulltextForCharacterCounting(); | |
const isOnlyWhitespace = fulltext.length !== 0 && fulltext.trim().length === 0; | |
- return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 500 || (isOnlyWhitespace && !anyMedia)); | |
+ return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 5000 || (isOnlyWhitespace && !anyMedia)); |
# define project name | |
PROJECT=replaceme-with-project-name | |
# define path to the font build directory for tests | |
FONT_DIR="/path/to/font/file/directory" | |
venv: | |
python3 -m venv ~/venv/$(PROJECT) | |
# can't activate and deactivate from Makefile | |
# because it runs new subshells for each |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
# An example to get the remaining rate limit using the Github GraphQL API. | |
import requests | |
headers = {"Authorization": "Bearer YOUR API KEY"} | |
def run_query(query): # A simple function to use requests.post to make the API call. Note the json= section. | |
request = requests.post('https://api.github.com/graphql', json={'query': query}, headers=headers) | |
if request.status_code == 200: |
diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js | |
index 6a65f44da..b1e364451 100644 | |
--- a/app/javascript/mastodon/features/compose/components/compose_form.js | |
+++ b/app/javascript/mastodon/features/compose/components/compose_form.js | |
@@ -90,7 +90,7 @@ class ComposeForm extends ImmutablePureComponent { | |
const fulltext = this.getFulltextForCharacterCounting(); | |
const isOnlyWhitespace = fulltext.length !== 0 && fulltext.trim().length === 0; | |
- return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 500 || (isOnlyWhitespace && !anyMedia)); | |
+ return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 750 || (isOnlyWhitespace && !anyMedia)); |