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
import UIKit | |
extension UIImage { | |
func cropping(to: CGRect) -> UIImage? { | |
var opaque = false | |
if let cgImage = cgImage { | |
switch cgImage.alphaInfo { | |
case .noneSkipLast, .noneSkipFirst: | |
opaque = true | |
default: |
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
function insertLastUpdated() { | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1"); //シート名を記入 | |
var lastRow = sheet.getLastRow(); // 更新された最後の行番号 | |
var triggerCell = sheet.getRange('B' + lastRow).getValue; // トリガーはBなのでBを指定 | |
var updateDateRange = sheet.getRange('A' + lastRow) // 更新した日時を書くセルを指定 | |
// 更新日時が空でトリガーがあるなら今の日時を追加 | |
if(!updateDateRange.getValue() && triggerCell) { | |
updateDateRange.setValue(new Date()); | |
} |
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
/************************************************************* | |
Download latest Blynk library here: | |
https://github.com/blynkkk/blynk-library/releases/latest | |
Blynk is a platform with iOS and Android apps to control | |
Arduino, Raspberry Pi and the likes over the Internet. | |
You can easily build graphic interfaces for all your | |
projects by simply dragging and dropping widgets. | |
Downloads, docs, tutorials: http://www.blynk.cc |
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
// Very slightly adapted from http://stackoverflow.com/a/30141700/106244 | |
// 99.99% Credit to Martin R! | |
// Mapping from XML/HTML character entity reference to character | |
// From http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references | |
private let characterEntities : [String: Character] = [ | |
// XML predefined entities: | |
""" : "\"", | |
"&" : "&", |
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
#include "ergodox.h" | |
#include "debug.h" | |
#include "action_layer.h" | |
#include "version.h" | |
#define BASE 0 // default layer | |
#define SYMB 1 // symbols | |
#define MDIA 2 // media keys | |
#define EPRM M(1) // Macro 1: Reset EEPROM |
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
photos.framework | |
UITKit | |
MIMEタイプの検査ができる | |
Done is better than perfect | |
http://dev.classmethod.jp/smartphone/oss_acedrawingview/ |
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
- (IBAction)sendButton:(id)sender { | |
// メールビュー生成 | |
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; | |
picker.mailComposeDelegate = self; | |
// 半角スペースを区切りとして文字列を分割 | |
NSArray *toAddressArray = [self.toAddress.text componentsSeparatedByString:@","]; | |
[picker setToRecipients:toAddressArray]; | |
// 半角スペースを区切りとして文字列を分割 | |
NSArray *ccAddressArray = [self.ccAddress.text componentsSeparatedByString:@","]; |
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
10:00 - 10:25 | |
Syo Ikeda | |
swiftのエコシステムに飛び込む | |
いけしょー | |
create himotoki json decoding library | |
swift関連のツールの紹介 | |
Online Code Editor | |
IBM Swift Sandbox |
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"?> | |
<root> | |
<symbol_map type="KeyCode" name="[" value="0x1e" /> | |
<appdef> | |
<appname>SUBLIMETEXT2</appname> | |
<equal>com.sublimetext.2</equal> | |
</appdef> | |
<appdef> | |
<appname>iTERM2</appname> | |
<equal>com.googlecode.iterm2</equal> |