When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
const fs = require('fs') | |
const path = require('path') | |
// Params | |
const pathToPreviousReport = process.argv[2] | |
// Functions | |
/** | |
* Reads the coverage-summary.{XXX}.json file and returns the parsed JSON object | |
* @param {*} pathToReport | |
* @returns |
const fs = require("fs"); | |
/** | |
* Removes matching outer quotes from a string. | |
* | |
* @param {string} text - String to unquote | |
* @returns {string} - Unquoted string | |
*/ | |
const unquote = text => /(["'])?(.*)\1/.exec(text)[2]; |
#!/bin/bash | |
# MRF-Atenea script to make automatic slides. | |
echo -n Username: | |
read username | |
echo -n Password: | |
read -s password | |
curl -u $username:$password -X POST -H 'Content-Type: application/json' -d '{ | |
"type":"page", |
#!/bin/bash | |
# Sign a file with a private key using OpenSSL | |
# Encode the signature in Base64 format | |
# | |
# Usage: sign <file> <private_key> | |
# | |
# NOTE: to generate a public/private key use the following commands: | |
# | |
# openssl genrsa -aes128 -passout pass:<passphrase> -out private.pem 2048 | |
# openssl rsa -in private.pem -passin pass:<passphrase> -pubout -out public.pem |
const dblTouchTapMaxDelay = 300 | |
let latestTouchTap = { | |
time: 0, | |
target: null, | |
} | |
export default function isDblTouchTap(event) { | |
const touchTap = { | |
time: new Date().getTime(), | |
target: event.currentTarget, |
Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element
or the /deep/
path selector.
video::webkit-media-controls-timeline {
background-color: lime;
}
video /deep/ input[type=range] {
''' | |
Taken from: | |
http://stackoverflow.com/users/1074592/fakerainbrigand | |
http://stackoverflow.com/questions/15401815/python-simplehttpserver | |
''' | |
import SimpleHTTPServer, SocketServer | |
import urlparse, os | |
PORT = 3000 |
Jake Archibald (@jaffathecake): The ServiceWorker is coming; look busy
https://speakerdeck.com/jaffathecake/the-serviceworker-is-coming-look-busy
https://github.com/jakearchibald/trained-to-thrill/
https://www.youtube.com/watch?v=SmZ9XcTpMS4
Hunter Loftis (@hunterloftis): We Will All Be Game Progmrammers
http://wwabgp.herokuapp.com/s
http://youtu.be/QX0eauXBKwc
CarterRabasa (@carterrabasa): A Community of People; Not Projects
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.