A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.
This file contains hidden or 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
| // http://stackoverflow.com/questions/4787698/failure-to-override-elements-addeventlistener-in-firefox | |
| (function() { | |
| Error.stackTraceLimit = Infinity; | |
| var _interfaces = Object.getOwnPropertyNames(window).filter(function(i) { | |
| return /^HTML/.test(i); | |
| }).map(function(i) { | |
| return window[i]; | |
| }); |
This file contains hidden or 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 isValidCPF(value: string) { | |
| if (typeof value !== 'string') { | |
| return false; | |
| } | |
| value = value.replace(/[^\d]+/g, ''); | |
| if (value.length !== 11 || !!value.match(/(\d)\1{10}/)) { | |
| return false; | |
| } |
This file contains hidden or 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
| 0-mail.com | |
| 0815.ru | |
| 0clickemail.com | |
| 0wnd.net | |
| 0wnd.org | |
| 10minutemail.com | |
| 20minutemail.com | |
| 2prong.com | |
| 30minutemail.com | |
| 3d-painting.com |
This file contains hidden or 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
| mailspeed.ru | |
| mailinator.com | |
| shitmail.me | |
| temp-mail.ru | |
| thismail.ru | |
| sharklasers.com | |
| guerrillamailblock.com | |
| guerrillamail.com | |
| guerrillamail.net | |
| guerrillamail.biz |
This file contains hidden or 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
| Get-ChildItem . |% {mv $_.name "$([guid]::NewGuid().ToString()+$_.extension)"} |
This file contains hidden or 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 genBash(masterURL) { | |
| var xhr = new XMLHttpRequest(); | |
| xhr.open("GET", masterURL, true); | |
| xhr.addEventListener("load", function () { | |
| var master = JSON.parse(this.responseText); | |
| var baseURL = new URL(master.base_url, masterURL); | |
| function genBashLines(mp4, type) { | |
| var mp4BaseURL = new URL(mp4.base_url, baseURL); | |
| var segmentURLs = mp4.segments.map(segment => segment.url); |
This file contains hidden or 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
| // 1. Open the browser developper console on the network tab | |
| // 2. Start the video | |
| // 3. In the dev tab, locate the load of the "master.json" file, copy its full URL | |
| // 4. Run: node vimeo-downloader.js "<URL>" | |
| // 5. Combine the m4v and m4a files with mkvmerge | |
| const fs = require('fs'); | |
| const url = require('url'); | |
| const https = require('https'); |
This file contains hidden or 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
| (Olx = { | |
| release: '1.0.5 RC', | |
| j: $, | |
| path: window.location.href, | |
| settings: { | |
| debug: true, | |
| url: window.location.href.replace(/\.(\w+)\/.*/, '.$1') + '/vi/{id}?rec=h', | |
| filename: "olx.csv", | |
| split: 100, | |
| speed: 700, |
This file contains hidden or 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 CrossOriginLocalStorage = function(currentWindow, iframe, allowedOrigins, onMessage) { | |
| this.allowedOrigins = allowedOrigins; | |
| let childWindow; | |
| // some browser (don't remember which one) throw exception when you try to access | |
| // contentWindow for the first time, it works when you do that second time | |
| try { | |
| childWindow = iframe.contentWindow; | |
| } catch(e) { | |
| childWindow = iframe.contentWindow; |