Skip to content

Instantly share code, notes, and snippets.

https://www.googleapis.com/drive/v3/files/1JtMDIskg9nfwhi85xjX1z12uiVOiFdCv/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | Vocaloid Gift BOX.zip | 162202248
https://www.googleapis.com/drive/v3/files/1CL1EGz_VtXFuSnPdrGcllE_7AbJMF9iv/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | Stepmania France Megapack.zip | 162269939
https://www.googleapis.com/drive/v3/files/1d7pY4LDGbtZKIjyM8baXqaW5L4sZbwQA/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | 7mai3 (JP region change needed).zip | 162225099
https://www.googleapis.com/drive/v3/files/1hTAoP6uv27rWJlHJj55rMOELShJ0I8fL/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | SS 25th Style.zip | 162218987
https://www.googleapis.com/drive/v3/files/11Qw3sI7WkqY_n2Gj54PxcMvCdIKpPTS7/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | HBK Synchro 76-100.zip | 204019659
https://www.googleapis.com/drive/v3/files/1ZetJdAoi94DWYKPgmj6uQAXPYfewCE00/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | Estepper Exclusives 2.zip | 203434209
@ishahid
ishahid / viscosity-to-ovpn.py
Last active February 6, 2024 07:34
Convert all of your Viscosity connections into OVPN configuration files for OpenVPN
#!/usr/bin/python
"""Convert all of your Viscosity connections into OVPN configuration files for OpenVPN
https://gist.github.com/ishahid/693c2c97b3236a3c2416fc09ab170244
"""
import re
import glob
from os.path import expanduser, dirname
@JakeWharton
JakeWharton / Java6.java
Last active May 28, 2022 16:14
A comparison between non-capturing and capturing expressions across Java 6, Java 8, Java 8 with Retrolambda, Kotlin with native function expressions, and Kotlin with Java SAM expression.
import java.util.Arrays;
class NonCapturing {
public static void main(String... args) {
run(new Runnable() {
@Override public void run() {
System.out.println("Hey!");
}
});
}
@clchiou
clchiou / non_graceful_shutdown.py
Created March 19, 2015 04:32
Python ThreadPoolExecutor (non-)graceful shutdown
#!/usr/bin/env python3
import concurrent.futures.thread
import sys
import time
from concurrent.futures import ThreadPoolExecutor, as_completed
def remove_file(path):
print('Removing file %s' % path)
@JakeWharton
JakeWharton / UiThreadRule.java
Last active January 12, 2024 17:43
A JUnit @rule which runs individual tests on the Android UI thread. http://b.android.com/157356
/*
* Copyright (C) 2015 Jake Wharton
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
package com.publicobject.quine;
import com.squareup.javapoet.FieldSpec;
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.TypeSpec;
import javax.lang.model.element.Modifier;
class Quine {
static String PACKAGE = "com.publicobject.quine";
@JakeWharton
JakeWharton / AutoGson.java
Last active November 28, 2021 12:32
A Gson TypeAdapterFactory which allows serialization of @autovalue types. Apache 2 licensed.
import com.google.auto.value.AutoValue;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Marks an {@link AutoValue @AutoValue}-annotated type for proper Gson serialization.
* <p>
@john2x
john2x / 00_destructuring.md
Last active April 23, 2024 13:18
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors and Sequences

@burgalon
burgalon / AccountAuthenticator.java
Last active July 15, 2023 08:29
Implementing OAuth2 with AccountManager, Retrofit and Dagger
public class AccountAuthenticator extends AbstractAccountAuthenticator {
private final Context context;
@Inject @ClientId String clientId;
@Inject @ClientSecret String clientSecret;
@Inject ApiService apiService;
public AccountAuthenticator(Context context) {
super(context);
@CocoaBeans
CocoaBeans / gdbinit
Created February 21, 2012 21:58
.gdbinit - A user-friendly gdb configuration file
# INSTALL INSTRUCTIONS: save as ~/.gdbinit
#
# DESCRIPTION: A user-friendly gdb configuration file.
#
# REVISION : 7.3 (16/04/2010)
#
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit,
# truthix the cyberpunk, fG!, gln
#
# FEEDBACK: https://www.reverse-engineering.net