Skip to content

Instantly share code, notes, and snippets.

View tondol's full-sized avatar

tondol tondol

View GitHub Profile
@nobuoka
nobuoka / generic_test_coverage.ja.markdown
Last active March 24, 2021 08:27
generic_test_coverage.rb (fastlane action)

generic_test_coverage.rb

概要

  • fastlane のアクション
  • iOS プロジェクトのビルド結果である result bundle (.xcresult 拡張子) に含まれるカバレッジ情報から SonarQube の Generic Coverage を生成する
  • 内部では xccov コマンドが使用される
@Gankra
Gankra / OwnershipTLDR.md
Last active April 3, 2019 22:44
Swift Ownership Manifesto TL;DR

Swift Ownership Manifesto TL;DR

Most of the manifesto is background and detailed definitions -- if you're confused or want details, read the manifesto!

https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170213/032155.html

Note also that manifestos aren't complete proposals -- syntax and details may change!

One piece of background: inout is kinda complicated because it can be used on computed properties -- foo(&val.x) might be sugar for

@ya-s-u
ya-s-u / parser.swift
Last active November 29, 2017 09:04
パーサーコンビネータ
//
// ParserCombinator
//
// Created by 後藤誉昌 on 2016/10/06.
//
import Foundation
// モナド
struct Parser<Input, Output> {
@shyouhei
shyouhei / gist:0b7dab3e75bfbf96f895
Created March 31, 2015 15:26
新社会人の人が留意すべき事項

新社会人に必須である:

  • 勤務先との書面による「労働契約」。業務委託契約等NG。
  • 多寡を問わず毎月払われる給料。遅配等論外である。
  • 健康保険。
  • 労災保険。
  • 雇用保険。
  • 三六協定。
  • 年次有休。
  • 育児休業の制度があり取得者がいる会社に勤務する。
@tskaggs
tskaggs / OSX-Convert-MOV-GIF.md
Last active May 6, 2024 13:07
Creating GIFs from .MOV files in OSX using FFmpeg and ImageMagick

Convert MOV to GIF using FFmpeg and ImageMagick

I tried a few different techniques to make a GIF via command-line and the following gives me the best control of quality and size. Once you're all setup, you'll be pumping out GIFs in no time!

Preparation

Install FFmpeg

  • $ brew install ffmpeg [all your options]
    • Example: $ brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools

Install ImageMagick

@letsspeak
letsspeak / nicolive.rb
Created August 21, 2013 15:42
nicolive rtmpdump support script
require "net/http"
require "net/https"
require "uri"
require "rexml/document"
class NicoLiveException < StandardError; end
class NicoLive
attr_accessor :mail_tel, :password
@STAR-ZERO
STAR-ZERO / SampleFragment.java
Created December 18, 2012 08:39
【Android】AsyncTaskLoaderのサンプル
public class SampleFragment extends Fragment implements LoaderCallbacks<String> {
private static final int LOADER_ID = 0;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_main, container, false);
}
@Override
@satococoa
satococoa / multi-user-homebrew.md
Created April 16, 2012 03:08
マルチユーザーでHomebrewを使う

マルチユーザーでHomebrewを使う

staffグループのユーザーに/usr/local以下の書き込み権限を与えればいい

umask 0022 を umask 0002 に変更し、新しく作成したファイルにgroup writeパーミッションがつくようにする

/etc/bashrc OR /etc/profileの最終行に以下を追加

umask 0002