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
| BULK_OUT(0.1):03639100010000000028000000400000c00fe00f40000000000000000000000000000000000000000000000000000000 # 0.0000000000000000 | |
| BULK_OUT(0.1):fe63910001 # 0.0020170211791992 | |
| BULK_IN(0.1): 0000bfbfbfbfbfbfbf00bfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbf # 0.1331801414489746 | |
| BULK_OUT(0.1):0563910001000000 # 0.0018589496612549 | |
| BULK_IN(0.1): 040262203e0202 # 0.0306379795074463 | |
| BULK_OUT(0.1):fe63910001 # 0.0083658695220947 | |
| BULK_IN(0.1): 0000bfbfbfbfbfbfbf00bfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbf # 0.0021290779113770 | |
| BULK_OUT(0.1):04639100 # 0.0017690658569336 | |
| BULK_OUT(0.1):03639100010000000028000000400000c00fe00f40000000000000000000000000000000000000000000000000000000 # 0.1330490112304688 | |
| BULK_OUT(0.1):fe63910001 # 0.0020220279693604 |
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
| /*Vertical tab bar auto-hide*/ | |
| #tabs-container{ | |
| width: 5px !important; | |
| } | |
| #tabs-container:hover{ | |
| width: 220px !important; | |
| } | |
| /*Tab bar is an overlay instead of resizing the page*/ | |
| #main .inner { | |
| position: relative; |
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 | |
| #baloo-nice by Al Williams | |
| RLIMIT=1048576 # bps limit (read) | |
| WLIMIT=1048576 # bps limit (write) | |
| DEVICES="8 252 253 259" | |
| SEARCH=baloo | |
| if [ ! -d /sys/fs/cgroup/blkio/baloo ] | |
| then |
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 <sqlite3.h> | |
| #include <stdio.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| sqlite3 *db; | |
| sqlite3_stmt *sql; | |
| int rv; | |
| rv=sqlite3_open("parts.db",&db); |
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 | |
| clear | |
| # init colors | |
| FG="#00ffff" | |
| BFG="#00ff00" | |
| # if you wonder why true is in there https://www.shellcheck.net/wiki/SC2015 | |
| gum confirm --default --affirmative="Play now" --negative="Dump source first" --timeout=10s "Would you like to view the source code before playing?" && true || ( gum format -t code <"$0" ) | |
| # get initial info | |
| gum style --foreground "$FG" --border-foreground "$BFG" --border double --align center --width 64 --margin "1 2" --padding "2 4" \ |
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
| // Simple 1802 Literate Program | |
| #include "lit1802.h" | |
| #define ON 1 | |
| #define OFF 0 | |
| #define DELAYPC 9 // delay subroutine | |
| #define DELAYR 8 // delay count register | |
| #define MAINPC 3 // Main routine PC |
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 asyncio | |
| import testb | |
| state={'done': 0 } | |
| async def taskA(): | |
| global done | |
| print("A") | |
| await asyncio.sleep(5) | |
| print("A'") |
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
| # This is what's wrong with class variables in Python | |
| # and yes, properties work (don't work) the same way | |
| # This is a stupid but clean example where class A | |
| # has a class variable x. It also has direct subclasses | |
| # B and C | |
| # Then there is a subclass of C named D | |
| # None of them should have an x variable, but they all will get one | |
| class A: |
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
| // For best results use Normal trigger mode | |
| #define CLOCK 6 // ch1 | |
| #define DATA 15 // ch2 | |
| #define RS232_OUT 0 // D0 -- by default; this symbol is not used | |
| #define RS232_IN 1 // not really used | |
| #define ANALOG_CLEAR 21 // Discharge analog capacitor fast |
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 | |
| #baloo-nice by Al Williams | |
| if [ "$1" == "fast" ] | |
| then | |
| RLIMIT=100048576 # bps limit (read) | |
| WLIMIT=100048576 # bps limit (write) | |
| else | |
| RLIMIT=548576 # bps limit (read) | |
| WLIMIT=548576 # bps limit (write) |
OlderNewer