Skip to content

Instantly share code, notes, and snippets.

View null-dev's full-sized avatar
💭
I may be slow to respond.

Andy Bao null-dev

💭
I may be slow to respond.
View GitHub Profile
@null-dev
null-dev / Manga.java
Last active February 12, 2016 04:42
Object that was involved in the crash. (https://github.com/Stuart-campbell/RushOrm/issues/99)
package xyz.nulldev.slickmangaapp.model.manga;
import android.os.Parcel;
import android.os.Parcelable;
import java.net.URL;
import java.util.ArrayList;
import java.util.UUID;
import co.uk.rushorm.core.RushObject;
@null-dev
null-dev / kbagi.com_batch_dl_link.js
Created February 10, 2018 03:08
kbagi.com Batch Download Link Lister
@null-dev
null-dev / test.sh
Last active March 22, 2018 01:20
Script to write, compile and run simple multidimensional array test cases
#!/bin/bash
# Disable WINE debug logging
export WINEDEBUG=-all
cat <<EOM >HelloWorld.java
class HelloWorld {
public static void main(String[] args) {
int[][] yesArraysWork = new int[10][10];
Integer[] sameAsObjArrays = new Integer[10];
@null-dev
null-dev / JsonReaderObjectReader.kt
Created April 14, 2018 19:28
Read entire `JsonObject`s and `JsonArray`s from `JsonReader`s
/**
* Reads entire `JsonObject`s and `JsonArray`s from `JsonReader`s
*
* @author nulldev
*/
import com.google.gson.JsonArray
import com.google.gson.JsonNull
import com.google.gson.JsonObject
import com.google.gson.stream.JsonReader
@null-dev
null-dev / TachiTest.kt
Last active April 17, 2018 01:24
Automated Tachiyomi source tester
import android.content.Context
import android.graphics.Color
import android.preference.PreferenceManager
import android.support.design.widget.TabLayout
import android.support.test.InstrumentationRegistry
import android.support.test.espresso.Espresso
import android.support.test.espresso.Espresso.onIdle
import android.support.test.espresso.Espresso.onView
import android.support.test.espresso.UiController
import android.support.test.espresso.ViewAction
@null-dev
null-dev / open-iterm.scpt
Last active July 7, 2018 02:52
Applescript to open a new iTerm2 window
if application "iTerm" is running then
tell application "System Events"
tell UI element "iTerm" of list 1 of application process "Dock"
perform action "AXShowMenu"
click menu item "New Window (Default Profile)" of menu 1
end tell
end tell
else
tell application id (id of application "iTerm")
reopen
[
{
"clusterTitle": "international/internal/internationally",
"docs": [
{
"docTitle": "United Nations \u0026 It\u0027s International Organizations--Midterm ...",
"docBlurb": "There are six main organs of the United Nations—the General Assembly, the Security Council, the Trusteeship Council, the Economic and Social Council, the International Court of Justice, and the Secretariat.",
"docURL": "https://quizlet.com/157367004/united-nations-its-international..."
},
{
@null-dev
null-dev / CSGServerDemo.kt
Last active January 8, 2019 00:40
1fichier.com direct link generator
package xyz.nulldev.csg
import okhttp3.OkHttpClient
import okhttp3.Request
import org.jetbrains.ktor.http.HttpStatusCode
import org.jetbrains.ktor.netty.embeddedNettyServer
import org.jetbrains.ktor.response.respondRedirect
import org.jetbrains.ktor.response.respondText
import org.jetbrains.ktor.routing.get
import org.jetbrains.ktor.routing.routing
@null-dev
null-dev / keybase.md
Created April 28, 2019 23:58
Keybase identity proof

Keybase proof

I hereby claim:

  • I am null-dev on github.
  • I am nulld3v (https://keybase.io/nulld3v) on keybase.
  • I have a public key ASCmcZbgg7vDpUsl7Yu_WcCgk8yvn6jFM0uWlGOlkq1lbwo

To claim this, I am signing this object:

@null-dev
null-dev / vndb_variety_quotes.py
Created June 21, 2020 05:05
VNDB quotes plugin for the Variety wallpaper changer
#!/usr/bin/python
from variety.plugins.IQuoteSource import IQuoteSource
from variety.Util import Util
from locale import gettext as _
class VNDBSource(IQuoteSource):
@classmethod
def get_info(cls):
return {