例文を組み込んだAlfred Workflowを作りました: Alfred Git Commit Message Example
以下転載:
以下転載:
def echo(value=None): | |
print("Start echo") | |
try: | |
while True: | |
value = (yield value) | |
finally: | |
print("End echo") | |
def echo2(value=None): |
#!/usr/bin/env ruby | |
require "openssl" | |
require "time" | |
begin | |
require "origami" | |
rescue LoadError | |
abort "origami not installed: gem install origami" | |
end |
tickPositioner: function () { | |
var max = Math.max(Math.abs(this.dataMin), Math.abs(this.dataMax)); | |
var digitNumber = String(max).length - 2; | |
var div = Math.pow(10, digitNumber); | |
var ceilMax = Math.ceil(max / div) * div; | |
return [-1, -0.75, -0.5,-0.25, 0, 0.25, 0.5, 0.75, 1].map(function (n) { | |
return Math.round(ceilMax * n); | |
}); |
;;; init.el --- -*- lexical-binding: t -*- | |
;; Copyright (c) 2013-2016, Fanael Linithien | |
;; All rights reserved. | |
;; | |
;; Redistribution and use in source and binary forms, with or without | |
;; modification, are permitted provided that the following conditions are | |
;; met: | |
;; | |
;; * Redistributions of source code must retain the above copyright | |
;; notice, this list of conditions and the following disclaimer. |
OS: Mac OS X EL Caption | |
ルーター: A T E R M - 7 9 2 9 1 5 (auひかり) | |
## 1. プリンタ本体の操作パネル | |
### 1.1 無線LAN設定 | |
- SSID、パスワード Macとプリンタで同じwifiを選択する。-gと-gwとかはダメ | |
### 1.2 IPv4のDHCP設定(ルーターを再起動したらip振られる) | |
1 操作パネルで ( メニュー ) OKボタンを押します。 |
(* 野球成績型 *) | |
type baseball_seiseki = { | |
name: string; (* 名前 *) | |
won: int; (* 勝ち数 *) | |
drawn: int; (* 引けわけ数 *) | |
lost: int; (* 負け数 *) | |
} | |
(* 2016データ *) | |
let hiroshima = {name = "広島"; won = 89; drawn = 2; lost = 52} |