Coder Social home page Coder Social logo

jabberzac / gobsprogram Goto Github PK

View Code? Open in Web Editor NEW
30.0 17.0 9.0 43 KB

Gob's Program? Y/N

Home Page: http://jabberzac.org

Awk 1.66% Java 3.95% Lua 2.16% COBOL 3.67% Shell 1.06% C++ 2.54% C# 8.27% Fortran 2.14% Go 2.70% HTML 10.08% JavaScript 3.37% PHP 0.70% Perl 1.44% PowerShell 25.33% Python 4.61% Ruby 1.75% Batchfile 7.02% Scala 1.59% Brainfuck 11.91% Rust 4.04%

gobsprogram's Introduction

Gob's Program:

Gob's Program

Gob's Program serves as a demonstration of various important concepts in programming such as text formatting, processing user input and infinite loops. It has been implemented in as many languages as possible to serve as a useful resource for beginners and advanced programmers alike.

For information on contributing, please refer to the Gob's Program Wiki.

How I run?????

BBC BASIC

Gob's Program Project 10th Anniversary Special Edition!

Run Gob's Program interactively on a web-site page!

Or type it into your BBC Micro at home if you want, do whatever, I'm not your mum.

C++

$ g++ gobsprogram.cpp -o program
$ ./program

Python

$ ./gobsprogram.py
OR
$ python gobsprogram.py

VBScript

double click it while using windows

Perl

$ ./gobsprogram.pl

OR

$ perl gobsprogram.pl

Ruby

$ ./gobsprogram.rb
OR
$ ruby gobsprogram.rb

Java

$ javac GobsProgram.java
$ java GobsProgram

Emojicode

$ emojicodec gobsprogram.๐Ÿ‡
$ ./gobsprogram

PowerShell (lol)

PowerShell 5:

PS C:\Users\User> Set-ExecutionPolicy -Scope Process Unrestricted
PS C:\Users\User> .\gobsprogram.ps1

PowerShell 6 (Windows):

PS C:\Users\User> Set-ExecutionPolicy -Scope Process Unrestricted
PS C:\Users\User> Unblock-File gobsprogram-6.ps1
PS C:\Users\User> .\gobsprogram-6.ps1

PowerShell 6 (not Windows) (lol harder):

$ pwsh
PS /home/user> .\gobsprogram-6.ps1

Golang

$ go run gobsprogram.go

PHP

$ php gobsprogram.php

Scala

scalac gobsprogram.scala
scala GobsProgram

Rust

rustc gobsprogram.rs
./gobsprogram

gobsprogram's People

Contributors

lokifer avatar bremensaki avatar camfulton avatar jamesmeneghello avatar nick-howson avatar aaronstatic avatar alfonz42 avatar darkfish avatar ahhbees avatar anthonypants avatar mcfr4g avatar mpancia avatar jlucktay avatar cswingler avatar jasharin avatar

Stargazers

 avatar Torsten Paul avatar Nelson Chen avatar Andrew King avatar  avatar  avatar eli avatar W. John McKnight avatar Camille Appert avatar Ryan Parks avatar Benjy Messner avatar kateulator avatar Oleg avatar Sean B avatar Alex Craik avatar ywenc avatar renton avatar  avatar Richard Millen avatar  avatar Ethan Butler avatar Haroldo de Oliveira Pinheiro avatar  avatar Joshua Cohen avatar Evan Dorrycott avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar Mattie avatar James Cloos avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar ARMAzac avatar

gobsprogram's Issues

Penus Columns

I think we've made a bad assumption about the operation of Gob's Program. As displayed in the TV show, the output forms columns. This cannot be an accident of output length and screen size.

The display of the computer in the show is clearly 40 columns. Programs based on our current concept of looping and printing "Penus" followed by a double space would wrap evenly at 42 columns.

The original Gob's Program must either be doing conditional printing of the trailing double space based on number of Penuses output so far, or (I think possibly most likely) is printing a single string of 40 characters:

Penus__Penus__Penus__Penus__Penus__Penus

We need to either require that the programs determine the screen width and print "Penus" only as many times as necessary to not wrap, or to assume a 40 column display and output accordingly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.