A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$
if your browser aliases it:
~ 108 byte version
'use strict'; | |
// simple express server | |
var express = require('express'); | |
var app = express(); | |
var router = express.Router(); | |
app.use(express.static('public')); | |
app.get('/', function(req, res) { | |
res.sendfile('./public/index.html'); |
// | |
// Twitter lets you close your inbox to people you don't follow. The problem | |
// is that still authorizes ANYONE who sent you a message EVER to continue | |
// messaging you, even if your privacy settings are changed. | |
// | |
// The only way (I think) to avoid that is to delete every message from a | |
// person so that Twitter's internal check "did you talk to this person | |
// before?" results in FALSE. That sucks because maybe you want more privacy | |
// than before. But it's do-able by deleteing all the message history of each | |
// conversation. |
const waterfall = async function (input, ...funcs) { | |
const list = [] | |
for(let f of funcs) | |
if(!list.length) | |
list.push(await f(input)) | |
else | |
list.push(await f(list.shift()) | |
return list.pop() |
// | |
// Some sine wave timing fun, using 2 or 3 sections with separate ease-in-out curves. | |
// Created using Processing 3.5.3. | |
// | |
// Code by @marcedwards from @bjango. | |
// | |
void setup() { | |
size(400, 400, P2D); | |
frameRate(60); |
// | |
// Some sine wave timing fun, using 2 or 3 sections with separate ease-in-out curves. | |
// Created using Processing 3.5.3. | |
// | |
// Code by @marcedwards from @bjango. | |
// | |
void setup() { | |
size(400, 400, P2D); | |
frameRate(60); |
let isAlreadyFetchingAccessToken = false | |
let subscribers = [] | |
function onAccessTokenFetched(access_token) { | |
subscribers = subscribers.filter(callback => callback(access_token)) | |
} | |
function addSubscriber(callback) { | |
subscribers.push(callback) | |
} |
Lesson 1 - Iterations | |
- BinaryGap - https://codility.com/demo/results/trainingU2FQPQ-7Y4/ | |
Lesson 2 - Arrays | |
- OddOccurrencesInArray - https://codility.com/demo/results/trainingFN5RVT-XQ4/ | |
- CyclicRotation - https://codility.com/demo/results/trainingSH2W5R-RP5/ | |
Lesson 3 - Time Complexity | |
- FrogJmp - https://codility.com/demo/results/training6KKWUD-BXJ/ | |
- PermMissingElem - https://codility.com/demo/results/training58W4YJ-VHA/ |
Give developers more knowledge about how the classes behave in a non-relative sense: BEM + ITCSS = BEMIT
BEM: