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
#!/usr/bin/perl -w | |
# | |
# cvsadduser - a tool to generate a passwd entry for CVS pserver. | |
# | |
# Copyright (C) 1999 Satoru Takabayashi <[email protected]> | |
# All rights reserved. | |
# This is free software with ABSOLUTELY NO WARRANTY. | |
# | |
# You can redistribute it and/or modify it under the terms of | |
# the GNU General Public License version 2. |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | |
<!-- | |
This configuration file was written by the eclipse-cs plugin configuration editor | |
--> | |
<!-- | |
Checkstyle-Configuration: Android | |
Description: | |
http://source.android.com/source/code-style.html |
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
public class MyClass<T> { | |
private Class<T> typeParamClass; | |
// このメソッドを引数なしで呼び出すと型が解決される | |
public void resolveTypeParamClass(T... t) { | |
@SuppressWarnings("unchecked") | |
Class<T> clazz = (Class<T>) t.getClass().getComponentType(); | |
this.typeParamClass = clazz; | |
} |
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
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor" /v AutoRun /d "@ECHO OFF & IF EXIST \"%HOMEDRIVE%%HOMEPATH%\autorun.cmd\" \"%HOMEDRIVE%%HOMEPATH%\autorun.cmd\" & ECHO ON" |
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
#!/bin/sh | |
#SDK | |
SDK="iphoneos5.0" | |
# コンフィグレーション(「Debug」、「Release」、「Ad hoc」) | |
CONFIGURATION="Release" | |
# Xcodeのプロジェクト名 | |
PROJ_FILE_PATH="hoge.xcodeproj" |
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
* { | |
background-color: #fff !important; | |
background-image: none !important; | |
border-color: #fff !important; | |
color: #ddd !important; | |
font-size: 12px !important; | |
font-family: "Hiragino Kaku Gothic Pro W3", "ヒラギノ角ゴ Pro W3", "Meiryo", "メイリオ", "Noto Sans Japanese Regular", sans-serif !important; | |
text-decoration: none !important; | |
} |
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
#!/bin/bash | |
set -e | |
cd $(dirname $0) | |
# 現在日付のYYYYMMDD | |
DATE_CURRENT_YMD=$(date '+%Y%m%d') | |
# AWS Profile 名 | |
AWS_PROFILE=elb_update_cert |
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
#!/bin/bash | |
# required variables | |
required_vars=("FOO" "BAR" "BAZ") | |
# check defined | |
for VAR_NAME in "${required_vars[@]}"; do | |
eval var_temp='$'$VAR_NAME | |
if [[ -z "$var_temp" ]]; then | |
echo "$VAR_NAME is undefined." 1>&2 |
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
declare -i argc=0 | |
declare -a argv=() | |
while (( $# > 0 )); do | |
case "$1" in | |
- | -- ) | |
shift | |
argc+=$# | |
argv+=("$@") | |
break | |
;; |
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
/// <summary> | |
/// INotifyDataErrorInfoをサポートするBindableBase | |
/// </summary> | |
class ValidatableModelBase : BindableBase, INotifyDataErrorInfo | |
{ | |
private ErrorsContainer<string> _errors; | |
public event EventHandler<DataErrorsChangedEventArgs> ErrorsChanged; | |
public IEnumerable GetErrors(string propertyName) |
OlderNewer