Skip to content

Instantly share code, notes, and snippets.

<!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 / 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">
@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;
# 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 / 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 :)
@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 / package.json
Created January 17, 2018 12:22
package.json
{
"scripts": {
"dev": "node server.js",
"build": "next build",
"start": "NODE_ENV=production node server.js"
}
}
@oguzhanaslan
oguzhanaslan / server.js
Created January 17, 2018 12:22
server.js
// This file doesn't not go through babel or webpack transformation.
// Make sure the syntax and sources this file requires are compatible with the current node version you are running
// See https://github.com/zeit/next.js/issues/1245 for discussions on Universal Webpack or universal Babel
const { createServer } = require('http')
const { parse } = require('url')
const next = require('next')
const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev })
const handle = app.getRequestHandler()
@oguzhanaslan
oguzhanaslan / next.config.js
Created January 17, 2018 12:23
next.config.js
// next.config.js
module.exports = {
useFileSystemPublicRoutes: false
}
@oguzhanaslan
oguzhanaslan / mergevsobjectassign.js
Created May 29, 2018 12:09
_.merge vs Object.assign
var obj1 = { adalet: false }
var obj2 = { barış: false }
var obj3 = { özgürlük: false }
// lodash
_.merge({}, obj1, obj2, obj3)
// JavaScript
Object.assign({}, obj1, obj2, obj3)