Skip to content

Instantly share code, notes, and snippets.

@Jun711
Jun711 / all_aws_lambda_modules_python.md
Created August 1, 2019 18:30 — 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

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 March 7, 2018 00:01
testApp privacy policy
<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 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++) {
@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 / 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 / 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 / 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 / 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 / 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 / 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)