Skip to content

Instantly share code, notes, and snippets.

View ryuheechul's full-sized avatar
💻
hacking on projects!

Heechul Ryu ryuheechul

💻
hacking on projects!
View GitHub Profile
@ryuheechul
ryuheechul / mandrill-utf-8.js
Created November 27, 2014 01:41
Alternative for parse.com’s cloud module Mandrill.
var mandrillApiKey;
var path = 'https://mandrillapp.com/api/1.0/messages/';
exports.initialize = function(apiKey) {
mandrillApiKey = apiKey;
};
exports.sendMail = function(params, options){
callMandrill('send.json', params, options);
};

Appsecure CLI Manual - 한글

설치방법

appsecu.re 담당자(담당자 이메일)에게 바이너리 파일 요청

기본사용법

$ appsecure [global options] command [command options] [arguments...]
Vendor Machine per Hour per Month (1 machine) per Month Total
google n1-standard-1 $0.038 $28.272 $84.816 (3 machines)
aws m3.medidum $0.067 $49.848 $199.392 (4 machines)
@ryuheechul
ryuheechul / clean-up-unused-docker-images-containers.sh
Last active August 29, 2015 14:27
To clean up docker unused images and containers.sh
#!/bin/bash
#remove containers
docker rm $(docker ps -a -f 'status=exited' -q)
#remove images
docker rmi $(docker images -f "dangling=true" -q)
@ryuheechul
ryuheechul / PhotoSelectButton.m
Created October 21, 2015 06:10
PhotoSelectButton - Objective C/iOS
#import <UIKit/UIKit.h>
@interface PhotoSelectButton : UIButton
+ (instancetype)button;
@end
#define COVER_SECTION_AREA 0.33
@ryuheechul
ryuheechul / PopupView.m
Created October 27, 2015 05:25
To show views on top of uiview controller easily
//
// PopupView.m
// Modeling
//
// Created by Heechul on 10/26/15.
// Copyright © 2015 min. All rights reserved.
//
#import <UIKit/UIKit.h>
@ryuheechul
ryuheechul / UIScrollView+AdjustOffset.m
Last active October 28, 2015 09:21
When you want to keep the scroll position right when scroll view resizes.
@interface UIScrollView (AdjustOffset)
- (CGFloat)updateContentOffsetWithPreviousHeight:(CGFloat)previousHeight distanceFromBottom:(CGFloat)distanceFromBottom;
@end
@implementation UIScrollView (AdjustOffset)
- (void)updateContentOffset:(CGPoint)offset
{
@ryuheechul
ryuheechul / NSString+Ranges.m
Last active December 11, 2015 09:12
To get all ranges of the string in NSString
//
// NSString+Ranges.h
// Modeling
//
// Created by Heechul Ryu on 12/11/15.
// Copyright © 2015 Heechul Ryu. All rights reserved.
//
#import <Foundation/Foundation.h>
@ryuheechul
ryuheechul / PhotoResource.m
Created January 8, 2016 05:58
Rescue object to keep information of photo resources with different types (such as UIImage, NSUR, etc)
//
// PhotoResource.h
// Modeling
//
// Created by Heechul on 1/8/16.
// Copyright © 2016 Heechul Ryu. All rights reserved.
//
#import <UIKit/UIKit.h>
@ryuheechul
ryuheechul / 0_reuse_code.js
Created March 17, 2016 08:19
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