https://keyoxide.org/116FBA8295065A01C3BC7CC6CF79BF54D4BF0A41
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() { | |
| 'use strict'; | |
| const classToHide = 'I6agWe'; // change this as needed | |
| function hideElements() { | |
| const elements = document.querySelectorAll(`.${classToHide}`); | |
| elements.forEach((el, i) => { | |
| el.style.display = 'none'; | |
| }); |
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
| let sb = FlurrySessionBuilder() | |
| .build(logLevel: FlurryLogLevel.all) | |
| .build(crashReportingEnabled: true) | |
| .build(appVersion: Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String) | |
| .build(iapReportingEnabled: true) | |
| Flurry.startSession(apiKey: EnvConfig.flurryApiKey, sessionBuilder: sb) |
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 setup lang="ts"> | |
| import { useRoute } from 'vue-router' | |
| import { watch, ref } from 'vue' | |
| const route = useRoute() | |
| const submenu1 = ref<HTMLElement | null>(null) | |
| const closeMenu = (element: HTMLElement | null) => { | |
| if (element && element.hasAttribute('open')) { |
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
| #!/bin/bash | |
| export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
| function shutdown() { | |
| colima stop | |
| exit 0 | |
| } | |
| trap shutdown SIGTERM |
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
| <html> | |
| <head> | |
| <link | |
| rel="stylesheet" | |
| href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | |
| integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" | |
| crossorigin="anonymous" | |
| /> | |
| <script | |
| src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" |
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
| @RestController | |
| class Controller(val service: SomeService) { | |
| @GetMapping("/something") | |
| fun all() = service.all() | |
| @PostMapping("/something") | |
| suspend fun save(@RequestBody something: CreateDTO) = service.create(something) | |
| @PutMapping("/something/{id}") | |
| suspend fun update(@PathVariable id: Long, @RequestBody updates: UpdateDTO) = service.update(id, updates) |
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
| public class Convert { | |
| public static void main(String[] args) { | |
| String pngFile = args[0]; | |
| String datFile = args[1]; | |
| try { | |
| BufferedImage image = ImageIO.read(new File(pngFile)); | |
| try ( | |
| LittleEndianDataOutputStream outputStream = new LittleEndianDataOutputStream(new FileOutputStream(datFile)) |
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
| /** | |
| * Could't get adafruit's image reader working on Teensy 4.1 - doesn't seem to be compatible with | |
| * Teensy's version of the SD card library | |
| * | |
| * But - the TFT object has this method: | |
| * | |
| * void Adafruit_GFX::drawRGBBitmap( | |
| * int16_t x, | |
| * int16_t y, | |
| * uint16_t * bitmap, |
NewerOlder