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
body { | |
text-align: justify; | |
} | |
code, pre { | |
font-family: "Hack", monospace; | |
} | |
h1, h2, h3, h4, h5, h6 { | |
text-align: left; |
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
import os | |
import time | |
import sys | |
import unittest | |
from appium import webdriver | |
class TestCase(unittest.TestCase): |
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
brew install qpdf | |
# first decrypt | |
qpdf --decrypt --password=mypass <FILE_NAME> dec-<FILE_NAME>.pdf | |
# merge | |
qpdf --empty --pages dec*.pdf -- all.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
//Open the file directly in the browser and run this script from the console | |
//Assumptions: The browser uses a <pre/> tag for showing the CSS code | |
var file = document.querySelector("pre"); | |
var fileContent = file.innerHTML; | |
var newContent = fileContent.replace(/([\d.]+)(px)/g, function(m){ | |
var measure = parseFloat(m.split("px")[0]); | |
var newMeasure = measure / 10; | |
newMeasure = newMeasure.toFixed(2); | |
newMeasure = newMeasure.replace(/(\.[0-9]*?)0+$/, "$1"); // remove trailing zeros |