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 ( | |
| "bufio" | |
| "os" | |
| "strings" | |
| "fmt" | |
| "time" | |
| "io" | |
| ) |
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
| use std::env; | |
| use std::fs::{File, OpenOptions}; | |
| use std::io::{BufRead, BufReader, Write, BufWriter}; | |
| use std::collections::HashMap; | |
| use chrono::{DateTime, Local}; | |
| fn main() { | |
| let args: Vec<String> = env::args().collect(); | |
| if args.len() < 2 { | |
| println!("file name must be specified."); |
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 ( | |
| "crypto/ed25519" | |
| "crypto/rand" | |
| "crypto/x509" | |
| //"crypto/x509/pkix" | |
| "encoding/pem" | |
| "log" | |
| //"math/big" |
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 clientname | |
| import ( | |
| "log" | |
| "os" | |
| "context" | |
| "io/ioutil" | |
| "net/http" | |
| "golang.org/x/oauth2" | |
| "golang.org/x/oauth2/clientcredentials" |
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
| # how to compile: nim c -d:release hello.nim | |
| import asyncdispatch | |
| import httpClient | |
| proc main() {.async.} = | |
| var client = newAsyncHttpClient() | |
| echo await client.getContent("http://google.com") | |
| waitFor main() |
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 | |
| // copyright 2019 yu | |
| // example of pararell uploading on http | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "math" |
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> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>TailwindCSS Excample</title> | |
| <link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet"> | |
| </head> |
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
| extern crate reqwest; | |
| extern crate oauth2; | |
| extern crate url; | |
| use oauth2::{ | |
| AuthUrl, | |
| ClientId, | |
| ClientSecret, | |
| Scope, | |
| TokenResponse, |
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 ( | |
| "bytes" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "net/http/httputil" | |
| ) |
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
| <?php | |
| echo json_encode("\"'<>&", JSON_HEX_QUOT | JSON_HEX_TAG | JSON_HE_AMP); |