- Download JarJar jar
- In the same folder download the grooid jar you want to use. This was tested with 2.4.12 jar
- Again, in the same folder create a file called rules.txt
- In rules.txt put "zap org.codehaus.groovy.vmplugin.v7.IndyInterface"
- Run
java -jar jarjar-1.3.jar process rules.txt groovy-2.4.12-grooid.jar groovy-android.jar
- Now add newly created jar file to your android project.
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
const noble = require('noble'); | |
noble.on('stateChange', state => { | |
if (state === 'poweredOn') { | |
noble.startScanning(['1816']); | |
} else { | |
noble.stopScanning(); | |
} | |
}); |
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 pyperclip | |
import time | |
import re | |
reg = re.compile("\"[A-Za-z0-9:-]+\"") | |
while True: | |
inp = pyperclip.paste() | |
t = reg.findall(inp) |
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
pluginManagement { | |
repositories { | |
gradlePluginPortal() | |
google() | |
jcenter() | |
maven { url = uri("https://maven.fabric.io/public") } | |
} | |
resolutionStrategy { | |
eachPlugin { |
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
#!/usr/bin/env bash | |
PROGNAME="$(basename "$0")" | |
usage() { | |
echo "$PROGNAME: usage: $PROGNAME name" >&2 | |
exit 1 | |
} | |
results_open() { |
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 javax.imageio.ImageIO | |
import java.awt.image.BufferedImage | |
def image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB) | |
for (x in 0..99) { | |
for (y in 0..99) { | |
int color = (x + y) % 2 == 0 ? 0x000000 : 0xffffff | |
image.setRGB(x, y, color) | |
} | |
} |
- $ sudo apt-add-repository ppa:ehoover/compholio
- $ sudo apt-get update
- $ sudo apt-get install netflix-desktop
- sudo yum -y install wget
- sudo yum -y localinstall http://sourceforge.net/projects/postinstaller/files/fuduntu/msttcorefonts-2.0-2.noarch.rpm
- sudo yum -y install opencl-utils
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.andrew; | |
// move this below other imports | |
// or do not resolve statically and error goes away. | |
import static com.andrew.Animal.Legs.FOUR; | |
import com.google.auto.value.AutoValue; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; |
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
{ | |
"meta": { "theme": "flat" }, | |
"basics": { | |
"name": "Andrew Reitz", | |
"label": "Android Developer", | |
"picture": "", | |
"email": "andrew@andrewreitz.com", | |
"website": "http://andrewreitz.com", | |
"summary": "Passionate Android Developer.", | |
"location": { |
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
default-scenarios = [ | |
"abi-assemble-default", | |
"abi-assemble-2gb", | |
"abi-assemble-4gb", | |
"abi-assemble-6gb", | |
"abi-assemble-8gb" | |
] | |
abi-assemble-default { | |
tasks = ["assembleDebug"] |
NewerOlder