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
function string_to_slug (str) { | |
str = str.replace(/^\s+|\s+$/g, ''); // trim | |
str = str.toLowerCase(); | |
// remove accents, swap ñ for n, etc | |
var from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;"; | |
var to = "aaaaeeeeiiiioooouuuunc------"; | |
for (var i=0, l=from.length ; i<l ; i++) { | |
str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i)); | |
} |
There are two ways - the first way is just one command run plainly in front of you; the second one runs in the background and in a different instance so you can get out of your ssh session and it will continue.
First make a folder to download the websites to and begin your downloading: (note if downloading www.SOME_WEBSITE.com
, you will get a folder like this: /websitedl/www.SOME_WEBSITE.com/
)
Add the `replication` section to the mongod.conf file: | |
``` | |
$cat /usr/local/etc/mongod.conf | |
systemLog: | |
destination: file | |
path: /usr/local/var/log/mongodb/mongo.log | |
logAppend: true | |
storage: | |
engine: mmapv1 |
let config = Encore.getWebpackConfig(); | |
config.watchOptions = { poll: true, ignored: /node_modules/ }; | |
config.plugins.push( | |
new BrowserSyncPlugin( | |
{ | |
host: 'aro.tech', | |
proxy: 'aro.tech', | |
files: [ // watch on changes | |
{ | |
match: ['public/build/**/*.js'], |
class DOMAnimations { | |
/** | |
* Masque un élément avec un effet de repli | |
* @param {HTMLElement} element | |
* @param {Number} duration | |
* @returns {Promise<boolean>} | |
*/ | |
static slideUp (element, duration = 500) { | |
return new Promise(function (resolve, reject) { | |
element.style.height = element.offsetHeight + 'px' |
#!/bin/sh | |
git log --shortstat | grep -E "(Author: )(\b\s*([A-Z]\w+)){2}|fil(e|es) changed" | awk ' | |
{ | |
if($1 ~ /Author/) { | |
author = $2" "$3 | |
} else { | |
files[author]+=$1 | |
inserted[author]+=$4 | |
deleted[author]+=$6 | |
} |
Windows Registry Editor Version 5.00 | |
; Windows terminal | |
[-HKEY_CLASSES_ROOT\Directory\shell\MenuWindowsTerminal] | |
[-HKEY_CLASSES_ROOT\Directory\background\shell\MenuWindowsTerminal] | |
[-HKEY_CLASSES_ROOT\Directory\LibraryFolder\shell\MenuWindowsTerminal] |
select | |
first_name, | |
last_name | |
from | |
users | |
left join | |
companies on companies.id = users.company_id | |
where ( | |
companies.name like 'TERM%' or | |
first_name like 'TERM%' or |