This file contains 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
Anatol Belski | |
Dmitry Stogov | |
Xinchen Hui | |
Nikita Popov | |
Bob Weinand | |
Andrea Faulds | |
Kalle Sommer | |
Christoph M. | |
Stanislav Malyshev | |
Jakub Zelenka |
This file contains 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 up1.demo.api; | |
import static spark.Spark.get; | |
public class APIServer { | |
public static void main(String[] args) { | |
get("/", (req, res) -> "Hello World"); | |
} |
This file contains 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
<?php | |
define('ALLOWED_IMAGE_EXTENSIONS', ['jpg', 'jpeg', 'gif', 'png']); | |
var_dump(ALLOWED_IMAGE_EXTENSIONS); | |
?> |
This file contains 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
public interface BlogServiceAPI { | |
void getAllBlogs(); | |
void getBlog(); | |
} |
This file contains 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
tasks.matching {it instanceof Test}.all { | |
testLogging.events = ["failed", "passed", "skipped"] | |
} |
This file contains 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
Feature: Try to create automated test | |
Scenario: As a poor user I can log into app | |
When ทำการ login เข้าใช้งาน | |
And กรอกข้อมูลรายได้ | |
And กรอกข้อมูลลดหย่อน | |
Then ข้อมูลต่าง ๆ แสดงในหน้าสรุป | |
This file contains 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
*** Settings *** | |
Library Selenium2Library | |
#Test Teardown Close Browser | |
*** Testcases *** | |
Add product to cart | |
Open direct2shop | |
Choose product A | |
Add to cart | |
Login |
This file contains 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
Results of running this script: https://gist.github.com/jabbalaci/398429347c96e98aba88 | |
Views Ups Downs Title (Speakers) | |
9,810 166 3 Keynote - Jacob Kaplan-Moss - Pycon 2015 (Jacob Kaplan-Moss) | |
7,044 64 0 Type Hints - Guido van Rossum - PyCon 2015 (Guido van Rossum) | |
4,742 121 0 David Beazley - Python Concurrency From the Ground Up: LIVE! - PyCon 2015 (David Beazley) | |
4,684 66 3 Keynote - Guido van Rossum - PyCon 2015 (Guido van Rossum) | |
4,272 78 1 Dan Callahan - My Python's a little Rust-y - PyCon 2015 (Dan Callahan) | |
2,694 34 0 How to build a brain with Python (Trevor Bekolay) | |
2,391 29 0 Andrew T. Baker - Demystifying Docker - PyCon 2015 (Andrew T. Baker) |
This file contains 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
public class BonusCalculator { | |
public double getBonus(Employee employee) { | |
if( employee.department == Department.IT ) { | |
if(employee.year >= 5) { | |
return 0.5 * employee.salary; | |
} | |
return 0; | |
} else { | |
return 1000 + 500 * employee.salary; |
This file contains 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
apply plugin: 'com.android.library' | |
apply plugin: 'com.jfrog.artifactory' | |
apply plugin: 'maven-publish' | |
def packageName = 'codeinputlib' | |
def libraryVersion = '1.0.0' | |
buildscript { | |
repositories { | |
jcenter() |