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<stdlib.h> | |
int n,m; | |
int M[105][105]; | |
int dx[4] = {1,-1,0,0}; | |
int dy[4] = {0,0,1,-1}; | |
typedef struct { | |
int x; |
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 os | |
from flask import Flask, request, abort | |
from dotenv import load_dotenv | |
from linebot.v3 import ( | |
WebhookHandler | |
) | |
from linebot.v3.exceptions import ( | |
InvalidSignatureError | |
) |
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
`timescale 1ns / 1ps | |
module clock_divider(clk,clk_div); | |
input clk; | |
output clk_div; | |
parameter n = 25; | |
reg[n-1:0]num; | |
wire[n-1:0]next_num; | |
always@(posedge clk)begin | |
num <= next_num; | |
end |
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
class Shape { | |
constructor(type, values) { | |
this.type = type | |
this.values = values | |
} | |
getArea() { | |
let area = 0 | |
switch(this.type) { | |
case "Rectangle": |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="https://cdn.tailwindcss.com"></script> | |
</head> | |
<body> | |
<div class="flex flex-col gap-2 p-2"> | |
<div class="flex justify-between"> |
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
<!DOCTYPE html> | |
<html lang="zh-Hant-TW"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="https://cdn.tailwindcss.com"></script> | |
<title>計算機</title> | |
</head> | |
<body class="flex flex-col justify-center items-center min-w-screen min-h-screen"> | |
<div id="result">0</div> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="https://cdn.tailwindcss.com"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> | |
<title>Title</title> | |
</head> | |
<body> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
</head> | |
<body> | |
<h1>Hello</h1> | |
<input type="text" name="q" placeholder="搜尋字串"> <!-- q=xxxx --> |
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
`timescale 1ns/1ps | |
`define CYCLE 10 | |
`define END_CYCLES 50000 | |
`define SEQ_LEN 4 | |
`define ANS_LEN 31 | |
module tb; | |
reg clk; | |
reg rst_n; | |
reg start; | |
reg valid; |
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<iostream> | |
#include<set> | |
using namespace std; | |
signed main() { | |
string method; | |
multiset<int> s; | |
ios::sync_with_stdio(0); | |
cin.tie(0); | |
cout.tie(0); |