You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'.
Consider something like:
| 2023.8.28 | |
| 据多名网友回复,此方法已失效。 | |
| 最新解决办法请参考此贴:[v2ex: 请问 github 的两步验证(two-factor authentication)大家是怎么做的?](https://www.v2ex.com/t/967533) | |
| https://www.v2ex.com/t/967533 | |
| --- |
| /* | |
| Collect headers (h1, h2, ..., hx) from html and generates navigatable, stylable table of contents. | |
| @param maxHeaderLevel int Define header level depth, defaults to 3. | |
| @param styleItem function Function that accepts text:string, level:int and itemAnchor:string to style toc entry, default renderer is set already (check source for usage). | |
| @return string HTML table of contents | |
| */ | |
| function generateTableOfContents(maxHeaderLevel = 3, styleItem = function (text, level, itemAnchor) { | |
| var spaces = " ".repeat(Math.max(0, (level - 1)) * 3); | |
| var tocEntry = spaces + '<a href="#' + itemAnchor + '">' + text + '</a><br/>'; |
| # http://blogs.technet.com/b/heyscriptingguy/archive/2013/04/26/use-powershell-to-work-with-windows-explorer.aspx | |
| $o = New-Object -com Shell.Application | |
| $folder = $o.NameSpace(0x11) | |
| # https://msdn.microsoft.com/en-us/library/windows/desktop/bb774096(v=vs.85).aspx | |
| # ShellSpecialFolderConstants.ssfDRIVES == 0x11 | |
| $items = $folder.Items() | |
| for ($i= 0; $i -lt $items.Count; $i++) { | |
| write-output ([string]$i + ": " + $items.Item($i).Name) |
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Tue, 06 Dec 2016 17:06:46 GMT till Wed, 06 Dec 2017 17:06:46 GMT.
Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:
githubUsers
.filter(user => user.followers > 1000)| #requires -version 2 | |
| <# | |
| .SYNOPSIS | |
| Time-base One-Time Password Algorithm (RFC 6238) | |
| .DESCRIPTION | |
| This is an implementation of the RFC 6238 Time-Based One-Time Password Algorithm draft based upon the HMAC-based One-Time Password (HOTP) algorithm (RFC 4226). This is a time based variant of the HOTP algorithm providing short-lived OTP values. | |
| .NOTES | |
| Version: 1.0 |
| package ascii; | |
| import javax.imageio.ImageIO; | |
| import javax.swing.*; | |
| import javax.swing.filechooser.FileNameExtensionFilter; | |
| import java.awt.*; | |
| import java.awt.image.BufferedImage; | |
| import java.io.File; | |
| /*Copyright (c) 2011 Aravind Rao |