This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.spring; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| import android.view.MotionEvent; | |
| import android.view.View; | |
| import android.widget.LinearLayout; | |
| import androidx.annotation.Nullable; | |
| import androidx.appcompat.app.AppCompatActivity; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "semi": true, | |
| "tabWidth": 2, | |
| "singleQuote": true, | |
| bracketSpacing: true, | |
| arrowParens: "avoid" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function timeSince(date) { | |
| const seconds = Math.floor((new Date() - new Date(date)) / 1000) | |
| const values = {'yıl': 31536000, 'ay': 2592000, 'gün': 86400, 'saat': 3600, 'dakika': 60} | |
| for ( const key in values ) { | |
| const time = Math.floor(seconds / values[key]) | |
| if ( time > 1) { | |
| return `${time} ${key}` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function matrixTransform(matrix, point) { | |
| const {a, b, c, d, e, f} = matrix; | |
| const {x, y} = point; | |
| return { | |
| x: a * x + c * y + e, | |
| y: b * x + d * y + f, | |
| }; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function invert({a, b, c, d, e, f}) { | |
| const n = a * d - b * c; | |
| return { | |
| a: d / n, | |
| b: -b / n, | |
| c: -c / n, | |
| d: a / n, | |
| e: (c * f - d * e) / n, | |
| f: -(a * f - b * e) / n, | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "env": { | |
| "browser": true, | |
| "commonjs": true, | |
| "es6": true | |
| }, | |
| "extends": "eslint:recommended", | |
| "globals": { | |
| "Atomics": "readonly", | |
| "SharedArrayBuffer": "readonly" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "env": { | |
| "browser": true, | |
| "es6": true, | |
| "node": true | |
| }, | |
| "extends": ["eslint:recommended", "plugin:react/recommended"], | |
| "globals": { | |
| "Atomics": "readonly", | |
| "SharedArrayBuffer": "readonly" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "semi": false, | |
| "tabWidth": 2, | |
| "singleQuote": true | |
| } |