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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset='utf-8' /> | |
<meta http-equiv='X-UA-Compatible' content='IE=edge' /> | |
<link |
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
export function init() { | |
const cf = initialize('9bc8ccb3-f290-4767-87d7-f7aa70efe497', { | |
identifier: 'chris_prod', | |
}); | |
cf.on(Event.READY, (flags) => { | |
console.log('*** READY: List of flags -', flags); | |
}); |
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
body { | |
font-family: sans-serif; | |
text-align: center; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
text-align: center; | |
min-height: 100vh; | |
} |
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
.contact-card { | |
display: flex; | |
padding: 10px; | |
color: #ffffff; | |
background-color: rgb(42, 84, 104); | |
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; | |
box-shadow: 10px 10px 25px -16px rgba(0, 0, 0, 0.75); | |
border-radius: 10px; | |
max-width: 500px; | |
max-height: 125px; |
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
body { | |
font-family: sans-serif; | |
text-align: center; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
text-align: center; | |
min-height: 100vh; | |
} |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>My super awesome number app</title> | |
<meta name="description" content="The HTML5 Herald"> | |
<meta name="author" content="SitePoint"> |
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
function addNumbers(number1, number2) | |
{ | |
const result = number1 + number2; | |
const output = 'The result is ' + result; | |
console.log(output); | |
} | |
// this function substracts 2 numbers | |
function substractNumbers(number1, number2){ | |
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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.3.RELEASE") | |
} | |
} | |
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
String sqlQuery = "delete from canned_message where msg_no in (:msgNos)"; | |
List<Integer> params = <array list of number>; | |
Map namedParameters = Collections.singletonMap("msgNos", params); | |
int rows = smsdbJdbcTemplate.update(sqlQuery, namedParameters); |
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
override fun onBindViewHolder(holder: MyViewHolder, position: Int) { | |
val category = categoryList[position] | |
// Set height of cardview based on screen width | |
val displayMetrics = context.resources.displayMetrics | |
val finalHeight = displayMetrics.widthPixels / 2 | |
holder.cardView.layoutParams.height = finalHeight | |
holder.categoryName.text = category.oc | |
holder.categoryPhoto.loadUrl(category.icon) |
NewerOlder