This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let dlf = $('.download_form'); | |
let results = []; | |
dlf.submit(function(e) { | |
$.post($(this).attr('action'), $(this).serialize(), function(json) { | |
results.push(json["DownloadUrl"]); | |
console.log("Processing link " + results.length + "/" + dlf.size() + "..."); | |
if (results.length >= dlf.size()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!isset($_GET['a'])) { | |
die('<form action="" method="get"><input type="text" name="a"/><input type="submit"/></form>'); | |
} | |
$url = "https://1fichier.com/?" . urlencode($_GET['a']) . "?auth=1&inline"; | |
stream_context_set_default(array( | |
'http' => array( | |
'method' => 'GET', | |
'header' => 'Authorization: Basic ' . '[BASE64 encoded login credentials. Format: "user:pass" (without quotes)]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
NewerOlder