KnotBB
Code Test - Printable Version

+- KnotBB (https://knotbb.com)
+-- Forum: Category One (https://knotbb.com/forumdisplay.php?fid=1)
+--- Forum: Forum One (https://knotbb.com/forumdisplay.php?fid=2)
+--- Thread: Code Test (/showthread.php?tid=4304)

Pages: 1 2


Code Test - Xerotic - 02-06-2020

Code:
<?php
/**
* MyBB 1.8
* Copyright 2014 MyBB Group, All Rights Reserved
*
* Website: http://www.mybb.com
* License: http://www.mybb.com/about/license
*
*/

define("IN_MYBB", 1);
define('THIS_SCRIPT', 'stats.php');

$templatelist = "stats,stats_thread,stats_topforum";

require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";
require_once MYBB_ROOT."inc/class_parser.php";
$parser = new postParser;

// Load global language phrases
$lang->load("stats");

add_breadcrumb($lang->nav_stats);

$stats = $cache->read("stats");

Test


RE: Code Test - Xerotic - 02-07-2020

Code:
echo "Hello World"

Code:
PRINT "Hello, world!"​

Code:
#include

int main(void)
{
    puts("Hello, world!");
}

Code:
#include

int main()
{
    std::cout << "Hello, world!
";
    return 0;
}

Code:
using System;
class Program
{
    public static void Main(string[] args)
    {
        Console.WriteLine("Hello, world!");
    }
}

Code:
? "Hello World"

Code:
console.log 'Hello, world!'

Code:
program HelloWorld;
begin
  Writeln('Hello, world!');
end.

Code:
Hello World!

Code:
import javax.swing.JFrame;  //Importing class JFrame
import javax.swing.JLabel;  //Importing class JLabel
public class HelloWorld {
    public static void main(String[] args) {
        JFrame frame = new JFrame();           //Creating frame
        frame.setTitle("Hi!");                 //Setting title frame
        frame.add(new JLabel("Hello, world!"));//Adding text to frame
        frame.pack();                          //Setting size to smallest
        frame.setLocationRelativeTo(null);     //Centering frame
        frame.setVisible(true);                //Showing frame
    }
}

Code:
document.write('Hello, world!');

Code:
$("body").append("Hello world!");

Code:
println("Hello world!")

Code:
print [Hello, world!]

Code:
disp('Hello, world!')

Code:
#import
#import

int main(void)
{
    NSLog(@"Hello, world!
");
    return 0;
}

Code:
program HelloWorld;
begin
  WriteLn('Hello, world!');
end.

Code:
print "Hello, world!
";

Code:
void setup(){
  println("Hello, world!");
}

Code:
print "Hello, world!"

Code:
cat('Hello, world!
')

Code:
puts "Hello, world!"

Code:
println("Hello, world!")

Code:
MsgBox "Hello, World!"

Code:
Module Module1
    Sub Main()
        Console.WriteLine("Hello, world!")
    End Sub
End Module

Testing code blocks of many languages.


RE: Code Test - Xerotic - 02-07-2020

PHP Code:
<?php
/**
* MyBB 1.8
* Copyright 2014 MyBB Group, All Rights Reserved
*
* Website: http://www.mybb.com
* License: http://www.mybb.com/about/license
*
*/

define("IN_MYBB"1);
define('THIS_SCRIPT''stats.php');

$templatelist "stats,stats_thread,stats_topforum";

require_once 
"./global.php";
require_once 
MYBB_ROOT."inc/functions_post.php";
require_once 
MYBB_ROOT."inc/class_parser.php";
$parser = new postParser;

// Load global language phrases
$lang->load("stats");

add_breadcrumb($lang->nav_stats);

$stats $cache->read("stats"); 



RE: Code Test - ftest - 04-11-2020

(02-06-2020, 11:09 PM)Xerotic Wrote: Test
adsfadsfasdf


RE: Code Test - ScreemS - 04-12-2020

Code failed, good try tho boss


RE: Code Test - Xerotic - 04-13-2020

(04-12-2020, 09:07 PM)ScreemS Wrote: Code failed, good try tho boss

You failed


RE: Code Test - Xerotic - 04-13-2020

Test


RE: Code Test - Xerotic - 04-21-2020

test


RE: Code Test - Xerotic - 04-21-2020

tester


RE: Code Test - Xerotic - 04-21-2020

testera