Skip to content

Instantly share code, notes, and snippets.

@hatoto
hatoto / resume.json
Last active February 24, 2023 04:05
{
"basics": {
"name": "Chun-Yi Pan",
"label": "software developer",
"picture": "",
"email": "marty.pan@ibm.com",
"phone": "(886)920-920-506",
"website": "https://hatoto.github.io/",
"summary": "Experience in Java Web Application programming. Have expertise and experience in all phases of project life cycle namely analysis, design, and coding, testing and implementation phases. Cohesive team worker, having strong analytical, problem solving and interpersonal skills. "
},
@hatoto
hatoto / Rock-Paper-Scissors.py
Last active July 24, 2020 05:55
JetBrains Academy Python Project
import random
def get_record(user):
rate_f = open('rating.txt', 'r')
recs = rate_f.readlines()
rec = None
for r in recs:
name = r.split()[0]
if name == user:
rec = int(r.split()[1])
@hatoto
hatoto / jetbrain_python_banking.py
Created July 21, 2020 08:04
jetbrain academy project
import random
import sqlite3
conn = sqlite3.connect('card.s3db')
c = conn.cursor()
#get the count of tables with the name
c.execute(''' SELECT count(name) FROM sqlite_master WHERE type='table' AND name='card' ''')
@hatoto
hatoto / card-match-game-vue.markdown
Last active July 23, 2019 03:03
card match game vue
@hatoto
hatoto / PhoneNumberWithPattern.java
Created August 11, 2017 10:29
PhoneNumber Check
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class PhoneNumberWithPattern {
private String regexValidSymbol = "[\\+|\\(|\\)|\\-\\.\\s]";
private String result = "";
package com.mochi.test.function;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.stream.Collectors;
@hatoto
hatoto / JavaPredicate.java
Created July 6, 2017 10:42
java predicate example
package com.mochi.test.predict;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.function.Predicate;
import java.util.stream.Collectors;
public class Java8TesterPredicate {
@hatoto
hatoto / streamFindFirst.java
Created July 3, 2017 09:04
find object in a list with stream and findfirst
package hatoto.test;
import org.apache.commons.lang3.StringUtils;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
public class PlayStreamFindFirst {
package hatoto.test;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import org.apache.commons.collections.CollectionUtils;
class SecondViewController: UIViewController,UITextFieldDelegate {
@IBOutlet weak var fieldA: UITextField!
@IBOutlet weak var fieldB: UITextField!
@IBOutlet weak var theLabel: UILabel!
@IBAction func click(_ sender: AnyObject) {