- W01-Dec-Jan
- W02-Jan-Jan
- W03-Jan-Jan
- W04-Jan-Jan
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
/// disable-pageview-api.js | |
// Based on: https://addons.mozilla.org/firefox/addon/disable-page-visibility/ | |
// License: http://www.opensource.org/licenses/bsd-license.php | |
(function(){ | |
// visibilitychange events are captured and stopped | |
document.addEventListener("visibilitychange", function(e) { | |
e.stopImmediatePropagation(); | |
}, true); | |
// document.visibilityState always returns false | |
Object.defineProperty(Document.prototype, "hidden", { |
Transcript from the video
https://www.youtube.com/watch?v=Dgj_OStjD1Q
The goal of this project is to build the most reliable, secure and fastest digital currency in the world.
It is a peer-to-peer network and it's made up of 3 different types of nodes, three different types of servers.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ortable: `put: []` demo</title> | |
<!-- AngularJS --> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script> |
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 items = [];document.querySelectorAll('.content-area-content>ul>li').forEach(e=>{ | |
items.push({country:e.children[0].textContent, list:e.children[1].textContent}) | |
}); copy(items); |
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 wordFreq(string) { | |
var words = string.replace(/[.]/g, '').split(/\s/); | |
var freqMap = {}; | |
words.forEach(function(w) { | |
var lowerWord = w.toLowerCase() | |
if (!freqMap[lowerWord]) { | |
freqMap[lowerWord] = 0; | |
} | |
freqMap[lowerWord] += 1; | |
}); |
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 getRandom4 = () => String(Math.round(Math.random(1000,9999) * 100000)).slice(0,4) | |
var get3Random4SeparatedByDashes = () => [getRandom4(),getRandom4(),getRandom4()].join('-') | |
get3Random4SeparatedByDashes() | |
// '1610-6631-6374' // for example |
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
#!/bin/bash | |
# Find all files (except for ignored extensions) and print their line count, sorted by count | |
IGNORED_EXTENSIONS=(svg json) # list of extensions to ignore | |
LINE_THRESHOLD=300 | |
find ./src -type f | while read FILE; do | |
# Check if the file extension is in the list of ignored extensions | |
extension="${FILE##*.}" |
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
javascript:(function() { const regex = /\b(\w{1,3}|\w{4,})/g; const paragraphs = document.getElementsByTagName('p'); for (let i = 0; i < paragraphs.length; i++) { const paragraph = paragraphs[i]; paragraph.innerHTML = paragraph.innerHTML.replace(regex, match => `<b>${match.substr(0,3)}</b>${match.substr(3)}`); }})(); |
OlderNewer