Skip to content

Instantly share code, notes, and snippets.

@Jun711
Jun711 / all_aws_lambda_modules_python.md
Created Aug 1, 2019 — forked from gene1wood/all_aws_lambda_modules_python.md
AWS Lambda function to list all available Python modules for Python 2.7 3.6 and 3.7
View all_aws_lambda_modules_python.md

This gist contains lists of modules available in

in AWS Lambda.

It also contains the code to run in Lambda to generate these lists. In addition there is a less_versbose module in the code that you can call to get a list of the top level modules installed and the version of those modules (if they contain a version

@Jun711
Jun711 / privacy-policy.html
Created Mar 7, 2018
testApp privacy policy
View privacy-policy.html
<p>This Privacy Policy governs the manner in which testApp collects, uses, maintains and discloses information collected from users (each, a "User") of the https://rawgit.com/Jun711/amazon-cognito-auth-js/social-login/sample/index.html website ("Site").</p>
<h3>Personal identification information</h3>
<p>We may collect personal identification information from Users in a variety of ways in connection with activities, services, features or resources we make available on our Site. Users may visit our Site anonymously. We will collect personal identification information from Users only if they voluntarily submit such information to us. Users can always refuse to supply personally identification information, except that it may prevent them from engaging in certain Site related activities.</p>
<h3>Non-personal identification information</h3>
<p>We may collect non-personal identification information about Users whenever they interact with our Site. Non-personal identification information may include the browser na
@Jun711
Jun711 / Palindrome.java
Last active Jul 27, 2019
TestDome - Palindarome
View Palindrome.java
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++) {
@Jun711
Jun711 / UserInput.java
Created Feb 16, 2018
TestDome - UserInput - Java Class
View UserInput.java
public class UserInput {
public static class TextInput {
protected StringBuilder inputSB;
public TextInput() {
inputSB = new StringBuilder();
}
public void add(char c) {
@Jun711
Jun711 / FoldersXML.java
Created Feb 16, 2018
TestDome - Read XML - Folders
View FoldersXML.java
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 / SortedSearch.java
Created Feb 16, 2018
TestDome - SortedSearch
View SortedSearch.java
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 / Path.java
Created Feb 16, 2018
TestDome - Path
View Path.java
import java.util.LinkedList;
import java.util.Arrays;
public class Path {
private String path;
public Path(String path) {
this.path = path;
}
@Jun711
Jun711 / TrainComposition.java
Created Feb 16, 2018
TestDome - Train Composition LinkedList
View TrainComposition.java
import java.util.List;
import java.util.LinkedList;
public class TrainComposition {
private LinkedList<Integer> train;
public TrainComposition() {
this.train = new LinkedList<>();
}
@Jun711
Jun711 / Binary Search Tree
Created Feb 15, 2018
TestDome - Binary Search Tree
View 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 / twoSum.java
Last active Feb 21, 2019
TestDome TwoSum
View twoSum.java
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)