Skip to content

Instantly share code, notes, and snippets.

View fujikky's full-sized avatar

Yusuke Fujiki fujikky

  • TimeTree, Inc.
  • Tokyo, Japan
View GitHub Profile
@fujikky
fujikky / settings.yml
Created July 5, 2019 04:48
github-nippou settings
format:
subject: '### %{subject}'
line: '* [%{title}](%{url}) by @[%{user}](https://github.com/%{user}) %{status}'
dictionary:
status:
merged: '**merged!**'
closed: '**closed!**'
@fujikky
fujikky / cleanup_bcsymbolmap
Last active February 19, 2020 05:17
Carthage's bcsymbolmap cleanup script
#!/bin/bash
function print_usage() {
echo "Usage: $0 [Options]"
echo "Options:"
echo " -h, --help Display usage"
echo " -p, --project-directory Directory containing Carthage project"
echo " -f, --force Omit confirmation"
exit 1
}
@fujikky
fujikky / Playground.swift
Last active January 6, 2016 05:13
Swiftでサブクラスかつプロトコルに準拠してるオブジェクトへのキャストはどうやるの…
import Foundation
// 生物クラス
class Animal {
func run() {
}
}
// 名前を返すプロトコル
protocol Naming {
@fujikky
fujikky / showkun.sh
Last active August 29, 2015 14:03
モヤさまショウ君メーカー
#!/bin/sh
API_KEY="YOUR_API_KEY"
TEMP_FILE="showkun.wav"
curl -s "https://api.voicetext.jp/v1/tts" \
-o "${TEMP_FILE}" \
-u "${API_KEY}:" \
-d "text=${1}" \
-d "speaker=show"
@fujikky
fujikky / holidays_json.rb
Last active August 29, 2015 13:56
Generate Holidays JSON
#!/usr/bin/env ruby
#
# Generate Holidays JSON
#
# Copyright (c) 2014 Yusuke Fujiki @ Himakan
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@fujikky
fujikky / 0_reuse_code.js
Created February 17, 2014 09:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@fujikky
fujikky / gist:6681495
Created September 24, 2013 07:35
Check iOS Crash Log
atos -arch armv7 -o /Users/<User>/Library/Developer/Xcode/Archives/2013-09-20/<AppName>.xcarchive/dSYMs/<AppName>.app.dSYM/Contents/Resources/DWARF/<AppName> <MemoryAddress>
@fujikky
fujikky / index.html
Created November 15, 2012 00:45
scroll timer
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>$title</title>
$styles
</head>
<body>
<h1>$title</h1>