Skip to content

Instantly share code, notes, and snippets.

View jonathan-irvin's full-sized avatar
🏠
Working from home

Jonathan Irvin jonathan-irvin

🏠
Working from home
View GitHub Profile
@jonathan-irvin
jonathan-irvin / README.md
Created June 19, 2023 00:24
Dinkum Assets

Tools Required

  1. Unity 2020.3.17f1 - Loads the project for viewing.
  2. Asset Ripper - Rips the game's assets.

Instructions

  1. Download and install the above tools.
@jonathan-irvin
jonathan-irvin / Dockerfile
Created October 19, 2021 15:49
Docker Install Chrome steps
RUN curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN dpkg -i google-chrome.deb
RUN sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome
RUN rm google-chrome.deb
@jonathan-irvin
jonathan-irvin / ubuntu-cli-install-android-sdk.sh
Last active September 26, 2023 07:16 — forked from zhy0/ubuntu-cli-install-android-sdk.sh
Install Android SDK on headless Ubuntu linux machine via command line, so that you can compile open source Android apps.
#!/bin/bash
# Thanks to https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
# Execute this script in your home directory. Lines 17 and 21 will prompt you for a y/n
# Install Oracle JDK 8
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer
apt-get install -y unzip make # NDK stuff
function analyticsLanding(pageName)
AnalyticsManager({
"pageName" : "tve:ppv:"+pageName,
"eVar20": "tve:ppv:"+pageName,
"eVar70": pageName,
"events": "event3,event70"
})
end function
function analyticsCallToActionEvent(event)
cd /path/to/repo
#displays the raw lengths
git shortlog | grep -e '^ ' | sed 's/[[:space:]]\+\(.*\)$/\1/' | awk '{print length($0)}'
#or a text-based historgam
git shortlog | grep -e '^ ' | sed 's/[[:space:]]\+\(.*\)$/\1/' | awk '{lens[length($0)]++;} END {for (len in lens) print len, lens[len] }' | sort -n
@jonathan-irvin
jonathan-irvin / README.md
Created August 30, 2018 13:47 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha:

0x0002d49DE55C4f551E68999A927DB4Ab20cCA762
@jonathan-irvin
jonathan-irvin / simple-git-branching-model.md
Last active October 16, 2022 23:42 — forked from jbenet/simple-git-branching-model.md
a simple git branching model

a simple git branching model

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@jonathan-irvin
jonathan-irvin / twinPrimes.java
Last active November 2, 2015 16:28
Twin Primes
public class twinPrimes {
public static void main(String[] args) {
for(int i=2;i<1000;i++){
if( (isPrime(i)) && (isPrime(i+2)) ){
System.out.println("(" +i+ "," +(i+2)+ ")");
}
}
}