This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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. " | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' ''') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| public class PhoneNumberWithPattern { | |
| private String regexValidSymbol = "[\\+|\\(|\\)|\\-\\.\\s]"; | |
| private String result = ""; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SecondViewController: UIViewController,UITextFieldDelegate { | |
| @IBOutlet weak var fieldA: UITextField! | |
| @IBOutlet weak var fieldB: UITextField! | |
| @IBOutlet weak var theLabel: UILabel! | |
| @IBAction func click(_ sender: AnyObject) { | |
NewerOlder