(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| static int | |
| find_reusable_reload (rtx *p_in, rtx out, enum reg_class rclass, | |
| enum reload_type type, int opnum, int dont_share) | |
| { | |
| rtx in = *p_in; | |
| int i; | |
| /* We can't merge two reloads if the output of either one is | |
| earlyclobbered. */ | |
| if (earlyclobber_operand_p (out)) |
There are two methods to use in order to flip CSS styles: interpolated properties and the flip() function.
padding-left, margin-right, border-right, left, etc.)flip() should be used for all other properties| -- Functions to create and draw histograms with PostgreSQL. | |
| -- | |
| -- psql# WITH email_lengths AS ( | |
| -- -# SELECT length(email) AS length | |
| -- -# FROM auth_user | |
| -- -# LIMIT 100 | |
| -- -# ) | |
| -- -# SELECT * FROM show_histogram((SELECT histogram(length, 0, 32, 6) FROM email_lengths)) | |
| -- bucket | range | count | bar | cumbar | cumsum | cumpct | |
| -- --------+-------------------------------------+-------+--------------------------------+--------------------------------+--------+------------------------ |
A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
| # -*- coding: utf-8 -*- | |
| from bottle import route, run | |
| @route('/') | |
| def index(): | |
| return '<h1>Hello World/h1>' | |
| run(host='localhost', port=8000) |
For me the perfect developer (if there is such a person) has these qualities:
Accessibility checklist (All of the things in this checklist may not apply to every project)
Aria roles:
<header role="banner"> A region of the page that is site focused. Typically your global page header.<nav role="navigation"> Contains navigational links.<main role="main"> Focal content of document. Use only once.<article role="article"> Represents an independent item of content. Use only once on outermost element of this type.<aside role="complementary"> Supporting section related to the main content even when separated.| import time | |
| import datetime | |
| import asyncio | |
| import aiohttp | |
| domain = 'http://integralist.co.uk' | |
| a = '{}/foo?run={}'.format(domain, time.time()) | |
| b = '{}/bar?run={}'.format(domain, time.time()) | |
| async def get(url): |
| #!/usr/bin/env bash | |
| # https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
| # https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
| # https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
| # https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
| # https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
| # https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
| # Versions | |
| CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE` |