- ひよりねこ
- ひねりよこ
- よこひねり
This file contains hidden or 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
| export interface Tweet { | |
| created_at: string; | |
| id: number; | |
| id_str: string; | |
| full_text: string; | |
| source: string; | |
| truncated: boolean; | |
| in_reply_to_status_id?: number; | |
| in_reply_to_status_id_str?: string; | |
| in_reply_to_user_id?: number; |
This file contains hidden or 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
| :root { | |
| --font-family: | |
| Roboto, | |
| "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", | |
| "Hiragino Kaku Gothic ProN", | |
| "メイリオ", | |
| sans-serif; | |
| --base-color: rgb(255, 255, 255); | |
| --main-color: rgb(155, 155, 155); |
This file contains hidden or 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
| // Promise chain Style | |
| const aPromise = Promise.resolve(1).then(result => Promise.resolve(result)); | |
| // Promise.then Style | |
| // const aPromise = new Promise((resolve) => Promise.resolve(1).then((result) => resolve(result))); | |
| // async/await Style | |
| // const aPromise = new Promise(async (resolve) => resolve(await Promise.resolve(1))); | |
| aPromise.then( |
This file contains hidden or 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
| interface IItemRepository { | |
| createImage(data: any): Promise<any>; | |
| deleteImage(imageId: any): Promise<void>; | |
| createBundle(data: any): Promise<any>; | |
| deleteBundle(bundleId: any): Promise<void>; | |
| addImageToBundle(bundleId: any, index?: number): Promise<any>; | |
| removeImageFromBundle(bundleId: any): Promise<any>; | |
| rearrangeImageInBundle(bundleId: any, imageId: any, index: number): Promise<any>; |
This file contains hidden or 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
| // tslint:disable:max-classes-per-file | |
| import * as ava from "ava"; | |
| import * as td from "testdouble"; | |
| function contexualize<T>(getContext: () => T): ava.RegisterContextual<T> { | |
| ava.test.beforeEach((t) => { | |
| Object.assign(t.context, getContext()); | |
| }); |
This file contains hidden or 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
| /// <reference path="typings/globals/node/index.d.ts" /> | |
| import electron = require("electron"); | |
| const app = electron.app; | |
| const BrowserWindow = electron.BrowserWindow; | |
| let window; | |
| function createWindow(): void { | |
| window = new BrowserWindow({width: 800, height: 600}); |
This file contains hidden or 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 Foundation | |
| import RxSwift | |
| import SwiftEventBus | |
| class Query { | |
| static func query() -> Observable<String> { | |
| return Observable.create { observer in | |
| SwiftEventBus.onMainThread(self, name: "SomeDomainEvent") { result in | |
| observer.on(.Next("SomeDomainEvent")) | |
| } |
This file contains hidden or 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 Cocoa | |
| class ArrayControllerBugFixed: NSArrayController { | |
| override func awakeFromNib() { | |
| super.awakeFromNib() | |
| NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("coreDataEntityDidChange:"), name: NSManagedObjectContextObjectsDidChangeNotification, object: self.managedObjectContext) | |
| } | |
| func coreDataEntityDidChange(notification: NSNotification) { |
This file contains hidden or 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
| if let extendedEntities = status?["extended_entities"], | |
| mediaArray = extendedEntities["media"].array as Array<JSONValue>!, | |
| media = mediaArray[0].object as Dictionary<String, JSONValue>!, | |
| mediaURL = media["media_url"] as JSONValue! { | |
| } |
NewerOlder