home.social

Search

1000 results for “s0lution”

  1. CW: Solution to my BP 36 (1/2)

    Solution to my BP 36: all boxes show examples of the graphical result (output) of running some turtle geometry (a minimal Logo) code/commands. The left boxes show correct graphical results of the underlying code, that sometimes defines subroutines. In each of the right boxes there are errors or inconsistencies.

    Detailed contents of the left boxes:
    1: the up arrow in the code at the bottom represent the "forward 27" command for the turtle. The other uppercase-Gamma-like symbol represents a "rotate 90" command. At the end the commands don't restore the forward facing direction of the turtle (there are only 7 commands in total), so it's heading on the right;
    2: the same, but it defines a subroutine (that's 2 commands long), that gets called 4 times (second row). So now at the end the turtle is heading north;
    3: the same, but the rotation angle is different (360 / 5), and the subroutine gets called 5 times;
    4: the same again, but the rotation is bigger;
    5: drawing of the beginning of a fractal tree, with two subroutines;
    6: infinite drawing loop, so the turtle doesn't show up (but the amount of black pixels doesn't change anymore);

    #bongardproblem #mathpuzzle #puzzle #visualmath

  2. Should we build suits so that we can survive #Jupiter's #atmosphere and #gravity? Can anybody make sense? I'm going off a little bit cuz #human #rights are the most simple #solution to every problem that exists, but we won't talk about it directly cuz we need agencies & committees & other dumb shit.

  3. CW: Solution to my BP 34

    Solution to my BP 34: the boxes on the left represent good approximations of the minimal solution of the (Euclidean) Travelling salesman problem. The boxes on the left show dots with missing paths, open paths, or very bad approximations of TSP solutions.

    The Travelling salesman problem: given a set of cities (points), with known distances between each pairs of them, find the shortest closed path that passes through them all, once each.

    See also:
    en.wikipedia.org/wiki/Travelli

    #bongardproblem #mathpuzzle #puzzle #visualmath

  4. SOLUTION: @gumnos came up with the idea of piggy-backing :nohl onto control-l for refresh:

    nmap <C-L> :nohl<CR><C-L
    imap <C-L> <Esc>:nohl<CR><C-L>a
    

    Hey #vim wizards,

    The number one reason I don't use search more freely when editing is that all the highlights triggers my #CDO a little bit, and :nohl is a little clumsy to type in a hurry.

    I wanted to map :nohl to an easy-to-press keybind, like ctrl-/, but I can't seem to get it to work.

    Any ideas?

    " map Ctrl-/ to :nohl
    nmap <c-Slash> :nohl<CR>
    imap <c-Slash> <Esc>:nohl<CR>a
    

    #vi #vim #nvi #nvim #VimWizards #AskFedi #HiveMind

  5. SOLUTION: @gumnos came up with the idea of piggy-backing :nohl onto control-l for refresh:

    nmap <C-L> :nohl<CR><C-L
    imap <C-L> <Esc>:nohl<CR><C-L>a
    

    Hey #vim wizards,

    The number one reason I don't use search more freely when editing is that all the highlights triggers my #CDO a little bit, and :nohl is a little clumsy to type in a hurry.

    I wanted to map :nohl to an easy-to-press keybind, like ctrl-/, but I can't seem to get it to work.

    Any ideas?

    " map Ctrl-/ to :nohl
    nmap <c-Slash> :nohl<CR>
    imap <c-Slash> <Esc>:nohl<CR>a
    

    #vi #vim #nvi #nvim #VimWizards #AskFedi #HiveMind

  6. SOLUTION: @gumnos came up with the idea of piggy-backing :nohl onto control-l for refresh:

    nmap <C-L> :nohl<CR><C-L
    imap <C-L> <Esc>:nohl<CR><C-L>a
    

    Hey #vim wizards,

    The number one reason I don't use search more freely when editing is that all the highlights triggers my #CDO a little bit, and :nohl is a little clumsy to type in a hurry.

    I wanted to map :nohl to an easy-to-press keybind, like ctrl-/, but I can't seem to get it to work.

    Any ideas?

    " map Ctrl-/ to :nohl
    nmap <c-Slash> :nohl<CR>
    imap <c-Slash> <Esc>:nohl<CR>a
    

    #vi #vim #nvi #nvim #VimWizards #AskFedi #HiveMind

  7. SOLUTION: @gumnos came up with the idea of piggy-backing :nohl onto control-l for refresh:

    nmap <C-L> :nohl<CR><C-L
    imap <C-L> <Esc>:nohl<CR><C-L>a
    

    Hey #vim wizards,

    The number one reason I don't use search more freely when editing is that all the highlights triggers my #CDO a little bit, and :nohl is a little clumsy to type in a hurry.

    I wanted to map :nohl to an easy-to-press keybind, like ctrl-/, but I can't seem to get it to work.

    Any ideas?

    " map Ctrl-/ to :nohl
    nmap <c-Slash> :nohl<CR>
    imap <c-Slash> <Esc>:nohl<CR>a
    

    #vi #vim #nvi #nvim #VimWizards #AskFedi #HiveMind

  8. SOLUTION: @gumnos came up with the idea of piggy-backing :nohl onto control-l for refresh:

    nmap <C-L> :nohl<CR><C-L
    imap <C-L> <Esc>:nohl<CR><C-L>a
    

    Hey #vim wizards,

    The number one reason I don't use search more freely when editing is that all the highlights triggers my #CDO a little bit, and :nohl is a little clumsy to type in a hurry.

    I wanted to map :nohl to an easy-to-press keybind, like ctrl-/, but I can't seem to get it to work.

    Any ideas?

    " map Ctrl-/ to :nohl
    nmap <c-Slash> :nohl<CR>
    imap <c-Slash> <Esc>:nohl<CR>a
    

    #vi #vim #nvi #nvim #VimWizards #AskFedi #HiveMind