Skip to content

Instantly share code, notes, and snippets.

View acevif's full-sized avatar

acevif acevif

View GitHub Profile
@vyder
vyder / rbenv-in-xcode-build-script.md
Created October 17, 2016 09:24
Using rbenv in an XCode 'Run Script Phase'

If anybody stumbles across this from Google, I found that the simplest thing to do was:

Have devs install rbenv on their machines, and add ~/.rbenv/shims to the PATH in the XCode build script like:

export PATH=~/.rbenv/shims:$PATH
# Exec rest of your script
# ...

@takasek
takasek / CodePiece.swift
Created September 25, 2016 13:08
as Anyしたstructの同一性判定がうまくいってない話。コード置いておきますね。実行するたびに結果が変わる不思議なコードです。 #CodePiece
import Foundation
let aName = Notification.Name(rawValue: "a")
struct Struct { let id: Int }
extension Struct: Equatable {
public static func ==(lhs: Struct, rhs: Struct) -> Bool {
return lhs.id == rhs.id
}
}
@mono0926
mono0926 / commit_message_example.md
Last active May 29, 2024 14:43
[転載] gitにおけるコミットログ/メッセージ例文集100
@hashrock
hashrock / diag.md
Last active February 26, 2024 05:51
作図系ツール・ライブラリまとめ

シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ

GraphViz

http://www.graphviz.org/

  • C製
  • Doxygen, Moinmoinなどと連携可能
  • ブロック図、クラス図、ネットワーク図など
@ZevEisenberg
ZevEisenberg / resetAllSimulators.sh
Last active November 30, 2022 09:27
Reset all iOS simulators with this one weird trick
osascript -e 'tell application "iOS Simulator" to quit'
osascript -e 'tell application "Simulator" to quit'
xcrun simctl erase all
@lmdexpr
lmdexpr / ttt.cabal
Last active September 2, 2015 23:05
-- Initial ttt.cabal generated by cabal init. For further documentation,
-- see http://haskell.org/cabal/users-guide/
name: ttt
version: 0.1.0.0
-- synopsis:
-- description:
license: GPL-3
-- license-file: LICENSE
author: lmdexpr
@imaya
imaya / poem.md
Created March 3, 2014 14:57
生産性とチームと技術的負債

生産性とチームと技術的負債

当然だけど正しいとは限らない。 普段思っている事を書きなぐった。

生産性

理想的には一人が最高。 コミュニケーションコストは人によってはコードを書くよりも遥かにコストが高い。

@mala
mala / gist:5062931
Last active March 18, 2020 15:31
TwitterのOAuthの問題まとめ

どういう問題があったか

説明するのめんどい http://vividcode.hatenablog.com/entry/twitter-oauth-vulnerability

どういう対策がされたか

とりあえず即座に攻撃できるような状態ではなくなっています。

フィッシング?

@uhfx
uhfx / gist:3922268
Last active July 22, 2023 15:01
Twitter公式/非公式クライアントのコンシューマキー

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg

@Gab-km
Gab-km / github-flow.ja.md
Last active April 25, 2024 04:01 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)