Skip to content

Instantly share code, notes, and snippets.

View aldidoanta's full-sized avatar

Aldi Doanta Kurnia aldidoanta

View GitHub Profile
@aldidoanta
aldidoanta / VDFKeyValue.java
Last active August 29, 2015 14:25
This Java function returns value of a key in a VDF string. Using https://developer.valvesoftware.com/wiki/KeyValues as reference. Note that it only supports quoted tokens.
public class VDFKeyValue{
/**
* Gets value of a key that exists in a string with VDF format.<br>
* Note that the key should be enclosed in quotes,<br>
* while the value should be enclosed in quotes or braces ("{}")
* @param key name of the key
* @param str the string where the key and its value exist
* @param isObject search option, true if the value type is an "object" (enclosed in braces)
* @return value of the key; null if the key is not found within the string str

TT-Core Documentation

The core module of Touchten Framework

Getting Started

This module must be installed using Touchten Framework Wizard.

Installation Instructions Using Touchten Framework Wizard

  • Add this .gitignore file to the root folder of your Unity project (the one where you can see [Assets], [Library], and [ProjectSettings] folders).
@aldidoanta
aldidoanta / init.py
Last active March 30, 2017 03:17
These snippets scrape the latest xkcd comic, exporting the comic metadata to .json and .jsonl (JSON Lines or line-delimited JSON) format.
# -*- coding: utf-8 -*-
"""
This script will be executed once, scraping all the previous comic metadata.
"""
from pymongo import MongoClient
import requests
import json
import os
client = MongoClient(os.environ['URL_MONGO'])

Keybase proof

I hereby claim:

  • I am aldidoanta on github.
  • I am aldidoanta (https://keybase.io/aldidoanta) on keybase.
  • I have a public key ASBe6lJA3R2-cwGRTIEBLCRXe19Pmivrko2pKZ3TscquLgo

To claim this, I am signing this object: