Skip to content

Instantly share code, notes, and snippets.

View DuckSoft's full-sized avatar
🌟
Ex nihilo ad astra

DuckSoft DuckSoft

🌟
Ex nihilo ad astra
View GitHub Profile
// 精度取舍
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
inline double func(int a, int n) {
return pow(a, pow(2, 1-n));
}
// 垃圾思路
#include <vector>
#include <iostream>
#include <sstream>
using namespace std;
int main() {
stringstream ss;
vector<string> fucker;
@DuckSoft
DuckSoft / flask-ssl.md
Created June 2, 2018 18:55
Flask 使用自定义SSL证书
    # from myapp import app
    app.run("0.0.0.0", port=443, ssl_context=("xxx.cer", "xxx.key"))
@DuckSoft
DuckSoft / bugku-web-baopo.py
Created May 26, 2018 07:21
BugKuCTF Web Baopo
import requests
import threadpool
pool = threadpool.ThreadPool(32)
flag = False
def worker(i):
global flag
if flag:
@DuckSoft
DuckSoft / phvck_you.sh
Created December 16, 2017 09:04
phvck_you
echo "Fuck you!"
@DuckSoft
DuckSoft / shit.sh
Created December 16, 2017 09:02
fuck
echo "fucking bitch"
@DuckSoft
DuckSoft / go-proposal.md
Last active July 3, 2017 07:36
proposal: introducing a new raw string literal

Background

It came to me when I was writing something like this:

package main
import "fmt"

func main() {
    fmt.Println(`----------------
Demo Program
----------------