Skip to content

Instantly share code, notes, and snippets.

View Pear0's full-sized avatar
🍐

Will Gulian Pear0

🍐
  • Atlanta, GA, USA
View GitHub Profile
@Pear0
Pear0 / update.sh
Last active July 14, 2016 00:53
This script will update various JetBrains IDEs and can be easily expanded to support other JetBrains products. To install or update one of the IDEs, download the tar file from the JetBrains website and run this script, passing the tar file as the first argument. This script supports out-of-the box JetBrains' CLion, Intellij IDEA, PHPStorm, PyCha…
#!/bin/sh
# Copyright 2016 William Gulian
#
# 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
#
@Pear0
Pear0 / ArgParse.java
Last active May 15, 2021 15:29
A basic string tokenizer which splits on spaces and has support for quoting to allow spaces in a single argument, and the ability to escape quotes as well.
import java.util.ArrayList;
import java.util.List;
public class ArgParse {
private class FSM {
private char[] input;
private int index;
private ArrayList<String> tokens;

Keybase proof

I hereby claim:

  • I am Pear0 on github.
  • I am pear0 (https://keybase.io/pear0) on keybase.
  • I have a public key whose fingerprint is 9426 1545 8E5B 1885 A06D F719 5769 594B 2540 904E

To claim this, I am signing this object: