#!/usr/bin/env python | |
"""Simple script to merge multiple RRD files together. | |
Accepts any number of RRD file names as arguments. Produces an "rrdtool dump" | |
style file on stdout. The last RRD file should have a slot for every possible | |
record in the resulting merged RRD. | |
Run something like: | |
$ python simple-merge-rrd.py filea.rrd fileb.rrd filec.rrd | \ |
...and obviously we're building a workaround. But I'm absolutely flabbergasted that a standard <input type="date">
HTML field, in a standard browser, from a company that bases its reputation good design, could be so dreadful.
I'm the developer for a startup that sells a genetic test to recommend medications for high blood pressure. For medical reasons we need to know our customers' birth date. Most of our customers are in their 60s or older. We've found that many of them use iPads or iPhones. And they're the ones who complain to our customer support that our site is unusable.
Keep in mind that if you're not careful when selecting the settings, not only will it remove the preinstalled TikTok app but also the default photo viewer. Other than that works great.
import curses | |
# Constants | |
import random | |
KEY_ESC = 27 | |
X = "X" | |
O: str = "O" | |
EMPTY = " " |
@ECHO off | |
REM @Author Florian Latapie | |
echo Apache Maven auto install script for Windows & echo. & echo Downloading the zip file & echo. | |
curl -o tmp.zip https://dlcdn.apache.org/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.zip | |
echo Installation & echo. | |
powershell -command "Expand-Archive tmp.zip 'C:\Program Files\apache'" | |
setx /M PATH "%PATH%;C:\Program Files\apache\apache-maven-3.8.6\bin" | |
del tmp.zip |
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.MouseAdapter; | |
import java.awt.event.MouseEvent; | |
import java.util.Random; | |
import static javax.swing.SwingConstants.CENTER; | |
public class AreYouDumb extends JFrame { | |
private final JLabel label; |
import curses | |
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN | |
from random import randint | |
# Constants | |
KEY_ESC = 27 | |
height = 10 | |
width = 40 | |
half_height = int(height / 2) |
I created a crude comparison of the syntax of the various common Markdown extensions to have a better view on what are the most common extensions and what is the most widely accepted syntax for them. The list of Markdown flavors that I looked at was based on the list found on CommonMark's GitHub Wiki.
Flavor | Superscript | Subscript | Deletion* Strikethrough |
Insertion* | Highlight* | Footnote | Task list | Table | Abbr | Deflist | Smart typo | TOC | Math | Math Block | Mermaid |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GFM |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |