Skip to content

Instantly share code, notes, and snippets.

@hungps
hungps / 01-sofle-rev1-layers.svg
Last active April 14, 2025 12:41
Sofle rev1 Vial configuration
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[
{
"name": "Ability Capsule",
"imageurl": "https://img.pokemondb.net/sprites/items/ability-capsule.png",
"category": "Hold items",
"effect": "A capsule that allows a Pokemon with two Abilities to switch between these Abilities when it is used."
},
{
"name": "Ability Urge",
"imageurl": "https://img.pokemondb.net/sprites/items/ability-urge.png",
[
{
"name": "Ability Capsule",
"imageurl": "https://img.pokemondb.net/sprites/items/ability-capsule.png",
"category": "Hold items",
"effect": "A capsule that allows a Pokemon with two Abilities to switch between these Abilities when it is used."
},
{
"name": "Ability Urge",
"imageurl": "https://img.pokemondb.net/sprites/items/ability-urge.png",
[
{
"name": "normal",
"immunes": [
"ghost"
],
"weaknesses": [
"rock",
"steel"
],
[
{
"name": "Bulbasaur",
"id": "#001",
"imageurl": "https://assets.pokemon.com/assets/cms2/img/pokedex/full/001.png",
"xdescription": "Bulbasaur can be seen napping in bright sunlight. There is a seed on its back. By soaking up the sun's rays, the seed grows progressively larger.",
"ydescription": "Bulbasaur can be seen napping in bright sunlight. There is a seed on its back. By soaking up the sun's rays, the seed grows progressively larger.",
"height": "2' 04\"",
"category": "Seed",
"weight": "15.2 lbs",
This file has been truncated, but you can view the full file.
[
{
"id": "001",
"name": "Bulbasaur",
"types": [
"Grass",
"Poison"
],
"genera": "Seed Pokémon",
"image": "https://assets.pokemon.com/assets/cms2/img/pokedex/detail/001.png",
@hungps
hungps / okhttp3.WebviewCookieHandler.java
Last active January 6, 2024 11:39
Cookie jar that handles syncing okhttp cookies with Webview cookie manager
import android.webkit.CookieManager;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import okhttp3.Cookie;
import okhttp3.CookieJar;
import okhttp3.HttpUrl;