Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am gyles on github.
* I am gyles (https://keybase.io/gyles) on keybase.
* I have a public key ASAmk0OHuBpXdlUvLHBYvqrzfRiU50VmYJaXnirvpTEbCQo
To claim this, I am signing this object:
@gyles
gyles / Wiicharge Privacy Policy
Created January 24, 2022 02:14
Wiicharge Privacy Policy
<h2>Privacy Policy of <span class="website_url">www.wiicharge.com</span></h2>
<p>At <span class="website_name">wiicharge</span>, we collect and manage user data according to the following Privacy Policy.</p>
<h3>Data Collected</h3>
<p>We collect information you provide directly to us. For example, we collect information when you create an account, subscribe, participate in any interactive features of our services, fill out a form, request customer support or otherwise communicate with us. The types of information we may collect include your name, email address, postal address, credit card information and other contact or identifying information you choose to provide.</p>
<p>We collect anonymous data from every visitor of the Website to monitor traffic and fix bugs. For example, we collect information like web requests, the data sent in response to such requests, the Internet Protocol address, the browser type, the browser language, and a timestamp for the request.</p>
@gyles
gyles / README.md
Last active October 4, 2019 21:03
Github Icons and Badges
@gyles
gyles / ComparisonCompactor.java
Created June 23, 2013 03:59
The refactored ComparisonCompactor source code as shown in Chapter 15 of the Clean Code book
package demo.refactored;
import junit.framework.Assert;
@SuppressWarnings("deprecation")
public class ComparisonCompactor {
private static final String ELLIPSIS = "...";
private static final String DELTA_END = "]";
private static final String DELTA_START = "[";
private int contextLength;
@gyles
gyles / ComparisonCompactor.java
Created June 23, 2013 03:58
A original ComparisonCompactor source code as shown in Chapter 15 of the Clean Code book
package demo.original;
import junit.framework.Assert;
@SuppressWarnings("deprecation")
public class ComparisonCompactor {
private static final String ELLIPSIS = "...";
private static final String DELTA_END = "]";
private static final String DELTA_START = "[";
@gyles
gyles / ComparisonCompactor.java
Created June 23, 2013 03:55
The defactored ComparisonCompactor code as shown in Chapter 15 of the Clean Code book
package demo.defactored;
import junit.framework.Assert;
@SuppressWarnings("deprecation")
public class ComparisonCompactor {
private int ctxt;
private String s1;
private String s2;
private int pfx;
@gyles
gyles / ComparisonCompactorTest.java
Last active December 18, 2015 20:59
Unit test for ComparisonCompactor as shown in Chapter 15 of the Clean Code book
package demo;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import demo.refactored.ComparisonCompactor;
public class ComparisonCompactorTest {