Skip to content

Instantly share code, notes, and snippets.

Anıl Anar anilanar

Block or report user

Report or block anilanar

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
@anilanar
anilanar / callbag.purs
Last active Dec 12, 2018
Callbags in purescript
View callbag.purs
module Main where
import Prelude
import Data.Array.NonEmpty (NonEmptyArray, (..))
import Data.Traversable (class Traversable, sequence)
import Effect (Effect)
import Effect.Console (log)
import Prelude as P
@anilanar
anilanar / DiffRecords.purs
Created Dec 25, 2017
lodash.without in purescript using RowToList
View DiffRecords.purs
{-
This is just adventuring with RowToList.
Naive approach, not stack safe, probably too slow.
-}
module DiffRecords
where
import Data.Record (get, insert)
import Data.Symbol (class IsSymbol, SProxy(..))
@anilanar
anilanar / safari-nomodule.html
Last active Nov 18, 2019 — forked from samthor/safari-nomodule.js
Safari 10.1 `nomodule` support
View safari-nomodule.html
<!--
Similar to https://gist.github.com/samthor/64b114e4a4f539915a95b91ffd340acc
But prevents Safari 10.1 from downloading ES5 scripts.
This is the only way I know to detect "module" support in <head>.
-->
<script>
// matrix of script sources. rows will be executed in order.
// first column is ES6, the second is ES5.
window.__SCRIPTS__ = [
View keybase.md

Keybase proof

I hereby claim:

  • I am anilanar on github.
  • I am anilanar (https://keybase.io/anilanar) on keybase.
  • I have a public key ASCNd0mjbAL4Mi3T90GWdi5hzd-EFmHFfdXKy_-lQAwujQo

To claim this, I am signing this object:

@anilanar
anilanar / index.html
Last active Feb 4, 2017
Object structure #jsbench #jsperf (https://jsbench.github.io/#4354da02fb0e22ca7ff344a77af5e7e9) #jsbench #jsperf
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Object structure #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Object structure</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@anilanar
anilanar / index.html
Last active Jan 11, 2017
Stateful functions #jsbench #jsperf (https://jsbench.github.io/#60079f3a0c0d0b63f491619ac6471ac3) #jsbench #jsperf
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Stateful functions #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@anilanar
anilanar / index.html
Last active Jan 11, 2017
Different unmount strategies #harp (https://jsbench.github.io/#1a53a5ca3fc415e6c1a4120d2e05c6ad) #jsbench #jsperf
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Different unmount strategies #harp</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@anilanar
anilanar / .block
Last active Apr 19, 2016 — forked from mbostock/.block
selection.order
View .block
license: gpl-3.0
You can’t perform that action at this time.