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
# syntax=docker/dockerfile:1.4 | |
FROM gusto/ruby:2.7.6-ubuntu20.04 as build | |
ARG GIT_TAG=0.5.10458.20220926130158-4007ec60a | |
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | |
RUN <<END_OF_RUN | |
set -ex | |
apt-get update | |
apt-get install -y software-properties-common |
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
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
# -*- 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
- template: | |
src: zshrc | |
dest: "$HOME/.zshrc" | |
- command: | |
exec: git clone --recursive https://github.com/ethankhall/prezto.git $HOME/.zprezto | |
- command: | |
exec: ln -s $HOME/.zprezto/runcoms/@it@ $HOME/.@it@ | |
items: |
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 com.hashicorp.nomad.apimodel.EphemeralDisk | |
import com.hashicorp.nomad.apimodel.Job | |
import com.hashicorp.nomad.apimodel.Resources | |
import com.hashicorp.nomad.apimodel.RestartPolicy | |
import com.hashicorp.nomad.apimodel.Task | |
import com.hashicorp.nomad.apimodel.TaskGroup | |
import com.hashicorp.nomad.javasdk.NomadApiClient | |
import com.hashicorp.nomad.javasdk.NomadApiConfiguration | |
import org.apache.commons.lang.RandomStringUtils | |
import org.slf4j.Logger |
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; |
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
configurations { | |
groovy | |
} | |
dependencies { | |
groovy localGroovy() | |
} | |
project.tasks.create("generateExample", JavaExec) { task -> | |
def inputFile = file("input.groovy") |
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
NAME=$1 | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
REPO="" | |
USERNAME="" | |
KEY="" | |
echo "Uploading $1 to bintray" | |
if jfrog bt package-show $USERNAME/$USERNAME/$NAME > /dev/null; then | |
echo "Package already exists, not creating" |
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
$ tree | |
├── build.gradle | |
├── gradlew | |
├── foo | |
│ ├── build.gradle | |
│ ├── setup.cfg | |
│ ├── setup.py | |
│ ├── src | |
│ │ └── foo |
NewerOlder