Skip to content

Instantly share code, notes, and snippets.

View alamsyahh15's full-sized avatar
🖥️
Work From Home

Muhamad Alam Syah alamsyahh15

🖥️
Work From Home
View GitHub Profile
#include <iostream>
using namespace std;
int main()
{
// deklarasi variabel
int jk;
float berat, tinggi, bmi, broca, meter;
cout << "Program C++ Menghitung Berat Badan Ideal" << endl;
#include <iostream>
#include <string>
#include <vector>
using namespace std;
// Struktur untuk menyimpan data mahasiswa
struct Mahasiswa {
string nama;
float nilaiUTS;
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
using namespace std;
int ordo[5][5];
void masukkan(int a, int b, int c)
{
for (int i = 1; i <= 4; i++)
{
for (int j = 1; j <= 4; j++)
#include <iostream>
#include <string>
#include <vector>
using namespace std;
struct Electronic
{
string code;
string title;
};
#include <iostream>
using namespace std;
string separator()
{
string value = "";
for (int i = 0; i < 10; i++)
{
value = value + "===========";
}
@alamsyahh15
alamsyahh15 / old_version.dart
Created September 6, 2023 04:03
Old Version Function
Future<bool> isOldVersion(BuildContext context) async {
PackageInfo packageInfo = await PackageInfo.fromPlatform();
FirebaseRemoteConfig remoteConfig = FirebaseRemoteConfig.instance;
Map<String, dynamic>? config;
bool retVal = false;
try {
await remoteConfig.setConfigSettings(RemoteConfigSettings(
fetchTimeout: const Duration(seconds: 10),
minimumFetchInterval: Duration.zero,
import 'package:flutter/material.dart';
import 'dart:math' as math;
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
[
{
"id_post": 1,
"title": "title",
"category": {
"id": 1,
"name": "category"
},
"id_provice": null,
"id_city": null,
[
{
"id_post": 1,
"title": "title",
"category": {
"id": 1,
"name": "category"
},
"id_provice": null,
"id_city": null,
{
"id_post": 1,
"title": "title",
"category": {
"id": 1,
"name": "category"
},
"id_provice": null,
"id_city": null,
"id_district": null,