This file contains 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
// Find the latest version of this script here: | |
// https://gist.github.com/rsms/a8ad736ba3d448100577de2b88e826de | |
// | |
const EM = 2048 | |
interface FontInfo { | |
familyName :string | |
styleName :string | |
unitsPerEm :int | |
ascender :int |
This file contains 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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: deep-blue; icon-glyph: subway; | |
let GtfsRealtimeBindings = importModule("gtfs-realtime.js") // add this file to Scriptable from https://github.com/MobilityData/gtfs-realtime-bindings/blob/master/nodejs/gtfs-realtime.js | |
// also add https://github.com/protobufjs/protobuf.js/blob/master/dist/protobuf.min.js to Scriptable | |
const API_KEY = "paste_your_api_key_here" // get a free MTA API key at https://api.mta.info/#/landing | |
const ROOT = "entity" | |
const ALERT = "alert" |
This file contains 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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: blue; icon-glyph: bicycle; | |
/*** WIDGET SETUP *** | |
* Edit the Scriptable widget, select this CitiBike script, and fill the Parameter field with your station's id | |
* | |
* HOW TO FIND A STATION'S ID | |
* Search for a CitiBike station by street name at https://gbfs.citibikenyc.com/gbfs/en/station_information.json | |
* Find the station_id field associated with the name |
This file contains 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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: brown; icon-glyph: hand-holding-usd; | |
// To use this script, you must create a personal access token on GitHub with the `read:org// scope. | |
// Follow the instructions on the link below to create your personal access token. | |
// | |
// https://github.com/settings/tokens | |
// | |
// Run the script when you ahve created your personal access token. It'll prompt you to enter the token and store it securely in the keychain on the device. |
This file contains 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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: blue; icon-glyph: apple-alt; | |
const TITLE = "" | |
const DATE = "2021-10-18T17:00:00Z" | |
const BG_IMG_URL = "https://i.ibb.co/YQ09XTW/background.png" | |
const TITLE_IMG_URL = "https://i.ibb.co/qYH3Y9w/text.png" | |
const TITLE_IMG_SIZE = new Size(155, 25) | |
const LINK = "https://www.youtube.com/watch?v=exM1uajp--A" |
This file contains 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
from transformers import AutoTokenizer, TFAutoModelForSequenceClassification | |
import tensorflow as tf | |
model_name = 'bert-base-cased' | |
tokenizer = AutoTokenizer.from_pretrained(model_name) | |
model = TFAutoModelForSequenceClassification.from_pretrained(model_name, num_labels=2) | |
texts = ["I'm a positive example!", "I'm a negative example!"] | |
labels = [1, 0] |
This file contains 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
license: mit |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. |