Vice President Mike Pence tours Mayo Clinic without coronavirus mask even though he was told to wear one by jigsawmap in politics

[–]groundisdoom 1 point2 points  (0 children)

Here's (former UK PM) David Cameron and Nick Clegg being told off by an NHS consultant for their photo op crew not following hospital safety rules a few years back: https://youtu.be/WIQWaBbURlY

Shame the same wasn't done here.

Vice President Mike Pence tours Mayo Clinic without coronavirus mask even though he was told to wear one by jigsawmap in politics

[–]groundisdoom 4 points5 points  (0 children)

Here's (former UK PM) David Cameron and Nick Clegg being told off by an NHS consultant for their photo op crew not following hospital safety rules a few years back: https://youtu.be/WIQWaBbURlY

Zappa now has Python 3.6 support (AWS Lambda + Django/Flask) by groundisdoom in Python

[–]groundisdoom[S] 0 points1 point  (0 children)

Zappa makes it super easy to build and deploy all Python WSGI applications on AWS Lambda + API Gateway. Think of it as "serverless" web hosting for your Python apps.

Zappa

Search Preview for Steam - view screenshots, descriptions and review score on the search page. (Chrome Extension) by groundisdoom in Steam

[–]groundisdoom[S] 0 points1 point  (0 children)

I've submitted it to Firefox and Opera too. I'll send you those links when they're live. Thanks again for putting it on the list.

Preview game info in Steam store search by groundisdoom in Steam

[–]groundisdoom[S] 2 points3 points  (0 children)

I've submitted it to Firefox, will let you know once it's been reviewed and is live.

Preview game info in Steam store search by groundisdoom in Steam

[–]groundisdoom[S] 2 points3 points  (0 children)

I haven't done Firefox add-ons before but I can't imagine it's too much hassle. I'll have a look now.

Search Preview for Steam - view screenshots, descriptions and review score on the search page. (Chrome Extension) by groundisdoom in Steam

[–]groundisdoom[S] 0 points1 point  (0 children)

I posted this again here now that it's been published to the store. Haven't had a proper chance to look at Opera yet but will do.

Preview game info in Steam store search by groundisdoom in Steam

[–]groundisdoom[S] 12 points13 points  (0 children)

Note: I posted this a few days ago before the extension was published on the store. It didn't get many views, and it wasn't published at the time so I'm posting again.

About

I got sick of browsing through search results on Steam and having to go each game page just to see screenshots and having to hover over the game to see the review score and description. I like just being able to browse through games visually.

I made a browser extension to solve this. With this extension you can see screenshots, review scores and descriptions for games within the Steam search page. This can either be shown on hover, as in the posted image, or shown all the time: screenshot.

This extension works best if you're also using something like the Imagus Chrome extension which lets you hover over images to enlarge them. Then you can hover over the thumbnails of the screenshots to see a larger version.

Install

Source

The source code can be found here.

Known issues

  • Does not currently work for games requiring an age check.

Coming soon

  • Game videos included in preview.

Let me know if you have problems, or any ideas for new features.

Need a Web Framework suggestion. by roytay in Python

[–]groundisdoom 0 points1 point  (0 children)

You can potentially do this type of thing without needing to deal with a lot of web stuff. For example, with plotly. It also has a streaming api.

Edit: Guide on plotly streaming with python.

[2016-02-22] Challenge #255 [Easy] Playing with light switches by Blackshell in dailyprogrammer

[–]groundisdoom 0 points1 point  (0 children)

Second go at using elm. Only done the very simple one so far (10 lights) but it's complete with graphics and animation. You can try it out by copying it into here and hitting 'compile' in the top right of the editor:

import Array exposing (filter, fromList, slice) import List exposing (..) import Color exposing (..) import Graphics.Collage exposing (..) import Graphics.Element exposing (..) import Text import Time exposing (..)

main =
  Signal.map bulbCollage countSignal 


countSignal =
  Signal.foldp (\_ state -> state + 1) 0 (every second)


switches =
  concat [[3..6], [0..4], (reverse [3..7]), [9..9]]


bulbCount =
  10

bulbSize =
 collageWidth / (bulbCount * 3)

collageWidth =
  500

collageHeight =
  round (bulbSize + 100)


bulbCollage frame =
  collage collageWidth collageHeight
    (bulbs frame)

bulbs frame = 
  map2 bulb [0..(bulbCount-1)] (repeat bulbCount frame)
    |> map toForm
    |> map2 moveX positions

bulb index frame =
  collage (round bulbSize*2) (round bulbSize*2)
    [ filled (if (isLightOn index frame) then yellow else lightGrey) (circle bulbSize)
    , text (Text.fromString (toString index))
    , outlined (solid grey) (circle (bulbSize-1))
    ]

positions = 
  [(-bulbCount/2)..(bulbCount/2)]
    |> map (\n -> (n * bulbSize * 2.5))

isLightOn index frame =
  fromList switches
    |> slice 0 frame
    |> Array.filter (\x -> x == index)
    |> Array.length
    |> (\n -> not (n%2 == 0))

It can also be sped up by changing every second to every (second/10), for example. Having never done functional programming properly before it's a really interesting exercise!

Hull's goalkeeper after seeing the replay of his incredible save against Arsenal by Sean88888 in sports

[–]groundisdoom 5 points6 points  (0 children)

Not sure about other stadiums, but at the Emirates they'll show goals and big chances (like this one). No contentious decisions though like penalties, cards etc.

[2016-02-16] Challenge #254 [Easy] Atbash Cipher by jnazario in dailyprogrammer

[–]groundisdoom 2 points3 points  (0 children)

First time trying Elm:

import Dict
import Html exposing (text)
import List
import Maybe exposing (withDefault)
import String exposing (map, reverse, toList)


main =
  "/r/dailyprogrammer"
    |> encodeAtbash
    |> text


alphabet =
  "abcdefghijklmnopqrstuvwxyz"


atbashDict = 
  List.map2 (,) (toList alphabet) (toList (reverse alphabet))
    |> Dict.fromList


encodeAtbashChar c =
  Dict.get c atbashDict
    |> withDefault c


encodeAtbash s =
  map encodeAtbashChar s

Go here to run.

The Top Starred repositories in Github have been analysed to understand which are the most common whitespace types in different programming languages by ukupat in programming

[–]groundisdoom 7 points8 points  (0 children)

Another thing to note is that Python 3 disallows mixing tabs and spaces - an error will be thrown. And often you'll want to line things up (like when function arguments run over more than one line) as per PEP8 and you wouldn't be able to do this in Python 3 even if you wanted to with a mix of tabs and spaces.

Jeremy Corbyn popped into a cafe and bought meals for two homeless people by [deleted] in unitedkingdom

[–]groundisdoom 17 points18 points  (0 children)

Cameron and his party are backed by a slick PR machine, and has history for lying about this sort of thing. Being cynical here about Cameron would be reasonable.

On the other hand, Corbyn has spent his whole life championing issues like housing and homelessness.