Skip to content

Instantly share code, notes, and snippets.

View HIPERCUBE's full-sized avatar

Joowon Ryoo HIPERCUBE

View GitHub Profile
@HIPERCUBE
HIPERCUBE / build.gradle
Created December 26, 2016 14:57
Android project level gradle file
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
// NOTE: Do not place your application dependencies here; they belong
@HIPERCUBE
HIPERCUBE / build.gradle
Created December 26, 2016 14:30
Android module level gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.hipercube.blog.blogsample"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
@HIPERCUBE
HIPERCUBE / RangeSample.groovy
Created December 25, 2016 18:47
Groovy Range Sample
// Number rangle
def range = 1..10
assert range == [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
// Character range
range = 'a'..'c'
assert range == ['a', 'b', 'c']
range = 1..<8
assert range == [1, 2, 3, 4, 5, 6, 7]
@HIPERCUBE
HIPERCUBE / LeftShiftOperation.gradle
Last active December 25, 2016 18:33
Gradle Left Shift Operation
// Left Shift Operation
task hello << {
println 'Hello world'
}
// Left Shift Operation Test
task first {
doFirst {
println 'Running first'
}
@HIPERCUBE
HIPERCUBE / GroovyMapLiteralSample.groovy
Created December 25, 2016 18:22
Groovy Map literal sample
apply plugin: 'java'
Map<String, String> map = new HashMap<String, String>()
map.put('plugin', 'java')
apply(map)
@HIPERCUBE
HIPERCUBE / GroovyListSample.groovy
Created December 25, 2016 18:18
Groovy List Sample Code
// Declare list with initial items.
test.includes = ['org/gradle/api/**'. 'org/gradle/internal/**']
// Set list using ArrayList
List<String> list = new ArrayList<String>()
list.add('org/gradle/api/**')
list.add('org/gradle/internal/**')
test.includes = list
// 사전 작업
// chrome://plugins
// 크롬에서 위 링크치고 들어가서 PDF Viewer Disable하고 해야함
// http://www.ebsi.co.kr/ebs/xip/xipc/previousPaperList.ebs
// 로그인하고 위 링크로 이동한다.
// 원하는 년도랑 학년 과목을 선택하고 아래 스크립트를 console에 복붙하면된다.
// 다운로드는 문제, 해설만 다운로드하도록 만듬
//