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;
}| /** | |
| * Tired of those "we detected you have ads blocked, white-list us to continue reading"? | |
| * Then, your problems are over! | |
| * | |
| * PS.: Help me improve it, and as soon as it gets really stable and working in most sites, | |
| * let's ship it as a browser extension :) | |
| */ | |
| function closeAnnoyingModal () { | |
| w = document.body.offsetWidth + 'px'; | |
| h = window.innerHeight + 'px'; |
| // Adapted from @delucis | |
| // https://github.com/delucis/pellicola/blob/735bd7487bdc597ac7272e4ddce9473c15f68d09/lib/frame-maker.js#L99-L134 | |
| const canvasSketch = require('canvas-sketch'); | |
| const settings = { | |
| dimensions: [ 512, 512 ], | |
| duration: 3, | |
| animate: true, | |
| fps: 24 |
| // DISCLAIMER: I'VE ONLY RUN THIS SCRIPT ON MY OWN ACCOUNT ONLY. PROCEED/USE WITH RISK! I MADE THIS SCRIPT IN 20 MINUTES SO BE WARNED! | |
| // On the other hand, I've deleted 50,000 comments in a matter of minutes so it's been pretty damn handy | |
| // 1. Go to Activity feed, like facebook.com/<username>/allactivity | |
| // 2. Navigate to specific section of FB, like "Likes and Reactions" or "Comments", | |
| // like https://www.facebook.com/<username>/allactivity?privacy_source=activity_log&log_filter=cluster_<clusterid> | |
| // 3. Navigate to year that you want to batch delete. You may need to scroll a little bit to let it load | |
| // 4. Once you enter this there's no going back!! |
| #!/bin/bash | |
| set -e | |
| CONTENTS=$(tesseract -c language_model_penalty_non_dict_word=0.8 --tessdata-dir /usr/local/share/tessdata/ "$1" stdout -l eng | xml esc) | |
| hex=$((cat <<EOF | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> |
| var EMAIL_DRAFTED = "EMAIL DRAFTED"; | |
| function draftMyEmails() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); // Use data from the active sheet | |
| var startRow = 2; // First row of data to process | |
| var numRows = sheet.getLastRow() - 1; // Number of rows to process | |
| var lastColumn = sheet.getLastColumn(); // Last column | |
| var dataRange = sheet.getRange(startRow, 1, numRows, lastColumn) // Fetch the data range of the active sheet | |
| var data = dataRange.getValues(); // Fetch values for each row in the range | |
| # Tweak tap coordinates as you wish | |
| function reactnativedev() { | |
| adb shell input keyevent 82; | |
| sleep 0.1; | |
| adb shell input tap 150 1401; | |
| sleep 0.1; | |
| adb shell input tap 150 1401; | |
| sleep 0.1; | |
| adb shell input text "$1"; | |
| sleep 0.1; |
| { | |
| "React Component": { | |
| "prefix": "reactComp", | |
| "body": [ | |
| "import React, { Component } from 'react'", | |
| "import PropTypes from 'prop-types'", | |
| "", | |
| "class ${1:${TM_FILENAME/(.*)\\.js/${1:/capitalize}/}} extends Component {", | |
| " render() {", | |
| " return (", |
| { | |
| "caret_extra_bottom": 2, | |
| "caret_extra_top": 2, | |
| "caret_extra_width": 1, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/Base16 Color Schemes/Themes/base16-oceanicnext.tmTheme", | |
| "create_window_at_startup": false, | |
| "ensure_newline_at_eof_on_save": true, | |
| "fold_buttons": false, | |
| "folder_exclude_patterns": |