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
#ifdef DEBUG | |
#define _Log(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); | |
#else | |
#define _Log(...) | |
#endif | |
// ALog always displays output regardless of the DEBUG alarm | |
#define ALog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); |
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
SinriAlertView * sav=[[SinriAlertView alloc]initWithTitle:NSLocalizedString(@"_CashingCoupon_InputBox_Title", @"Cashing Coupon") | |
message:NSLocalizedString(@"_CashingCoupon_InputBox_Message", @"Input your coupon code to cashing.") | |
cancelButtonTitle:NSLocalizedString(@"Cancel", @"Cancel") | |
otherButtonTitles:NSLocalizedString(@"Confirm", @"Confirm"),nil]; | |
[sav setClickHandler:^(UIAlertView *sinriAlertView, NSInteger buttonIndex) { | |
NSLog(@"SinriAlertView ボタン index=%ld",buttonIndex); | |
if (buttonIndex == 1) { | |
UITextField *tf=[sinriAlertView textFieldAtIndex:0]; | |
NSString* cashCode = tf.text; | |
NSLog(@"SinriAlertView コード:%@",cashCode); |
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
- (void)drawRect:(CGRect)rect { | |
// contextを取得 | |
CGContextRef context = UIGraphicsGetCurrentContext(); | |
// 残っていた痕跡をクリア | |
CGContextClearRect(context, rect); | |
// 背景色が必要ならここで設定 | |
UIColor * _boardColor = [UIColor whiteColor]; |
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
/** | |
* Copyright 2015 Sinri Edogawa. | |
*/ | |
class LinearRegression | |
{ | |
private $xs; | |
private $ys; | |
private $element_count; | |
private $a; |
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
ssh -N -p 32200 -c 3des ユーザー@サーバーのip -L ローカルで使用するポート/目的サーバのアドレス/目的サーバで待ち受けてるポート番号 -N -f -o ServerAliveInterval=60 |
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
short_open_tag = Off |
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
java.lang.RuntimeException: java.io.IOException: Permission denied | |
at org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet(SXSSFWorkbook.java:304) | |
at org.apache.poi.xssf.streaming.SXSSFWorkbook.createSheet(SXSSFWorkbook.java:320) | |
at com.ouku.report.DIYBook.addSheet(DIYBook.java:146) | |
at com.ouku.report.DIYBook.createBook(DIYBook.java:107) | |
at com.ouku.report.DIYBook.writeBook(DIYBook.java:73) | |
at com.ouku.report.ReportFactory.writeReport(ReportFactory.java:95) | |
at com.ouku.report.ReportTask.doReportRequest(ReportTask.java:513) | |
at com.ouku.report.ReportTask.doTask(ReportTask.java:105) | |
at com.ouku.entities.report.ReportTimerTask$1.run(ReportTimerTask.java:12) |
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
<?php | |
/** | |
* Copyright 2017 Sirni Edogawa | |
* usage `ansible-playbook -vvv ... | php glass.php` | |
*/ | |
echo "[Ansible Glass Version Alpha Online]".PHP_EOL; | |
$handle = fopen("php://stdin", "r"); | |
if ($handle) { | |
while (($buffer = fgets($handle)) !== false) { |
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
SinriMac:~/Codes/Leqee/erp Sinri$ touch 虚無.txt | |
SinriMac:~/Codes/Leqee/erp Sinri$ git status | |
On branch dev | |
Your branch is up-to-date with 'origin/dev'. | |
Untracked files: | |
(use "git add <file>..." to include in what will be committed) | |
"\350\231\232\347\204\241.txt" | |
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
<!doctype html> | |
<html> | |
<head>sample of Paste Image From Clipboard</head> | |
<body> | |
<h1>sample of Paste Image From Clipboard</h1> | |
<script> | |
// window.addEventListener('paste', ... or | |
document.onpaste = function(event){ | |
var items = (event.clipboardData || event.originalEvent.clipboardData).items; | |
console.log(JSON.stringify(items)); // will give you the mime types |
OlderNewer