Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"strconv"
"strings"
)
func main() {
// string to []byte
package main
import (
"fmt"
"log"
"os"
"time"
"github.com/bxcodec/faker/v3"
)
package main
import (
"fmt"
"strings"
)
func makeSuffix(suffix string) func(string) string {
return func(fileName string) string {
if strings.HasSuffix(fileName, suffix) {
package main
import (
"fmt"
)
func main() {
var row int = 10
for i := 1; i <= row; i++ {
for k := 0; k < row-i; k++ {
@jiaqi-yin
jiaqi-yin / README.md
Created June 6, 2018 12:01 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

OP: @leonardofed founder @ plainflow.


@jiaqi-yin
jiaqi-yin / crawling.py
Last active May 10, 2018 11:39
Python Crawling
import urllib.request
from urllib.parse import urljoin
from urllib.parse import urlparse
from datetime import datetime
import time
import re
def download(url, user_agent='wsp', num_tries=2):
print('Downloading: ', url)
@jiaqi-yin
jiaqi-yin / gist:f548a0db94d08b3a4aee40575def56da
Created April 23, 2018 12:12
Web profiler using python modules
# Find a website registrar
>>> import whois
>>> print whois.whois('https://www.drupal.org')
# Find what a website is built with
>>> import builtwith
>>> builtwith.parse('https://www.drupal.org/')