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 api | |
import ( | |
"encoding/base64" | |
"fmt" | |
"strings" | |
"time" | |
) | |
// See https://gist.github.com/sclark39/9daf13eea9c0b381667b61e3d2e7bc11 |
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
#include <benchmark/benchmark.h> | |
#include <eigen3/Eigen/Dense> | |
#include <iostream> | |
using Eigen::MatrixXi; | |
static MatrixXi naive_multiply(const MatrixXi &A, const MatrixXi &B) { | |
// result is an n x o matrix | |
MatrixXi C = MatrixXi::Zero(A.rows(), B.cols()); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#define BRIGHTNESS_FILE "/sys/class/backlight/intel_backlight/brightness" | |
#define MAX_BRIGHTNESS 120000 | |
static void __attribute__((noreturn)) die(const char *msg) { | |
printf("%s\n", msg); | |
exit(EXIT_FAILURE); | |
} |
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/sha256" | |
"fmt" | |
"hash" | |
"math/rand" | |
"os" | |
"runtime/pprof" | |
"strconv" |
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
#include <z3++.h> | |
#include <armadillo> | |
#include <array> | |
#include <cmath> | |
#include <cstdlib> | |
#include <ctime> | |
#include <functional> | |
#include <iostream> | |
#include <numeric> |
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
#!/bin/sh | |
DATE=$(date +%Y%m%d) | |
DIR="${HOME}/Documents/WSJ" | |
curl -L 'http://ereader.wsj.net/eebrowser/ipad/html5.check.2350/action/php-script/down_full.php' -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'Origin: http://ereader.wsj.net' -H 'Upgrade-Insecure-Requests: 1' -H 'DNT: 1' -H 'Content-Type: application/x-www-form-urlencoded' --data "rules=&pSetup=wallstreetjournal&archiveName=The+Wall+Street+Journal_${DATE}&language=0&edition=The+Wall+Street+Journal&file=0%40%2Fwallstreetjournal%2F${DATE}%2Fpage.pdf" --compressed -o ${DIR}/${DATE}.pdf |
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 strict'; | |
!function() { | |
/** | |
* @param {?} functionToRunLater | |
* @return {?} | |
*/ | |
function storeOffline(functionToRunLater) { | |
var deferred = this.constructor; | |
return this.then(function(n) { | |
return deferred.resolve(functionToRunLater()).then(function() { |
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
MITSUBISHI:whois.nic.gmo | |
XN--3BST00M:whois.gtld.knet.cn | |
PW:whois.nic.pw | |
MUSEUM:whois.nic.museum | |
AMERICANFAMILY:whois.nic.americanfamily | |
RMIT:whois.nic.rmit | |
MOTORCYCLES:whois.afilias-srs.net | |
PROPERTIES:whois.nic.properties | |
STUDY:whois.nic.study | |
LY:whois.nic.ly |
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
#!/usr/bin/env python3 | |
import os, sys | |
import json | |
from http import client | |
from hashlib import sha256, sha512 | |
from binascii import hexlify | |
from base64 import b64encode | |
from json import loads, dumps | |
email = 'email_here' |
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
/* | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the |