HTML 4.01 は下記リンクでid属性/class属性を定義しています。
id属性値は文法上、NAMEトークンであり、class属性値はCDATAのリストで表されるようです。
@echo off | |
rem Based on Todd Larason's 256color2.pl. | |
rem Ported to Windows 10's Command Prompt. | |
setlocal EnableDelayedExpansion | |
rem display the colors | |
rem first the system ones: | |
echo System colors: |
HTML 4.01 は下記リンクでid属性/class属性を定義しています。
id属性値は文法上、NAMEトークンであり、class属性値はCDATAのリストで表されるようです。
#!/usr/bin/env bash | |
# | |
# curl wrapper returning timing information. | |
# | |
# ORIGIN: https://github.com/mat/dotfiles/blob/master/bin/curlt | |
# | |
# curl format adapted from | |
# http://josephscott.org/archives/2011/10/timing-details-with-curl/ | |
# | |
# Example usage: |
import Foundation | |
func dates(#matchingComponents: NSDateComponents, var startDate: NSDate = NSDate(), endDate: NSDate = NSDate.distantFuture() as! NSDate) -> SequenceOf<NSDate> { | |
return SequenceOf<NSDate> { _ -> GeneratorOf<NSDate> in | |
let calendar = NSCalendar(calendarIdentifier: NSCalendarIdentifierGregorian)! | |
calendar.timeZone = NSTimeZone(forSecondsFromGMT: 0) | |
return GeneratorOf<NSDate> { | |
if let nextDate = calendar.nextDateAfterDate(startDate, matchingComponents: matchingComponents, options: .MatchStrictly) | |
where nextDate.compare(endDate) != .OrderedDescending { | |
startDate = nextDate |
【翻訳】関数型プログラミング入門 | POSTD の「パイプラインを使う」をSwiftで書いてみた。
#!/bin/sh | |
# settings ========== | |
# src file name | |
fileNamePrefix="ScreenShotFileNameFor5.5inch" | |
offsetFor3_5=20 | |
# dest directory name |
package main | |
import ( | |
"os" | |
"syscall" | |
) | |
func main() { | |
oldMask := syscall.Umask(0) | |
os.Mkdir("hoge_01", 01777) // NG |
#cloud-config | |
hostname: coreos-01 | |
coreos: | |
etcd: | |
#discovery: https://discovery.etcd.io/xxxxxxxxxxxxxxxx | |
addr: $private_ipv4:4001 | |
peer-addr: $private_ipv4:7001 | |
units: |
# Since Contents/Resources/createinstallmedia command doesn't work, we need to manually create an disk image. | |
# Mount InstallESD.dmg | |
hdiutil mount /Applications/Install\ OS\ X\ 10.10\ Developer\ Preview.app/Contents/SharedSupport/InstallESD.dmg | |
# Create a temporary writable BaseSystem image. | |
hdiutil convert /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg -format UDRW -o rw.dmg | |
# Get required sectors for packages. | |
# You'll get these numbers. |