This file contains 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 <stdio.h> | |
#include <time.h> | |
#include <limits.h> | |
#include <math.h> | |
int main(void) | |
{ | |
time_t t = time(NULL); | |
time_t end = 2147483647; |
This file contains 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
use std::f32; | |
use std::fmt; | |
fn main() { | |
let (x, y, z) = (1., 2., 3.); | |
let result: String = match triangle(x, y, z) { | |
Some(x) => x.to_string(), | |
_ => "insufficient".to_string(), | |
}; | |
println!("{}", result); |
This file contains 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 cv2 | |
img = cv2.imread("input.png") | |
tmpl = cv2.imread("tmpl.png") | |
gray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY) | |
tmpl = cv2.cvtColor(tmpl, cv2.COLOR_RGB2GRAY) | |
match = cv2.matchTemplate(img, gray, cv2.TM_SQDIFF_NORMED) |
This file contains 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
:root { | |
--multirow-n-rows: 3; | |
} | |
#tabbrowser-tabs { | |
min-height: unset !important; | |
padding-inline-start: 0px !important; | |
} | |
#tabbrowser-tabs > .tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox { | |
display: flex; | |
flex-wrap: wrap; |
This file contains 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
tell application "Google Chrome" | |
set myURL to get URL of active tab of first window | |
set myTitle to get title of active tab of first window | |
end tell | |
tell application "Safari" to add reading list item myURL with title myTitle |
This file contains 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 enable_darkmode() { | |
set_darkmode "$1" "no" | |
} | |
function disable_darkmode() { | |
set_darkmode "$1" "yes" | |
} | |
function set_darkmode() { | |
app="$1" |
This file contains 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
MM/dd(EEEEE) HH:mm:ss.S |
This file contains 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
trap ' | |
pids="$(jobs -p)" | |
if [[ "${pids}" != "" ]]; then | |
echo "terminated procs are below:" | |
ps auxww ${pids} | |
kill ${pids} > /dev/null | |
fi' EXIT |
This file contains 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 <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
unsigned long a[1]; | |
a[3] = 0x7ffff7b36cebUL; | |
return 0; | |
} |
This file contains 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 <sys/types.h> | |
#include <sys/stat.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
int main() { | |
int fd; | |
char buf[2]; | |
fd = open("filename.txt", 2); |