This file contains hidden or 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
| /** | |
| * Flight Logger | |
| * ============= | |
| * | |
| * Runs every 10 minutes, works out whether one of your flights is in the air right now, and | |
| * appends its track to a Google Sheet dedicated to that flight. | |
| * | |
| * Each poll fetches the flight's WHOLE track so far, not just the latest fix, and writes whatever | |
| * is new. So the log ends up at FlightAware's own resolution (roughly a position a minute) rather | |
| * than one row per ten-minute tick, and a missed or failed tick costs you nothing - the next one |
This file contains hidden or 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
| /** | |
| * Airport coordinates | |
| * =================== | |
| * | |
| * Lookup table for the projected-fix maths in flight-logger.js: given a destination airport code | |
| * it yields the latitude and longitude to aim the great circle at. Paste this into the same Apps | |
| * Script project as flight-logger.js - it is pure data and never needs editing. | |
| * | |
| * Generated from https://github.com/ip2location/ip2location-iata-icao (iata-icao.csv), which is | |
| * released under the MIT licence. 9160 airports, keyed by both IATA and ICAO code. |
This file contains hidden or 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
| <meta property="fb:admins" content="1111111111"> | |
| <meta property="og:site_name" content="I Thought He Came With You"> | |
| <meta property="og:image" content="http://ithoughthecamewithyou.com/images/ithcwy.png"> | |
| <meta property="og:type" content="blog"> | |
| <meta property="og:title" content="I Thought He Came With You"> |
This file contains hidden or 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
| const TodoistApiToken = ''; | |
| const OpenAIApiKey = '' | |
| const OpenAIResponseModel = 'gpt-5.4'; | |
| const OpenAIEmbeddingModel = 'text-embedding-3-small'; | |
| const TodoistColors = [ | |
| {"id": 30, "name": "berry_red", "hex": "#B8255F"}, | |
| {"id": 31, "name": "red", "hex": "#DC4C3E"}, | |
| {"id": 32, "name": "orange", "hex": "#C77100"}, | |
| {"id": 33, "name": "yellow", "hex": "#B29104"}, |
This file contains hidden or 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
| var AlertEmail = ''; | |
| var OpenAIAPIKey = ''; | |
| function main() { | |
| // we store known models in script properties | |
| var scriptProperties = PropertiesService.getScriptProperties(); | |
| var currentProps = scriptProperties.getProperties(); | |
| var anythingNew = false; | |
| var newText = ''; |
This file contains hidden or 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 os | |
| from todoist_api_python.api import TodoistAPI | |
| from openai import OpenAI | |
| import numpy as np | |
| # Todoist palette colors from https://developer.todoist.com/api/v1#tag/Colors | |
| colors = [ | |
| {"id": 30, "name": "berry_red", "hex": "#B8255F"}, | |
| {"id": 31, "name": "red", "hex": "#DC4C3E"}, | |
| {"id": 32, "name": "orange", "hex": "#C77100"}, |
This file contains hidden or 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
| using SixLabors.ImageSharp; | |
| using SixLabors.ImageSharp.Processing; | |
| using SixLabors.ImageSharp.PixelFormats; | |
| using SixLabors.ImageSharp.Formats.Jpeg; | |
| using FaceAiSharp; | |
| using System.Numerics.Tensors; | |
| using Microsoft.ML.OnnxRuntime; | |
| using Microsoft.ML.OnnxRuntime.Tensors; | |
| const string InputFolder = @"D:\photo-frame\input"; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| // config - ok to leave PERPLEXITY_API_TOKEN blank | |
| const OPENAI_API_TOKEN = ''; | |
| const PERPLEXITY_API_TOKEN = '' | |
| const TODOIST_API_TOKEN = ''; | |
| const AI_TASK_LABEL = 'ai'; | |
| const AI_MESSAGE_PREFIX = 'AI:'; | |
| const MAX_GENERATION_ATTEMPTS = 10; | |
| const OPENAI_MODEL = 'gpt-4o' | |
| const PERPLEXITY_MODEL = 'sonar-pro' |
This file contains hidden or 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
| ffmpeg -i input.mp4 -vf "lenscorrection=0.5:0.5:-0.45:0.11" output.mp4 |
NewerOlder