Skip to content

Instantly share code, notes, and snippets.

View GokselKUCUKSAHIN's full-sized avatar
📚
Do you know there's a library for that!

Göksel Küçükşahin GokselKUCUKSAHIN

📚
Do you know there's a library for that!
View GitHub Profile
@GokselKUCUKSAHIN
GokselKUCUKSAHIN / .npmignore
Created February 18, 2022 08:16
Default .npmignore file
res/
ts/
js/
tsconfig.json
test/
.idea/
package-lock.json
@GokselKUCUKSAHIN
GokselKUCUKSAHIN / .gitignore
Created February 18, 2022 08:15
Boilerplate .gitignore file.
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
@GokselKUCUKSAHIN
GokselKUCUKSAHIN / tsconfig.json
Created February 18, 2022 08:11
My Boilerplate TypeScript Config JSON
{
"compilerOptions": {
"module": "commonjs",
"target": "ESNext",
"sourceMap": false, // default true
"outDir": "./js",
"rootDir": "./ts",
"moduleResolution": "node",
"removeComments": true,
"declaration": true // default false
@GokselKUCUKSAHIN
GokselKUCUKSAHIN / npm-update.sh
Created January 31, 2022 06:50
Update and Clean package.json
ncu -u && npm i && rm -rf node_modules
@GokselKUCUKSAHIN
GokselKUCUKSAHIN / mixin.ts
Created January 6, 2022 19:58
TypeScript Multiple Inheritance using Mixins.
import {using, Disposable} from "using-statement";
import {Mixin} from "ts-mixer";
import {EventEmitter} from "events";
class Walker {
walk() {
console.log("walking...");
}
}
@GokselKUCUKSAHIN
GokselKUCUKSAHIN / BaseConverter.c
Created March 26, 2018 05:16
Some C Programs Written by Me
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
void Binary(void);
void Octal(void);
void Hexadecimal(void);
void BinaryDecimal(void);
void OctalDecimal(void);
@GokselKUCUKSAHIN
GokselKUCUKSAHIN / Program.cs
Created March 26, 2018 04:01
C# Snake Game Clone
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Snake_2
{
class Program
{
@GokselKUCUKSAHIN
GokselKUCUKSAHIN / Project_31.c
Created March 25, 2018 10:49
C-Programlama I (Project_31-40)
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char cumle[] = "Merhaba Dunya";
int say=0;
int i;
for (i=0; cumle[i] != '\0';i++)
@GokselKUCUKSAHIN
GokselKUCUKSAHIN / Project_21.c
Created March 25, 2018 10:44
C-Programlama I (Project 21-30)
#include <stdio.h>
#include <stdlib.h>
//Dörtgen çizme yazılımı
int main(void)
{
int x,y; //kordinat değişkenlerim
printf("X ekseni -> "); scanf("%d",&x); //X kordinatı
printf("Y ekseni -> "); scanf("%d",&y); //Y kordinatı
printf("x=%d, y=%d\n\n",x,y); //aldığımız değerler
int i,j;
@GokselKUCUKSAHIN
GokselKUCUKSAHIN / Project_11.c
Created November 13, 2017 22:28
C-Programlama I (Project_10-20)
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int N,i=1,f=1;
printf("Kac faktoriyel hesaplancak -> "); scanf("%d",&N);
while (i<=N)
f*=i++;
printf("%d!=%d faktoriyel\n",N,f);