diff --git a/Java/helloworldFunction.java b/Java/helloworldFunction.java new file mode 100644 index 0000000..3813bd0 --- /dev/null +++ b/Java/helloworldFunction.java @@ -0,0 +1,10 @@ +public class helloworldFunction{ + public static void main(String args[]){ + sayHello(); + } + + //simple function to print hello world + private static void sayHello(){ + System.out.println("Hello world"); + } +} \ No newline at end of file diff --git a/Moo:Cow/HelloWorld.cow b/Moo:Cow/HelloWorld.cow deleted file mode 100644 index b5296af..0000000 --- a/Moo:Cow/HelloWorld.cow +++ /dev/null @@ -1 +0,0 @@ -MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO Moo MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO Moo MoO MoO MoO MoO MoO MoO MoO Moo Moo MoO MoO MoO Moo OOO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO Moo MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO Moo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo MOo Moo MOo MOo MOo MOo MOo MOo MOo MOo Moo MoO MoO MoO Moo MOo MOo MOo MOo MOo MOo Moo MOo MOo MOo MOo MOo MOo MOo MOo Moo OOO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO MoO Moo diff --git a/Objective C/HelloWorld.m b/Objective C/HelloWorld.m deleted file mode 100644 index 6cfd826..0000000 --- a/Objective C/HelloWorld.m +++ /dev/null @@ -1,11 +0,0 @@ -// Hello world in Objective C - -#import - -int main (int argc, const char * argv[]) -{ - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - NSLog (@"Hello World"); - [pool drain]; - return 0; -} diff --git a/PHP/basic.php b/PHP/basic.php deleted file mode 100644 index cff683b..0000000 --- a/PHP/basic.php +++ /dev/null @@ -1,3 +0,0 @@ - -html(lang="en") - head - meta(charset="UTF-8") - meta(name="viewport", content="width=device-width, initial-scale=1.0") - meta(http-equiv="X-UA-Compatible", content="ie=edge") - title Hello World - body - p#show - script - - document.getElementById("show").innerHTML = "Hello World!" \ No newline at end of file diff --git a/Python/hello_world_pybash.py b/Python/hello_world_pybash.py deleted file mode 100644 index f37ec09..0000000 --- a/Python/hello_world_pybash.py +++ /dev/null @@ -1,2 +0,0 @@ -import os -os.system('echo "Hello World!"') diff --git a/Python/hellopython.py b/Python/hellopython.py deleted file mode 100644 index fe835f9..0000000 --- a/Python/hellopython.py +++ /dev/null @@ -1,25 +0,0 @@ -hw = [] -for c in list("Hello World"): - hw.append(ord(c)) - -o = [] - -for i in hw: - if i == 72: - o.append(chr(i)) - elif i == 101: - o.append(chr(i)) - elif i == 108: - o.append(chr(i)) - elif i == 111: - o.append(chr(i)) - elif i == 32: - o.append(chr(i)) - elif i == 87: - o.append(chr(i)) - elif i == 114: - o.append(chr(i)) - elif i == 100: - o.append(chr(i)) - -print("".join(o)) diff --git a/Python/hellorubelinebyline.py b/Python/hellorubelinebyline.py deleted file mode 100644 index 41801ed..0000000 --- a/Python/hellorubelinebyline.py +++ /dev/null @@ -1,47 +0,0 @@ -greeting = "HELLO WORLD" -letter_width = 5 - -class Char: - """ - Select a character from string char_str, update to next character with nextChar. - """ - def __init__(self, char_str, char_index_start=0): - self.txt = char_str - self.char_index = char_index_start - self.current_char = self.txt[self.char_index] - - def nextChar(self): - # update current_char - self.char_index += 1 - self.current_char = self.txt[self.char_index] - -# mapping of whitespace (ones) and letter characters (zeros) -spacing = [ - [0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1], - [0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0], - [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0], - [0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0], - [0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1] - ] - -for line in spacing: - text = "" - c = Char(greeting, char_index_start=0) - for pos, is_space in enumerate(line): - - # move to next character at every multiple of letter_width (+ 2 empty spaces) - if (pos != 0) & (pos % (letter_width + 2) == 0): - c.nextChar() - - # add extra whitespace between the words - if c.current_char == " ": - text = text + (" ")*5 - c.nextChar() - - # add a letter character or whitespace - if not is_space: - text = text + (c.current_char) - else: - text = text + (" ") - - print(text) diff --git a/Python/hellorubepy.py b/Python/hellorubepy.py deleted file mode 100644 index 7759bf3..0000000 --- a/Python/hellorubepy.py +++ /dev/null @@ -1,7 +0,0 @@ -import datetime -a = datetime.datetime.now() -a = a.month -if a == 10: - print("Hello World!!! Have a nice Hacktoberfest") -else: - print("Hello World!!! Hacktoberfest is gone :(") diff --git a/Python/inputworld.py b/Python/inputworld.py deleted file mode 100644 index ab34c80..0000000 --- a/Python/inputworld.py +++ /dev/null @@ -1,41 +0,0 @@ -#! python3 -# helloinputworld.py - Takes user input and gives the impression that calculations are preformed to turn it into "Hello World" - -import time - -#ask for user input that will appear to convert to hello world -answer = "" -while answer == "": - answer = input("Type in any word or phrase:") -answer = answer.split() - -#take their input and show status messages that give the impression that input is being adjusted -if len(answer) < 2: - for i in answer: - print("Converting " + i + " to Hello") - time.sleep(.5) - print("Converted") - time.sleep(.5) - print("Adding World! to answer") - time.sleep(.5) - print("Added!") - time.sleep(.5) - answer = "Hello World!" -else: - for i,c in enumerate(answer): - if i < 1: - print("Converting " + c + " to Hello") - time.sleep(.5) - print("Converted") - time.sleep(.5) - elif i == 1: - print("Converting " + c + " to World!") - time.sleep(.5) - print("Converted") - time.sleep(.5) - else: - print("Deleting " + c) - time.sleep(.5) - answer = "Hello World" -time.sleep(.5) -print("Your new answer is " + answer) diff --git a/Python/primerube.py b/Python/primerube.py deleted file mode 100644 index 5bf240e..0000000 --- a/Python/primerube.py +++ /dev/null @@ -1,27 +0,0 @@ -def is_prime(num): - if abs(num) > 1: - for i in range(2, num): - if num % i == 0: - return False - return True - else: - return False - - -# Gather integer from user -user_num = input("Enter a positive integer: ") -if user_num.isdigit(): - real_user_num = int(user_num) -else: - print("That's not a positive integer, let me fix that for you.\n") - real_user_num = 0 - for char in user_num: - real_user_num += ord(char) - -# If Prime - Reverse string -if is_prime(real_user_num): - print("Result: {0}".format(bytes.fromhex('48656c6c6f20576f726c6421').decode('utf-8')[::-1])) - -# If not prime - print regular string -else: - print("Result: {0}".format(bytes.fromhex('48656c6c6f20576f726c6421').decode('utf-8'))) diff --git a/Python/railrube.py b/Python/railrube.py deleted file mode 100644 index 099c01f..0000000 --- a/Python/railrube.py +++ /dev/null @@ -1,17 +0,0 @@ -hello = "Hello World" -helloRail = [] -for r in range(3): - helloRail.append([]) - for c in range(len(hello)): - helloRail[r].append(".") -r = 0 -down = True -for c,char in enumerate(hello): - helloRail[r][c] = char - r += 1 if down else -1 - if r == 2: - down = False - elif r == 0: - down = True -for r in helloRail: - print(r) diff --git a/Python/rot13rubepython.py b/Python/rot13rubepython.py deleted file mode 100644 index 8fee6c5..0000000 --- a/Python/rot13rubepython.py +++ /dev/null @@ -1,16 +0,0 @@ -# This passes a coded string into a function that decodes rot13 messages and returns the decoded message -def decode(secret): - result = "" - for char in secret: - c = ord(char) - if 64 < c < 78: - result += chr(c + 45) - elif c >= 78: - result += chr(c + 19) - else: - result += char - return result - - -secret = ["U", "R", "Y", "Y", "B", " ","J", "B", "E", "Y", "Q","!"] -print(decode(secret)) diff --git a/Python/simple.py b/Python/simple.py deleted file mode 100644 index e21cbfa..0000000 --- a/Python/simple.py +++ /dev/null @@ -1 +0,0 @@ -print("Hello World") # so simple, it's practically cheating diff --git a/Python/webscraperube.py b/Python/webscraperube.py deleted file mode 100644 index 047d952..0000000 --- a/Python/webscraperube.py +++ /dev/null @@ -1,29 +0,0 @@ -import urllib2 -import requests -from bs4 import BeautifulSoup -from random import * - -hello_rube_markup = urllib2.urlopen("http://github.com").read() -hello_rube_soup = BeautifulSoup(hello_rube_markup, "html.parser") -hello_rube_soup = str(hello_rube_soup) - -hello_count = 0 -goal = "hello world" -is_printing = False - - -for char in range(len(hello_rube_soup)): - - if hello_rube_soup[char] == goal[hello_count]: - print hello_rube_soup[char] - is_printing = True - hello_count=hello_count+1 - if hello_rube_soup[char] == goal[len(goal)-1]: - break - elif hello_count < 8 and char == hello_rube_soup[len(hello_rube_soup)-1]: - for remaining_index in range(hello_count, 8): - print goal[remaining_index] - break - elif is_printing==False and char==hello_rube_soup[len(hello_rube_soup)-1]: - print goal - break diff --git a/R/hello_rube.R b/R/hello_rube.R deleted file mode 100644 index eb22ef1..0000000 --- a/R/hello_rube.R +++ /dev/null @@ -1,5 +0,0 @@ -hello <- strsplit("Hello World!", "") -for (letter in hello) - { - cat(letter) - } diff --git a/README.md b/README.md deleted file mode 100644 index bfe4c30..0000000 --- a/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# HelloRube -No matter your experience or skill level, feel free to contribute to this repo. - -## What to contribute -All you need to do is simply contribute a hello world script, in any abstract or obscure way you see fit. This can be done in any language and the complexity can range from simple to very complex, so long as it outputs "Hello World"! Feel free to browse around current contributions for any inspiration. - -## Contributors -Feel free to add your username here :) - -* [DaylightFox](https://github.com/DaylightFox) -* [lokiiarora](https://github.com/lokiiarora) -* [purenaturalism](https://github.com/purenaturalism) -* [Cutwell](https://github.com/Cutwell) -* [matgraham](https://github.com/matgraham) -* [Mameaw14](https://github.com/Mameaw14) -* [thatguywiththatname](https://github.com/thatguywiththatname) -* [zetolhousa](https://github.com/zetolhousa) -* [NNiehof](https://github.com/NNiehof) -* [00111000](https://github.com/00111000) -* [rjsabatini](https://github.com/rjsabatini) -* [cheinle](https://github.com/cheinle) -* [conscou](https://github.com/conscou) -* [Octamois](https://github.com/octamois) -* [kkneville](https://github.com/kkneville) diff --git a/Ruby/helloworld.rb b/Ruby/helloworld.rb deleted file mode 100644 index 2ff0b14..0000000 --- a/Ruby/helloworld.rb +++ /dev/null @@ -1,62 +0,0 @@ -# Print strings together with a + - -puts "Example 1 " - -a = "hello " -b = "world" - -puts a + b - -puts "-----------------------------" -# Contatenate strings and variables with #{} - -puts "Example 2 " - -a = "world" - -puts "hello #{a}" - -puts "-----------------------------" - -# Loop through an array - -puts "Example 3 " - -a = ["h", "e", "l", "l", "o", " ", "w", "o", "r", "l", "d"] - -a.each do |letter| - puts letter -end - -puts "-----------------------------" - -# Print the array the way it is - -puts "Example 4 " - -p a - -puts "-----------------------------" - -# use an object - -puts "Example 5 " - -class Word - def initialize - @h = "hello" - @w = "world" - end - - def display - puts @h, @w - end -end - -a = Word.new - -a.display - - -puts "-----------------------------" - diff --git a/Rust/hello.rs b/Rust/hello.rs deleted file mode 100644 index 47ad8c6..0000000 --- a/Rust/hello.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - println!("Hello World!"); -} diff --git a/ShellScripts/helloworld.sh b/ShellScripts/helloworld.sh deleted file mode 100644 index e97383a..0000000 --- a/ShellScripts/helloworld.sh +++ /dev/null @@ -1,6 +0,0 @@ -# LANGUAGE: bash -# AUTHOR: Lokesh Raj Arora -# GITHUB: https://github.com/lokiiarora - -#!/bin/bash -echo "Hello World! and hello $USER" \ No newline at end of file diff --git a/kotlin/hello_world.kt b/kotlin/hello_world.kt deleted file mode 100644 index bb5c656..0000000 --- a/kotlin/hello_world.kt +++ /dev/null @@ -1,5 +0,0 @@ -// Hello World Program - -fun main(args : Array) { - println("Hello, World!") -}