This Python script utilizes the GeoPy geocoding library to batch geocode a number of addresses, using various services until a pair of latitude/longitude values are returned.
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
#!/bin/sh | |
cd /var/www/dokuwiki/data && git add . && git add -u && git commit -a -m "Content update `date +'%H:%M %d/%m/%Y %Z'`" && git push origin master |
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 remove_version() { | |
return ''; | |
} | |
add_filter('the_generator', 'remove_version'); |
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
var Radio = function(stations) { | |
var self = this; | |
self.stations = stations; | |
self.index = 0; | |
// Setup the display for each station. | |
for (var i=0; i<self.stations.length; i++) { | |
window['title' + i].innerHTML = '<b>' + self.stations[i].freq + '</b> ' + self.stations[i].title; | |
window['station' + i].addEventListener('click', function(index) { |
If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.
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
/** | |
* Magic Copy | |
* This little script will append some text to the clipboard when a user copies text from the website | |
* | |
* WARNING: This feature is an anti-pattern and a bad usability practice in 99% of cases, use only in | |
* those situations where it can really benefit the user to have a link to the full resource | |
*/ | |
document.addEventListener('copy', (event) => { | |
if (document.getSelection().toString().length < 10){ return; } | |
const pagelink = `\n${document.location.href}`; |
There is a lot of misconception around the dark web, and most of the people think that it is not possible to create their own website on Dark web (The Onion network). Today we will set up a website in the Onion/Tor network for free.
As you can see above, I have created my own website in the Tor network, and I've accessed it using the Tor Browser.
This tutorial consists of three steps
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
/** | |
* Colours taken from Dieter Rams legendary production collection for Braun. Made by Chad Ashley. | |
* Source: http://blog.presentandcorrect.com/rams-palettes | |
* Demo: https://xaviesteve.com/pro/colorpalettes/ | |
* Try it: https://xaviesteve.com/pro/sass-palette/ | |
* Compiled by Xavi Esteve | |
*/ | |
// DR06 |
OlderNewer