Skip to content

Instantly share code, notes, and snippets.

View yamatatsu10969's full-sized avatar
:octocat:
Working at home

Yamamoto Tatsuya yamatatsu10969

:octocat:
Working at home
View GitHub Profile
@sammdec
sammdec / alfred-stack-search.md
Last active May 19, 2020 02:47
Add StackOverflow search to Alfred

To search Stack Overflow from alfred app, simply copy and paste below into the alfred search box, when you press enter you shoudl see a dialog asking you to install this custom Search.

alfred://customsearch/Search%20StackOverflow%3A%20%7Bquery%7D/stack/utf8/noplus/http://stackoverflow.com/search?q={query}

Then to use it in alfred simply up the search box and type in stack and the question your asking.

var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
# この記事を書いたわけ
一年間SEとして働いてきた中で、私自身が苦手だと思っており、他人からもそのように評価されていたのが「質問の仕方」でした。
それが先日、他人から「質問の仕方がうまいね」と褒められることがあり、ようやく一人前の質問の仕方ができるようになってきたので、どのようにして克服できたのか紹介したいと思います。
## 丸投げな質問をするな
私が入社したばかりの頃は、わからないことがあればすぐに先輩に質問していました。
そのときにしていた質問の内容はだいたいこんな感じです。
「環境構築を手順書通りにやったんですけど、○○のコマンドでエラーがでてしまいます!なんとかなりませんか?」
@voluntas
voluntas / webrtc_for_work.rst
Last active April 30, 2024 14:20
仕事で WebRTC

仕事で WebRTC

日時

2023-01-15

@voluntas

バージョン

2023.1

url

https://voluntas.github.io/

この資料は以下の製品の宣伝を含みます。

@collinjackson
collinjackson / main.dart
Last active August 17, 2023 20:06
PageView example with dots indicator
// Copyright 2017, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:math';
import 'package:flutter/material.dart';
void main() {
runApp(new MyApp());
}
@netgfx
netgfx / addObservers.swift
Last active December 14, 2023 13:02
Add observers to AVPlayer
// listening for current item change
self.audioQueueObserver = self.playerQueue?.observe(\.currentItem, options: [.new]) {
[weak self] (player, _) in
print("media item changed...")
}
// listening for current item status change
self.audioQueueStatusObserver = self.playerQueue?.currentItem?.observe(\.status, options: [.new, .old], changeHandler: {
(playerItem, change) in
if playerItem.status == .readyToPlay {

これ見ればiOSアプリの環境構築に必要なツールの導入とプロジェクト毎のセットアップができます。 ※セットアップはプロジェクトのルートフォルダで作業することを想定。

必要環境(必要なツール)

  • rbenv
  • bundler
  • carthage、cocoapods
  • swiftlint
  • swiftgen
  • mergepbx
@mpppk
mpppk / clean_architecture.md
Last active May 14, 2024 07:12
クリーンアーキテクチャ完全に理解した

2020/5/31追記: 自分用のメモに書いていたつもりだったのですが、たくさんのスターを頂けてとても嬉しいです。
と同時に、書きかけで中途半端な状態のドキュメントをご覧いただくことになっており、大変心苦しく思っています。

このドキュメントを完成させるために、今後以下のような更新を予定しています。

  • TODO部分を埋める
  • 書籍を基にした理論・原則パートと、実装例パートを分割
    • 現在は4層のレイヤそれぞれごとに原則の確認→実装時の課題リスト→実装例という構成ですが、同じリポジトリへの言及箇所がバラバラになってしまう問題がありました。更新後は、実装時の課題リストを全て洗い出した後にまとめて実装を確認する構成とする予定です。

2021/1/22追記:

mixin CancelableNotify on ChangeNotifier {
bool _mounted = true;
@override
void notifyListeners() {
if (_mounted) super.notifyListeners();
}
@override
void dispose() {