The program below can take one or more plain text files as input. It works with python2 and python3.
Let's say we have two files that may contain email addresses:
- file_a.txt
foo bar
ok [email protected] sup
[email protected],wyd
hello world!
// ==UserScript== | |
// @name UTM param stripper | |
// @author Paul Irish | |
// @namespace http://github.com/paulirish | |
// @version 1.2 | |
// @description Drop the UTM params from a URL when the page loads. | |
// @extra Cuz you know they're all ugly n shit. | |
// @include http*://* | |
// ==/UserScript== |
/* | |
Copyright 2011 Martin Hawksey | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
/** | |
* Like, basically PERFECT scrollbars | |
*/ | |
/* | |
It's pure CSS. | |
Since a quick google search will confirm people going crazy about Mac OS Lion scrollbars... | |
this has no fade-out effect. | |
In Mac OS Lion, the lowest common denominator is always showing scrollbars by a setting. |
/* if portrait mode is detected, rotate the entire site -90 degrees to hint rotating to landscape */ | |
@media (orientation: portrait) { | |
body { | |
-webkit-transform: rotate(-90deg); | |
-moz-transform: rotate(-90deg); | |
-o-transform: rotate(-90deg); | |
-ms-transform: rotate(-90deg); | |
transform: rotate(-90deg); | |
} | |
} |
/* This function extracts user input from the Loan Calculator input form and uses it to set the variables of loanAmount, repayPeriod and protection*/ | |
function getInput() | |
{ | |
document.getElementById('error').style.display = 'none'; | |
var loanAmount = document.getElementById('loan_amount').value; | |
/*Check whether user input for loan amount is valid*/ | |
if (isNaN(loanAmount) == true || loanAmount<1000 || loanAmount>500000) | |
{ |
<!-- | |
the select needs | |
- "has_other" css class | |
- "data-other" attribute, which points to the id of the element to hide/show (normally a textbox) | |
- "data-other-text" attribute, which indicates the text which indicates that other has been selected | |
--> | |
<select class="has_other" data-other="#textbox_id" data-other-text="...other"> | |
<option>option 1</option> | |
<option>...other</option> |
<form action="." method="post"> | |
<noscript>You must <a href="http://www.enable-javascript.com" target="_blank">enable JavaScript</a> in your web browser in order to pay via Stripe.</noscript> | |
<input | |
type="submit" | |
value="Pay with Card" | |
data-key="PUBLISHABLE STRIPE KEY" | |
data-amount="500" | |
data-currency="cad" | |
data-name="Example Company Inc" |
The program below can take one or more plain text files as input. It works with python2 and python3.
Let's say we have two files that may contain email addresses:
foo bar
ok [email protected] sup
[email protected],wyd
hello world!
--- | |
white: | |
hsl: 'hsla(138, 10%, 98%, 1)' | |
hex: '#f9fafa' | |
black: | |
hsl: 'hsla(138, 16%, 10%, 1)' | |
hex: '#151e18' | |
green: | |
hsl: 'hsla(138, 39%, 54%, 1)' | |
hex: '#5cb777' |