Skip to content

Instantly share code, notes, and snippets.

View rdp77's full-sized avatar
✏️
Think of something

Moh Ravi Dwi Putra rdp77

✏️
Think of something
View GitHub Profile
@rdp77
rdp77 / conditions_and_branching.php
Last active August 11, 2022 04:25
short code if conditions with ternary operator
// ----------------------------------------------------------------
// If Conditions
// ----------------------------------------------------------------
if ($status == 'in review') ProductStatusEmailNotification::dispatch($product, Auth::user());
if ($expr) {
$statement;
} else {
$statement;
@rdp77
rdp77 / nullSafety.php
Last active August 11, 2022 03:39
Null Safety Handle
<?php
$a = null;
// Old Way
if(!$a){
echo "Hello World";
}
else{
echo $a;
}
{
"dart.flutterSdkPath": "C:\\flutter",
"extensions.autoUpdate": false,
"editor.suggestSelection": "first",
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
@rdp77
rdp77 / cloudSettings
Last active May 7, 2020 14:58
VSCode
{"lastUpload":"2020-05-07T14:58:40.106Z","extensionVersion":"v3.4.3"}
### Keybase proof
I hereby claim:
* I am rdp77 on github.
* I am rdp77 (https://keybase.io/rdp77) on keybase.
* I have a public key ASDGyI8suzBUTGOhDv7XDsd0-kc9SSpVGZxvE4Ve8axiUQo
To claim this, I am signing this object: