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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDIyoAbI0HwBCAS5oVElQij4ZMSNpwA2qOyxl8eYg6k4Lxf6QLTJSBIy4cAut4dv6qBFlRmbNnuI2mEeqXtBuqwmm0HDmU+D89kuWnHfZGi+lM9uEuE8M1tVCr/jqcx5mk7dx4dlEGRYdPzVMP0VjjdvVkpdRWVlF4UPKP7pRhtuCz9ZYWjwA1QIXnXT1fgjybqTSsMewiOgsBZgnfR64UUXjRM1wLbY2XxzPKmdi78zgfQY2WC6KDmjjK6x65jSgOqcnIxwElUpdtVIVBhswwu5XJFlUXdC11FT58nHpmJL7j+8lFPx4W3Iv6VpFjYVIdx9YgFDoOywTPoFDw4oopwirtjVJvRBsMoNX8nDn4lxRxlxGyvThjd0gqPqxVVnzGM0IxMW3oqO6xrOr05w97EzNLuLEhJ6duQWpAf7qmcNaNClKC8xCrQ1fxBXeFxlcu2iNHzCOkYL9iscLhbwlTTHwpCHIHFec2amVXcYPcAdoEzfqKJDiFNxc+31Aaz9GY9xPwNewU9O2rr4GhYpNNmVSN7CMT9Kbe0bpc0K08swy/j+Fdcnh2sIoRPedV5EahttUophZXu0zCaLxqGb7uRPJYzN3cLx7Ql1Vhhi6DpMqPjv5FkBSWPzMmojLNBMo+fgzOpM1Vh5HexAxCWE+TWlXUTplTRVB7hVSqJBzFiWw== [email protected] |
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/bin/perl | |
$title = "Hello!"; | |
$body = "Hello, World from Perl.¥n"; print << "EOT"; | |
Content-Type: text/html | |
<html> <head><title>$title</title></head> <body> | |
$body | |
</body> | |
</html> |
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
from django.utils.crypto import get_random_string | |
def get_random_specified_length_secret_key(length: int) -> str: | |
""" | |
Return a random string with specified length usable as a SECRET_KEY setting value. | |
""" | |
chars = "abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)" | |
return get_random_string(length, chars) |
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 numpy as np | |
A = ( | |
(0, 1, 1, 1), | |
(0, 1, 1, 0), | |
(1, 1, 0, 2), | |
(1, 0, 0, 0) | |
) | |
B = ( | |
(0, 1, 0), |
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
([1-2]-[1-5])|([3-5](M[1-2]|E|I|C)) |
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
// | |
// Created by Manaki ITO on 2021/06/17. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define DEFAULT_STR_BUFFER_LENGTH 512 | |
#define DEFAULT_BUFFER_BYTES DEFAULT_STR_BUFFER_LENGTH * sizeof(char) |
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
// | |
// Created by Manaki ITO on 2021/05/07. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define print_green(...) {printf("\x1b[32m"); printf(__VA_ARGS__); printf("\x1b[39m\n");} | |
#define print_yellow(...) {printf(" \x1b[33m"); printf(__VA_ARGS__); printf("\x1b[39m\n");} | |
#define print_error(...) {fprintf(stderr, "\x1b[31m"); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\x1b[39m\n");} | |
#define fatal(exit_code, ...) {print_error(__VA_ARGS__); exit(exit_code);} |
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
int is_sorted(int target_array[], int array_length) { | |
for (int i = 0; i < array_length - 1; i++) { | |
if (target_array[i] > target_array[i+1]) { | |
return 0; | |
} | |
} | |
return 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
function FindProxyForURL(url, host) { | |
return "SOCKS 172.16.226.147:1080"; | |
} |
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
const letters = "0123456789ABCDEF" |