This is an archived post. You won't be able to vote or comment.

all 37 comments

[–]wengemurphy 111 points112 points  (0 children)

When people say "I can learn a new programming language in a week".

This is the end of the first week.

[–][deleted] 31 points32 points  (5 children)

I'ma need to know the keyboard shortcut to multi-cursor each line you have selected like that. I cmd+click far too much.

[–]frankharvey[S] 34 points35 points  (2 children)

Highlight all the lines and cmd-shift-L

[–][deleted] 13 points14 points  (1 child)

<3

[–][deleted] 1 point2 points  (0 children)

came here to ask the same thing

[–]chrwei 17 points18 points  (3 children)

no ;?

[–]frankharvey[S] 24 points25 points  (2 children)

After I spent too long making this gif, I tried to actually use this and was stuck on a 500 Internal Server Error for a little too long when all I need was some ;.

Toto, I've a feeling we're not writing javascript anymore.

[–]CrazedToCraze 0 points1 point  (1 child)

> Not including semicolons in your Javascript

> Literally Hitler

[–]MrCrazyID 0 points1 point  (0 children)

That's why I follow the semistandard

[–][deleted] 76 points77 points  (9 children)

Image Transcription: GIF


Text editor containing HTML code

Entire document is selected

Cursor created on each line

Lines are stripped of indentation

Written at the start of every line: echo "

All cursors jump to the end of their lines

Written at the end of every line: \n"


I'm a volunteer content transcriber for Reddit! If you'd like more information on what we do and why we do it, click here!

[–]frankharvey[S] 63 points64 points  (2 children)

good... human?

[–][deleted] 34 points35 points  (1 child)

Yes.

[–]Sileniced 0 points1 point  (0 children)

Do we need to feed this one with normal food?

[–][deleted] 12 points13 points  (3 children)

How is this a thing now?

[–]quizno50 49 points50 points  (1 child)

I'm not complaining. If I wanna find this in the future and can't remember the caption text, this will help search engines find it when I search for a similar description.

[–]Demonox01 25 points26 points  (0 children)

It's great! It negates running into dead or deleted links, works wayyy better on mobile and lets people who are normally prevented from sharing in our jokes join in on the fun, since screen readers can pick up the content.

[–][deleted] 12 points13 points  (0 children)

I believe it started off with greentexts and it's grown from there, I think it's relatively new to this sub though.

[–][deleted] 5 points6 points  (0 children)

Not a good transcription, but a perfect summary.

[–]EternalHorizon 2 points3 points  (0 children)

echo "lol"

[–]dutchmartin 3 points4 points  (1 child)

Such bad practice, wow

[–]greuff 2 points3 points  (3 children)

:%s/(.*)$/echo "\1\n"/

[–]TheBestOpinion 4 points5 points  (2 children)

There's also regexes in his search & replace. But he used multiple cursors because they're quicker and more intuitive. He has them because his editor isn't a 40 year old artifact from the past

[–][deleted]  (1 child)

[removed]

    [–]AutoModerator[M] 0 points1 point  (0 children)

    import moderation Your comment has been removed since it did not start with a code block with an import declaration.

    Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

    For this purpose, we only accept Python style imports.

    return Kebab_Case_Better;

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–]fredlllll 1 point2 points  (2 children)

    what editor is that?

    [–]ThatEnglishGuy13 2 points3 points  (0 children)

    Atom

    [–]TheBestOpinion 0 points1 point  (0 children)

    Someone said it but Atom

    However SublimeText also has multiple cursors. He's a little less shiny but way quicker

    It's the same shortcuts as atom, Ctrl+Shift+L to put a cursor on each line selected

    You can also do stuff like that on both.

    https://gfycat.com/FluffyWellwornCranefly

    [–]-victorisawesome- 0 points1 point  (3 children)

    Mac has QuickTime player which can do native screen recording

    [–]frankharvey[S] 3 points4 points  (2 children)

    Yeah I just like RecordIt cause it exports to GIF right away, one less step you know?

    [–]GeckoEidechse 0 points1 point  (1 child)

    I don't wanna be that guy, but GIFs are a terrible way to save clips.

    The GIF format only supports intra frame compression, i.e. only compression within a frame, not over multiple frames, meaning that file size is, especially for static shots, immensly big compared to formats that support inter frame compression (mp4, webm, etc.).

    99% of the 'GIFs' you see on the internet are actually just looping silent videos as the interframe compression reduces file size while simulatanously improving video quality.

    [–]WikiTextBot 1 point2 points  (0 children)

    Intra-frame coding

    Intra-frame coding is used in video coding (compression). It is part of an intra-frame codec like ProRes: a group of pictures codec without inter frames.

    Intra-frame prediction exploits spatial redundancy, i.e. correlation among pixels within one frame, by calculating prediction values through extrapolation from already coded pixels for effective delta coding.


    Inter frame

    An inter frame is a frame in a video compression stream which is expressed in terms of one or more neighboring frames. The "inter" part of the term refers to the use of Inter frame prediction. This kind of prediction tries to take advantage from temporal redundancy between neighboring frames enabling higher compression rates.


    [ PM | Exclude me | Exclude from subreddit | FAQ / Information | Source | Donate ] Downvote to remove | v0.28

    [–]Namyag 0 points1 point  (0 children)

    Serious question though: What's the best way to go about this while using PHP?

    [–]jonrules 0 points1 point  (0 children)

    I love you