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: bolt; | |
async function getForecast() { | |
const url = "https://adapt.sh/forecast" | |
const webview = new WebView() | |
await webview.loadURL(url) | |
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
{ | |
"apps": { | |
"http": { | |
"servers": { | |
"localhost": { | |
"listen": [ | |
":9081" | |
], | |
"automatic_https": { | |
"disable_redirects": true |
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
2020/11/06 10:36:00 [INFO] backend/local: apply calling Apply | |
2020/11/06 10:36:00 [INFO] terraform: building graph: GraphTypeApply | |
2020/11/06 10:36:00 [DEBUG] adding implicit provider configuration provider.google, implied first by google_project_iam_policy.testing (prepare state) | |
2020/11/06 10:36:00 [DEBUG] ProviderTransformer: "google_spanner_instance.test (prepare state)" (*terraform.NodeApplyableResource) needs provider.google | |
2020/11/06 10:36:00 [DEBUG] ProviderTransformer: "data.google_iam_policy.testing (prepare state)" (*terraform.NodeApplyableResource) needs provider.google | |
2020/11/06 10:36:00 [DEBUG] ProviderTransformer: "google_spanner_instance.test" (*terraform.NodeApplyableResourceInstance) needs provider.google | |
2020/11/06 10:36:00 [DEBUG] ProviderTransformer: "google_project_iam_policy.testing (prepare state)" (*terraform.NodeApplyableResource) needs provider.google | |
2020/11/06 10:36:00 [DEBUG] ProviderTransformer: "google_project.testing (prepare state)" (*terraform.NodeApplyableResource) needs |
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
// GoPro Hero 5/6 videos have GPS metadata but Photos doesn't recognize them for whatever reason. | |
// This script loads selected items from Photos, analyzes them with exiftool, and adds back the GPS metadata in a way Photos can understand. | |
// Run this in Script Editor, Automator or save it as a service. Change the export folder. | |
// Requires exiftool (https://www.sno.phy.queensu.ca/~phil/exiftool/) | |
function run() { | |
const Photos = new Application("Photos") | |
Photos.includeStandardAdditions = true | |
const app = Application.currentApplication() |
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
Show hidden characters
{ | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme", | |
"default_encoding": "UTF-8", | |
"ensure_newline_at_eof_on_save": true, | |
"fade_fold_buttons": false, | |
"font_face": "Source Code Pro", | |
"font_size": 14, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, |
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 TwitterSearch import * | |
import datetime | |
import json | |
try: | |
tso = TwitterSearchOrder() # create a TwitterSearchOrder object | |
tso.setKeywords(['neige']) # let's define all words we would like to have a look for | |
tso.setLanguage('fr') # we want to see French tweets only | |
tso.setIncludeEntities(False) | |
tso.setResultType('recent') |
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
import json | |
import time | |
from time import sleep | |
from urllib2 import Request | |
from urllib2 import build_opener | |
from urllib2 import HTTPError | |
import Cookie | |
def get_subreddits(): |