Skip to content

Instantly share code, notes, and snippets.

View EnigmaHuang's full-sized avatar

Enigma Huang EnigmaHuang

View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include <math.h>
#include <mm_malloc.h>
#include <omp.h>
#include <cblas.h>
@EnigmaHuang
EnigmaHuang / clean_weibo.js
Created March 4, 2019 17:08
Delete all weibo in the current page, by @mariotaku
// 在 weibo.com 的个人首页删除当前屏幕所有微博
var http = new XMLHttpRequest();
var anchors = document.getElementsByTagName("div");
for (i = 0; i < anchors.length; i++) {
// 找到有mid属性的div元素
var mid = anchors[i].getAttribute("mid");
if (mid) {
console.log("Deleting " + mid);
// 这是微博的删除接口
var url = "/aj/mblog/del?ajwvr=6";
@EnigmaHuang
EnigmaHuang / para_sort_128B.cpp
Created March 4, 2019 17:05
OMP parallel sort by @eazyjobb
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <omp.h>
#include <time.h>
#include <algorithm>
#define T __int128
T * quick_sort_128_core(T * l, T * r) {

Keybase proof

I hereby claim:

  • I am EnigmaHuang on github.
  • I am enigmahuang (https://keybase.io/enigmahuang) on keybase.
  • I have a public key whose fingerprint is C1AB 94D1 CA50 5510 B3FC D9D3 F30B 22B6 B3A8 264C

To claim this, I am signing this object: