Skip to content

Instantly share code, notes, and snippets.

View hurkanakbiyik's full-sized avatar
🏠
Working from home

Hürkan AKBIYIK hurkanakbiyik

🏠
Working from home
View GitHub Profile
@hurkanakbiyik
hurkanakbiyik / fileSend.spec.ts
Created April 8, 2024 19:38
backup_application
import fileSend from './fileSend';
describe('FileSend', () => {
describe('createHashFromFilePath', () => {
it('should return a hash with 64 chars', async () => {
const myFilePath = 'fileSend.ts';
const myHash = fileSend.createHashFromFilePath(myFilePath);
expect(myHash.length).toBe(64);
});
});
const data = [
{
name: 'A',
description: 'This is a description of A',
parentId: '',
},
{
name: 'B',
description: 'This is a description of B',
parent: 'A',
const TAB_SELECTOR = '.js-profile-tab';
const ACTIVE_CLASS = 'is-active';
<body>
<div js-hook-profile-tab>
<div className="js-profile-tab" />
</div>
<div js-hook-profile-tab>
<div className="js-profile-tab" />
</div>
{
"data": [
{
"name": "A",
"description": "This is a description of A",
"parentId": ""
},
{
"name": "B",
"description": "This is a description of B",
@hurkanakbiyik
hurkanakbiyik / kurumDegisikligi.route.js
Created July 25, 2018 09:02
example routes, tests and validaitons
import express from 'express';
import validate from 'express-validation';
import kurumDegisikligiValidation from '../kurumDegisikligi/kurumDegisikligi.validation';
import KurumDegisikligiService from '../../services/kurumDegisikligi/kurumDegisikligi.service';
const router = express.Router(); // eslint-disable-line new-cap
router.route('/')
/** GET /api/kurumDegisikligi - Get list of kurumlar */
.get(KurumDegisikligiService.list)
@hurkanakbiyik
hurkanakbiyik / creator-utils
Created June 29, 2018 12:33
datalist to links and edges with option
/**
*
* @param _dataList
* @param nodeOptions
* @returns {Array}
*/
function getNodes(_dataList, nodeOptions) {
var resultData = [];
for (var k = 0; k < _dataList.length; k++) {
@hurkanakbiyik
hurkanakbiyik / Matrix.md
Created May 27, 2018 18:14 — forked from nadavrot/Matrix.md
Efficient matrix multiplication

High-Performance Matrix Multiplication

This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).

Intro

Matrix multiplication is a mathematical operation that defines the product of