- GitBook doesn't work in Firefox because it relies on contenteditable experimental APIs which Chrome implements but FF doesn't
- WebSpeech API Demo thinks that Firefox doesn't support WebSpeech API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var items = 2500000000; // number of lines to write to the file. Currently >20 GB for sequential ints | |
var buffer_size = 1000000; // amount of items to buffer in memory. Currently ~200 MB for ints | |
var fs = require('fs') | |
var buffer = []; | |
for (var i =0; i < items; i++) { | |
var data = i; // make it a random integer, or whatever else your heart desires | |
buffer.push(data); |
Docs have moved to atlassian website and are incomplete. Old trello API reference, fortunately indexed by archive.org : https://web.archive.org/web/20190228163841/https://developers.trello.com/v1.0/reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* don't make right sidebar sticky */ | |
[data-testid=sidebarColumn] > div > div:nth-child(2) { | |
position: absolute; | |
} | |
/* dull out the empty space. Hardcoded colors for white theme. */ | |
[data-testid='primaryColumn'] { | |
background:#e6ecf0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
# based on https://stackoverflow.com/a/52127956/1412255 | |
# tbh git should do better. It can record the particular commit and default remote | |
# instead of displaying "you accidentally added a git repo, did you mean to add a submodule?" | |
pushd $argv[1] | |
set url (git remote get-url (git remote)) | |
popd | |
git submodule add $url $argv[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hide Hot Network Questions and Hot Meta Posts | |
// @namespace http://CHANGE.TO.YOUR.WEBPAGE | |
// @version 0.2 | |
// @description Hide Hot-Network-Questions in StackExchange sites | |
// @match *://*.stackexchange.com/* | |
// @match *://*.stackoverflow.com/* | |
// @match *://*.superuser.com/* | |
// @match *://*.serverfault.com/* | |
// @match *://*.askubuntu.com/* |
Locate the branch name associated with the PR
Use this but replace #commit
with #branch-name
.
Use the username of the PR sender (since branch exists on their repo while unmerged)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
root = Tk() | |
w = Label(root, text="Hello World") | |
w.pack() | |
root.mainloop() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################################################## | |
# | |
# ## i3_maximize.sh ## | |
# | |
# Implements maximization of a window in i3. | |
# Swaps the focused container into a new workspace and | |
# and restores it when run again. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# will substitute :author with the variable author in your file (also works with defaults). | |
permalink: /:author/:slug/ | |
# You need to have this extra permalink_custom_vars array to tell the plugin which substitutions to make | |
permalink_custom_vars: ['author'] | |
# Note that you don't have to include the supported variables in this list as jekyll takes care of that | |
# For a complete list of variables jekyll supports, see: https://jekyllrb.com/docs/permalinks/#template-variables |
OlderNewer