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
# see: https://github.com/ansible/ansible/issues/10294#issuecomment-147833468 | |
import ssl | |
if hasattr(ssl, '_create_default_https_context') and hasattr(ssl, '_create_unverified_context'): | |
ssl._create_default_https_context = ssl._create_unverified_context | |
class CallbackModule(object): | |
pass |
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 d = openDatabase("K4W", "", "Kindle Cloud Reader", 5E6); | |
d.readTransaction(function(t) { | |
t.executeSql("SELECT * FROM bookdata", | |
[], | |
function(t, r) { | |
console.log(r.rows); | |
}); | |
}); |
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
#!/usr/bin/perl | |
# | |
# mysqldump -routines --no-create-info --no-data --no-create-db --compact | perl $0 | |
use strict; | |
use warnings; | |
use utf8; | |
my $output_dir = "out"; |
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
# -*- coding: utf-8; -*- | |
u""" | |
IP から GeoIP を利用して日本の都道府県名を引く | |
:Author: t.hamamoto@skillupjapan.co.jp | |
* http://koshigoeb.hateblo.jp/entry/2012/02/19/183631 | |
* http://www.maxmind.com/app/city | |
* http://www.maxmind.com/app/fips10_4 |
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
let blacklists = ["https://mail.google.com/*", "*://*.reddit.com/*", "*://feedly.com/*"] | |
unmap <C-h> "The unmaps the default 'C-h' mapping |
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
use (groovy.time.TimeCategory) { | |
def today = new Date() | |
return (0..2).collect { i -> (today - i.days).format('YYYYMMdd') } | |
} |
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
#!/usr/bin/env perl | |
# -*- coding: utf-8 -*- | |
=head1 uc2amp.pl | |
description: CSV of UC card expose detail to Active Money Pro Import CSV. | |
=cut | |
# TODO: |
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 mkcdir() { | |
mkdir $@ || return $? | |
local arg got_end_option=0 | |
for arg in "$@"; do | |
case "$arg" in | |
--) | |
got_end_option=1 | |
continue | |
;; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>android4 video elements problem.</title> | |
<script type="text/javascript"> | |
function logger(message) { | |
console.log(message); | |
var log = document.getElementById("log"); | |
var li = document.createElement('li'); |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters] | |
"LayerDriver JPN"="kbd101.dll" | |
"OverrideKeyboardIdentifier"="PCAT_101KEY" | |
"OverrideKeyboardSubtype"=dword:00000000 | |