This file contains 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
(function() { | |
var aa = document.querySelectorAll("input[type=checkbox]"); | |
for (var i = 0; i < aa.length; i++){ | |
aa[i].checked = true; | |
} | |
})() |
This file contains 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
[libs] | |
./node_modules/fbjs/flow/lib | |
[options] | |
esproposal.class_static_fields=enable | |
esproposal.class_instance_fields=enable | |
module.name_mapper='^\(.*\)\.css$' -> 'react-scripts/config/flow/css' | |
module.name_mapper='^\(.*\)\.\(jpg\|png\|gif\|eot\|otf\|webp\|svg\|ttf\|woff\|woff2\|mp4\|webm\)$' -> 'react-scripts/config/flow/file' |
This file contains 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
import copy | |
from pyPdf import PdfFileWriter, PdfFileReader | |
input1 = PdfFileReader(file("in.pdf", "rb")) | |
output = PdfFileWriter() | |
numPages = input1.getNumPages() | |
for i in range(numPages): | |
masterPage = input1.getPage(i) | |
aggPageCollection = [] |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am jacobkahn on github. | |
* I am jacobkahn (https://keybase.io/jacobkahn) on keybase. | |
* I have a public key ASDukhNuTuFa6zcYoIgKqZOl-Mk9yhwaeV0o1T-qUzkd0Qo | |
To claim this, I am signing this object: |
This file contains 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 <regex.h> | |
std::string regexReplace( | |
const std::string& inStr, | |
const std::string& regexStr, | |
const std::string& repl) { | |
int ret = 0; | |
// Create expr | |
regex_t regex; | |
if ((ret = regcomp(®ex, regexStr.c_str(), REG_EXTENDED))) { |
This file contains 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
function unwatchOrgRepos(orgName, repoNameFirstFourChars) { | |
var repoItems = document.querySelectorAll(".repo-list > li") | |
repoItems.forEach(function (item) { | |
var repoOrgElement = item.querySelector(".repo-name").previousElementSibling; | |
var repoElement = item.querySelector(".repo-name"); | |
var repoOrgName = repoOrgElement.innerText; | |
if (repoOrgName === orgName && repoElement.innerHTML.substring(0, 4) == repoNameFirstFourChars) { | |
var unwatchButton = item.querySelector(".js-unsubscribe-form > button"); | |
unwatchButton.click(); | |
var itemName = repoOrgElement.parentElement.innerText; |
This file contains 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
import uuid | |
from pyPdf import PdfFileWriter, PdfFileReader | |
for qq in range(1, 10): | |
inputpdf = PdfFileReader(open("in" + str(qq) + ".pdf", "rb")) | |
j = -1 | |
for i in xrange(inputpdf.numPages): | |
print(i) | |
if i % 10 == 0: |
This file contains 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
# | |
# out-of-place in-place | |
# size count type redop time algbw busbw error time algbw busbw error | |
# (B) (elements) (us) (GB/s) (GB/s) (us) (GB/s) (GB/s) | |
8 2 float sum 163.4 0.00 0.00 2e-07 164.4 0.00 0.00 1e-07 | |
16 4 float sum 162.9 0.00 0.00 1e-07 162.3 0.00 0.00 1e-07 | |
32 8 float sum 164.1 0.00 0.00 1e-07 164.0 0.00 0.00 1e-07 | |
64 16 float sum 163.6 0.00 0.00 1e-07 163.3 0.00 0.00 1e-07 | |
128 32 float sum 164.1 0.00 0.00 1e-07 161.6 0.00 0.00 1e-07 | |
256 64 float sum 162.5 0.00 0.00 1e-07 163.0 0.00 0.00 1e-07 |
This file contains 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
# | |
# out-of-place in-place | |
# size count type redop time algbw busbw error time algbw busbw error | |
# (B) (elements) (us) (GB/s) (GB/s) (us) (GB/s) (GB/s) | |
8 2 float sum 319.4 0.00 0.00 2e-07 319.2 0.00 0.00 0e+00 | |
16 4 float sum 320.9 0.00 0.00 1e-07 319.0 0.00 0.00 1e-07 | |
32 8 float sum 317.2 0.00 0.00 1e-07 318.1 0.00 0.00 1e-07 | |
64 16 float sum 321.3 0.00 0.00 1e-07 318.4 0.00 0.00 1e-07 | |
128 32 float sum 319.6 0.00 0.00 1e-07 319.4 0.00 0.00 1e-07 | |
256 64 float sum 318.1 0.00 0.00 1e-07 318.9 0.00 0.00 1e-07 |
This file contains 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
# | |
# out-of-place in-place | |
# size count type redop time algbw busbw error time algbw busbw error | |
# (B) (elements) (us) (GB/s) (GB/s) (us) (GB/s) (GB/s) | |
8 2 float sum 631.3 0.00 0.00 2e-07 632.3 0.00 0.00 0e+00 | |
16 4 float sum 686.3 0.00 0.00 2e-07 631.1 0.00 0.00 2e-07 | |
32 8 float sum 627.5 0.00 0.00 2e-07 628.7 0.00 0.00 2e-07 | |
64 16 float sum 632.0 0.00 0.00 2e-07 629.6 0.00 0.00 1e-07 | |
128 32 float sum 629.1 0.00 0.00 2e-07 628.8 0.00 0.00 2e-07 | |
256 64 float sum 628.2 0.00 0.00 2e-07 628.3 0.00 0.00 2e-07 |
OlderNewer