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 / .gitignore
Created October 13, 2022 15:42 — forked from jimschubert/.gitignore
Prototyping a Flags/Bitmasks implementation in Kotlin 1.1.1
META-INF/
*.class
/**
* Generates curl from requests
*/
class CurlLoggerInterceptor : Interceptor {
private val defaultContentType = Constants.CONTENT_TYPE
override fun intercept(chain: Interceptor.Chain): Response {
val request = chain.request()
class GameObject(
model: Model,
private val shape: btCollisionShape,
mass: Float
) : ModelInstance(
model
), Disposable {
// For ray picking
val center = Vector3()
void CObject3D::ReadGMObject(CFile& file, GMObject& obj)
{
file.Read(obj.bounds);
int temp;
file.Read(temp);
obj.opacity = temp != 0;
file.Read(temp);
obj.bump = temp != 0;
file.Read(temp);
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)
}
}
//Rijndael.cpp
#include <cstring>
#include <exception>
#include "StdAfx.h"
#include "Rijndael.h"
const int CRijndael::sm_alog[256] =
{
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
@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('*');
************************************
************************************
< 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