Skip to content

Instantly share code, notes, and snippets.

View DanielJenkyn's full-sized avatar

DanielJenkyn

View GitHub Profile
@DanielJenkyn
DanielJenkyn / README.md
Last active November 12, 2019 22:43
Cave Generation on a Business Card

Cave Generation on a Business Card

  • Uses cellular automata to generate small caves
  • Compiles on macOS Mojave using clang with no errors

Varibles you can tweak

  • 'chce2StAlv' - Sets how dense the initial grid is with living cells.
  • 'stps' - Number of times we run simulation
  • 'const c' - Size of map
@DanielJenkyn
DanielJenkyn / Permutations.java
Created October 16, 2019 18:11
Permutations for given number
package com.and.test;
import java.util.ArrayList;
import java.util.List;
public class Solution {
/**
* Publicly exposed method, that wraps method with the actual algorithm.
* This is also to conform with the rules as outlined by the coding
@DanielJenkyn
DanielJenkyn / install_obb.sh
Last active February 12, 2024 09:00
Script to install .apk and .obb (Split binary) onto Android device
#!/bin/bash
project_name= com.jenkyncorp.bestapp
reinstall=
# Takes the most recent .apk and .obb (If you have multiple files)
OBB=$(ls -t *.obb | head -n1)
APK=$(ls -t *.apk | head -n1)
while [ "$1" != "" ]; do