Instantly share code, notes, and snippets.

🍔
🍟

みやけりょう miyakeryo

View GitHub Profile
@miyakeryo
miyakeryo / google_apps.js
Last active Nov 14, 2016
Postされたデータをスプレッドシートに書き込む GoogleAppsScript
View google_apps.js
/**
* Postされたデータをスプレッドシートに書き込む
*
* @author Miyake Ryo ( http://miyakeryo.com )
* @instruction http://miyakeryo.com/?p=771
*/
function doPost(request) {
try{
var ss = SpreadsheetApp.openById(ScriptProperties.getProperty('active'));
@miyakeryo
miyakeryo / Root.plist
Created Jun 4, 2013
iOSの設定アプリにバージョンとライセンスを表示する方法 http://miyakeryo.com/?p=408
View Root.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreferenceSpecifiers</key>
<array>
<dict>
<key>Title</key>
<string>About</string>
<key>Type</key>
@miyakeryo
miyakeryo / ViewController.m
Last active Dec 18, 2015
DatePicker で日付時刻を入力できる TextField 作った http://miyakeryo.com/?p=457
View ViewController.m
// 使い方
#import "ViewController.h"
#import "myoDatePickerField.h"
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
@miyakeryo
miyakeryo / BubbleDraw
Created Aug 6, 2012
Draw Message Bubbles.
View BubbleDraw
- (void)drawRect:(CGRect)rect
{
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextBubblePath(context, CGRectMake(60.5, 40.5, 170, 70));
CGContextStrokePath(context);
}
//角度→ラジアン変換
#if !defined(RADIANS)
#define RADIANS(D) (D * M_PI / 180)