Skip to content

Instantly share code, notes, and snippets.

:octocat:
Hello ;)

K.R.Impedance krimpedance

:octocat:
Hello ;)
Block or report user

Report or block krimpedance

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View MyAlertController.swift
//
// MyAlertController.swift
//
// Copyright © 2016年 Krimpedance. All rights reserved.
//
import UIKit
enum MyAlertControllerType {
case SingleButton(String)
View histgram.cpp
//
// histgram.cpp
// histgram
//
// Copyright (c) 2016年 Ryunosuke Kirikihira. All rights reserved.
//
#include <iostream>
#include <fstream>
#include <cstdio>
@krimpedance
krimpedance / pushNotifCertificate.sh
Last active Jul 22, 2019
Shell script which makes ck.pem file for iOS push notification automatically :)
View pushNotifCertificate.sh
# Check option
isUsePassword=0
isDev=0
while getopts pd OPT
do
case $OPT in
p)
isUsePassword=1 ;;
d)
isDev=1 ;;
@krimpedance
krimpedance / createXcodeProject.sh
Last active Dec 19, 2017
Create Xcode project from base project.
View createXcodeProject.sh
export LANG=C
# Check arguments
if [$# -ne 2 ]; then
echo "[Error]: 2 arguments are necessary."
echo "[Usage]: $0 TEMPLATE_NAME PROJECT_NAME"
exit 1
fi
# Parameters
@krimpedance
krimpedance / UserDefaults.swift
Created Sep 10, 2018
UserDefaults * Swifty * Observable * Testable
View UserDefaults.swift
import Foundation
// MARK: - Observable ----------------
public typealias UDChangeHandler<O, V> = (O, UDKeyValueObservedChange<V>) -> Void
public enum UDKeyValueChange: UInt {
case setting
case insertion
case removal
@krimpedance
krimpedance / KRDrawScript.jsx
Created Nov 19, 2018
Illustrator object to Swift.UIBezierPath
View KRDrawScript.jsx
"use strict";
getPath = function() {
var digit = 1000;
var doc;
try {
doc = app.activeDocument;
} catch(e){
return "ファイルがありません.";
You can’t perform that action at this time.