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
echo | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install python # python 3 | |
pip3 install --upgrade pip | |
pip3 install ansible | |
cd ~/Documents/sources | |
git clone https://github.com/hiroakit/profile --recursive | |
cd profile | |
ansible-playbook -i hosts ./provisioning/osx.yml -K |
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
# Playback FairPlay content on iOS | |
# AirPlay sender: iOS 11.1.2 | |
# AirPlay reciver: AppleTV 2nd gen | |
08:59:59.000000 +0900 AppleTV T:[Main] SYSTEM : LTAVPlayer: Playback failure error: Error Domain=AVFoundationErrorDomain Code=-11800 "操作を完了できませんでした" UserInfo=0x155f1e00 {NSLocalizedDescription=操作を完了できませんでした, NSUnderlyingError=0x168c3ff0 "The operation couldn\U2019t be completed. (NSOSStatusErrorDomain error 1718449215.)", NSLocalizedFailureReason=原因不明のエラーが起きました(1718449215)} | |
17:03:19.000000 +0900 AppleTV T:[Main] SYSTEM : LTAVPlayer: Returning event for error: Generic media load or playback failure event -11800 | |
08:59:59.000000 +0900 AppleTV T:[Main] AirPlay : ### AirPlay player error: Error Domain=BackRowErrors Code=361 "The operation couldn\U2019t be completed. このコンテンツを読み込み中にエラーが発生しました。" UserInfo=0x157369a0 {NSLocalizedRecoverySuggestion=後でやり直してください。, NSUnderlyingError=0x1685bfb0 "操作を完了できませんでした", NSLocalizedFailureReason=このコンテンツを読み込み中にエラーが発生しました。} | |
17:03:19.000000 +0900 AppleTV T:[Main] AirPlay : ### AirPlay |
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
// 挿入ソート | |
func insertionSort(items:inout [Int]) { | |
for i in (0 ... items.count - 1) { | |
var j = i | |
while j > 0 && items[j - 1] > items[j] { | |
swap(&items[j - 1], &items[j]) | |
j -= 1 | |
} | |
} | |
} |
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
// クイックソート | |
func quickSort (numbers: inout [Int], left: inout Int, right: inout Int) -> Void { | |
var pivot : Int = 0 | |
var l_hold : Int = 0 | |
var r_hold : Int = 0 | |
l_hold = left; | |
r_hold = right; | |
pivot = numbers[left]; | |
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
import UIKit | |
/// 閏年か判断する | |
/// | |
/// - parameter year: 年 | |
/// | |
/// - returns: 閏年の場合にtrue、それ以外はfalse | |
func isLeapYear(year: Int) -> Bool { | |
// 4以上ではない場合は弾く | |
guard year >= 4 else { |
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
cd libs/ | |
cd qhttpserver/ | |
xcodebuild -project src/qhttpserver.xcodeproj -target qhttpserver -configuration Debug | |
cd ../ | |
cd hoedown/ | |
xcodebuild -project hoedown.xcodeproj -target hoedown -configuration Debug | |
cd ../ |
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
""" | |
今月の週番号と日付をのテンプレートを生成するスクリプト | |
今月の週番号と日付をのテンプレートを生成する | |
""" | |
from datetime import * | |
def count_day_of_month(month, year=None): | |
""" |
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
;; License is GPL3 | |
;; https://opensource.org/licenses/gpl-3.0.html | |
(require 'cc-mode) | |
;; TODO ファイルチェックをかける | |
(load "rman-shader-font") | |
(defvar rman-shader-mode-hook nil) | |
(defcustom rman-home "/Applications/Pixar/RenderManProServer-19.0" |
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
(defconst hp-inits-dir (concat user-emacs-directory "inits")) | |
(defvar hp-melpa-url "http://melpa.milkbox.net/packages/") | |
(defvar hp-marmalade-url "http://marmalade-repo.org/packages/") | |
(defvar hp-use-package-list | |
'( | |
;; 以下に使用するパッケージを記述する | |
init-loader | |
scala-mode2 | |
yasnippet | |
auto-complete |
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
import maya.cmds as cmds | |
cmds.polyPlane(n='myPlane1', sx=1, sy=1, w=1.0, h=1.0) | |
# 他にもこういったコマンドでオブジェクトを生成できる | |
# cmds.polyCube( n='myCube1', sx=1, sy=1, sz=1, w=1.0, h=1.0) | |
# cmds.polySphere(n='mySphere1', sx=1, sy=1, r=1.0) | |
# cmds.polyCylinder(n='myCylinder1', sx=1, sy=1, sz=1, h=1.0) | |
# 生成したオブジェクトを移動、拡大、回転させる | |
cmds.move( 5, 0, 0, 'myPlane1', r=True ) |