Skip to content

Instantly share code, notes, and snippets.

@oguzhanaslan
oguzhanaslan / basic-example.jsx
Created January 3, 2018 20:21
basic-example
const Button = (props) => (
<button className={ 'large' in props && 'large' }>
{ props.children }
<style jsx>{`
button {
padding: 20px;
}
.large {
padding: 50px
}
@oguzhanaslan
oguzhanaslan / gist:88e8e2acafc6e45b57e575c39adc3c4c
Created April 20, 2017 08:48
Frontend Istanbul Buluşma Noktası
Merhaba!
Bildiğin gibi bu cumartesi Caddebostan Sahil'de buluşuyoruz. Buluşma noktasını teyit için aşağıdaki haritayı incelemeni önemle rica ediyoruz.
https://goo.gl/maps/bnA4PkuhCSG2
Haritada işaretli olan Dalyan Parkı noktası sizi karşılayacağımız alan. Burada organizasyon ekibimizden arkadaşlar sizi karşılayarak etkinliğin yapılacağı alana yönlendirecek.
Önemli bir hatırlatma yapmak istiyoruz. Açık hava organizasyonlarda hava şartları her durumda risk yaratmaktadır. Havanın bizi son dakika üzmesine karşı etkinliği ertelemek yerine önlem olarak alternatif buluşma noktası belirledik. Tüm şartlara rağmen bu buluşmayı gerçekleştireceğimizi ve tanışmak için sizi bekliyor olacağımızı bilmenizi isteriz :)
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/oguzhan/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="honukai"
@oguzhanaslan
oguzhanaslan / default.conf
Created February 15, 2017 18:43
nginx https, non-www redirect
#AUTOMATICALLY GENERATED - DO NO EDIT!
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
server_name oguzhan.in www.oguzhan.in;
@oguzhanaslan
oguzhanaslan / landing.html
Last active December 20, 2016 19:28
landingsero
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Text</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://maurizzzio.github.io/greuler/scripts/lib/cola.v3.js"></script>
<script src="http://maurizzzio.github.io/greuler/greuler.min.js"></script>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<title>JS Bin</title>
@oguzhanaslan
oguzhanaslan / Modal.vue
Created November 15, 2016 12:57
ahmetsulek panda
<template>
<div id="modal" v-if="show">
<div class="modal-mask" @click="close" transition="modal">
<div class="modal-container" @click.stop>
CONTENT
</div>
</div>
</div>
</template>
@oguzhanaslan
oguzhanaslan / auth.js
Created July 3, 2016 21:10
Angular JWT localStorage
(function () {
'use strict';
angular
.module('app')
.factory('AuthenticationService', Service);
function Service($http, $localStorage) {
var service = {};
@oguzhanaslan
oguzhanaslan / 1-proposal.md
Created June 27, 2016 13:22 — forked from JedWatson/1-proposal.md
Proposal: adding reverse-relationship population to Mongoose (as implemented in KeystoneJS)

I've developed a useful feature in KeystoneJS that lets you populate a relationship from either side, while only storing the data on one side, and am looking for feedback on whether it is something that could / should be brought back into mongoose itself. (It might be possible to add as a separate package but I suspect there'd be too much rewriting of mongoose internals for that to be a good idea).

I've added this as an issue in mongoose for consideration: #1888 but am leaving this gist in place because the examples are easier to read.

I've used Posts and Categories as a basic, contrived example to demonstrate what I'm talking about here; in reality you'd rarely load all the posts for a category but there are other real world cases where it's less unreasonable you'd want to do this, and Posts + Categories is an easy way to demo it.

The problem

The built-in population feature is really useful; not just for

@oguzhanaslan
oguzhanaslan / test
Created December 26, 2015 12:31
test
C:\FTB\MinecraftLog.txt: written by FTB Launcher
[14:17:11] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[14:17:11] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[14:17:11] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[14:17:11] [main/INFO] [FML]: Forge Mod Loader version 7.99.36.1558 for Minecraft 1.7.10 loading
[14:17:11] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_66, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_66
[14:17:11] [main/INFO] [FML]: [AppEng] Core Init
[14:17:11] [main/WARN] [FML]: The coremod codechicken.core.launch.CodeChickenCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[14:17:12] [main/WARN] [FML]: The coremod cofh.asm.LoadingPlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[14:17:12]