Skip to content

Instantly share code, notes, and snippets.

View emreavcilar's full-sized avatar
:octocat:
Working from home.

emre avcılar emreavcilar

:octocat:
Working from home.
View GitHub Profile
@emreavcilar
emreavcilar / fizzbuzz.js
Created August 17, 2021 21:59
javascript that solves the famous FizzBuzz coding challenge with one line of code.
for(i=0;++i<101;console.log(i%5?f||i:f+'Buzz'))f=i%3?'':'Fizz'
@emreavcilar
emreavcilar / !a.hooks.js
Last active September 2, 2022 06:41
useful react hooks
/*
Useful react hooks
What are react hooks ?
Hooks are the new feature introduced in the React 16.8 version. It allows you to use
state and other React features without writing a class.
Hooks are the functionswhich "hook into" React state and lifecycle features from function components.
@emreavcilar
emreavcilar / .eslintrc.json
Created August 27, 2021 07:58
eslint configuration
{
"extends": "standard",
"parserOptions": {
"ecmaVersion": 5
},
"rules": {
"indent": ["error", 2, {
"ArrayExpression": 1,
"ObjectExpression": 1,
"VariableDeclarator": { "var": 2, "let": 2, "const": 3 }
@emreavcilar
emreavcilar / track.txt
Created October 20, 2021 18:45
Use an Error Monitoring & Tracking ToolError Monitoring & Tracking tools are a set of instruments to proactively find, triage and fix errors in your app. Why it's so important to use them? They: - remove the guess-work from diagnosing issues - provide insight into the scale that any given error is having on your user base - avoid a poor digital …
Error Monitoring & Tracking tools are a set of instruments to proactively find, triage and fix errors in your app.
Why it's so important to use them? They:
- remove the guess-work from diagnosing issues
- provide insight into the scale that any given error is having on your user base
- avoid a poor digital experience for your users
These are the best Error Monitoring & Tracking Tools:
1. Sentry (my choice)
@emreavcilar
emreavcilar / brainAI.js
Created November 5, 2021 19:15
javascript ai
/*
Smallest #javascript code that uses #artificialintelligence
to create an #autocomplete bot for a chat app using #brainjs.
Visit their website at brain dot js dot org.
*/
// provide training data
const data = [
@emreavcilar
emreavcilar / !a.challanges.js
Last active December 12, 2022 08:32
what is the output? #challange
/*
js challanges
*/
@emreavcilar
emreavcilar / events.js
Created November 14, 2021 18:35
events is js
// MOUSE
onclick, oncontextmenu, ondblclick, onmousedown, onmouseenter,
onmouseleave, onmousemove, onmouseover, onmouseout, onmouseup
// KEYBOARD
onkeydown, onkeypress, onkeyup
//FRAME
onabort, onbeforeunload, onerror, onhashchange, onload, onpagehide,
onpageshow, onresize, onscroll
@emreavcilar
emreavcilar / !a.css
Last active October 13, 2023 08:54
All kind of css tricks, css methods, html tags, html ticks new features etc.
/*
All kind of css tricks, css methods, html tags, html ticks new features etc.
*/
@emreavcilar
emreavcilar / !a.math.js
Last active December 17, 2021 20:37
all kind of math functions
/*
all kind of math functions
*/
@emreavcilar
emreavcilar / !a.array.js
Last active October 18, 2022 22:10
all kind.of array functions
/* all kind of array functions*/