Where are you on here?
Query used on Google's BigQuery with GitHubArchive Data
SELECT actor.login as user, COUNT(*) as total FROM (| // 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
| // You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
| (() => { | |
| const SHOW_SIDES = false; // color sides of DOM nodes? | |
| const COLOR_SURFACE = true; // color tops of DOM nodes? | |
| const COLOR_RANDOM = false; // randomise color? | |
| const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
| const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
| const THICKNESS = 20; // thickness of layers | |
| const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
| #!/bin/bash | |
| # | |
| # Convert an SVG file to a PDF file by using headless Chrome. | |
| # | |
| if [ $# -ne 2 ]; then | |
| echo "Usage: ./svg2pdf.bash input.svg output.pdf" 1>&2 | |
| exit 1 | |
| fi |
| # On Windows 7, 8, 10 Hosts file is in c:\windows\system32\drivers\etc\hosts | |
| # | |
| # Block Skype ads | |
| 127.0.0.1 secure-sin.adnxs.com # On skype 7.* | |
| 127.0.0.1 *.adnxs.com # On skype 7.* | |
| 127.0.0.1 logi10.xiti.com # On skype 7.* | |
| 127.0.0.1 *.everesttech.net # On skype 7.* | |
| 127.0.0.1 pixel.everesttech.net # On skype 7.* | |
| 127.0.0.1 d.adroll.com # On skype 7.* |
| from ctypes import CDLL, c_uint, byref, create_string_buffer | |
| from ctypes.util import find_library | |
| libc = CDLL(find_library("c")) | |
| def sysctl(name, isString=True): | |
| size = c_uint(0) | |
| # Find out how big our buffer will be | |
| libc.sysctlbyname(name, None, byref(size), None, 0) | |
| # Make the buffer | |
| buf = create_string_buffer(size.value) |
| convert -density 256x256 -background transparent favicon.svg -define icon:auto-resize -colors 256 favicon.ico |
| from sympy import S | |
| ######## small size expression |
| import re | |
| def re_sub(pattern, replacement, string): | |
| def _r(m): | |
| # Now this is ugly. | |
| # Python has a "feature" where unmatched groups return None | |
| # then re.sub chokes on this. | |
| # see http://bugs.python.org/issue1519638 | |
| # this works around and hooks into the internal of the re module... |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: