Skip to content

Instantly share code, notes, and snippets.

View ronjunevaldoz's full-sized avatar
🎯
Focusing

Ron June Valdoz ronjunevaldoz

🎯
Focusing
View GitHub Profile
@ronjunevaldoz
ronjunevaldoz / libgdx ashley ecs
Last active August 5, 2016 04:28
libgdx ashley ecs tips & tricks
TIPS
- before removing entity be sure the components data arrays or maps are cleared
example 1 solution:
entity.removeAll(); // before using removeAll() check if the components data has arrays or maps
SpriteComponent sprite = Mapper.sprite.get(entity);
sprite.clear(); // to avoid leaving traces of unneccesary texture traces
entity.remove(SpriteComponents.class);
@ronjunevaldoz
ronjunevaldoz / stm.java
Created August 29, 2016 01:24
Libgdx Path-finding Test (Simple Tiled Map) - Not working
// Tiled Connection
public class TiledConnection extends DefaultConnection<TiledNode> {
public TiledConnection(TiledNode fromNode, TiledNode toNode) {
super(fromNode, toNode);
}
}
// Tiled Graph
@ronjunevaldoz
ronjunevaldoz / Mover.cpp
Created January 3, 2017 19:30
Duel is not working, no duel menu and uanble to hit on arena
#include "stdafx.h"
#include "..\_AIInterface\ActionMover.h"
#include "Mover.h"
#include "ModelObject.h"
#include "defineText.h"
#include "defineItem.h"
#include "defineObj.h"
#include "defineSound.h"
#include "defineSkill.h"
#include "lang.h"
@ronjunevaldoz
ronjunevaldoz / sample.inc
Created March 28, 2017 14:10
Sample Inc Extention
//이 파일 수정 시에 절대 EditPlus를 사용하시지 마십시요.
//유니코드 부분에 충돌이 있습니다.
//메모장을 사용하여 주십시오.
// textServer.inc : Multi language text
// textClient.inc : Multi language text
// 이야기식 변수 표현 : %s
// 수치 변수 표현 : %d
************************************
************************************
< Thu 05/04/2017 -- 0:19:40.99 >
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
DECOMPILE
I: Using Apktool 2.2.2 on MuRagezoneold.apk
@ronjunevaldoz
ronjunevaldoz / rectangle_asterisk
Created July 20, 2017 06:13
Javascript Rectangle Asterisk
var height = 5;
var width = 20;
for(var h = 0; h< height; h++) {
for(var w = 0; w< width; w++) {
if(w> 0 && w < width - 1) {
if(h> 0 && h < height - 1) {
$('#test').append('_');
} else {
$('#test').append('*');
@ronjunevaldoz
ronjunevaldoz / rectangle_asterisk
Created July 20, 2017 06:13
Javascript Rectangle Asterisk
var height = 5;
var width = 20;
for(var h = 0; h< height; h++) {
for(var w = 0; w< width; w++) {
if(w> 0 && w < width - 1) {
if(h> 0 && h < height - 1) {
$('#test').append('_');
} else {
$('#test').append('*');
desc "Add google play changelog"
private_lane :add_google_play_changelog do |options|
root_changelog = File.read("../CHANGELOG")
log = root_changelog.split("##")
version_code = options[:version_code] or 0
version_name = options[:version_name] or ""
current_log = log[0]
if current_log.nil?
puts "Invalid: No root changelog found!"
else
//Rijndael.cpp
#include <cstring>
#include <exception>
#include "StdAfx.h"
#include "Rijndael.h"
const int CRijndael::sm_alog[256] =
{
object EventBus {
@OptIn(ExperimentalCoroutinesApi::class)
val bus: BroadcastChannel<Any> = ConflatedBroadcastChannel(2) // receive only most recent data
@ExperimentalCoroutinesApi
fun send(o: Any) = runBlocking {
launch {
bus.send(o)
}
}