In VirtualBox, a virtual machine and its settings are described in a virtual machine settings file in XML format.
VM の設定は XML 形式で書いてある。
In VirtualBox, a virtual machine and its settings are described in a virtual machine settings file in XML format.
VM の設定は XML 形式で書いてある。
Dump result of this RPM file using this script.
$ python dump-rpm-headers.py php70-php-pecl-imagick-3.4.4-17.el7.remi.x86_64.rpm
#! /usr/bin/env python | |
import struct | |
from ctypes import * | |
import io | |
import re | |
from enum import Enum | |
from sys import argv |
のメモです。
Some applications are required to display a large number of locations or markers. Despite the v3 JavaScript API's significant improvement to performance, naively plotting thousands of markers on a map can quickly lead to a degraded user experience. Too many markers on the map cause both visual overload and sluggish interaction with the map.
タイムゾーン America/Los_Angeles
では、サマータイム終了日 2018/11/04 の 01:00:00 〜 01:59:59 が2度繰り返される。
Ruby の Time
は、午前1時台をサマータイム終了後として扱っている。
irb(main):001:0> ENV['TZ'] = 'America/Los_Angeles'
=> "America/Los_Angeles"
irb(main):002:0> Time.local(2018, 11, 4, 0, 59, 0)
=> 2018-11-04 00:59:00 -0700
irb(main):003:0> Time.local(2018, 11, 4, 0, 59, 0).dst?
import axios from 'axios' | |
class App { | |
constructor() { | |
this.cache = {} | |
} | |
/** | |
* 何もキャッシュしないバージョン | |
*/ |
import asyncio | |
from typing import List | |
import aioredis | |
from aioredis import Redis | |
from aioredis.pubsub import Channel | |
from aioredis.connection import RedisConnection | |
class Sample: |
日本の市外局番と都道府県の対応です。
https://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/shigai_list.html の Word ファイルを元に加工しています。
jp-phone-areacode.json
... 市外局番 => [都道府県1,都道府県2,...]
の JSON データjp-phone-areacode.yaml
... 説明を含む YAML データraw.csv
... Word ファイルから Excel にコピペして加工した元データconvert.rb
... 変換スクリプト<?php | |
/** | |
* MD5 based htpasswd entry generator | |
* | |
* Original: https://stackoverflow.com/questions/2994637/how-to-edit-htpasswd-using-php/8786956#8786956 | |
* Spec: https://httpd.apache.org/docs/2.4/misc/password_encryptions.html | |
* | |
* | |
* random_compat is required if you are using PHP < 7.0. |