Skip to content

Instantly share code, notes, and snippets.

View coordinates's full-sized avatar

Masayoshi Ukida coordinates

  • Seesaa Inc.
  • Japan
View GitHub Profile
@coordinates
coordinates / apple-app-site-association
Created March 14, 2019 16:28
Universal Links でサブディレクトリを除外する
# "NOT /albums/*/*" とした場合、"/albums/*" がヒットしない。
{
"applinks": {
"apps": [],
"details": [
{
"appID": "D3KQX62K1A.com.example.photoapp",
"paths": [
"NOT /albums/*/?*"
"/albums/*"
#import "FlickGestureRecognizer.h"
#import <UIKit/UIGestureRecognizerSubclass.h>
@implementation FlickGestureRecognizer
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[super touchesBegan:touches withEvent:event];
_direction = FlickGestureRecognizerDirectionNone;
@interface FlexibleContainerView ()
@property (nonatomic, weak) NSLayoutConstraint *heightConstraint;
@property (nonatomic, unsafe_unretained) CGFloat defaultHeight;
@end
@implementation FlexibleContainerView
- (void)awakeFromNib
{
[super awakeFromNib];
@coordinates
coordinates / MyJavaScriptFile.js
Last active April 8, 2019 17:55
Detect OGP tags
// https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html#//apple_ref/doc/uid/TP40014214-CH21-SW12
var MyExtensionJavaScriptClass = function() {};
MyExtensionJavaScriptClass.prototype = {
run: function(arguments) {
// selection string
var selectionString = window.getSelection().toString();
// open graph