Skip to content

Instantly share code, notes, and snippets.

These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild N ~] sys-devel/llvm-common-5.0.0::gentoo 22,864 KiB
[ebuild N ] dev-python/typing-3.5.3.0::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 59 KiB
[ebuild N ] dev-python/snowballstemmer-1.2.1::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 49 KiB
[ebuild N ] dev-python/alabaster-0.7.9::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 11 KiB
[ebuild N ] dev-python/imagesize-0.7.1::gentoo USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 3 KiB
[ebuild N ] dev-python/sphinx_rtd_theme-0.1.9::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 683 KiB
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild N ~] sys-devel/llvm-common-5.0.0::gentoo 22,864 KiB
[ebuild N ] dev-python/typing-3.5.3.0::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 59 KiB
[ebuild N ] dev-python/snowballstemmer-1.2.1::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 49 KiB
[ebuild N ] dev-python/alabaster-0.7.9::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 11 KiB
[ebuild N ] dev-python/imagesize-0.7.1::gentoo USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 3 KiB
[ebuild N ] dev-python/sphinx_rtd_theme-0.1.9::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 683 KiB
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild N ~] sys-devel/llvm-common-5.0.0::gentoo 22,864 KiB
[ebuild N ] dev-python/typing-3.5.3.0::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 59 KiB
[ebuild N ] dev-python/snowballstemmer-1.2.1::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 49 KiB
[ebuild N ] dev-python/alabaster-0.7.9::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 11 KiB
[ebuild N ] dev-python/imagesize-0.7.1::gentoo USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 3 KiB
[ebuild N ] dev-python/sphinx_rtd_theme-0.1.9::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 683 KiB
@JamesWP
JamesWP / Get the first commit url.js
Last active November 21, 2016 03:58
A snippet using the github public api to get the url and sha of the first commit for a given repo
// A snippet using the github public api to get
// the url and sha of the first commit for a given repo
function openFirstCommit(userorg, repo) {
return fetch('https://api.github.com/repos/'+userorg+'/'+repo+'/commits')
.then(obj=>obj.headers.get('link'))
// the link header has additional urls for paging
.then(link=>link.split(',')[1].split(';')[0].slice(2,-1))
// the link contains two urls in the form
@JamesWP
JamesWP / SlowestBaseCommitSearch.js
Created October 1, 2016 00:55
Slowest way to find base commit of repo on github
var apibase = 'https://api.github.com/repos/Homebrew/brew';
var auth = {
username: '<CHANGEME>',
apikey: '<CHANGEME>'
};
auth.token = 'Basic ' + btoa(auth.username + ':' + auth.apikey);
var opts = {
@JamesWP
JamesWP / SlowestBaseCommitSearch.js
Created October 1, 2016 00:55
Slowest way to find base commit of repo on github
var apibase = 'https://api.github.com/repos/Homebrew/brew';
var auth = {
username: '<CHANGEME>',
apikey: '<CHANGEME>'
};
auth.token = 'Basic ' + btoa(auth.username + ':' + auth.apikey);
var opts = {
@JamesWP
JamesWP / NearestPointsNetTopologySuite.cs
Created April 27, 2016 16:01
GetNearestPoints Enumerate through nearest points in STRTree
namespace Ex{
class Example{
public static IEnumerable<Point> GetNearestPoints(STRtree<Point> tree, Point p)
{
var returnedSet = new HashSet<Point>();
returnedSet.Add(p);
var dist = new FilteredItemDistance(returnedSet);
while (true)
{
var nearest = tree.NearestNeighbour(p.Boundary.EnvelopeInternal, p, dist);
<!DOCTYPE html>
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Cutive+Mono' rel='stylesheet' type='text/css'>
<meta charset="utf-8">
<title>JamesWP</title>
<style id="jsbin-css">
body,html{
height:100%;
margin:0;
Process: CorsixTH [33782]
Path: /Applications/CorsixTH.app/Contents/MacOS/CorsixTH
Identifier: CorsixTH
Version: ???
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: CorsixTH [33782]
User ID: 501
Date/Time: 2014-11-29 09:25:48.958 +0000
function makeRequest(url) {
httpRequest = new XMLHttpRequest();
var start = new Date().getTime();
var stopTimer = function(){
if (httpRequest.readyState == 4){
var time = new Date().getTime() - start;
document.write(time<100?".":(time>600?" ":"-"));
console.log(time);
makeRequest(url);
};