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
| // ==UserScript== | |
| // @name Load HQ Video on Twitter | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Forces Twitter to always load the highest bitrate video available. | |
| // @author Graham Sutherland | |
| // @match https://twitter.com/* | |
| // @icon https://www.google.com/s2/favicons?domain=twitter.com | |
| // @grant none | |
| // ==/UserScript== |
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
| // see: https://bugs.chromium.org/p/chromium/issues/detail?id=1201106 | |
| // see: https://twitter.com/gsuberland/status/1445547814965055488 | |
| #include <Windows.h> | |
| #include <stdio.h> | |
| #include <TlHelp32.h> | |
| #include <memory> | |
| #include <cassert> | |
| #include <vector> |
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
| // dump LE EXE headers for mixed 16/32-bit VXDs | |
| // ref: https://faydoc.tripod.com/formats/exe-LE.htm | |
| // ref: https://github.com/open-watcom/open-watcom-v2/blob/master/bld/watcom/h/exeflat.h | |
| // ref: http://www.textfiles.com/programming/FORMATS/lxexe.txt (this is for LX, not LE, but layout is roughly the same) | |
| enum Endianness : byte | |
| { | |
| LittleEndian = 0, | |
| BigEndian = 1 |
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
| // ref: http://fileformats.archiveteam.org/wiki/Linear_Executable | |
| // ref: https://moddingwiki.shikadi.net/wiki/Linear_Executable_(LX/LE)_Format | |
| // ref: https://github.com/open-watcom/open-watcom-v2/blob/master/bld/watcom/h/exeflat.h (this is specifically for LE VXDs) | |
| // ref: http://www.textfiles.com/programming/FORMATS/lxexe.txt (comprehensive but actually for LX, not LE) | |
| typedef unsigned char undefined; | |
| typedef unsigned char byte; | |
| typedef unsigned long dword; | |
| typedef unsigned long uint3; |
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
| .intel_syntax noprefix | |
| .altmacro | |
| .section .data | |
| .align 4 | |
| .globl KernelInterruptContext | |
| KernelInterruptContext: | |
| .long 0 // eax | |
| .long 0 // ebx | |
| .long 0 // ecx |
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 System; | |
| using System.Collections; | |
| namespace ChessboardPuzzle | |
| { | |
| static class Program | |
| { | |
| static void Main() | |
| { | |
| // Inspired by 3blue1brown's excellent video on the topic: https://www.youtube.com/watch?v=wTJI_WuZSwE |
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
| #ifndef __INCLUDE_INTERRUPTS_H__ | |
| #define __INCLUDE_INTERRUPTS_H__ | |
| #include "Arduino.h" | |
| #include <algorithm> | |
| typedef void (*ISRFunctionPtr)(); |
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 <Adafruit_Sensor.h> | |
| #include <DHT.h> | |
| #include <DHT_U.h> | |
| #include <ESP8266WiFi.h> | |
| #include <ESP8266WebServer.h> | |
| const char* ssid = "ssid"; | |
| const char* password = "password"; | |
| const char* hostname = "esp_dht22_bedroom"; |
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/local/bin/python3 | |
| import curses | |
| from curses import wrapper | |
| import math | |
| import time | |
| import psutil | |
| from pySMART import DeviceList, Device | |
| REFRESH_INTERVAL = 10 |