Skip to content

Instantly share code, notes, and snippets.

View kindraywind's full-sized avatar
👨‍💻
codingu

WORAMET kindraywind

👨‍💻
codingu
  • Drivemode
  • Tokyo
View GitHub Profile
@kindraywind
kindraywind / RoundButton.swift
Created January 24, 2018 06:03
Quickest way to make round button in iOS
//
// RoundButton.swift
//
//
// Created by octto on 2017/11/28.
// Copyright © 2017 octto. All rights reserved.
//
import UIKit
@kindraywind
kindraywind / happy_git_on_osx.md
Created September 20, 2017 08:40 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

@kindraywind
kindraywind / styles.less
Created October 24, 2016 09:42
my atom's styles (for Seti UI steel + monokai syntax)
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/
@kindraywind
kindraywind / defog.py
Last active August 3, 2016 13:59
Single image defogging
from __future__ import division
import cv2
import numpy as np
class Channel_value:
val = -1.0
intensity = -1.0
def find_intensity_of_atmospheric_light(img, gray):
top_num = int(img.shape[0] * img.shape[1] * 0.001)
BasedOnStyle: Chromium
AlignTrailingComments: true
BreakBeforeBraces: Attach
ColumnLimit: 0
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: false
alias xcode='open *.xcworkspace'