- Create a GKE cluster with a GPU node pool:
gcloud container clusters create gpu-sharing-demo --zone us-central1-c| Things to try before permanent vacation: | |
| 1. Cook south indian | |
| 2. Eat a truffle (the mushroom, not the dessert) | |
| 3. Drink wine on a boat | |
| 4. Be an extra in a Bollywood movie | |
| 5. Try steeplechase | |
| 6. Start my own tech startup | |
| 7. Watch Gone With The Wind | |
| 8. Travel India | |
| 9. Take a teacher out to dinner |
| .tokenahead { | |
| cursor: text; | |
| overflow: hidden; | |
| height: auto; | |
| padding-bottom: 0; | |
| border-color:#ccc; | |
| background-color:white; | |
| } | |
| .focus{ | |
| border-color: rgba(82, 168, 236, 0.8); |
| Row | Season | No. in series | Company | Deal | Industry | Entrepreneur Gender | Amount | Equity | Valuation | Corcoran | Cuban | Greiner | Herjavec | John | O'Leary | Harrington | Guest | # Sharks | $ per shark | Details / Notes | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 1 | 1 | Ava the Elephant | Yes | Healthcare | Female | $50,000 | 55% | $90,909 | 1 | 1 | $50,000 | |||||||||
| 3 | 1 | 1 | Mr. Tod's Pie Factory | Yes | Food and Beverage | Male | $460,000 | 50% | $920,000 | 1 | 1 | 2 | $230,000 | ||||||||
| 4 | 1 | 1 | Wispots | No | Business Services | Male | 0 | ||||||||||||||
| 5 | 1 | 1 | College Foxes Packing Boxes | No | Lifestyle / Home | Male | 0 | ||||||||||||||
| 6 | 1 | 1 | Ionic Ear | No | Uncertain / Other | Male | 0 | ||||||||||||||
| 7 | 1 | 2 | A Perfect Pear | Yes | Food and Beverage | Female | $500,000 | 50% | $1,000,000 | 1 | 1 | 2 | $250,000 | ||||||||
| 8 | 1 | 2 | Classroom Jams | Yes | Children / Education | Male | $250,000 | 10% | $2,500,000 | 1 | 1 | 1 | 1 | 1 | 5 | $50,000 | |||||
| 9 | 1 | 2 | Lifebelt | No | Consumer Products | Male | 0 |
| javascript:(function(e,t,n,r,i,s,o,u){if(!(i=e.jQuery)||n>i.fn.jquery||r(i)){s=t.createElement("script");s.type="text/javascript";s.src="http://ajax.googleapis.com/ajax/libs/jquery/"+n+"/jquery.min.js";s.onload=s.onreadystatechange=function(){if(!o&&(!(u=this.readyState)||u=="loaded"||u=="complete")){r((i=e.jQuery).noConflict(1),o=1);i(s).remove()}};t.documentElement.childNodes[0].appendChild(s)}})(window,document,"1.8.3",function(e,t){var n=e("font[color]").filter(function(){if(parseInt(e(this).text(),10)>0){return true}return false}).parent();var r=e("body").html();n.each(function(){var t=e(this).attr("href").replace("#","");var n=parseInt(t.replace("f",""),10);var i=new RegExp('<a name="'+t+'">([^]*?)[[]');var s=r.match(i);if(s&&s[0]){var o=e(s[0].replace("<br>","\n")).text().replace(n+"]","");o=o.replace("csell_env = 'mud';","").replace("// Begin Y! Store Generated Code","");var u=e('<div class="note" style="background:#FFFFFF;border:3px solid #000;left:0px;top:15px;width:300px;position:absolute;padding:1 |
| import pyaudio | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from scipy.fftpack import fft | |
| import matplotlib.animation as animation | |
| CHUNK = 1024 # signal is split into CHUNK number of frames | |
| FORMAT = pyaudio.paInt16 |
| /** | |
| * A simple theme for reveal.js presentations, derived from serif.css | |
| * It's in the spirit of the Metropolis theme for beamer https://github.com/matze/mtheme | |
| * | |
| * This theme is Copyright (C) 2016 Vince Hodges, http://sourdoughlabs.com - it is MIT licensed. | |
| */ | |
| @import url('https://fonts.googleapis.com/css?family=Fira+Sans'); | |
| .reveal a { |
| // Tokenahead.less | |
| // --------------- | |
| .tokenahead { | |
| cursor: text; | |
| overflow: hidden; | |
| height: auto; | |
| padding-bottom: 0; | |
| border-color: @inputBorder; | |
| } |
The documentation 6.2.9.4. "Asynchronous generator-iterator methods" is phrased really ambiguously. To make matters worse, typing.AsyncGenerator is not specified fully correctly.
Here, I attempt to more clearly capture the actual interface contract, based on what I've read and observed. See also PEP 492 -- Coroutines with async and await syntax and PEP 525 -- Asynchronous Generators.
This might be useful to implement lower-level behaviors than you can with async for, like sending values into the generator function.
TSend = TypeVar('TSend', contravariant=True)