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
| { | |
| "cmake.buildDirectory": "${env:TEMP}/vscode_cmake/${workspaceFolderBasename}" | |
| } |
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
| magick \ | |
| \( -delay 100 image-00.png \) \ | |
| \( -delay 10 image-00.png image-01.png -morph 3 -delete 0 \) \ | |
| \( -delay 100 image-01.png \) \ | |
| \( -delay 10 image-01.png image-02.png -morph 3 -delete 0 \) \ | |
| \( -delay 100 image-02.png \) \ | |
| \( -delay 10 image-02.png image-03.png -morph 3 -delete 0 \) \ | |
| \( -delay 100 image-03.png \) \ | |
| \( -delay 10 image-03.png image-04.png -morph 3 -delete 0 \) \ | |
| \( -delay 200 image-04.png \) \ |
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
| #include <ArduinoJson.h> | |
| void setup() { | |
| Serial.begin(9600); | |
| while (!Serial) continue; | |
| StaticJsonDocument<516> doc; | |
| const char* json = R"({"list":[{"temperature":21.2,"humidity":68.9,"weather":"overcast clouds"},{"temperature":19.7,"humidity":62.1,"weather":"clear sky"},{"temperature":18.6,"humidity":59.8,"weather":"clear sky"}]})"; |
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 boto3 | |
| region = 'eu-west-3' | |
| ec2 = boto3.client('ec2', region_name=region) | |
| def lambda_handler(event, context): | |
| instances = event['instances'] | |
| ec2.start_instances(InstanceIds=instances) |
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
| from pathlib import Path | |
| for file in Path('_posts').glob('*.md'): | |
| print(file.name) | |
| year = file.name[0:4] | |
| month = file.name[5:7] | |
| day = file.name[8:10] | |
| title = file.name[11:-3] | |
| oldurl = f'/{year}/{month}/{day}/{title}/' | |
| print(oldurl) |
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
| from pathlib import Path | |
| for file in Path('_posts').glob('*.md'): | |
| print(file.name) | |
| year = file.name[0:4] | |
| month = file.name[5:7] | |
| day = file.name[8:10] | |
| title = file.name[11:-3] | |
| oldurl = f'/{year}/{month}/{day}/{title}/' | |
| print(oldurl) |
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
| Sub InDesignExport() | |
| Dim csvFilename As String | |
| Dim transpose As Boolean | |
| csvFilename = Mid(ActiveWorkbook.FullName, 1, InStrRev(ActiveWorkbook.FullName, ".")) & "txt" | |
| Range("A1").Select | |
| Range(Selection, Selection.End(xlDown)).Select | |
| Range(Selection, Selection.End(xlToRight)).Select |
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
| export FOLDER='predefined-macros' | |
| export VERSIONS=(4.4 4.6 4.7 4.8 4.9 5 6 7 8) | |
| mkdir "$FOLDER" | |
| cd "$FOLDER" | |
| git init | |
| for v in "${VERSIONS[@]}"; | |
| do |
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
| # /etc/nginx/sites-available/ga.example.com.conf | |
| # | |
| # Example of an host that uses the snippet | |
| server { | |
| listen 80; | |
| server_name ga.example.com; | |
| # verify that the query relates to my account | |
| if ($arg_tid !~ "^$|^UA-XXXXXXXX-") { |
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
| from django.core.management.utils import get_random_secret_key | |
| get_random_secret_key() |