Skip to content

Instantly share code, notes, and snippets.

View zhaopan's full-sized avatar
🤣

ZP zhaopan

🤣
  • CQ·CHINA
  • 17:39 (UTC +08:00)
View GitHub Profile
@AhmedAlhallag
AhmedAlhallag / Yelp Project_Scraping_Final.ipynb
Created March 1, 2023 07:19
Desktop/Desktio_2023_Post_S1/DB_Lab1/Yelp Project Scraping_Final.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shyamvlmna
shyamvlmna / sorting.go
Last active March 1, 2023 12:08
Sorting algorithms in Go (Selection sort, Insertion sort, Bubble sort, Merge sort, Quick sort)
package main
import (
"fmt"
"math/rand"
"time"
)
func main() {
@MidasXIV
MidasXIV / conventional_commit_messages.md
Created February 2, 2021 21:03 — forked from qoomon/conventional_commit_messages.md
Conventional Commit Messages

Conventinal Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@damienstanton
damienstanton / generics.go
Created February 20, 2020 20:32
Generics in Go (proposed)
/*
* This code is taken from Ian Lance Taylor's Gophercon 2019 talk on
* a proposed syntax/semantics for generics in Go. As such, it won't
* compile on any released Go compiler as of this posting (early 2020).
*/
// Tree is a generic binary tree
type Tree (type E) struct {
root *node(E)
compare func(E, E) int
git_current_branch () {
local ref
ref=$(command git symbolic-ref --quiet HEAD 2> /dev/null)
local ret=$?
if [[ $ret != 0 ]]
then
[[ $ret == 128 ]] && return
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return
fi
echo ${ref#refs/heads/}
@dreamlu
dreamlu / win-ss
Last active April 19, 2024 05:44
windows终端翻墙,简易方式
环境:shadowsocks、windows
本地ss端口设置(这里1080)
cmd命令行:(不用socks5)(临时设置)(也可放置环境变量)
set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080
ps:一定要用cmd命令行,千万别用powershell !!!
简易测试命令:curl https://www.google.com(别用ping)
@starlinq
starlinq / java-setup.md
Last active January 27, 2024 19:11
How to install Java JDK8 in Ubuntu 16.04

How to install Java JDK8 in Ubuntu 16.04

Let's consider a JDK8 installation using 2 different versions: default and Oracle. The default version is easiest because it is packaged with Ubuntu.

There is default Java installation called the JDK (Java Development Kit). The JDK is usually only needed if you are going to to do some software developmwent using Java or if some software requires it. The JDK does contain the JRE.

Installing the default JDK

@liziwl
liziwl / 华为历年机试题集合.md
Last active May 1, 2024 04:42
华为机考习题集

华为历年机试题集合


华为机试共3道题,分值分别为60,50,40。时长2小时,上机环境支持语言包括C/C++/Java

搜集的题目均来自网络:
题1~3 code
题4~6 code
题7 code
题8~9 code

@rhukster
rhukster / sphp.sh
Last active March 30, 2024 10:41
Easy Brew PHP version switching (Now moved to https://github.com/rhukster/sphp.sh)
#!/bin/bash
# Creator: Phil Cook
# Modified: Andy Miller
#
# >>> IMPORTANT: Moved to: https://github.com/rhukster/sphp.sh
# >>> Kept here for legacy purposes
#
osx_major_version=$(sw_vers -productVersion | cut -d. -f1)
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2)
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3)
@abdurrahmanekr
abdurrahmanekr / gist:2747d704edec93a06e454eba2653e0df
Last active April 1, 2024 04:05
WhatsApp original chat background image

WhatsApp original chat background image

WhatsApp original darkmoda background image