Skip to content

Instantly share code, notes, and snippets.

mb explanation

source: https://github.com/burakcan/mb

var mb=p=>o=>p.map(c=>o=(o||{})[c])&&o

// in ES5:
var mb = function(pathArray) { 
  return function(obj) {  
    return pathArray.map(function(c) { 
@livacengiz
livacengiz / detail.md
Last active July 30, 2018 07:59
Otomat Hackathon Detaylar

alt text

Nedir?

Creative coding (yaratıcı programlama) işlevsel olmasından çok yaratıcılığı ön plana çıkarmak için bilgisayar programları yazma işine verilen isimdir. Ortaya çıkan sonuçlar işitsel, görsel ya da başka herhangi bir formda olabilir.

Otomat, sürekli CRUD uygulamalar yapmaktan sıkılmış geliştiriciler olarak birlikte çok ilginç projeler geliştireceğimiz bir hackathon/creative coding partisi. 19-20 Kasım tarihlerinde (gece dahil) bir araya gelerek çok güzel görsel/işitsel ürünler üretip, çok güzel sohbetler edeceğiz.

Neler yapacağız?

Ne yapmak istiyorsanız! Yapılacak şey ve konu üzerine herhangi bir sınırlandırmamız yok. Ama etkinlik günü söyleyeceğimiz bazı teknik sınırlandırmalarımız olacak :) Bireysel olarak ya da grup olarak katılımak konusunda serbestsiniz. Hatta en güzeli herkesle yardımlaşmanız :)

@cobalamin
cobalamin / SafeInt.elm
Last active September 23, 2016 08:47
playing around with making invalid Ints represented explicitly
module SafeInt exposing (SafeInt, fromInt, get, map, map2, andThen, (+!), (-!), (*!), (//!), (%!), (^!))
type SafeInt
= Safe Int
| Invalid
fromInt : Int -> SafeInt
fromInt i =
@klaftertief
klaftertief / reactiveconf-2016-lightning-talk.md
Last active April 2, 2024 20:17
An API search engine in Elm for Elm, proposal for a Lightning Talk at ReactiveConf 2016

An API search engine in Elm for Elm

Elm is a statically typed functional language that compiles to JavaScript. It's well-known for its developer experience: the compiler provides nice error messages, the package system enforces semantic versioning for all published packages and makes sure every exposed value or type has some documentation and type annotations.

@osbulbul
osbulbul / gist:4745060
Last active December 2, 2017 23:51
[Placeholder Example] English : After you load your jquery file paste this code in to your scripts file and you can use with $(".clear").clearAll(); ---- and the new function clear all inputs which have clear class for you. Also if users leave blank your inputs function automatically give the first value.|||||||||||||||||||||||Turkish : Jquery d…
$.fn.clearAll = function() {
this.each(function(){
var $this = $(this);
var resultText = '';
var oldText = $this.val();
$this.on('focus',function(){
resultText = ($this.val() === oldText) ? '' : $this.val();
$this.val(resultText);
});
anonymous
anonymous / index.html
Created December 25, 2012 12:41
A CodePen by Burak Can. CSS-Only Image Stack With :checked
<body>
<div id="container">
<input type="checkbox" id="checkbox" name="checkbox">
<label for="checkbox">
<div id="plus">+</div>
<div class="image" id="one"></div>
<div class="image" id="two"></div>
<div class="image" id="three"></div>
<div class="image" id="four"></div>
<div class="image" id="five"></div>