Skip to content

Instantly share code, notes, and snippets.

View miyakeryo's full-sized avatar
🧗
Home working

みやけりょう miyakeryo

🧗
Home working
View GitHub Profile
@miyakeryo
miyakeryo / google_apps.js
Last active November 14, 2016 09:41
Postされたデータをスプレッドシートに書き込む GoogleAppsScript
/**
* 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 June 4, 2013 08:56
iOSの設定アプリにバージョンとライセンスを表示する方法 http://miyakeryo.com/?p=408
<?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 December 18, 2015 01:29
DatePicker で日付時刻を入力できる TextField 作った http://miyakeryo.com/?p=457
// 使い方
#import "ViewController.h"
#import "myoDatePickerField.h"
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
@miyakeryo
miyakeryo / BubbleDraw
Created August 6, 2012 05:16
Draw Message Bubbles.
- (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)