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 <stdint.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| void divide_zero_error() { | |
| exit(1); | |
| } | |
| typedef struct { | |
| uint32_t q, r; |
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
| X Error: BadAccess (attempt to access private resource denied) 10 | |
| Extension: 130 (MIT-SHM) | |
| Minor opcode: 1 (X_ShmAttach) | |
| Resource id: 0x2400002 | |
| X Error: BadShmSeg (invalid shared segment parameter) 128 | |
| Extension: 130 (MIT-SHM) | |
| Minor opcode: 5 (X_ShmCreatePixmap) | |
| Resource id: 0xf6 | |
| X Error: BadDrawable (invalid Pixmap or Window parameter) 9 | |
| Major opcode: 62 (X_CopyArea) |
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
| extern crate glowygraph as gg; | |
| extern crate glium; | |
| extern crate rand; | |
| use rand::{Rng, SeedableRng, Isaac64Rng}; | |
| use gg::render2::*; | |
| const TOTAL_BEZIERS: usize = 512; | |
| fn main() { |
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 | |
| pactl set-sink-mute @DEFAULT_SINK@ false | |
| pactl set-sink-volume @DEFAULT_SINK@ -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
| #!/bin/bash | |
| pactl set-sink-mute @DEFAULT_SINK@ false | |
| pactl set-sink-volume @DEFAULT_SINK@ +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
| #!/bin/bash | |
| pactl set-sink-mute @DEFAULT_SINK@ toggle |
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 | |
| filename=$(date +%s).png | |
| import "${filename}" | |
| echo "${filename}" | |
| imgur dTKCq "${filename}" |
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 | |
| CLIENT_ID="e442433569512b1" | |
| CLIENT_SECRET="b088d1efe225fb9cfa8bad79290a77209c13de5e" | |
| EXPIRE_TIME="3500" | |
| CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/imgur" | |
| mkdir -p "$CACHE_DIR" | |
| ACCESS_TOKEN_FILE="$CACHE_DIR/token-access" | |
| REFRESH_TOKEN_FILE="$CACHE_DIR/token-refresh" |
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
| #pragma once | |
| #include "../../../Utilities/BitField.h" | |
| union spu_opcode_t | |
| { | |
| u32 opcode; | |
| bf_t<u32, 0, 7> rt; // 25..31, for 3-op instructions | |
| bf_t<u32, 0, 7> rc; // 25..31 |
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
| #pragma once | |
| #include "../../../Utilities/BitField.h" | |
| union spu_opcode_t | |
| { | |
| u32 opcode; | |
| bf_t<u32, 0, 7> rt; // 25..31, for 3-op instructions | |
| bf_t<u32, 0, 7> rc; // 25..31 |