From be200d11cb13b7c91d11d02da689ffb39722d182 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sun, 22 Mar 2015 11:24:40 -0600 Subject: [PATCH] Add all these languages --- +/AppleScript.applescript | 1 + +/Arduino.ino | 18 ++++++++++++ +/Assembly.asm | 59 +++++++++++++++++++++++++++++++++++++++ +/C#.cs | 8 ++++++ +/C++.cpp | 7 +++++ +/C.c | 8 ++++++ +/CoffeeScript.coffee | 3 ++ +/HTML.html | 5 ++++ +/Java.java | 5 ++++ +/Javascript.js | 1 + +/Less.less | 16 +++++++++++ +/Ruby.rb | 1 + +/Sass.sass | 14 ++++++++++ +/XML.xml | 15 ++++++++++ +/css.css | 14 ++++++++++ README.md | 10 +++---- 16 files changed, 180 insertions(+), 5 deletions(-) create mode 100644 +/AppleScript.applescript create mode 100644 +/Arduino.ino create mode 100644 +/Assembly.asm create mode 100644 +/C#.cs create mode 100644 +/C++.cpp create mode 100644 +/C.c create mode 100644 +/CoffeeScript.coffee create mode 100644 +/HTML.html create mode 100644 +/Java.java create mode 100644 +/Javascript.js create mode 100644 +/Less.less create mode 100644 +/Ruby.rb create mode 100644 +/Sass.sass create mode 100644 +/XML.xml create mode 100644 +/css.css diff --git a/+/AppleScript.applescript b/+/AppleScript.applescript new file mode 100644 index 000000000000..d4de535add95 --- /dev/null +++ b/+/AppleScript.applescript @@ -0,0 +1 @@ +display dialog "This is AppleScript!" diff --git a/+/Arduino.ino b/+/Arduino.ino new file mode 100644 index 000000000000..3ee55804aa64 --- /dev/null +++ b/+/Arduino.ino @@ -0,0 +1,18 @@ +#include + +// LiquidCrystal display with: +// rs on pin 12 +// rw on pin 11 +// enable on pin 10 +// d4, d5, d6, d7 on pins 5, 4, 3, 2 +LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2); + +void setup() +{ + // Print a message to the LCD. + lcd.print("You've figured out that this is Arduino!"); +} + +void loop() +{ +} diff --git a/+/Assembly.asm b/+/Assembly.asm new file mode 100644 index 000000000000..025e0281c98a --- /dev/null +++ b/+/Assembly.asm @@ -0,0 +1,59 @@ +; MacOS X: /usr/local/bin/nasm -f macho64 *.s && ld -macosx_version_min 10.7 *.o +; Solaris/FreeBSD/DragonFly: nasm -f elf64 -D UNIX *.s && ld *.o +; NetBSD: nasm -f elf64 -D UNIX -D NetBSD *.s && ld *.o +; OpenBSD: nasm -f elf64 -D UNIX -D OpenBSD *.s && ld -static *.o +; OpenIndiana: nasm -f elf64 -D UNIX *.s && ld -m elf_x86_64 *.o +; Linux: nasm -f elf64 *.s && ld *.o + +%ifdef NetBSD +section .note.netbsd.ident + dd 7,4,1 + db "NetBSD",0,0 + dd 200000000 ; amd64 supported since 2.0 +%endif + +%ifdef OpenBSD +section .note.openbsd.ident + align 2 + dd 8,4,1 + db "OpenBSD",0 + dd 0 + align 2 +%endif + +section .text + +%ifidn __OUTPUT_FORMAT__, macho64 ; MacOS X + %define SYS_exit 0x2000001 + %define SYS_write 0x2000004 + + global start + start: +%elifidn __OUTPUT_FORMAT__, elf64 + %ifdef UNIX ; Solaris/OI/FreeBSD/NetBSD/OpenBSD/DragonFly + %define SYS_exit 1 + %define SYS_write 4 + %else ; Linux + %define SYS_exit 60 + %define SYS_write 1 + %endif + + global _start + _start: +%else + %error "Unsupported platform" +%endif + + mov rax,SYS_write + mov rdi,1 ; stdout + mov rsi,msg + mov rdx,len + syscall + mov rax,SYS_exit + xor rdi,rdi ; exit code 0 + syscall + +section .data + +msg db "Assembly in all it's glory!",10 +len equ $-msg diff --git a/+/C#.cs b/+/C#.cs new file mode 100644 index 000000000000..a5f7242ee7ec --- /dev/null +++ b/+/C#.cs @@ -0,0 +1,8 @@ +// C#.cs +public class Chashtag +{ + public static void Main() + { + System.Console.WriteLine("This is C#!"); + } +} diff --git a/+/C++.cpp b/+/C++.cpp new file mode 100644 index 000000000000..711e6b872438 --- /dev/null +++ b/+/C++.cpp @@ -0,0 +1,7 @@ +// This is C++ +#include + +int main() +{ + std::cout << "This is C++ you smegheads"; +} diff --git a/+/C.c b/+/C.c new file mode 100644 index 000000000000..11d75df90b2e --- /dev/null +++ b/+/C.c @@ -0,0 +1,8 @@ +//This is C +#include + +int main() +{ + printf("Welcome to C nerds\n"); + return 0; +} diff --git a/+/CoffeeScript.coffee b/+/CoffeeScript.coffee new file mode 100644 index 000000000000..697eaca30b08 --- /dev/null +++ b/+/CoffeeScript.coffee @@ -0,0 +1,3 @@ +alert "This is CoffeeScript!" + +x=666 diff --git a/+/HTML.html b/+/HTML.html new file mode 100644 index 000000000000..0f02a6e93efb --- /dev/null +++ b/+/HTML.html @@ -0,0 +1,5 @@ +

Hi there

+ +

This is HTML

+ +CoWinkKeyDinkInc was hear and created all these files. diff --git a/+/Java.java b/+/Java.java new file mode 100644 index 000000000000..803de4ba0b19 --- /dev/null +++ b/+/Java.java @@ -0,0 +1,5 @@ +class HelloWorldApp { + public static void main(String[] args) { + System.out.println("Welcome to Java, where using Maven is impossible!"); // Display the string. + } +} diff --git a/+/Javascript.js b/+/Javascript.js new file mode 100644 index 000000000000..4ff20c568971 --- /dev/null +++ b/+/Javascript.js @@ -0,0 +1 @@ +alert("This is Javascript.") diff --git a/+/Less.less b/+/Less.less new file mode 100644 index 000000000000..789604396da1 --- /dev/null +++ b/+/Less.less @@ -0,0 +1,16 @@ +h1 + background: white; + + +a + color: rainbow-sherbert + font: Comic +} + +p + font: Comic + + +/* This is LESS than nothing! + +https://www.youtube.com/watch?v=6zXDo4dL7SU */ diff --git a/+/Ruby.rb b/+/Ruby.rb new file mode 100644 index 000000000000..e9dd25811a5c --- /dev/null +++ b/+/Ruby.rb @@ -0,0 +1 @@ +puts 'This is Ruby!' diff --git a/+/Sass.sass b/+/Sass.sass new file mode 100644 index 000000000000..b9c131d2e0bf --- /dev/null +++ b/+/Sass.sass @@ -0,0 +1,14 @@ +h1 + background: white + + +a + color: rainbow-sherbert + font: Comic + + +p + font: Comic + + +/* This is Sass */ diff --git a/+/XML.xml b/+/XML.xml new file mode 100644 index 000000000000..bf6851c15b92 --- /dev/null +++ b/+/XML.xml @@ -0,0 +1,15 @@ +CoWinkKeyDinkInc + + + Wasting time + Screwing around + Enjoying life + + + + + Get rid of the spammers for goodness sakes YouTube, and stop the copyright crap + + + + diff --git a/+/css.css b/+/css.css new file mode 100644 index 000000000000..c26ad8ef0320 --- /dev/null +++ b/+/css.css @@ -0,0 +1,14 @@ +h1 { + background: white; +} + +a { + color: rainbow-sherbert; + font: Comic; +} + +p { + font: Comic; +} + +/* This is CSS you dolt! */ diff --git a/README.md b/README.md index f9a856c00e09..b74831b0bc6e 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ ```   _______  - /        \ _ ____ _____ ___________ _________ - \   ・   ・ \ | | /| / / // / _ /_ __/ __/ | / / __/ _ \ + /        \ _ ____ _____ ___________ ________ + \   ・   ・ \ | | /| / / // / _ /_ __/ __/ | / / __/ _ \   \     \   \ | |/ |/ / _ / __ |/ / / _/ | |/ / _// , _/ -   \  :   ̄  : \ |__/|__/_//_/_/ |_/_/ /___/ |___/___/_/|_| +   \  :   ̄  : \ |__/|__/_//_/_/ |_/_/ /___/ |___/___/_/|_|     \    ̄    | ------------------------------------------------      \___  _/ -         \ \_______/)- +         \ \________ /)-          /     _    _三;         /        \ ̄ ̄ ̄ ̄        /  /\      \ -   (L _/  /  \      \ +    (L_/  /  \      \    :三___/     \      \     ~          \      \