Skip to content

Instantly share code, notes, and snippets.

@Jun711
Jun711 / phone.html
Created October 3, 2017 21:56
Ion-content being pushed up by keyboard
<ion-header>
<ion-navbar class="show-navbar android-attr" color="primary">
<ion-title>Phone Verificatio</ion-title>
</ion-navbar>
</ion-header>
<ion-content text-center no-bounce class="no-scroll">
<ion-list class="no-scroll">
<ion-toolbar color="secondary">
<button ion-button clear (click)="openCountryList()" color="light">
@Jun711
Jun711 / privacy-policy.txt
Created January 24, 2018 08:07
Privacy Policy
Privacy Policy
Jun Goh built the Axis app as an Ad Supported app. This SERVICE is provided by Jun Goh at no cost and is intended for use as is.
This page is used to inform website visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.
If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Axis unless otherwise defined in this Privacy Policy.
Information Collection and Use
@Jun711
Jun711 / twoSum.java
Last active February 21, 2019 17:30
TestDome TwoSum
import java.util.Map;
import java.util.HashMap;
public class TwoSum {
private static Map<Integer, Integer> numPositions;
public static int[] findTwoSum(int[] list, int sum) {
numPositions = new HashMap<>();
System.out.println("sum: " + sum);
if (list == null || list.length <= 1)
@Jun711
Jun711 / Binary Search Tree
Created February 15, 2018 23:45
TestDome - Binary Search Tree
class Node {
public int value;
public Node left, right;
public Node(int value, Node left, Node right) {
this.value = value;
this.left = left;
this.right = right;
}
}
@Jun711
Jun711 / TrainComposition.java
Created February 16, 2018 00:04
TestDome - Train Composition LinkedList
import java.util.List;
import java.util.LinkedList;
public class TrainComposition {
private LinkedList<Integer> train;
public TrainComposition() {
this.train = new LinkedList<>();
}
@Jun711
Jun711 / Path.java
Created February 16, 2018 00:06
TestDome - Path
import java.util.LinkedList;
import java.util.Arrays;
public class Path {
private String path;
public Path(String path) {
this.path = path;
}
@Jun711
Jun711 / SortedSearch.java
Created February 16, 2018 00:09
TestDome - SortedSearch
public class SortedSearch {
public static int countNumbers(int[] sortedArray, int lessThan) {
if (sortedArray == null || sortedArray.length == 0)
return -1;
int totalCount = sortedArray.length;
if (sortedArray[totalCount - 1] < lessThan)
return totalCount;
@Jun711
Jun711 / FoldersXML.java
Created February 16, 2018 00:54
TestDome - Read XML - Folders
import java.util.Collection;
import java.util.LinkedList;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import org.w3c.dom.Node;
import org.w3c.dom.Element;
import org.xml.sax.InputSource;
import java.io.StringReader;
@Jun711
Jun711 / UserInput.java
Created February 16, 2018 00:56
TestDome - UserInput - Java Class
public class UserInput {
public static class TextInput {
protected StringBuilder inputSB;
public TextInput() {
inputSB = new StringBuilder();
}
public void add(char c) {
@Jun711
Jun711 / Palindrome.java
Last active July 27, 2019 13:32
TestDome - Palindarome
public class Palindrome {
public static boolean isPalindrome(String word) {
if (word.length() <= 1)
return true;
char[] wordArr = word.toLowerCase().toCharArray();
int end = wordArr.length - 1;
int mid = wordArr.length / 2;
for (int i = 0; i < mid; i++) {