Skip to content

Instantly share code, notes, and snippets.

Avatar

Alket Rexhepi alketii

View GitHub Profile
View GodotFireBase adb logcat
--------- beginning of main
05-20 12:26:26.325 20573 20573 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
05-20 12:26:26.331 20573 20573 D AndroidRuntime: CheckJNI is OFF
05-20 12:26:26.501 20573 20573 D AndroidRuntime: Calling main entry com.android.commands.am.Am
05-20 12:26:26.541 20573 20573 D AndroidRuntime: Shutting down VM
05-20 12:26:26.903 20665 20665 I godot : **INIT EVENT! - 0xb42a3230
05-20 12:26:26.903 20665 20665 I godot : ***************** HELLO FROM JNI!!!!!!!!
05-20 12:26:26.903 20665 20665 I godot : *******CLASS FOUND!!!
05-20 12:26:26.903 20665 20665 I godot : STEP2, 0x10074a
05-20 12:26:26.903 20665 20665 I godot : STEP3 -1229056644
View GodotFireBase adb logcat
05-18 20:48:28.501 E/LightSensor( 768): RED : 1, GREEN : 0, BLUE : 0, CLEAR : 1, CALCULATED LUX : 0.000000, CCT : 1596.000000, REAL LUX : 0.000000 a_time = 238, gain = 64, ir=0, rp1=1, gp1=0, bp1=0, cp1=1, cpl=3202560
05-18 20:48:28.680 E/LightSensor( 768): RED : 1, GREEN : 0, BLUE : 0, CLEAR : 1, CALCULATED LUX : 0.000000, CCT : 1596.000000, REAL LUX : 0.000000 a_time = 238, gain = 64, ir=0, rp1=1, gp1=0, bp1=0, cp1=1, cpl=3202560
05-18 20:48:28.857 E/LightSensor( 768): RED : 1, GREEN : 0, BLUE : 0, CLEAR : 0, CALCULATED LUX : 0.000000, CCT : 4294965504.000000, REAL LUX : 0.000000 a_time = 238, gain = 64, ir=1, rp1=1, gp1=-1, bp1=-1, cp1=-1, cpl=3202560
05-18 20:48:29.036 E/LightSensor( 768): RED : 1, GREEN : 0, BLUE : 0, CLEAR : 0, CALCULATED LUX : 0.000000, CCT : 4294965504.000000, REAL LUX : 0.000000 a_time = 238, gain = 64, ir=1, rp1=1, gp1=-1, bp1=-1, cp1=-1, cpl=3202560
05-18 20:48:29.213 E/LightSensor( 768): RED : 1, GREEN : 0, BLUE : 0, CLEAR : 0, CALCULATED LUX : 0.000000, CCT : 4294965504.0000
View gist:69bf1c8cf2c4d605e4204f6ab0510116
05-17 21:44:53.890 I/ActivityManager( 768): Force stopping org.godotengine.test_game appid=10146 user=-1: deletePackageX
05-17 21:44:53.890 I/ActivityManager( 768): Killing 16605:org.godotengine.test_game/u0a146 (adj 0): stop org.godotengine.test_game
05-17 21:44:53.893 D/ActivityManager( 768): cleanUpApplicationRecord -- 16605
05-17 21:44:53.896 W/ActivityManager( 768): Force removing ActivityRecord{af50143 u0 org.godotengine.test_game/org.godotengine.godot.Godot t1333}: app died, no saved state
05-17 21:44:53.913 I/PackageManager( 768): Removing old permission: org.godotengine.test_game.permission.C2D_MESSAGE from package org.godotengine.test_game
05-17 21:44:53.930 D/GraphicsStats( 768): Buffer count: 4
05-17 21:44:53.937 I/Sensors ( 768): Mag old sensor_state 16915, new sensor_state : 16899 en : 0
05-17 21:44:53.944 E/Sensors ( 768): Gyro old sensor_state 16899, new sensor_state : 16897 en : 0
05-17 21:44:53.951 E/Sensors ( 768): U_Gyro old sensor_state 16897, new sensor_state : 513 en : 0
05-17
View map_render.gd
extends Node2D
var cell_id = 0
var map_data = {}
var map_width
var map_height
var tileset = []
var layers
var cell_sprite
func render_tiles(x):
View qupzilla_github_fix.js
// Copyright alket@megaglest.org CC0 Universal
// ==UserScript==
// @name QupZilla Github Fix
// @namespace qupzilla_github_fix
// @include https://github.com/*
// @version 0.1
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js
// ==/UserScript==
var html_list = "";
View array_shuffle.gd
func shuffle(array):
randomize()
var shuffeled = []
var current
var count = array.size()
for i in range(0,count):
current = randi()%array.size()
shuffeled.append(array[current])
array.remove(current)
View tileset-cutter.py
"""
To run this on ubuntu, first do
sudo apt-get install python-pil python-easygui
note: pil can also be python-pillow
"""
import os
import easygui as eg
from PIL import Image
image_file = eg.fileopenbox("Select Image")
@alketii
alketii / minNumber
Created May 22, 2015
Find the smallest number in an array
View minNumber
func minNumber(numbers):
var currentMin = numbers[0]
for number in numbers:
if currentMin > number:
currentMin = number
return currentMin
func _ready():
print(minNumber([5,2,3,4]))
View gist:5832e2336e582a591eb0
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true