Skip to content

Instantly share code, notes, and snippets.

View ierhalim's full-sized avatar

İlker ERHALIM ierhalim

  • Hugo Boss
  • Turkey/İzmir
View GitHub Profile
@ierhalim
ierhalim / Program.cs
Created January 1, 2021 12:32
Y604 Paralel programlama
using System;
using System.Threading;
using System.Threading.Tasks;
namespace BarrierExample
{
class Program
{
static void Main(string[] args)
{
@ierhalim
ierhalim / Program.cs
Created January 1, 2021 13:05
Y7O1 Paralel programlama
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
namespace ParallelLoopVsSyncLoop
{
class Program
{
static long SyncLoop()
@ierhalim
ierhalim / Program.cs
Created January 1, 2021 13:24
Y7O2 Paralel programlama
using System;
using System.Threading.Tasks;
namespace ParallelLoopBreakAndStop
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Loop1");
@ierhalim
ierhalim / Program.cs
Last active January 1, 2021 14:46
Y7O3 Paralel programlama
using System;
using System.Collections.Generic;
using System.Linq;
namespace ParallelLinQExample
{
class Program
{
static void Main(string[] args)
{
@ierhalim
ierhalim / ExampleController.cs
Created January 1, 2021 14:47
Y8O1 Paralel programlama
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace AsyncAwaitExample.Controllers
{
public class ExampleController : ControllerBase
@ierhalim
ierhalim / Employee.model.ts
Last active August 1, 2021 10:59
PrimeNG Dropdown Usage
export interface EmployeeModel{
id: number;
firstName: string;
lastName: string;
}
@ierhalim
ierhalim / Employee.model.ts
Last active August 1, 2021 11:27
PrimeNG Dropdown With Service
export interface EmployeeModel{
id: number;
firstName: string;
lastName: string;
}
@ierhalim
ierhalim / app.component.html
Last active July 25, 2021 07:22
PrimeNG Employee dropdown.
<p-dropdown appEmployeeDropdown></p-dropdown>
@ierhalim
ierhalim / tablebasicdemo.html
Created July 27, 2021 18:20
PrimeNG Table Template API
<p-table [value]="products">
<ng-template pTemplate="header">
<tr>
<th>Code</th>
<th>Name</th>
<th>Category</th>
<th>Quantity</th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-product>
@ierhalim
ierhalim / app.component.ts
Last active August 1, 2021 14:15
Basic NgTemplate
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<app-my-list
[data]="employeeList"
[itemTemplate]="myTemplate"
[emptyTemplate]="noDataTemplate"
>