-
As a superuser, go to /etc/yum.repos.d
cd /etc/yum.repos.d
-
Download the repo file
wget http://s3tools.org/repo/RHEL_6/s3tools.repo
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
class Person { | |
String? name; | |
int? age; | |
//// adding {} allows us to use named arguments | |
//Shorthand we can use the this in the constructor to auto assign | |
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
class Person { | |
String? name; | |
int? age; | |
//// adding {} allows us to use named arguments | |
//@required does not work in plain dart | |
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
class Person { | |
String? name; | |
int? age; | |
//// adding {} allows us to use named arguments | |
Person({String? name, int? age}){ | |
this.name = name; | |
this.age = age; |
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
class Person { | |
String? name; | |
int? age; | |
Person(String name, int age){ | |
this.name = name; | |
this.age = age; | |
} |
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
class Person { | |
String name='Randy'; | |
int age = 30; | |
} | |
int addNumbers(int num1, int num2) { | |
return num1 + num2; | |
} |
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
addNumbers(num1,num2){ | |
return num1+ num2; | |
} | |
void main() { | |
// for (int i = 0; i < 5; i++) { | |
// print('hello ${i + 1}'); | |
// } | |
addNumbers(1,23); | |
} |
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 | |
// Note: $this->server is a "logged in" PHRETS $session | |
public function getLookupValues($resourceName, $className) | |
{ | |
$results = array(); | |
// Get Table Metadata for this resource/class | |
$tableMeta = $this->server->GetTableMetadata($resourceName, $className); |
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
<cfscript> | |
/* Based on the passwordCheck tag version by Scott Stroz | |
https://cflib.org/udf/passwordCheck | |
Handy Dandy character class cheat sheet | |
https://www.petefreitag.com/cheatsheets/regex/character-classes/ | |
*/ | |
function passwordCheck(required string password, string CharOpts="alpha,digit,punct,lower,upper", numeric typesRequired="5",numeric length='8' ){ |
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
transaction { | |
try { | |
// code to run | |
transaction action="commit"; | |
} | |
catch(any e) { | |
transaction action="rollback"; | |
} | |
} | |
NewerOlder