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/env python3 | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
import numpy as np | |
def calculate_probabilities(card1, card2, num_decks=1): | |
deck = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] * int(4 * num_decks) |
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 boto3 | |
import json | |
import argparse | |
def create_sqs_queue_with_policy( | |
log_processor_user_name: str, | |
region_name: str, | |
s3_bucket_name: str, | |
sqs_queue_name: str, |
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
{ | |
"id": "whitelist", | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"project_id": { | |
"type": "string", |
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
# docker-compose.yml | |
web: | |
image: 'gitlab/gitlab-ee:latest' | |
restart: always | |
hostname: '$GITLAB_HOSTNAME' | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'http://$GITLAB_HOSTNAME' | |
gitlab_rails['gitlab_shell_ssh_port'] = 2224 | |
# Add any other gitlab.rb configuration here, each on its own line |
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
<!DOCTYPE html> <html lang=zh-tw><!-- | |
Page saved with SingleFile | |
url: http://localhost:8888/notebooks/HW2.ipynb# | |
saved date: Wed Apr 08 2020 22:33:50 GMT+0800 (台北標準時間) | |
--><meta charset=utf-8> | |
<title>HW2 - Jupyter Notebook</title> | |
<meta http-equiv=X-UA-Compatible content="IE=edge"> | |
<style>.ui-resizable-handle{position:absolute;font-size:0.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-n{cursor:n-resize;width:100%;left:0}.ui-slider{text-align:left}.ui-slider .ui-slider-handle{cursor:default;-ms-touch-action:none;touch-action:none}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget-content{color:#222}.ui-widget-content .ui-state-default{background:#e6e6e6 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQEAAAAAAao4lEAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0T//xSrMc0AAAAHdElNRQfgCQ4NIgiW7vkhAAAATElEQVQ4y2N4l8fEwDCKRhF1EcOzZwzPjRie32Fi3MvEeIGJ8SsT4zcmRg4mRk4mxm9MjF+ZGB8zfGRmYljF8EmOiUF4wB08ioYEAgDUMBI63vAg |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define CHUNK_SIZE 10 | |
char *read_pages(size_t *len) { | |
size_t page_len = 0, pages_size = CHUNK_SIZE; | |
char *pages = (char *) calloc(pages_size + 1, 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
sudo docker run --network host -d \ | |
taichunmin/serveo-server serveo \ | |
-port=2222 \ | |
-domain=isekai.tw \ | |
-private_key_path=/root/.ssh/id_ed25519 |
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
/* | |
. | |
. | |
. | |
typedef struct reg { | |
int ID; | |
int score; | |
struct reg *next; | |
} tReg; |
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
just make it be the title |