This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
const Y = (f) => | |
( x => f(v => x(x)(v)) )( | |
x => f(v => x(x)(v)) | |
); | |
*/ | |
const Y = f => { | |
const something = x => f(v => x(x)(v)); | |
return something(something); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hexToRgb = function(hex) { | |
hex = parseInt(hex, 16); | |
return [ | |
(hex & 0xff0000) >> 16, | |
(hex & 0x00ff00) >> 8, | |
(hex & 0x0000ff) | |
]; | |
}; | |
var rgbToHex = function(r, g, b) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getCode(fn){ | |
return fn.toString().replace(/^function.*?{|}$/g, '') | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bended-shadow {position:relative} | |
.bended-shadow::before, .bended-shadow::after { | |
content: ''; | |
position: absolute; | |
width: 60%; | |
height: 20px; | |
-webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); | |
-moz-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); | |
-ms-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rgb2hex(r, g, b){ | |
return (1 << 24 | r << 16 | g << 8 | b).toString(16).substr(1); | |
} |