Skip to content

Instantly share code, notes, and snippets.

View YoonjaeYoo's full-sized avatar
😎
Building cool stuffs

Yoonjae Yoo YoonjaeYoo

😎
Building cool stuffs
View GitHub Profile
did:3:bafyreid3xs22kyewragdbmfkk2u7j5awgrueczhxbjzrrq2qnnsl75rtiy
@YoonjaeYoo
YoonjaeYoo / AdPerformance.sol
Last active March 22, 2018 21:28
AdPerformance.sol
pragma solidity ^0.4.21;
import "github.com/oraclize/ethereum-api/oraclizeAPI.sol";
contract AdPerformance is usingOraclize {
address owner;
address beneficiary;
uint gweiToPayPerView;
string youtubeId;
bool withdrawn;
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
</head>
<body>
<style>
body {
margin: 0;
@YoonjaeYoo
YoonjaeYoo / nginx.config
Last active August 14, 2018 16:15
AWS ElasticBeanstalk config file for Nginx + Rails5 ActionCable
container_commands:
01_reload_nginx:
command: "service nginx reload"
files:
"/etc/nginx/conf.d/proxy.conf" :
mode: "000755"
owner: root
group: root
content: |
client_max_body_size 512M;
Verifying that +ryunzae is my blockchain ID. https://onename.com/ryunzae
@YoonjaeYoo
YoonjaeYoo / gist:ad2088ac65113a32400e
Created January 5, 2015 17:34
Android drawable for cropped inside + border
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:bottom="-20dp"
android:left="-20dp"
android:right="-20dp"
android:top="-20dp">
<shape android:shape="rectangle">
<stroke
android:width="20dp"
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
## Directory-based project format
.idea/
# if you remove the above rule, at least ignore user-specific stuff:
# .idea/workspace.xml
# .idea/tasks.xml
# and these sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@YoonjaeYoo
YoonjaeYoo / Android.gitignore
Created April 9, 2014 16:23
.gitignore for Android + Eclipse
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
@YoonjaeYoo
YoonjaeYoo / gist:4315075
Created December 17, 2012 01:20
Input accessory view for UITextField or UITextView that has previous, next and done button.
UIToolbar *toolBar = [[UIToolbar alloc] init];
toolBar.barStyle = UIBarStyleBlack;
toolBar.translucent = YES;
[toolBar sizeToFit];
textField.inputAccessoryView = toolBar;
[toolBar release];
UISegmentedControl *segmentedControl = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects:NSLocalizedString(@"Previous", nil), NSLocalizedString(@"Next", nil), nil]];
segmentedControl.segmentedControlStyle = UISegmentedControlStyleBar;
segmentedControl.momentary = YES;