I hereby claim:
- I am alixaxel on github.
- I am alixaxel (https://keybase.io/alixaxel) on keybase.
- I have a public key whose fingerprint is 8F12 0F1F E592 5538 79AB 72FB 3C70 80FE 5956 1D22
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
export PATH="$PATH:/srv/source/depot_tools" | |
mkdir -p /srv/{build,source}/chromium | |
cd /srv/source && \ | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
cd /srv/source/chromium && \ |
The following script takes a Bind9 zonefile, gets all AAAA records from it and generated PTR records based on them.
What you need to do:
./generate_v6_ptr.sh /path/to/zonefile.zone
This will output the zones on STDOUT. If you want to save this to a zonefile, you can use this example:
/* | |
Settings (the ones below are examples: choose what is best for your data) | |
set lag to 5; # lag 5 for the smoothing functions | |
set threshold to 3.5; # 3.5 standard deviations for signal | |
set influence to 0.5; # between 0 and 1, where 1 is normal influence, 0.5 is half | |
*/ | |
// ZScore on 16bit WAV samples | |
func ZScore(samples []int16, lag int, threshold float64, influence float64) (signals []int16) { | |
//lag := 20 |
I hereby claim:
To claim this, I am signing this object:
Storage.prototype.get = function (key) { | |
try { | |
var result = JSON.parse(this.getItem(key)); | |
if ((result !== null) && (result.hasOwnProperty('expiration') === true)) { | |
if ((result.expiration >= (new Date())) || (result.expiration == null)) { | |
return result.value || null; | |
} | |
this.removeItem(key); |
<?php | |
include 'minmaxheap.php'; | |
/* A min-heap that will restrict itself to a maximum of some number of values. | |
* Implemented internally as a min-max heap. | |
* | |
* Public API: | |
* - Contructor takes a number, used as the maximum number of values allowed on the heap | |
* - count() - returns the number of elements on the heap |
The issue:
..mobile browsers will wait approximately 300ms from the time that you tap the button to fire the click event. The reason for this is that the browser is waiting to see if you are actually performing a double tap.
(from a new defunct https://developers.google.com/mobile/articles/fast_buttons article)
touch-action
CSS property can be used to disable this behaviour.
touch-action: manipulation
The user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming. Any additional behaviors supported by auto are out of scope for this specification.