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 "ViewController.h" | |
@import CoreBluetooth; | |
@interface ViewController () <CBPeripheralManagerDelegate> | |
@property (nonatomic) CBPeripheralManager *peripheralManager; | |
@end | |
@implementation ViewController |
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
// AccoutKitの初期化 | |
let accountKit: AKFAccountKit = AKFAccountKit(responseType: .authorizationCode) | |
// AccountKitを起動して電話番号認証を行う | |
func login() { | |
let inputStatus: String = UUID().uuidString | |
let viewController: AKFViewController = self.accountKit.viewControllerForPhoneLogin(with: nil, state: inputStatus) as! AKFViewController | |
prepareLoginViewController(viewController: viewController) | |
self.present(viewController as! UIViewController, animated: true, completion: nil) |
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
{ | |
"name": "functions", | |
"requires": true, | |
"lockfileVersion": 1, | |
"dependencies": { | |
"@babel/code-frame": { | |
"version": "7.0.0", | |
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", | |
"integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", | |
"dev": true, |
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 SwiftUI | |
enum ModalViewState: Equatable { | |
case closed | |
case original | |
case custom(height: CGFloat) | |
case dragging(height: CGFloat?, location: CGPoint, translation: CGSize) | |
} |
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
struct Address { | |
var firstName: String = "" | |
var lastName: String = "" | |
var postalCode: String = "" | |
var state: String = "" |
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
class Animal<T> { | |
static identity<T extends new (...args: any[]) => Animal<any>>(this: T) { | |
return this; | |
} | |
static create<T extends Animal<any>>(this: new (...args: any[]) => T) { | |
return new this(); | |
} | |
} |
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
// | |
// ProductsViewController.swift | |
// Created by nori on 2020/03/15. | |
// Copyright © 2020 nori. All rights reserved. | |
// | |
import UIKit | |
import Instantiate | |
import Firebase | |
import Ballcap |
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 { useEffect, useState } from 'react' | |
import firebase, { database } from "firebase" | |
import "firebase/firestore" | |
import "firebase/auth" | |
import { firestore, Doc, DocumentReference } from '@1amageek/ballcap' | |
export const useDocumentListen = <T extends Doc>(type: typeof Doc, documentReference?: DocumentReference, waiting: boolean = false): [T | undefined, boolean, Error?] => { | |
interface Prop { | |
data?: T | |
loading: boolean |
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
'use strict'; | |
const fs = require('fs'); | |
const path = require('path'); | |
const webpack = require('webpack'); | |
const resolve = require('resolve'); | |
const PnpWebpackPlugin = require('pnp-webpack-plugin'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); | |
const InlineChunkHtmlPlugin = require('react-dev-utils/InlineChunkHtmlPlugin'); |
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
type DateTime = Date | |
type Url = string | |
namespace OpenGraph { | |
// Object Types | |
type WebsiteType = "website" | |
type ArticleType = "article" |
OlderNewer