This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.gradle.platform.* | |
interface CustomLanguageSourceSet extends LanguageSourceSet {} | |
interface SampleComponent extends ComponentSpec {} | |
interface SampleBinary extends BinarySpec {} | |
class DefaultCustomLanguageSourceSet extends BaseLanguageSourceSet implements CustomLanguageSourceSet {} | |
class DefaultSampleBinary extends BaseBinarySpec implements SampleBinary {} | |
class DefaultSampleComponent extends BaseComponentSpec implements SampleComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo; | |
echo -en "( º_º) ┬─┬ \r"; sleep .5; | |
echo -en " ( º_º) ┬─┬ \r"; sleep .5; | |
echo -en " ( ºДº)┬─┬ \r"; sleep .5; | |
echo -en " (╯'Д')╯︵⊏ \r"; sleep .5; | |
echo -en " (╯'□')╯︵ ⊏ \r"; sleep .5; | |
echo " (╯°□°)╯︵ ┻━┻"; sleep .5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Blog Post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "boxcutter/centos71" | |
config.vm.network "private_network", ip: "10.1.1.123" | |
config.vm.provision "shell", inline: "sudo yum install -y https://bintray.com/artifact/download/jfrog/artifactory-rpms/artifactory-3.6.0.rpm" | |
config.vm.provision "shell", inline: "sudo yum install -y java" | |
config.vm.provision "shell", inline: "sudo systemctl start artifactory" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example | |
import groovy.util.logging.Slf4j | |
import org.springframework.boot.SpringApplication | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration | |
import org.springframework.context.ApplicationContext | |
import org.springframework.context.annotation.ComponentScan | |
import org.springframework.context.annotation.Configuration | |
import org.springframework.context.annotation.Import | |
import org.springframework.web.servlet.config.annotation.EnableWebMvc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
apply plugin: 'idea' | |
def imlName = name + (hasProperty('generate12') ? '.ij12' : '.ij13') | |
idea { | |
module { | |
name = imlName | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.gradle.parallel=true | |
org.gradle.configureondemand=true | |
org.gradle.daemon=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
println("dependencies {") | |
def ivyModule = new XmlParser().parse(new File('ivy.xml')) | |
ivyModule.dependencies.dependency.each { | |
def scope = it.@conf?.contains("test") ? "testCompile" : "compile" | |
println("\t$scope '${it.@org}:${it.@name}:${it.@rev}'") | |
} | |
println("}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.widget.ListView; | |
import android.widget.AbsListView; | |
import android.content.Context; | |
public class HalfCircleListView extends ListView implements AbsListView.OnScrollListener { | |
public HalfCircleListView(Context context) { | |
super(context); | |
setOnScrollListener(this); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.ehdev.android.example.wheel.layout; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.util.DisplayMetrics; | |
import android.widget.TextView; | |
public class MyView extends TextView { | |
private static final int MAX_INDENT = 300; |