Skip to content

Instantly share code, notes, and snippets.

@Risto-Stevcev
Risto-Stevcev / index.html
Created January 23, 2017 21:58 — forked from anonymous/index.html
CSS3 Toggle pillbox - JS Bin// source http://jsbin.com/zelasiw
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.togglePill.togglePill-true:after {
background-position: 0px;
width: 40px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.togglePill {
background-color: #00e600;
width: 60px;
@Risto-Stevcev
Risto-Stevcev / index.html
Created January 23, 2017 22:37 — forked from anonymous/index.html
CSS3 toggle pill w/ slightly better IE support - JS Bin// source http://jsbin.com/dejilat
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.togglePill {
background-color: #00e600;
width: 60px;
@Risto-Stevcev
Risto-Stevcev / index.html
Last active January 23, 2017 23:16 — forked from anonymous/index.html
CSS3 toggle pill w/ better IE support (border-box) - JS Bin// source http://jsbin.com/dejilat
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.togglePill {
box-sizing: border-box;
background-color: #00e600;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@Risto-Stevcev
Risto-Stevcev / index.html
Last active September 4, 2017 23:20 — forked from anonymous/index.html
Web Components Example JS Bin// source http://jsbin.com/rogopipubo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.10/custom-elements-es5-adapter.js"></script>
<style id="jsbin-css">
::content .product-img {
width: 12px;
@Risto-Stevcev
Risto-Stevcev / AssocList.purs
Created November 14, 2017 13:08 — forked from Thimoteus/AssocList.purs
records as association lists
module AssocList where
import Data.List (List(..))
import Data.Record (delete, get)
import Data.Symbol (class IsSymbol, SProxy(..), reflectSymbol)
import Data.Tuple (Tuple(..))
import Type.Row (class RowLacks, class RowToList, Cons, Nil, RLProxy(RLProxy), kind RowList)
class RLToList
(rl :: RowList)
@Risto-Stevcev
Risto-Stevcev / object-watch.js
Created November 16, 2017 22:47 — forked from eligrey/object-watch.js
object.watch polyfill in ES5
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
@Risto-Stevcev
Risto-Stevcev / sig
Created December 7, 2017 11:16 — forked from yawaramin/sig
Bourne Shell script to print out Merlin's inferred signature of an OCaml file (module)
#!/usr/bin/env sh
# Works with merlin version 2.5.4. Using protocol described at
# https://github.com/ocaml/merlin/blob/master/doc/dev/OLD-PROTOCOL.md#type-checking
usage ()
{
echo Usage: either of the following will work:
echo
echo ' sig module.ml'
type scalar = float
type 'a one = [`one of 'a]
type 'a z = [`zero of 'a]
type 'a two = [`two of 'a]
type 'a three = [`three of 'a]
type 'a four = [`three of 'a]
let map2 f x y = Array.init (min (Array.length x) (Array.length y))
(fun n -> f x.(n) y.(n))