Skip to content

Instantly share code, notes, and snippets.

atilkan atilkan

  • London
Block or report user

Report or block atilkan

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
View gist:986cdc48191f7b812c7549596a6a3b9b
[ +272 ms] executing: [/Users/ati/flutter/] git log -n 1 --pretty=format:%H
[ +206 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ +2 ms] 7a4c33425ddd78c54aba07d86f3f9a4a0051769b
[ +2 ms] executing: [/Users/ati/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +84 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ +1 ms] v1.5.4-hotfix.2-0-g7a4c33425
[ +45 ms] executing: [/Users/ati/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +43 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ +1 ms] origin/stable
[ +2 ms] executing: [/Users/ati/flutter/] git ls-remote --get-url origin
@atilkan
atilkan / css-grid
Last active Apr 16, 2019
css-grid in stylus
View css-grid
$tablet= 700px
$desktop= 1200px
$gap= 30px
$grid= 12
.row
display: grid
grid-template-columns: repeat($grid, 1fr)
grid-column-gap: ( $gap / 2)
grid-row-gap: ( $gap / 2 )
@atilkan
atilkan / Autocomplete.js
Created Feb 6, 2019 — forked from mwrouse/Autocomplete.js
Autocompletion for an object in the monaco editor
View Autocomplete.js
function ShowAutocompletion(obj) {
// Disable default autocompletion for javascript
monaco.languages.typescript.javascriptDefaults.setCompilerOptions({ noLib: true });
// Helper function to return the monaco completion item type of a thing
function getType(thing, isMember) {
isMember = (isMember == undefined) ? (typeof isMember == "boolean") ? isMember : false : false; // Give isMember a default value of false
switch ((typeof thing).toLowerCase()) {
case "object":
@atilkan
atilkan / JS The Abstract Equality Comparison Algorithm.js
Last active Apr 6, 2019
Javascript The Abstract Equality Comparison Algorithm
View JS The Abstract Equality Comparison Algorithm.js
// source -> https://whydoesitsuck.com/why-does-javascript-suck/
The comparison x == y, where x and y are values, produces true or false. Such a comparison is performed as follows:
If Type(x) is the same as Type(y), then
If Type(x) is Undefined, return true.
If Type(x) is Null, return true.
If Type(x) is Number, then
If x is NaN, return false.
If y is NaN, return false.
@atilkan
atilkan / left-bar.vue
Created Apr 20, 2018 — forked from languanghao/left-bar.vue
element ui menu with vue-router
View left-bar.vue
<template>
<el-menu :router="true" :default-active="activeLink">
<template v-for="rule in $router.options.routes">
<el-submenu v-if="rule.children && rule.children.length > 0"
:index="rule.path"
>
<template slot="title"><i :class="rule.icon"></i>{{ rule.title }}</template>
<el-menu-item v-for="child in rule.children" :index="rule.path + '/' + child.path">{{ child.title }}</el-menu-item>
</el-submenu>
<el-menu-item v-else
@atilkan
atilkan / styl
Created Mar 5, 2018
Stylus 12 column grid-core using the "css-grid"
View styl
$tablet= 700px
$desktop= 1200px
$gap= 30px
$grid= 12
.row
display: grid
grid-template-columns: repeat($grid, 1fr)
grid-column-gap: $gap
grid-row-gap: ( $gap / 2 )
@atilkan
atilkan / grid-framework
Last active Mar 2, 2018
SASS grid framework using the "css-grid"
View grid-framework
$tablet: 700px
$desktop: 1200px
$gap: 30px
$grid: 12
.row
display: grid
grid-template-columns: repeat($grid, 1fr)
grid-column-gap: $gap
grid-row-gap: $gap / 2
@atilkan
atilkan / Makefile
Created Oct 15, 2017 — forked from turtlemonvh/Makefile
Golang Project Makefile Template
View Makefile
# Borrowed from:
# https://github.com/silven/go-example/blob/master/Makefile
# https://vic.demuzere.be/articles/golang-makefile-crosscompile/
BINARY = superdo
VET_REPORT = vet.report
TEST_REPORT = tests.xml
GOARCH = amd64
VERSION?=?
View gist:3a89ba522efe20836398ff98a09ca5d6
{
"editor.formatOnSave": true,
"editor.tabSize": 4,
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.cursorBlinking": true,
"files.exclude": {
"**/node_modules/": true,
"**/bower_components/": true
},
"search.exclude": {
@atilkan
atilkan / javascript-plugin-patterns-FOUND-protoytpe-newed.js
Created Aug 11, 2017 — forked from mhulse/javascript-plugin-patterns-FOUND-protoytpe-newed.js
Some of my favorite JavaScript plugin design patterns: The Facade Pattern, The Revealing Module Pattern, Immediately-invoked Function Expressions (IIFE)s, The Module Pattern imports and exports
View javascript-plugin-patterns-FOUND-protoytpe-newed.js
// http://callmenick.com/post/slide-and-push-menus-with-css3-transitions
(function(window) {
'use strict';
/**
* Extend Object helper function.
*/
function extend(a, b) {
You can’t perform that action at this time.