Skip to content

Instantly share code, notes, and snippets.

View davispuh's full-sized avatar

Dāvis davispuh

  • Latvia
View GitHub Profile
@davispuh
davispuh / array.rb
Last active December 15, 2015 10:29
Equally distribute several array elements across single array. (Ruby)
#!/usr/bin/env ruby
require 'pp'
a = []
a << [:a, :c, :e]
a << [:b, :f, :g, :h, :i, :j]
a << [:d]
# element coefficients
@davispuh
davispuh / text.txt
Last active December 12, 2015 06:08
parsing text...
1.23% somestring specialstring specialstring
|
--- specialstring
|
|--12.34%-- specialstring
| specialstring
| |
| |--12.34%-- specialstring
| | specialstring
| | |
@davispuh
davispuh / log.txt
Created February 3, 2013 22:39
TribalWars Android app log
I/ActivityManager( 387): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=air.com.innogames.staemme cmp=air.com.innogames.staemme/.AppEntry bnds=[200,585][360,785]} from pid 21966
D/dalvikvm(32436): Late-enabling CheckJNI
I/ActivityManager( 387): Start proc air.com.innogames.staemme for activity air.com.innogames.staemme/.AppEntry: pid=32436 uid=10116 gids={50116, 3003, 1028}
I/StartupTime1(32436): :1359930694984
D/dalvikvm(32436): Trying to load lib /data/app-lib/air.com.innogames.staemme-1/libCore.so 0x420c4438
D/dalvikvm(32436): Added shared lib /data/app-lib/air.com.innogames.staemme-1/libCore.so 0x420c4438
D/libEGL (32436): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
D/libEGL (32436): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
D/libEGL (32436): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
D/OpenGLRenderer(32436): Enabling debug mode 0