Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:
sysctl -a | grep machdep.cpu.features | grep VMX
If there's output, you're good!
| import threading | |
| ''' | |
| A generic iterator and generator that takes any iterator and wrap it to make it thread safe. | |
| This method was introducted by Anand Chitipothu in http://anandology.com/blog/using-iterators-and-generators/ | |
| but was not compatible with python 3. This modified version is now compatible and works both in python 2.8 and 3.0 | |
| ''' | |
| class threadsafe_iter: | |
| """Takes an iterator/generator and makes it thread-safe by | |
| serializing call to the `next` method of given iterator/generator. | |
| """ |
Edit: This list is now maintained in the rust-anthology repo.
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "sort" | |
| "time" | |
| ) | |
| // a struct to hold the result from each request including an index |
| """ | |
| Upsert gist | |
| Requires at least postgres 9.5 and sqlalchemy 1.1 | |
| Initial state: | |
| [] | |
| Initial upsert: |
| #' Get publication metrics from iCite | |
| #' | |
| #' iCite is a tool to access a dashboard of bibliometrics for papers | |
| #' associated with a portfolio. Users upload the PubMed IDs of articles | |
| #' of interest (from SPIRES or PubMed), optionally grouping them for | |
| #' comparison. iCite then displays the number of articles, articles per | |
| #' year, citations per year, and Relative Citation Ratio (a field-normalized | |
| #' metric that shows the citation impact of one or more articles relative | |
| #' to the average NIH-funded paper). A range of years can be selected, | |
| #' as well as article type (all, or only research articles), and individual |
| from __future__ import print_function | |
| import httplib2 | |
| import os | |
| from apiclient import discovery | |
| import oauth2client | |
| from oauth2client import client | |
| from oauth2client import tools | |
$ brew install dnsmasq
...
$ cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
/usr/local/etc/dnsmasq.confaddress=/local/127.0.0.1
| query IntrospectionQuery { | |
| __schema { | |
| queryType { name } | |
| mutationType { name } | |
| subscriptionType { name } | |
| types { | |
| ...FullType | |
| } | |
| directives { |
| """ | |
| MIT License | |
| Copyright (c) 2018 Mitchel Cabuloy | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |