!VOFtzpdLNwsOEmkXer:matrix.org

Haxe Casual Chat

1722 Members
Join the Matrix Space: #haxe-community:matrix.org Rules: https://gist.github.com/logo4poop/f97201b473f85e65937e39312a5ee49210 Servers

Load older messages


SenderMessageTime
20 Apr 2024
@_discord_903322370473852939:t2bot.iosword_352 what 06:03:01
@_discord_415825875146375168:t2bot.iosemmi better only -> don't think about and keep at is 06:03:33
@_discord_415825875146375168:t2bot.iosemmi i mean do you know how long someone was need to find that numbers for exactly that formula ? 06:12:19
@_discord_903322370473852939:t2bot.iosword_352 i 06:12:45
@_discord_903322370473852939:t2bot.iosword_352 i dont know 06:12:47
@_discord_415825875146375168:t2bot.iosemmi np 06:12:57
@_discord_415825875146375168:t2bot.iosemmi tell me more about your haxeproject 06:14:22
@_discord_415825875146375168:t2bot.iosemmiRedacted or Malformed Event06:20:36
@_discord_661960123035418629:t2bot.ioHaxebot @semmis#0

Code:

var gethx = function(s:String):String { var k = "nex;a^*lhAiZu?oFc~OmCTBt)zPq,GSr<IYD!WHpLb_VMv>Uw.QRg(jEXK=sJyd:kfN";var n = BigInt.fromBaseString(s, k);var result = "";while (n > 1) {if (n & 1 == 0) n = n >> 1 else n = 3 * n + 1;result += n.toBaseString(k);} return result.substr(-4);}
trace( gethx("please, (^_^)") );
Output:
0. haxe 

Haxe 4.3.3

06:20:39
@_discord_415825875146375168:t2bot.iosemmiRedacted or Malformed Event06:23:03
@_discord_661960123035418629:t2bot.ioHaxebot @semmis#0

Code:

var gethx = function(s:String):String { var k = "nex;a^*lhAiZu?oFc~OmCTBt)zPq,GSr<IYD!WHpLb_VMv>Uw.QRg(jEXK=sJyd:kfN";var n = BigInt.fromBaseString(s, k);var result = "";while (n > 1) {if (n & 1 == 0) n = n >> 1 else n = 3 * n + 1;result += n.toBaseString(k);} return result.substr(-4);}
trace( gethx("tell me sword:)") );
Output:
0. haxe 

Haxe 4.3.3

06:23:04
@_discord_903322370473852939:t2bot.iosword_352 uhm 06:24:28
@_discord_415825875146375168:t2bot.iosemmi wanna know how much pi is .) ? 06:29:36
@_discord_903322370473852939:t2bot.iosword_352 sure 06:29:43
@_discord_415825875146375168:t2bot.iosemmi https://www.youtube.com/watch?v=W8RE2NyAiJg&t=107 06:30:53
@_discord_903322370473852939:t2bot.iosword_352 real 06:31:44
@_discord_415825875146375168:t2bot.iosemmi !run #4FA9a 06:42:18
@_discord_661960123035418629:t2bot.ioHaxebot
Compilation Error

class Test {
    static function main() {

        var chars:String = "";
        
        // create a great random text
        for (i in 0...7) {
          for (j in 0...Std.int(Math.random()*80))
        chars += String.fromCharCode(32 + Std.int(Math.random()*300));
            chars += "\n";
            // generate some more empty lines
            if (Math.random() < 0.1) {
              chars += "\n";
                if (Math.random() < 0.1)
                  for (k in 0...1+Std.int(Math.random()*5)) chars += "\n"; 
            }
-> 

        // splitting by regexp
        var regLinesplit:EReg = ~/^(.*?)(\n|\r\n|\r)/;
        while (regLinesplit.match(chars)) {
          trace(regLinesplit.matched(1));
          chars = regLinesplit.matchedRight();
        }

    
    
    }
}
Error
Test.hx:18: characters 1-20 : Expected , or )

06:42:19
@_discord_415825875146375168:t2bot.iosemmi hmmm 06:42:40
@_discord_415825875146375168:t2bot.iosemmiRedacted or Malformed Event06:44:07
@_discord_661960123035418629:t2bot.ioHaxebot @semmis#0

Code:

var genMazeSimple = null;
genMazeSimple = function(m,x,y,w,h) {
  m[y][x] = ' '; var d=[-2,0,0,2,2,0,0,-2];
  while(d.length>0) {
    var i=d.splice(2*Math.floor(Math.random()*d.length/2),2);
    var a=x+i[0]; var b=y+i[1];
    if(a>0 && b>0 && a<w && b<h && m[b][a]!=' ') {
      m[b-Math.floor(i[1]/2)][a-Math.floor(i[0]/2)] = ' ';
      genMazeSimple(m,a,b,w,h);
}}}
var w = 13; var h = 7; var maze = [];
for (y in 0...h) {maze[y]=[];for (x in 0...w) {maze[y].push('#');}}
genMazeSimple(maze,1,1,w,h);
trace(" What's more mazy, my haxecode or:");
for (y in 0...h) {trace( ((y<9) ? " " : '') + maze[y].join('') );}
Output:
0.  What's more mazy, my haxecode or: 
1.  ############# 
2.  #   #     # # 
3.  ### ### # # # 
4.  # #     # # # 
5.  # ####### # # 
6.  #           # 
7.  ############# 

Haxe 4.3.3

06:44:07
@_discord_415825875146375168:t2bot.iosemmiRedacted or Malformed Event06:45:21
@_discord_661960123035418629:t2bot.ioHaxebot @semmis#0

Code:

var genMazeSimple = null;
genMazeSimple = function(m,x,y,w,h) {
  m[y][x] = ' '; var d=[-2,0,0,2,2,0,0,-2];
  while(d.length>0) {
    var i=d.splice(2*Math.floor(Math.random()*d.length/2),2);
    var a=x+i[0]; var b=y+i[1];
    if(a>0 && b>0 && a<w && b<h && m[b][a]!=' ') {
      m[b-Math.floor(i[1]/2)][a-Math.floor(i[0]/2)] = ' ';
      genMazeSimple(m,a,b,w,h);
}}}
var w = 11; var h = 9; var maze = []; //max w is 41
for (y in 0...h) {maze[y]=[];for (x in 0...w) {maze[y].push('#');}}
genMazeSimple(maze,1,1,w,h);
for (y in 0...h) {trace( ((y<9) ? " " : '') + maze[y].join('') );}
Output:
0.  ########### 
1.  #     #   # 
2.  ##### ### # 
3.  #   #     # 
4.  # ####### # 
5.  #   #   # # 
6.  # # # # # # 
7.  # #   #   # 
8.  ########### 

Haxe 4.3.3

06:45:21
@_discord_415825875146375168:t2bot.iosemmi https://www.youtube.com/watch?v=KVecjIBwR4Q 06:52:32
@_discord_415825875146375168:t2bot.iosemmi * https://www.youtube.com/watch?v=KVecjIBwR4Q 06:52:54
@_discord_415825875146375168:t2bot.iosemmiRedacted or Malformed Event06:53:58
@_discord_1184315167786422354:t2bot.iocrowplexusimage.png
Download image.png
07:04:10
@_discord_1184315167786422354:t2bot.iocrowplexus f'ing around with rust 07:04:11
@_discord_1184315167786422354:t2bot.iocrowplexus weird and great syntax 07:04:15
@_discord_710844592299442237:t2bot.ioropehero joined the room.08:50:29

There are no newer messages yet.


Back to Room ListRoom Version: 9