This file contains hidden or 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 strict"; | |
getPath = function() { | |
var digit = 1000; | |
var doc; | |
try { | |
doc = app.activeDocument; | |
} catch(e){ | |
return "ファイルがありません."; |
This file contains hidden or 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 Foundation | |
// MARK: - Observable ---------------- | |
public typealias UDChangeHandler<O, V> = (O, UDKeyValueObservedChange<V>) -> Void | |
public enum UDKeyValueChange: UInt { | |
case setting | |
case insertion | |
case removal |
This file contains hidden or 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
export LANG=C | |
# Check arguments | |
if [$# -ne 2 ]; then | |
echo "[Error]: 2 arguments are necessary." | |
echo "[Usage]: $0 TEMPLATE_NAME PROJECT_NAME" | |
exit 1 | |
fi | |
# Parameters |
This file contains hidden or 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
# Check option | |
isUsePassword=0 | |
isDev=0 | |
while getopts pd OPT | |
do | |
case $OPT in | |
p) | |
isUsePassword=1 ;; | |
d) | |
isDev=1 ;; |
This file contains hidden or 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
// | |
// histgram.cpp | |
// histgram | |
// | |
// Copyright (c) 2016年 Ryunosuke Kirikihira. All rights reserved. | |
// | |
#include <iostream> | |
#include <fstream> | |
#include <cstdio> |
This file contains hidden or 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
// | |
// MyAlertController.swift | |
// | |
// Copyright © 2016年 Krimpedance. All rights reserved. | |
// | |
import UIKit | |
enum MyAlertControllerType { | |
case SingleButton(String) |