Skip to content

Instantly share code, notes, and snippets.

View zYeoman's full-sized avatar
👓
Coding

Yongwen Zhuang zYeoman

👓
Coding
View GitHub Profile
@zYeoman
zYeoman / compile.sh
Last active May 6, 2022 16:16 — forked from martinsik/index.html
Simple WebSocket server based on libwebsockets. For full description read http://martinsikora.com/libwebsockets-simple-websocket-server
gcc libwebsockets-websocket.c -L/usr/local/lib -lwebsockets
@zYeoman
zYeoman / ReadablePass.js
Created December 1, 2016 16:08
Generate readable password. Will not continue. Maybe.
// ==UserScript==
// @name ReadablePass
// @namespace zyeoman
// @description Generate readable password
// @include *
// @version 1
// @grant none
// ==/UserScript==
reg = /([^aeiou]*[aeiou]*([^aeiou]*([^aeiou][aeiou]+[^aeiou]*$)))/
host = /(?:\w+\.)*?([^\.]*)\.[^\.]*$/.exec(window.location.host) [1]
#include "stdio.h"
char weight[10];
int compare(const char *a, const char *b){
return weight[*a]-weight[*b];
}
void ShuffleArray_Sort(char* arr, int len){
for (int j = 0; j < 10; ++j){