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
$(document).ready( function() { | |
var dest = "https://www.example.com"; | |
var params = window.location.search; | |
var redirectUrl = dest + params; | |
window.location.replace(redirectUrl); | |
}); |
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
awk '(NR == 1) || (FNR > 1)' file*.csv > bigfile.csv | |
https://apple.stackexchange.com/a/348619 |
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
cd parent_folder | |
zip -rj filename.zip folder_name -x "*.DS_Store" |
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
python -m SimpleHTTPServer |
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
[ | |
{ | |
"label": "Alabama", | |
"value": "AL" | |
}, | |
{ | |
"label": "Alaska", | |
"value": "AK" | |
}, | |
{ |
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
var date = new Date(); | |
date.setMinutes(date.getMinutes() - date.getTimezoneOffset()); | |
var today = date.toISOString().substring(0, 10); |
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
"options": [ | |
{"value": "AL","name":"Alabama"}, | |
{"value": "AK","name":"Alaska"}, | |
{"value": "AZ","name":"Arizona"}, | |
{"value": "AR","name":"Arkansas"}, | |
{"value": "CA","name":"California"}, | |
{"value": "CO","name":"Colorado"}, | |
{"value": "CT","name":"Connecticut"}, | |
{"value": "DE","name":"Delaware"}, | |
{"value": "DC","name":"District Of Columbia"}, |
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
var weekdays = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]; |
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
<select name="state"> | |
<option value="AL">AL</option> | |
<option value="AK">AK</option> | |
<option value="AZ">AZ</option> | |
<option value="AR">AR</option> | |
<option value="CA">CA</option> | |
<option value="CO">CO</option> | |
<option value="CT">CT</option> | |
<option value="DE">DE</option> | |
<option value="DC">DC</option> |
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
<select> | |
<option value="AL">Alabama</option> | |
<option value="AK">Alaska</option> | |
<option value="AZ">Arizona</option> | |
<option value="AR">Arkansas</option> | |
<option value="CA">California</option> | |
<option value="CO">Colorado</option> | |
<option value="CT">Connecticut</option> | |
<option value="DE">Delaware</option> | |
<option value="DC">District Of Columbia</option> |
NewerOlder