pouët.net

Random line of code thread

category: code [glöplog]
Code:pub fn tiles(&self) -> impl Iterator<Item = (usize, usize, &Tile)> { let width = self.width; self.tiles .iter() .enumerate() .map(move |(i, tile)| (i % width, i / width, tile)) }
added on the 2018-06-29 00:50:45 by FreeFull FreeFull
Code:lea ecx, [ebp+__strempty-__self+EBP_bias] ; Elf32_Header.e_entry[0] add bl, bl ; e_entry[1], e_entry[2] db 0xEB ; e_entry[3]
added on the 2018-06-29 02:17:17 by porocyon porocyon
... and 0xEB is the first half of a jmp
added on the 2018-06-29 02:18:00 by porocyon porocyon
Code:const char* iEmojiAtlas[]={ "🔴", "😡", "🤗", "🌕", "🎾", "🤢", "🌎", "🔵", "😈", "🍇", "⚪", "🌕", "😡", "🍇", "😈", "🌑", "🏿", "🏾", "🏽", "🏼", "🏻", "🌑", "🌒", "🌓", "🌔", "🌕", "🌖", "🌗", "🌘", "⚫", "🔘", "⚪", " ", "💮", "⭕", "🔴", " ", "🔸", "🌕", "⬜", "📕", "📙", "📒", "📗", "📘", " ", " ", " ", " ", " ", " ", " ", " ", "😈", "💖", "🌸", "🍀", "🥦", "🎛", "🗑", "🌐", "🎽", "🔵", "🌞", };
added on the 2018-06-29 02:35:47 by yx yx
^^ This code is Art in itself! ^^
Code: ;$40=010 00 000 $58=0101 10 00 ;$48=010 01 000 $59=0101 10 01 ;$50=010 10 000 $5A=0101 10 10 ;[draw attributes] ld l,e ld a,d and %00011000 srl a srl a srl a add a,$58 ld h,a
added on the 2018-06-29 16:35:02 by g0blinish g0blinish
Code:move.w #$51c8,4(a4) ; add fake dbf so our "search for end opcode" routine will work
added on the 2018-07-12 10:41:26 by StingRay StingRay
Code:mov dx,0f2fh
Code:move.l (a7),a7 ; head hurts!
added on the 2018-07-15 15:15:02 by StingRay StingRay
Code: if (pause) { btime = time - atime; } else { atime = time - btime; }
added on the 2018-07-19 23:14:30 by Optimus Optimus
Code:bsamp_prepUVs(curX, curY, kMapAnd, kMapShift, U0, V0, U1, V1, fracU, fracV);
added on the 2018-07-19 23:25:32 by superplek superplek
too complic!
just make it all global!
"static float curX, curY, kMapAnd, kMapShift, U0, V0, U1, V1, fracU, fracV;"
Oh, you do GLSL... :p
it's an inline integer SSE function call
added on the 2018-07-19 23:44:44 by superplek superplek
Code:<svg onload=for(i=32640;i--;)write(i%255?i/128&i?'_':'#': 9;\n')>

spoiler (because pouet fucks this up)
added on the 2018-07-20 11:12:18 by HellMood HellMood

login