Skip to content

Instantly share code, notes, and snippets.

View aiekick's full-sized avatar

Aiekick aiekick

View GitHub Profile
@aiekick
aiekick / AndroidManifest.xml
Created June 3, 2025 18:05 — forked from Bigfoot71/AndroidManifest.xml
Example of AdMob integration in Raymob
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
<!-- Add this for apps targeting Android 13 or higher & GMA SDK version 20.3.0 or lower -->
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
<application>
@aiekick
aiekick / baseIInternalDatasDerivation.cpp
Last active December 15, 2024 23:39
base internal datas derivation
#include <iostream>
#include <cassert>
#include <memory>
#include <string>
struct Datas {
std::string name;
Datas() = default;
explicit Datas(const std::string& vName) : name(vName) {}
virtual ~Datas() = default;
@aiekick
aiekick / latency.txt
Created December 9, 2024 01:14 — forked from understeer/latency.txt
HPC-oriented Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference/hit 1.5 ns 4 cycles
Floating-point add/mult/FMA operation 1.5 ns 4 cycles
L2 cache reference/hit 5 ns 12 ~ 17 cycles
Branch mispredict 6 ns 15 ~ 20 cycles
L3 cache hit (unshared cache line) 16 ns 42 cycles
L3 cache hit (shared line in another core) 25 ns 65 cycles
Mutex lock/unlock 25 ns
L3 cache hit (modified in another core) 29 ns 75 cycles
@aiekick
aiekick / setup-slave.sh
Created September 7, 2024 02:04 — forked from mariusvw/setup-slave.sh
Auto install Jenkins slave on Debian
#!/bin/bash
# Input
newhost=$1
applicationStart=$2
###
# Functions
###
updateBaseInstall() {
@aiekick
aiekick / nan_inf.cpp
Created June 13, 2024 13:03
nan / inf
#include <cmath>
#include <iostream>
#include <cstdint>
template<typename T>
void printBin(const T& t){
size_t nBytes=sizeof(T);
char* rawPtr((char*)(&t));
for(size_t byte=0; byte<nBytes; byte++){
for(size_t bit=0; bit<8; bit++){
@aiekick
aiekick / LinuxProcessOutputFromCode.cpp
Last active May 23, 2024 20:00
Get the ouput of a linux command in a std::string (here in Clion for a ShaOne)
#include <string>
#include <cstdio>
#include <cassert>
#include <fstream>
#include <iostream>
#include <cryptopp/sha.h>
#include <boost/algorithm/hex.hpp>
void addFileToSha(const std::string& vFilePathName, CryptoPP::SHA1& vShaRef) {
std::ifstream file(vFilePathName);
@aiekick
aiekick / gist:045c931f9c059b5616088dbb4fe46808
Last active May 23, 2024 19:50
Get the ouput of a linux commend in a std::string (here in Clion for a ShaOne)
#include <string>
#include <cstdio>
#include <cassert>
#include <fstream>
#include <iostream>
#include <cryptopp/sha.h>
#include <boost/algorithm/hex.hpp>
void addFileToSha(const std::string& vFilePathName, CryptoPP::SHA1& vShaRef) {
std::ifstream file;
@aiekick
aiekick / Simulation_Projection.md
Created February 18, 2023 22:14 — forked from vassvik/Simulation_Projection.md
Realtime Fluid Simulation: Projection

Realtime Fluid Simulation: Projection

The core of most real-time fluid simulators, like the one in EmberGen, are based on the "Stable Fluids" algorithm by Jos Stam, which to my knowledge was first presented at SIGGRAPH '99. This is a post about one part of this algorithm that's often underestimated: Projection

MG4_F32.mp4

Stable Fluids

The Stable Fluids algorithm solves a subset of the famous "Navier Stokes equations", which describe how fluids interact and move. In particular, it typically solves what's called the "incompressible Euler equations", where viscous forces are often ignored.

@aiekick
aiekick / uv_mercator_project.py
Created June 7, 2020 19:43 — forked from batFINGER/uv_mercator_project.py
Mercator UV Projection
bl_info = {
"name": "Mercator Project",
"author": "batFINGER",
"version": (1, 0),
"blender": (2, 79, 0),
"location": "View3D > Mesh > UV UnWrap > Mercator Project",
"description": "UV Mercator Projection",
"warning": "",
"wiki_url": "",
"category": "UV",