Skip to content

Instantly share code, notes, and snippets.

View LangInteger's full-sized avatar
💭
500

Lang Liu LangInteger

💭
500
View GitHub Profile
public class ParallelLimit {
private static class Parallelizer<T> {
private final LinkedList<Supplier<Future<T>>> pendingTasks;
private final int limit;
private final int totalTasks;
private int concurrency;
private final List<T> completedTasks = new ArrayList<>();
@fearblackcat
fearblackcat / proxy_for_terminal.md
Last active July 9, 2025 00:20
Set proxy for terminal on mac

Shadowsocks Proxy

apt-get install python-pip
pip install shadowsocks

sudo ssserver -p 443 -k password -m aes-256-cfb --user nobody -d start
@machinekoder
machinekoder / Google Play Api - Apk Upload.md
Last active June 6, 2025 18:28 — forked from martarodriguezm/Google Play Api - Apk Upload.md
This python script uploads an apk file into Google Play Store using Android Play Publisher API

In Google Developer Console inside your app project, on the Credentials section, you must create a new "Service Account" "Client ID", if you have not already. And download the p12 file. You need the service account key file, generated in the Google APIs Console into the same directory and rename it to key.p12.

On Google Play Developer Console you have to give permissions to "[email protected]" for uploading apks.

Installation

Download Google APIs Client Library for Python (google-api-python-client): https://code.google.com/p/google-api-python-client/ or use pip:

$ pip install google-api-python-client
@mickdekkers
mickdekkers / SnapshotCamera.cs
Last active December 4, 2024 13:46
Take snapshot images of Prefabs and GameObjects in Unity using Render Textures
using UnityEditor;
using UnityEngine;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
// Object rendering code based on Dave Carlile's "Create a GameObject Image Using Render Textures" post
// Link: http://crappycoding.com/2014/12/create-gameobject-image-using-render-textures/
@criography
criography / nu.sh
Last active September 6, 2021 13:44
tiny shell script for creating new project/client folder structure
#!/bin/sh
# Help:
# ------
# nu help
################################## HELPERS ##################################
@asafary
asafary / Person.java
Last active April 30, 2024 11:36
Example of how to read a Pojo from a CSV file using Jackson JSON Processor
package org.asafary.csv;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({ "name", "surname", "shoesize", "gender" })
public class Person {
public String name;
public String surname;
public int shoesize;