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
### Origin values | |
- Gender | |
- 0: both | |
- 1: male | |
- 2: female | |
- Relationship | |
- 0: both | |
- 1: in relationship |
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
<style> | |
.f-custom-info-box { | |
background-color: #f2f2f6; | |
padding: 8px; | |
border-radius: 5px; | |
font-family: sans-serif; | |
font-size: 14px; | |
border: 1px solid #d4d4d4; | |
} |
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
/* PRODUCT CUSTOM */ | |
<!-- 1 day = 86400 --> | |
<style> | |
.f-custom-info-box { | |
background-color: #f2f2f6; | |
padding: 8px; | |
border-radius: 5px; | |
font-family: sans-serif; |
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
/* | |
Script to read Medium articles freely | |
- can be converted to use as bookmarklet | |
- currently not supported for Safari browser on Medium sub-websites (i.e blog.prototypr.io) | |
*/ | |
var metaAndroidApp = document.querySelector("meta[property='al:android:app_name']"); | |
var isCurrentSiteMedium = metaAndroidApp && metaAndroidApp.content === "Medium" || false; |
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
/* | |
DESIGN PATTERN | |
WHAT: | |
- reusable solution that can be applied to commonly recurring problems in | |
- software design | |
WHY: | |
- proven solution | |
- easily reused |
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
Array.prototype.mapX = function(fn) { | |
let result = [] | |
for (let i = 0, len = this.length; i < len; i++) { | |
const newItem = fn(this[i], i, this) | |
result.push(newItem) | |
} | |
return result | |
} |