You are Here:
Join our DISCORD Server - See the 'On Topic' section



Project - UK & EU Lottery killas / Open Source donation builders

Author (Read 14180 times)

0 Members and 1 Guest are viewing this topic.

Re: Project - UK & EU Lottery killas / Open Source donation builders
« Reply #24 on: June 07, 2018, 10:43:08 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
@Jerry Thank you for the info, I was not knowing it, it seems Microsoft have since officially announced

https://www.wired.com/story/microsoft-github-code-moderation/

I already released on Monday these three.

I will continue to use Github at this time and see what happens of others like me.


 

Re: Project - UK & EU Lottery killas / Open Source donation builders
« Reply #23 on: June 03, 2018, 10:55:27 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8564
    Posts
  • Reputation: 795
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 6.0 64bit

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
I would advise holding off on Github for now. There is a possibility that Microsoft is about to buy them.

Sent from my Mi Max using Tapatalk

 

EuroMillions Killa - Final - Demo
« Reply #22 on: June 03, 2018, 04:16:00 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
Demo of Final , fully functioning EuroMillions Killa/Open-Source donation builder.
As played in Austria, Belgium, France, Ireland, Luxembourg, Portugal, Spain, Switzerland, and the United Kingdom.




An Crannchur Náisiúnta (Requested)
Lotto Killa/Open-Source donation builder.



Bit delay to begin these 2, I was learning basics to use Git and Github, last 2 days, done some test projects.
I release all 3 hopefully this week, on Github, with License, so people know they can use and change it themselves or for their projects.
« Last Edit: June 07, 2018, 08:30:19 AM by bitsnpcs »
 

Re: Project - UK & EU Lottery killas / Open Source donation builders
« Reply #21 on: May 30, 2018, 11:34:50 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
@Scott happy you like it :)
Its weight is 2.8kB.



 

Re: Project - UK & EU Lottery killas / Open Source donation builders
« Reply #20 on: May 30, 2018, 09:58:53 PM »
 

Scott

  • Global Moderator
  • Gold Level Poster
  • *****
  • 857
    Posts
  • Reputation: 186
  • Linux Lite Member

  • Linux Lite: 3.4 64bit

  • CPU: Dual core Intel Core i3 M 330

  • MEMORY: 6Gb

  • VIDEO CARD: Intel Integrated Graphics

@bitsnpcs
That's very clever, great job!
 :)
 

UK Lotto final - Demo 3
« Reply #19 on: May 30, 2018, 08:53:43 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
Demo of Final.

 

UK Lotto v1.01 - Demo2
« Reply #18 on: May 30, 2018, 10:42:31 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
Demo v1.01

 

Demo of UK Lotto killa v 1.0
« Reply #17 on: May 29, 2018, 04:55:37 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
Thank You @Jerry  :)

« Last Edit: May 29, 2018, 05:27:42 AM by bitsnpcs »
 

Re: Project - UK & EU Lottery killas / Open Source donation builders
« Reply #16 on: May 28, 2018, 11:38:42 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8564
    Posts
  • Reputation: 795
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 6.0 64bit

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Well done @bitsnpcs :)
 

Demo of UK Lotto killa v 1.0
« Reply #15 on: May 28, 2018, 03:35:44 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
Demo of Fully functioning






 

Re: Project - UK & EU Lottery killas / Open Source donation builders
« Reply #14 on: May 21, 2018, 04:57:36 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
Removed socially friendly infos above here to comply with, not on topic

Result at this stage is -

1/ producing the lotto numbers randomly as it is intended for.

2/ button click output is printing to terminal, not to my output box above button.Unsure what I am doing wrong in the code, I have tried pretty much every trial and error I can think of at this time, as just learning Python.
I will have another try at getting the numbers to appear in the output box, at a future time.

3/ the Donate button does nothing yet, I am unsure of the code to add for it to open the browser, I doubt this will be difficult so I leave it for last after fixing output.

« Last Edit: May 28, 2018, 03:16:21 PM by bitsnpcs »
 

Re: Project - UK & EU Lottery killas / Open Source donation builders
« Reply #13 on: May 19, 2018, 08:56:39 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
Hello,
using the second version of the UK Lotto above I have redone the EuroMillions Python script.



EuroMillions new version with less typing, and improved comment lines, running on Linux Lite in Terminal and showing code in Gedit.
I save this to a Leafpad document in Home folder and named this eunext.py


Here is the code


Code: [Select]
# imports random function
import random

# labelling for lotto number output
print ("Your EuroMillions numbers are - ")

# Picks 5 random numbers between 1 and 50
# range goes to 51 so that 50 is inclusive, 51 is not inclusive
# .sample does not duplicate numbers picked
# Outputs these 5 results in a list
print(random.sample(range(1, 51),5))

print ("Your Lucky Stars are - ")

print(random.sample(range(1, 13),2))

# interactivity - prints options
print ("You have Options - " "\nDonate a percentage of any wins to your favorite project" "\nDonate the stake instead to your favorite project")

To run this open terminal by holding down Ctrl and Alt keys and pressing t (Ctrl+Alt+t)
Then copy/paste or type

Code: [Select]
python eunext.py
I hope you enjoyed reading this.
« Last Edit: May 19, 2018, 09:15:03 AM by bitsnpcs »
 

Re: Project - UK & EU Lottery killas / Open Source donation builders
« Reply #12 on: May 19, 2018, 08:35:25 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
Hello Mart,
I have done a new UK Lotto python script :) .
Its actions are like a combination of the initial idea, and the first posted version above.

It is still 4 lines long, but is less typing, it doesn't need all the numbers to be typed out.
I also added to the output text that it is the lotto numbers.
I have also added more comment lines in the code to explain better what each part is doing.



Screenshot of new UK Lotto number picker running in terminal on Linux Lite, and also showing code in Gedit.

Here is the code, I saved it to a Leafpad document in Home folder and name it next.py

Code: [Select]
# imports random function
import random

# labelling for lotto number output
print ("Your UK lotto numbers are - ")

# Picks 6 random numbers between 1 and 59
# range goes to 60 so that 59 is inclusive, 60 is not inclusive
# .sample does not duplicate numbers picked
# Outputs these 6 results in a list
print(random.sample(range(1, 60),6))

# interactivity - prints options
print ("You have Options - " "\nDonate a percentage of any wins to your favorite project" "\nDonate the stake instead to your favorite project")

To run this open your terminal by holding down Ctrl and Alt keys and pressing t (Ctrl+Alt+t) .
Then copy/paste or type into terminal -
Code: [Select]
python next.pythen press Enter key.


Side note - removed other linux topic not on topic in this thread.
« Last Edit: May 23, 2018, 05:23:38 AM by bitsnpcs »
 

Re: Project - UK & EU Lottery killas / Open Source donation builders
« Reply #11 on: May 19, 2018, 08:12:32 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
removed not on topic, not to be aiding the hijacking of my thread.

« Last Edit: May 23, 2018, 05:22:52 AM by bitsnpcs »
 

Re: Project - UK & EU Lottery killas / Open Source donation builders
« Reply #10 on: May 19, 2018, 07:30:04 AM »
 

Mart

  • Occasional Poster
  • **
  • 63
    Posts
  • Reputation: 14
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: Celeron(R) Dual-Core CPU T3000 @ 1.80GHz

  • MEMORY: 3Gb

  • Kernel: 5.x
Hi bitsnpcs

The simplest way for me to explain what I meant by 'stories on a human scale' is to illustrate it with the following link of top box office Hollywood films by decade -

http://www.filmsite.org/boxoffice2.html

Just compare the 2000 and 2010 decades to the rest. You'll see that the most watched films of recent decades are mainly comic book and CGI created, obviously not possible until the digital age, but personally, in this respect, I'm a bit of an analogue type of guy, so to speak.

There's nothing wrong with comic book and CGI inspired films of course, I have enjoyed some of the earlier ones myself, but now this genre tends to dominate the field.

In contrast, I believe -

Variety is the spice of life

Perhaps we should start a members' 'favorite film' thread, like the music thread, but using film trailers.


« Last Edit: May 19, 2018, 07:33:56 AM by Mart »
Still running 3.8 and lovin' it  (running 5.0 as a triple boot)
 

 

-->
X Close Ad

Join our DISCORD Server - See the 'On Topic' section