- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
| // Class that contains methods for Database manipulation | |
| import java.awt.*; | |
| //import javax.swing.*; | |
| import java.awt.event.*; | |
| import java.util.*; | |
| import java.io.*; | |
| public class FullDataBaseGenerator |
| - (BOOL)stringContainsEmoji:(NSString *)string { | |
| __block BOOL returnValue = NO; | |
| [string enumerateSubstringsInRange:NSMakeRange(0, [string length]) options:NSStringEnumerationByComposedCharacterSequences usingBlock: | |
| ^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop) { | |
| const unichar hs = [substring characterAtIndex:0]; | |
| // surrogate pair | |
| if (0xd800 <= hs && hs <= 0xdbff) { | |
| if (substring.length > 1) { | |
| const unichar ls = [substring characterAtIndex:1]; |
| #!/usr/bin/env bash | |
| rm -rf "${HOME}/Library/Caches/CocoaPods" | |
| rm -rf "`pwd`/Pods/" | |
| pod update |
| // Developer/Library/Frameworks/SenTestingKit.framework/Headers/SenTestCaseRun.h | |
| SENTEST_EXPORT NSString * const SenTestCaseDidStartNotification; | |
| SENTEST_EXPORT NSString * const SenTestCaseDidStopNotification; | |
| SENTEST_EXPORT NSString * const SenTestCaseDidFailNotification; | |
| // Developer/Library/Frameworks/SenTestingKit.framework/Headers/SenTestDistributedNotifier.h | |
| SENTEST_EXPORT NSString * const SenTestNotificationIdentifierKey; | |
| // Developer/Library/Frameworks/SenTestingKit.framework/Headers/SenTestSuiteRun.h | |
| SENTEST_EXPORT NSString * const SenTestSuiteDidStartNotification; |
| #define ANIMATION_DURATION 0.2f | |
| #define TRIGGER_DELTA 40.0f | |
| @interface MainViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, UITextFieldDelegate> | |
| @end | |
| @implementation MainViewController | |
| { | |
| UITableView *_tableView; |
| import UIKit | |
| // If you enjoyed this talk (video link will be up soon), then you might also enjoy our book Advanced Swift: http://www.objc.io/books/advanced-swift | |
| struct Person { | |
| let name: String | |
| let city: String | |
| } | |
| let people = [ |
| // | |
| // GeoUtils.swift | |
| // ZKit | |
| // | |
| // The MIT License (MIT) | |
| // | |
| // Copyright (c) 2016 Electricwoods LLC, Kaz Yoshikawa. | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal |
| import numpy as np | |
| import random | |
| import math | |
| import cv2 | |
| from PIL import Image | |
| def recognize(im): | |
| # 輪郭線抽出のための二値化 | |
| im_gray = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY) | |
| im_blur = cv2.GaussianBlur(im_gray, (3, 3), 0) |