Skip to content

Instantly share code, notes, and snippets.

View kh411d's full-sized avatar
☮️
Code for Human

Khalid Aj kh411d

☮️
Code for Human
View GitHub Profile
@kh411d
kh411d / Corona Snippet floating buttons
Last active September 15, 2020 02:03
2 floating buttons of corona information from google and facebook
<!-- CODE BEGIN HERE -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<style>.corona-buttons{position:fixed;width:48px;height:48px;bottom:40px;right:40px;background-color:#6E1B09;color:#fff;border-radius:50px;text-align:center;box-shadow:2px 2px 3px #999}</style>
<a href="https://covid-survey.dataforgood.fb.com/?region=IDN" target="_blank" class="corona-buttons"><i class="material-icons" style="font-size:35px;margin-top:6px;">coronavirus</i></a>
<a href="https://landing.google.com/screener/covid19" target="_blank" class="corona-buttons" style="bottom:102px"><i class="material-icons" style="font-size:35px; margin-top:6px;">fact_check</i></a>
<!-- END -->
void main() {
Car c1 = new Car('E1001');
var c2 = Car.create("kuda");
print(c1.engine);
print(c2.engine);
Sedan s = Sedan();
print(s.getName());
}
@kh411d
kh411d / 5 cara membuat Function 2 kali 3 sama dengan 6, di Dart
Last active August 21, 2020 07:53
5 cara membuat Function 2 kali 3 sama dengan 6, di Dart
void main() {
//cara normal
int multiply_1(int a, int b) {
return a*b;
};
print(multiply_1(2,3));
@kh411d
kh411d / Dart Null-aware object
Created August 21, 2020 06:38
Null aware for null object
class User {
String age;
}
void main() {
var gondrong = new User();
//tiba-tiba si gondrong kabur
gondrong = null;
@kh411d
kh411d / keybase.md
Created December 5, 2017 09:44
keybase

Keybase proof

I hereby claim:

  • I am kh411d on github.
  • I am khalidity (https://keybase.io/khalidity) on keybase.
  • I have a public key ASBo6mtqy5pRG4VVEX9bHb9_lC5tFs69eFsJRLSbNPnG_Ao

To claim this, I am signing this object: