Skip to content

Instantly share code, notes, and snippets.

🐠

Adem ilter ademilter

🐠
Block or report user

Report or block ademilter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ademilter
ademilter / gist:2933687787bde4e8772d263a0d3aa47e
Last active Aug 11, 2019
css hamburger menu animation like apple
View gist:2933687787bde4e8772d263a0d3aa47e
.mobile-nav {
--width: 28px;
--height: 12px;
--border: 2px;
position: relative;
margin-left: auto;
cursor: pointer;
width: 40px;
height: 40px;
color: #000;
@ademilter
ademilter / webpack.junk.js
Created Aug 7, 2019
webpack olmayan projelerde webstorm için alias path tanımlamak
View webpack.junk.js
// webpack.junk.js
const path = require('path')
module.exports = {
resolve: {
alias: {
'#root': path.resolve(__dirname, './'),
'#src': path.resolve(__dirname, './src'),
'#styles': path.resolve(__dirname, './src/styles')
}
View api.http
### Assets
GET {{api}}/asset/
Authorization: Bearer {{token}}
### Asset name change
POST {{api}}/asset/3
Content-Type: application/json
{
"id": 999,
"value": "content"
@ademilter
ademilter / index.md
Created Jul 20, 2019
mobx for react-native
View index.md

yarn add mobx mobx-react

@ademilter
ademilter / Close.vue
Created May 23, 2019 — forked from SinanMtl/Close.vue
Vue Icon Generate as Component
View Close.vue
// assets/icons/Close.vue
<template>
<svg class="icon" xmlns="http://www.w3.org/2000/svg" :width='opts.width' :height='opts.height' viewBox="0 0 29 32">
<path :fill="opts.color" d="M27.507 7.418l-4.525-4.525-9.050 9.050-9.053-9.050-4.525 4.525 9.050 9.050-9.050 9.053 4.525 4.525 9.053-9.050 9.050 9.050 4.525-4.525-9.050-9.053z"></path>
</svg>
</template>
<script>
import icon from '@/mixins/icon'
@ademilter
ademilter / oneliners.js
Created Apr 1, 2019 — forked from mikowl/oneliners.js
👑 Awesome one-liners you might find useful while coding.
View oneliners.js
// By @coderitual
// https://twitter.com/coderitual/status/1112297299307384833
// Remove any duplicates from an array of primitives.
const unique = [...new Set(arr)]
// Sleep in async functions. Use: await sleep(2000).
const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms)));
// Type this in your code to break chrome debugger in that line.
@ademilter
ademilter / addons.js
Last active Mar 31, 2019
storybook 5 config files for vue project
View addons.js
// .storybook/addons.js
import '@storybook/addon-knobs/register'
import '@storybook/addon-a11y/register'
import '@storybook/addon-actions/register'
import '@storybook/addon-links/register'
@ademilter
ademilter / run.bash
Created Mar 29, 2019
How to git mv on Mac Case-Sensitively
View run.bash
git config core.ignorecase false
@ademilter
ademilter / .storybook
Last active Aug 14, 2019
postcss config for storybook
View .storybook
- webpack.config.js
- postcss.config.js
- config.js
- addons.js
@ademilter
ademilter / gist:4e1c5525a14d9e7e09753bce012797fa
Last active Apr 23, 2018
chrome network filter regex - browser-sync
You can’t perform that action at this time.