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
| package de.wiomoc.loop | |
| import android.graphics.RuntimeShader | |
| import androidx.compose.animation.core.RepeatMode | |
| import androidx.compose.animation.core.animateFloat | |
| import androidx.compose.animation.core.infiniteRepeatable | |
| import androidx.compose.animation.core.rememberInfiniteTransition | |
| import androidx.compose.animation.core.tween | |
| import androidx.compose.foundation.Canvas | |
| import androidx.compose.foundation.layout.fillMaxSize |
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 <assert.h> | |
| #include <stddef.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| /* | |
| * Includes map.h for macro magic by William Swanson in 2012. | |
| * start map.h | |
| */ |
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
| # requires https://github.com/erikflowers/weather-icons/blob/master/font/weathericons-regular-webfont.ttf saved as weathericons.ttf along the project | |
| import datetime | |
| import json | |
| import urllib.request | |
| from collections import defaultdict | |
| from PIL import ImageDraw, Image, ImageFont | |
| # Weather |
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
| function handler(event) { | |
| const { request } = event; | |
| const { headers, querystring } = request; | |
| const clientId = process.env.SHOPIFY_API_KEY; | |
| const clientSecret = process.env.SHOPIFY_API_SECRET; | |
| const scopes = process.env.SCOPES; | |
| const shop = querystring["shop"]; | |
| if (!shop || !shop.value) { |
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 urllib import request | |
| import json | |
| import datetime | |
| import base64 | |
| import sys | |
| plan = json.load(request.urlopen("https://sws.maxmanager.xyz/extern/mensa_stuttgart-vaihingen.json")) | |
| plan = plan['Mensa Stuttgart-Vaihingen'] | |
| #days = sorted(plan.items(), key=lambda item: item[0]) | |
| day = plan.get(datetime.date.today().isoformat()) |
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
| code_matrix = [ | |
| [0x1c, 0xbd, 0x55, 0xe9, 0x55], | |
| [0x1c, 0xbd, 0x1c, 0x55, 0xe9], | |
| [0x55, 0xe9, 0xe9, 0xbd, 0xbd], | |
| [0x55, 0xff, 0xff, 0x1c, 0x1c], | |
| [0xff, 0xe9, 0x1c, 0xbd, 0xff] | |
| ] | |
| sequences = [ | |
| [0x1c, 0x1c, 0x55], | |
| [0X55, 0Xff, 0X1c], |
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 <WiFi.h> | |
| #include <WiFiClientSecure.h> | |
| #include <PubSubClient.h> | |
| #include <DHT.h> | |
| // Retrieve using aws iot describe-endpoint --endpoint-type iot:Data-ATS | |
| #define ENDPOINT "....-ats.iot.---.amazonaws.com" | |
| #define SSID "YOUR_SSID" | |
| #define PSK "YOUR_PASSWORD" |
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
| <script> | |
| var ws = new WebSocket("ws://localhost:8080/"); | |
| ws.onmessage = function (event) { | |
| console.log(event.data); | |
| } | |
| </script> |
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
| // | |
| // GemPuzzleView.swift | |
| // GemPuzzle | |
| // | |
| // Created by Christoph Walcher on 12.01.18. | |
| // Copyright © 2018 Christoph Walcher. All rights reserved. | |
| // | |
| import ScreenSaver | |
| import Foundation |
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
| #!/usr/bin/python | |
| import argparse | |
| import requests | |
| import re | |
| import string | |
| import time | |
| try: | |
| from BeautifulSoup import BeautifulSoup |
NewerOlder