Skip to content

Instantly share code, notes, and snippets.

Kamarudin k4m4r82

Block or report user

Report or block k4m4r82

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@k4m4r82
k4m4r82 / app.config.json
Created Aug 2, 2019
Contoh file konfigurasi aplikasi menggunakan format JSON
View app.config.json
{
"server": "192.168.1.1",
"database": "DbOpenRetail",
"port": 5432
}
@k4m4r82
k4m4r82 / app.config.xml
Created Aug 2, 2019
Contoh file konfigurasi aplikasi menggunakan format XML
View app.config.xml
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="server" value="192.168.1.1" />
<add key="database" value="DbOpenRetail" />
<add key="port" value="5432" />
</appSettings>
</configuration>
@k4m4r82
k4m4r82 / app.config.ini
Created Aug 2, 2019
Contoh file konfigurasi aplikasi menggunakan format INI
View app.config.ini
[database]
server=192.168.1.1
database=DbOpenRetail
port=5432
@k4m4r82
k4m4r82 / FrmMahasiswa.cs
Created Oct 3, 2018
lab 03 - FrmMahasiswa.cs
View FrmMahasiswa.cs
public partial class FrmMahasiswa : Form
{
private IList<Mahasiswa> listOfMahasiswa = new List<Mahasiswa>();
private FrmEntryMahasiswa frmEntry;
public FrmMahasiswa()
{
InitializeComponent();
}
@k4m4r82
k4m4r82 / FrmEntryMahasiswa.cs
Created Oct 3, 2018
lab 03 - FrmEntryMahasiswa
View FrmEntryMahasiswa.cs
public partial class FrmEntryMahasiswa : Form
{
/// <summary>
/// Deklarasi tipe data untuk event menggunakan delegate
/// </summary>
/// <param name="obj"></param>
public delegate void SaveUpdateEventHandler(Mahasiswa obj);
/// <summary>
/// Deklarasi event OnSave. Event ini di panggil ketika terjadi proses input data baru
View setup.iss
#define AppName 'Northwind App'
#define AppDir 'Northwind'
#define BuildDir 'src\Northwind.ConsoleApp\bin\Debug'
#define AppExeName 'Northwind.ConsoleApp.exe'
#define AppVendorName 'KR Software'
#define AppCopyright 'Copyright © 2017. ' + AppVendorName
#define AppURL 'http://coding4ever.net/'
#define AppVersion GetFileVersion('src\Northwind.ConsoleApp\bin\Debug\' + AppExeName)
[Setup]
View .gitlab-ci.yml
variables:
MsBuildPath: "C:\\Program Files (x86)\\MSBuild\\12.0\\Bin\\MSBuild.exe"
NugetPath: "C:\\GitLab-Runner\\NuGet\\nuget.exe"
InnoSetupPath: "C:\\Program Files (x86)\\Inno Setup 5\\ISCC.exe"
SolutionName: "Northwind.sln"
stages: # tipe dari job
- restore # stage untuk merestore paket nuget
- build # stage untuk proses build
- setup # stage untuk proses eksekusi skrip inno setup
View .gitlab-ci.yml
variables:
MsBuildPath: "C:\\Program Files (x86)\\MSBuild\\12.0\\Bin\\MSBuild.exe"
NugetPath: "C:\\GitLab-Runner\\NuGet\\nuget.exe"
SolutionName: "Northwind.sln"
stages: # tipe dari job
- restore # stage untuk merestore paket nuget
- build # stage untuk proses build
cache:
View SMSGatewayTask.cs
using log4net;
using WindowsServiceGammu.Model;
using WindowsServiceGammu.Model.Gammu;
using WindowsServiceGammu.Repository;
namespace WindowsServiceGammu.Service
{
public class SMSGatewayTask : TaskBase
{
private ILog _log;
View MainService.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using log4net;
You can’t perform that action at this time.