Skip to content

Instantly share code, notes, and snippets.

View codlab's full-sized avatar

Kevin Le Perf codlab

View GitHub Profile
0xA8FaEc70d49B1dAe9FEde3e8C080D72c714bA17A
# fetch and sync 21GB <3
fetch --nohooks webrtc_android
gclient sync
cd src
# generate makefiles
gn gen out/Debug --args='target_os="android" target_cpu="arm"'
# calls deps for android after running the deps for the current system
# sudo will be called
@codlab
codlab / publishMavenLocal.gradle
Created December 4, 2017 10:00 — forked from Robyer/maven-publish-helper-usage.gradle
Gradle script for publishing Android library to local Maven repository using maven-publish plugin. With dependencies (also handling transitive: false and custom exclude rules), including sources and javadoc.
apply plugin: 'maven-publish'
task androidJavadocs(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
classifier = 'javadoc'
from androidJavadocs.destinationDir
@codlab
codlab / GAME_MASTER_POKEMON_v0_2.tsv
Created July 18, 2016 10:15 — forked from anonymous/GAME_MASTER_POKEMON_v0_2.tsv
Pokemon from GAME_MASTER protobuf file v0.2 in a .tsv
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 27 columns, instead of 12. in line 2.
PkMn BaseStamina BaseAttack BaseDefense Type1 Type2 BaseCaptureRate BaseFleeRate CollisionRadiusM CollisionHeightM CollisionHeadRadiusM MovementType MovementTimerS JumpTimeS AttackTimerS QuickMoves CinematicMoves AnimTime Evolution EvolutionPips PokemonClass PokedexHeightM PokedexWeightKg HeightStdDev WeightStdDev FamilyId CandyToEvolve
1 90 126 126 HoloPokemonType.POKEMON_TYPE_GRASS HoloPokemonType.POKEMON_TYPE_POISON 0.1599999964237213 0.10000000149011612 0.3815000057220459 0.6539999842643738 0.27250000834465027 HoloPokemonMovementType.POKEMON_ENC_MOVEMENT_JUMP 10.0 1.149999976158142 29.0 d601dd01 5a3b76 6d56d53fdaac2a3f6d56d53f93a9ea3f0000000036ab0a403333b33fbfbbbb3f 02 HoloPokemonClass.POKEMON_CLASS_NORMAL 1 0.699999988079071 6.900000095367432 0.08749999850988388 0.862500011920929 HoloPokemonFamilyId.V0001_FAMILY_BULBASAUR 25
2 120 156 158 HoloPokemonType.POKEMON_TYPE_GRASS HoloPokemonType.POKEMON_TYPE_POISON 0.07999999821186066 0.07000000029802322 0.3187499940395355 0.637499988079071 0.2549999952316284 H
# Activity declaration
public class MainActivity extends AppCompatActivity
implements AppBarLayout.OnOffsetChangedListener
//int the onCreate
AppBarLayout.LayoutParams params = (AppBarLayout.LayoutParams) mCollapsingToolbar.getLayoutParams();
mDefaultFlags = params.getScrollFlags();
mSetSnapAfter0 = false; //set snap after event in the offsetchanged
@codlab
codlab / gist:5d3b4625f6b0e57c1b85
Created February 14, 2016 22:17
star wars no unlog
ADB="adb $@ shell"
let x1=200
let y1=200
let x2=220
let y2=220
package="com.lucasarts.starts_goo"
while [ 1 -ne 2 ]