<button>Let's Go !</button>
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
/* Paste this shit after the open head tag <head> */ | |
<script type="text/javascript"> | |
if (window.location.protocol != "https:") | |
window.location.protocol = "https"; | |
</script> |
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
gifify() { | |
if [[ -n "$1" ]]; then | |
if [[ $2 == '--good' ]]; then | |
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
rm out-static*.png | |
else | |
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
fi | |
else |
Tips from Quang Anh Do
- Chrome Beta: chrome://flags/#autoplay-policy > Document user activation is required
- Safari: Preferences > Websites > Auto-Play > When visiting other websites: Never Auto-Play
- Firefox: about:config > media.autoplay.enabled > false
I hereby claim:
- I am ducban on github.
- I am ducban (https://keybase.io/ducban) on keybase.
- I have a public key whose fingerprint is 2F70 C3F3 8034 886F D35B AEE3 98BB B015 9DD5 847B
To claim this, I am signing this object:
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
function __my_registration_redirect(){ | |
return home_url( '/my-page' ); | |
} | |
add_filter( 'registration_redirect', '__my_registration_redirect' ); |
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
global $wp_query; | |
var_dump($wp_query->query_vars); |
The script below is triggered every day from my Mac. I use Hazel to move the tar.gz to an external hard disk once it's finished. This happens every day without me noticing.
You should have a similar script.
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
// These options are just collected and didn't test yet. | |
// Option 01: | |
#import <QuartzCore/QuartzCore.h> | |
myMapView.layer.cornerRadius = 10.0; | |
// Option 02: | |
float scaleBy = 0.80; | |
MKMapView *mapView = [[[MKMapView alloc] initWithFrame:CGRectMake(-5, 0, 100/ scaleBy, 50/scaleBy)] autorelease]; | |
mapView.delegate=self; |