Merge remote-tracking branch 'upstream/master'
This commit is contained in:
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 Mike Donaghy [leachim6]
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
29
README.md
29
README.md
@@ -13,6 +13,8 @@ Make sure to see CONTRIBUTING.md for instructions on contributing to the project
|
||||
Spin-Off project smartly suggested and implemented by [@zenware](https://github.com/zenware):
|
||||
Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-world](https://github.com/leachim6/hello-world).
|
||||
|
||||
* [Hello Html](e/elm.elm)
|
||||
|
||||
### This repository currently contains "Hello World" programs in the following languages:
|
||||
* [0815](%23/0815.0815)
|
||||
* [1C Enterprise](%23/1c-enterprise)
|
||||
@@ -67,9 +69,11 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Assembler 6502C64](a/assembler_6502c64.asm)
|
||||
* [Assembler 6809Vectrex](a/assembler_6809vectrex.asm)
|
||||
* [Assembler 8048 Videopac](a/assembler_8048_videopac.asm)
|
||||
* [Assembler Arm](a/assembler_arm.s)
|
||||
* [Assembler Atari2600](a/assembler_atari2600.asm)
|
||||
* [Assembler Dcpu16](a/assembler_DCPU16.asm)
|
||||
* [Assembler Fasm Dos](a/assembler_fasm_dos.asm)
|
||||
* [Assembler Hla](a/assembler_hla.hla)
|
||||
* [Assembler Ibm360](a/assembler_ibm360.asm)
|
||||
* [Assembler Intel](a/assembler_intel.asm)
|
||||
* [Assembler Lc 3](a/assembler_lc-3.asm)
|
||||
@@ -82,14 +86,17 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Assembler Nasm Freebsd](a/assembler_nasm_freebsd.asm)
|
||||
* [Assembler Nasm Linux](a/assembler_nasm_linux.asm)
|
||||
* [Assembler Nasm Linux64](a/assembler_nasm_linux64.asm)
|
||||
* [Assembler Nasm Win32](a/assembler_nasm_win32.asm)
|
||||
* [Assembler Tasm Dos](a/assembler_tasm_dos.asm)
|
||||
* [Assembler Tms9900 Ti99 4A](a/assembler_tms9900_ti99_4a.asm)
|
||||
* [Assembler Vax Ultrix](a/assembler_vax_ultrix.asm)
|
||||
* [Assembler Z80 Knightos](a/assembler_z80_knightos.asm)
|
||||
* [Assembler Z80 Ti83Calculator](a/assembler_z80_ti83calculator.asm)
|
||||
* [Assembler Z80 Zxspectrum](a/assembler_z80_zxspectrum.asm)
|
||||
* [Attache](a/Attache.@)
|
||||
* [Autohotkey](a/autohotkey.ahk)
|
||||
* [Autoit](a/autoit.au3)
|
||||
* [Awful](a/awful.yuk)
|
||||
* [Awk](a/awk.awk)
|
||||
* [B](b/B.b)
|
||||
* [Bash](b/bash.bash)
|
||||
@@ -109,8 +116,8 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Blitz3D](b/blitz3d.bb)
|
||||
* [Blub](b/blub.blub)
|
||||
* [Boo](b/boo.boo)
|
||||
* [Brainf Ck 2D](b/brainf-ck-2d.bf2d)
|
||||
* [Brainf Ck](b/brainf-ck.bf)
|
||||
* [Brainfuck 2D](b/brainfuck-2d.bf2d)
|
||||
* [Brainfuck](b/brainfuck.bf)
|
||||
* [Brainloller](b/Brainloller.png)
|
||||
* [Broccoli](b/broccoli.brocc)
|
||||
* [Brzrk](b/BRZRK.brzrk)
|
||||
@@ -147,9 +154,10 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Crystal](c/crystal.cr)
|
||||
* [Csh](c/csh.csh)
|
||||
* [Csharp](c/csharp.cs)
|
||||
* [Cson](c/cson.cson)
|
||||
* [Css](c/css.css)
|
||||
* [Curry](c/curry.curry)
|
||||
* [Cypherneo4J](c/cypherNeo4j.cypher)
|
||||
* [Hello World](c/hello-world.curry)
|
||||
* [D](d/d.d)
|
||||
* [Dark](d/dark.txt)
|
||||
* [Dart](d/Dart.dart)
|
||||
@@ -176,19 +184,20 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Eiffel](e/Eiffel.eiff)
|
||||
* [Elixir](e/elixir.ex)
|
||||
* [Elixir](e/elixir.exs)
|
||||
* [Elm](e/elm.elm)
|
||||
* [Emacslisp](e/EmacsLisp.el)
|
||||
* [Emmental](e/emmental.emmental)
|
||||
* [Emojicode](e/emojicode.emojic)
|
||||
* [Emoticon](e/emoticon.emoticon)
|
||||
* [Eoool](e/EOOOL.eoool)
|
||||
* [Erlang Hw](e/erlang_hw.erl)
|
||||
* [Hello Html](e/hello-html.elm)
|
||||
* [Factor](f/factor.factor)
|
||||
* [Falcon](f/falcon.fal)
|
||||
* [False](f/false.f)
|
||||
* [Fancy](f/fancy.fy)
|
||||
* [Fantom](f/fantom.fan)
|
||||
* [Ferite](f/ferite.fe)
|
||||
* [Fetlang](f/fetlang.fet)
|
||||
* [Fish](f/fish.fish)
|
||||
* [Fjoelnir](f/fjoelnir.fjo)
|
||||
* [Fob](f/fob.fob)
|
||||
@@ -209,12 +218,14 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Geojson](g/geojson.geojson)
|
||||
* [Gibberish](g/gibberish.gibberish)
|
||||
* [Glass](g/glass.glass)
|
||||
* [Gml](g/gml.gml)
|
||||
* [Go](g/go.go)
|
||||
* [Golfscript](g/golfscript.golfscript)
|
||||
* [Golo](g/golo.golo)
|
||||
* [Googleappscript](g/googleappscript.gs)
|
||||
* [Gosu](g/gosu.gosu)
|
||||
* [Gosu](g/gosu.gs)
|
||||
* [Gravity](g/gravity.gravity)
|
||||
* [Green Marl](g/Green-Marl.gm)
|
||||
* [Gri](g/gri.gri)
|
||||
* [Gridscript](g/GridScript.gridscript)
|
||||
@@ -259,7 +270,6 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Java](j/Java.java)
|
||||
* [Javascript](j/javascript.js)
|
||||
* [Jess](j/jess.cpl)
|
||||
* [Jsf*Ck](j/JSF%2Ack.js)
|
||||
* [Json](j/json.json)
|
||||
* [Jsoniq](j/JSONiq)
|
||||
* [Jsx](j/jsx.js)
|
||||
@@ -269,7 +279,6 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Kiml](k/KimL.kiml)
|
||||
* [Kipple](k/kipple.kipple)
|
||||
* [Kitten](k/kitten.ktn)
|
||||
* [Kotlin](k/kotlin)
|
||||
* [Kotlin](k/kotlin.kt)
|
||||
* [Ksh](k/ksh.ksh)
|
||||
* [Labyrinth](l/labyrinth.labyrinth)
|
||||
@@ -315,6 +324,7 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Mushcode](m/mushcode.mush)
|
||||
* [Myrddin](m/myrddin.myr)
|
||||
* [Mysql](m/mysql.sql)
|
||||
* [Mathematica](n/mathematica.nb)
|
||||
* [Neko](n/neko.neko)
|
||||
* [Nemerle](n/nemerle.n)
|
||||
* [Newtonscript](n/newtonscript.nwt)
|
||||
@@ -380,6 +390,7 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Pyret](p/pyret.arr)
|
||||
* [Python](p/python.py)
|
||||
* [Python3](p/python3.py)
|
||||
* [Q](q/q.q)
|
||||
* [Qbasic](q/Qbasic.bas)
|
||||
* [Qore](q/qore.q)
|
||||
* [Qu](q/qu.qu)
|
||||
@@ -392,12 +403,14 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Radixal](r/radixal.radixal)
|
||||
* [Ratfor](r/ratfor.ratfor)
|
||||
* [React](r/react.js)
|
||||
* [Readlink](r/readlink.readlink)
|
||||
* [Reason](r/reason.re)
|
||||
* [Rebol](r/rebol.r)
|
||||
* [Recurse](r/recurse.recurse)
|
||||
* [Restructuredtext](r/reStructuredText.rst)
|
||||
* [Rexx](r/rexx.rexx)
|
||||
* [Richtea](r/richtea.tea)
|
||||
* [Ring](r/ring.ring)
|
||||
* [Roco](r/roco.roco)
|
||||
* [Roy](r/roy.roy)
|
||||
* [Ruby](r/ruby.rb)
|
||||
@@ -432,6 +445,7 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Soupscript](s/soupscript.script)
|
||||
* [Sparql](s/sparql.sparql)
|
||||
* [Spoon](s/spoon.spoon)
|
||||
* [Spss](s/spss.spss)
|
||||
* [Sql](s/sql.sql)
|
||||
* [Squirrel](s/squirrel.nut)
|
||||
* [Standard Ml](s/standard-ml.sml)
|
||||
@@ -483,7 +497,9 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Visualbasicscript](v/visualbasicscript.vbs)
|
||||
* [Visualfoxpro](v/visualfoxpro.prg)
|
||||
* [Vms](v/vms.vms)
|
||||
* [Vowels](v/Vowels.vw)
|
||||
* [Vrml](v/vrml.wrl)
|
||||
* [Vue](v/vue.js)
|
||||
* [Wheat](w/wheat.wheat)
|
||||
* [Whenever](w/whenever.whenever)
|
||||
* [Whirl](w/whirl.wr)
|
||||
@@ -506,6 +522,7 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Y](y/Y.y)
|
||||
* [Yaml](y/yaml.yaml)
|
||||
* [Yolang](y/yolang.yo)
|
||||
* [YoptaScript](y/yoptascript.js)
|
||||
* [Zbd](z/zbd)
|
||||
* [Zepto](z/zepto.zp)
|
||||
* [Zetaplex](z/zetaplex.zeta)
|
||||
|
||||
@@ -12,3 +12,5 @@ Make sure to see CONTRIBUTING.md for instructions on contributing to the project
|
||||
|
||||
Spin-Off project smartly suggested and implemented by [@zenware](https://github.com/zenware):
|
||||
Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-world](https://github.com/leachim6/hello-world).
|
||||
|
||||
* [Hello Html](e/elm.elm)
|
||||
|
||||
1
a/Attache.@
Normal file
1
a/Attache.@
Normal file
@@ -0,0 +1 @@
|
||||
Print["Hello, World!"]
|
||||
14
a/assembler_arm.s
Normal file
14
a/assembler_arm.s
Normal file
@@ -0,0 +1,14 @@
|
||||
.data
|
||||
message: .asciz "Hello World\n"
|
||||
|
||||
.text
|
||||
.global main
|
||||
main:
|
||||
mov r0, #1 @ file descriptor 1
|
||||
ldr r1, =message @ load address of message
|
||||
mov r7, #4 @ system call write
|
||||
swi #0 @ display message
|
||||
|
||||
mov r0, #0
|
||||
bx lr
|
||||
|
||||
22
a/assembler_bootsect.asm
Normal file
22
a/assembler_bootsect.asm
Normal file
@@ -0,0 +1,22 @@
|
||||
[ORG 0x7C00]
|
||||
|
||||
mov si,HelloWorld
|
||||
call print_string
|
||||
|
||||
jmp $
|
||||
|
||||
HelloWorld db "Hello world!",0xD,0xA,0
|
||||
|
||||
print_string:
|
||||
mov ah,0xE
|
||||
.repeat:
|
||||
lodsb
|
||||
cmp al,0
|
||||
je .done
|
||||
int 0x10
|
||||
jmp .repeat
|
||||
.done:
|
||||
ret
|
||||
|
||||
times 510-($-$$) db 0
|
||||
dw 0xAA55
|
||||
7
a/assembler_hla.hla
Normal file
7
a/assembler_hla.hla
Normal file
@@ -0,0 +1,7 @@
|
||||
program HelloWorld;
|
||||
|
||||
#include( "stdlib.hhf" );
|
||||
|
||||
begin HelloWorld;
|
||||
stdout.put( "Hello, world!", nl );
|
||||
end HelloWorld;
|
||||
10
a/assembler_nasm_win32.asm
Normal file
10
a/assembler_nasm_win32.asm
Normal file
@@ -0,0 +1,10 @@
|
||||
BITS 32
|
||||
global _main
|
||||
extern _printf
|
||||
section .text
|
||||
push msg
|
||||
call _printf
|
||||
add esp,4
|
||||
ret
|
||||
section .data
|
||||
msg: db "Hello world",0Ah,0
|
||||
3
a/awful.yuk
Normal file
3
a/awful.yuk
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/awful
|
||||
|
||||
:writeln s"Hello world!"
|
||||
4
b/BIRL.c
Normal file
4
b/BIRL.c
Normal file
@@ -0,0 +1,4 @@
|
||||
HORA DO SHOW // main code block
|
||||
CE QUER VER ESSA PORRA? ("Hello, World!\n"); // print "Hello, World!""
|
||||
BORA CUMPADE 0; // end function
|
||||
BIRL
|
||||
0
b/batch.bat
Executable file → Normal file
0
b/batch.bat
Executable file → Normal file
0
b/battlestar.bts
Executable file → Normal file
0
b/battlestar.bts
Executable file → Normal file
1
b/bolgefuck.bf
Normal file
1
b/bolgefuck.bf
Normal file
@@ -0,0 +1 @@
|
||||
wimpmodesHpsepslpslpsops psWpsopsrpslpsdpH //hello world without moving pointers in wimpmode
|
||||
@@ -1,9 +1,9 @@
|
||||
#include <iostream>
|
||||
#include <iostream> // include API
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
int main() // the main code portion of a C++ program
|
||||
{
|
||||
cout << "Hello World" << endl;
|
||||
return 0;
|
||||
cout << "Hello World" << endl; //print Hello World on the screen
|
||||
return 0; // conventional
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
console.log "Hello, World!"
|
||||
alert "Hello, World!"
|
||||
|
||||
1
c/cson.cson
Normal file
1
c/cson.cson
Normal file
@@ -0,0 +1 @@
|
||||
{'hello': 'world'}
|
||||
1
f/fetlang.fet
Normal file
1
f/fetlang.fet
Normal file
@@ -0,0 +1 @@
|
||||
Make slave scream "Hello World!"
|
||||
0
f/fish.fish
Executable file → Normal file
0
f/fish.fish
Executable file → Normal file
0
f/fog.fog.md
Executable file → Normal file
0
f/fog.fog.md
Executable file → Normal file
2
g/gml.gml
Normal file
2
g/gml.gml
Normal file
@@ -0,0 +1,2 @@
|
||||
// Draws "Hello, world!" onto the screen at position 1, 1
|
||||
draw_text(1, 1, "Hello, world!");
|
||||
3
g/gravity.gravity
Normal file
3
g/gravity.gravity
Normal file
@@ -0,0 +1,3 @@
|
||||
func main() {
|
||||
System.print("Hello World");
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
5
k/kotlin
5
k/kotlin
@@ -1,5 +0,0 @@
|
||||
package hello
|
||||
|
||||
fun main(args : Array<String>) {
|
||||
println("Hello, world!")
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
0
list_langs.py
Executable file → Normal file
0
list_langs.py
Executable file → Normal file
1
n/mathematica.nb
Normal file
1
n/mathematica.nb
Normal file
@@ -0,0 +1 @@
|
||||
Print["Hello world"]
|
||||
@@ -1,5 +1,5 @@
|
||||
program HelloWorld(output);
|
||||
begin
|
||||
writeln('Hello World');
|
||||
readln
|
||||
readln;
|
||||
end.
|
||||
|
||||
@@ -1 +1 @@
|
||||
Write-Output 'Hello World'
|
||||
'Hello World'
|
||||
|
||||
19
q/qsharp/Driver.cs
Normal file
19
q/qsharp/Driver.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Microsoft.Quantum.Simulation.Simulators;
|
||||
|
||||
namespace Quantum.HelloWorld
|
||||
{
|
||||
class Driver
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
using (var sim = new QuantumSimulator())
|
||||
{
|
||||
var res = HelloWorld.Run(sim).Result;
|
||||
System.Console.WriteLine(
|
||||
$"{res}");
|
||||
}
|
||||
System.Console.WriteLine("Press any key to continue...");
|
||||
System.Console.ReadKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
10
q/qsharp/qsharp.qs
Normal file
10
q/qsharp/qsharp.qs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Quantum.HelloWorld
|
||||
{
|
||||
operation HelloWorld () : (String)
|
||||
{
|
||||
body
|
||||
{
|
||||
return ("Hello, World!");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
Hello world
|
||||
1
r/readlink.readlink
Normal file
1
r/readlink.readlink
Normal file
@@ -0,0 +1 @@
|
||||
Hello world
|
||||
1
r/ring.ring
Normal file
1
r/ring.ring
Normal file
@@ -0,0 +1 @@
|
||||
see "Hello, World!"
|
||||
3
s/spss.spss
Normal file
3
s/spss.spss
Normal file
@@ -0,0 +1,3 @@
|
||||
BEGIN PROGRAM.
|
||||
print "Hello, world!"
|
||||
END PROGRAM.
|
||||
204
summary.html
204
summary.html
@@ -1,204 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>All programming hello world code</title>
|
||||
|
||||
<!-- Latest compiled and minified CSS -->
|
||||
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
||||
|
||||
<!-- Optional theme -->
|
||||
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
|
||||
|
||||
<style type="text/css" media="screen">
|
||||
#main {
|
||||
margin-top: 10px;
|
||||
padding-top: 10px;
|
||||
min-width: 725px;
|
||||
min-height: 100px;
|
||||
border: 1px #eee solid;
|
||||
border-radius: 4px 4px 0 0;
|
||||
}
|
||||
.nav>li>a {
|
||||
padding: 3px 6px;
|
||||
}
|
||||
.tab-content {
|
||||
margin-top: 4px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main" class="container">
|
||||
<div id="helloword">
|
||||
<!-- Nav tabs -->
|
||||
<ul id="langgroups" class="nav nav-tabs" role="tablist">
|
||||
<li class="active"><a href="#aboutTab" role="tab" data-toggle="tab">About</a></li>
|
||||
</ul>
|
||||
|
||||
<!-- Tab panes -->
|
||||
<div id="langcodegroups" class="tab-content">
|
||||
<div class="tab-pane fade in active" id="aboutTab">
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item">
|
||||
<h4 id="about-heading" class="list-group-item-heading">Hello world in every programming language.</h4>
|
||||
<div id="about-text" class="list-group-item-text">
|
||||
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
© 2014 Powered by <a href="jquery.com">jQuery</a>, <a href="http://getbootstrap.com">Boostrap</a> and <a href="https://developer.github.com/v3/">Github APIs</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script type='text/javascript' src='http://ajax.useso.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script>
|
||||
|
||||
<!-- Latest compiled and minified JavaScript -->
|
||||
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
// curl -i https://api.github.com/repos/pingjiang/hello-world/readme
|
||||
// curl -i https://api.github.com/repos/pingjiang/hello-world/contents/
|
||||
jQuery(document).ready(function($) {
|
||||
var REPOS_USER = 'leachim6';// leachim6
|
||||
var REPOS_NAME = 'hello-world';
|
||||
var GITHUB_API = 'https://api.github.com/repos/' + REPOS_USER + '/' + REPOS_NAME + '/contents';
|
||||
|
||||
$('#about-text').html('<dl class="dl-horizontal"><dt>User</dt><dd><a href="https://github.com/' + REPOS_USER + '">' + REPOS_USER
|
||||
+ '</a></dd><dt>Repository</dt><dd><a href="https://github.com/' + REPOS_USER + '/' + REPOS_NAME + '">' + REPOS_NAME
|
||||
+ '</a></dd><dt>Contents API</dt><dd><a href="' + GITHUB_API + '">' + GITHUB_API + '</a></dd></dl>');
|
||||
|
||||
function onGithubError(data) {
|
||||
$('#about-heading').text('Github Error');
|
||||
$('#about-text').html('<p>'
|
||||
+ data.message + '</p><p>Documentation reference <a href="'
|
||||
+ data.documentation_url + '">'
|
||||
+ data.documentation_url + '</a>.</p><p>Please refresh later.</p>');
|
||||
}
|
||||
|
||||
function htmlEncode(value){
|
||||
return $('<div/>').text(value).html();
|
||||
}
|
||||
|
||||
function htmlDecode(value){
|
||||
return $('<div/>').html(value).text();
|
||||
}
|
||||
|
||||
function loadContent(self_url, onSuccess) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: self_url + '&callback=?',
|
||||
crossDomain: true,
|
||||
statusCode: {
|
||||
403: function(data) {
|
||||
onGithubError(data);
|
||||
}
|
||||
},
|
||||
success: function (data) {
|
||||
var result = data.data;
|
||||
if (result.content == undefined || result.content == null) {
|
||||
onSuccess('Fetch content of code ' + self_url + ' failed.');
|
||||
return;
|
||||
}
|
||||
var content = atob(result.content);
|
||||
onSuccess(content);
|
||||
},
|
||||
dataType: 'jsonp'
|
||||
});
|
||||
}
|
||||
|
||||
function loadLanguages(langGroupName, appendToId, langGroup, onSuccess) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: langGroup + '&callback=?',
|
||||
crossDomain: true,
|
||||
statusCode: {
|
||||
403: function(data) {
|
||||
onGithubError(data);
|
||||
}
|
||||
},
|
||||
success: function (data) {
|
||||
var entries = data.data;
|
||||
if (!(entries instanceof Array)) {
|
||||
onGithubError(entries);
|
||||
return;
|
||||
}
|
||||
$.each(entries, function(i, entry) {
|
||||
if (entry.type == 'file') {
|
||||
var codeCssClass = 'code-' + entry.name.split('.')[0].toLowerCase();
|
||||
loadContent(entry._links.self, function(content) {
|
||||
// console.log(content);
|
||||
$('<li class="list-group-item"><h4 class="list-group-item-heading">' + entry.name
|
||||
+ '</h4><div class="list-group-item-text"><pre class="code">' + htmlEncode(content) + '</pre><p>Code: <a class="langcode" href="' + entry.html_url + '">'
|
||||
+ entry.html_url + '</a></p></div></li>').appendTo(appendToId);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
if (entries == undefined || entries == null || entries.length == 0) {
|
||||
$('<li class="list-group-item"><a class="list-group-item langcode" href="#">None</a></li>').appendTo(appendToId);
|
||||
}
|
||||
|
||||
onSuccess();
|
||||
},
|
||||
dataType: 'jsonp'
|
||||
});
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: GITHUB_API + '?callback=?',
|
||||
crossDomain: true,
|
||||
statusCode: {
|
||||
403: function(data) {
|
||||
onGithubError(data);
|
||||
}
|
||||
},
|
||||
success: function (data) {
|
||||
var entryGroups = data.data;
|
||||
if (!(entryGroups instanceof Array)) {
|
||||
onGithubError(entryGroups);
|
||||
return;
|
||||
}
|
||||
var entryCache = {};
|
||||
|
||||
$.each(entryGroups, function(i, entryGroup) {
|
||||
entryCache[entryGroup.name] = entryGroup._links.self;
|
||||
if (entryGroup.name != '#' && entryGroup.type == 'dir') {
|
||||
$('<li><a class="langgroup" href="#' + entryGroup.name
|
||||
+ 'Tab" data-loadlink="' + entryGroup._links.self + '" role="tab" data-toggle="tab">'
|
||||
+ entryGroup.name + '</a></li>').appendTo('#langgroups');
|
||||
|
||||
$('<div class="tab-pane fade" id="' + entryGroup.name
|
||||
+ 'Tab"><ul class="list-group langcodes" class="nav nav-tabs" role="tablist"></ul></div>').appendTo('#langcodegroups');
|
||||
}
|
||||
});
|
||||
|
||||
$('.langgroup').click(function() {
|
||||
var entryGroupName = $(this).text();
|
||||
var tabId = $(this).attr('href');
|
||||
var tab = $(tabId);
|
||||
var selected = $(this);
|
||||
var langcodes = $(tabId + '>ul.langcodes>li');
|
||||
if (langcodes == undefined || langcodes.length == 0) {
|
||||
loadLanguages(entryGroupName, tabId + '>ul.langcodes', entryCache[entryGroupName], function() {
|
||||
selected.tab('show');
|
||||
});
|
||||
} else {
|
||||
selected.tab('show');
|
||||
}
|
||||
});
|
||||
},
|
||||
dataType: 'jsonp'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
0
t/tibasic.ti
Executable file → Normal file
0
t/tibasic.ti
Executable file → Normal file
17
v/Vowels.vw
Normal file
17
v/Vowels.vw
Normal file
@@ -0,0 +1,17 @@
|
||||
ue
|
||||
yeouo
|
||||
euea
|
||||
euai
|
||||
euai
|
||||
euoa
|
||||
eaiu
|
||||
eaao
|
||||
eioo
|
||||
euoa
|
||||
euou
|
||||
euai
|
||||
euee
|
||||
eaai
|
||||
eeoe
|
||||
eeee
|
||||
y
|
||||
0
v/vhdl.vhdl
Executable file → Normal file
0
v/vhdl.vhdl
Executable file → Normal file
0
v/visualbasic.vb
Executable file → Normal file
0
v/visualbasic.vb
Executable file → Normal file
11
v/vue.js
Normal file
11
v/vue.js
Normal file
@@ -0,0 +1,11 @@
|
||||
<div id="app">
|
||||
<p>{{ message }}</p>
|
||||
</div>
|
||||
<script>
|
||||
new Vue({
|
||||
el: '#app',
|
||||
data: {
|
||||
message: 'Hello World!'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
1
y/yoptascript.js
Normal file
1
y/yoptascript.js
Normal file
@@ -0,0 +1 @@
|
||||
ксива.малява(" Оно работает ") нах
|
||||
Reference in New Issue
Block a user