Add this to settings.json (cmd ,):
{
"editor.fontFamily": "Operator Mono, Fira Code iScript, Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.tokenColorCustomizations": {
"textMateRules": [
{
| /* | |
| Gmail bookmarklet | |
| rondevera.com | |
| For quickly e-mailing the current page's URL (and the selected text, if any) | |
| via Gmail. | |
| Usage: | |
| - Create a new item in your bookmark bar with the name "Gmail" (or just "Gm", | |
| or your favorite Unicode character), and the code below as the location. |
| >{-# LANGUAGE TypeFamilies, ScopedTypeVariables #-} | |
| >module Modules where | |
| Since all modules under this translation must ascribe to some signature, | |
| we by providing a signature for a module which provides equality over | |
| some type. | |
| >class EQ mod where | |
| > type EQV mod :: * | |
| > eq :: mod -> EQV mod -> EQV mod -> Bool |
| ## fact <- function(x) { | |
| ## if (x == 1) { | |
| ## 1 | |
| ## } | |
| ## else { | |
| ## x * fact(x - 1) | |
| ## } | |
| ## } | |
| ## fact(5) |
| // ==UserScript== | |
| // @name Copy code from SX | |
| // @namespace https://gist.github.com/kpym/30d90be41ab5c248cdf7 | |
| // @version 0.3 | |
| // @description This script use clipboard.js to add copy button for code sections on SX. When you hover a code the button "</>" appear on the top right corner. Click it and the code is copied. | |
| // @author kpym | |
| // @match *://*.stackexchange.com/* | |
| // @match *://*.stackoverflow.com/* | |
| // @match *://*.superuser.com/* | |
| // @match *://*.serverfault.com/* |
| #!/bin/bash | |
| # As of 2017 Feb, Instagram allows multiple photos to be posted side by side. | |
| # @idealisms posted some panoramas split up into separate photos. | |
| # I wrote this script to generate those square photos from a panorama. | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 filename.jpg" | |
| exit | |
| fi |
Over 600,000 changes.
The other day I decided that it would be nice to store my code Projects folder under Documents on my work machine (after all, so many apps want to store their data in %UserProfle%\Documents by default).
But my company has implemented a policy that syncs that Documents folder to the cloud with OneDrive.
That's not a problem for most content, like documents. Git working directories, on the other hand...
| # to create the plots in this Twitter thread: https://twitter.com/MeghanMHall/status/1560411406935138305 | |
| library(tidyverse) | |
| library(ggrepel) | |
| library(scales) | |
| df1 <- txhousing %>% | |
| filter(city %in% c("Houston","Austin")) %>% | |
| group_by(year, city) %>% | |
| summarize(avg = mean(median, na.rm = TRUE)) %>% |