pouët.net

Random line of code thread

category: code [glöplog]
Code:if(plugin.IsAutoSuspendable() && pObject->GetNumOutputChannels() > 0 && pState->inputSilenceCount >= m_MixerSettings.gdwMixingFreq * 4)
Oooh, the classic show-if-without-then cliffhanger. The suspense is killing me!
added on the 2016-01-22 08:57:24 by Kylearan Kylearan
Code:if (argc > 1 ? SDL_Init(SDL_INIT_VIDEO) >= 0 ? atexit(SDL_Quit) ? 1 : (l =fopen(argv[1], "rb")) && (fread(&p, 1, 128, l), x=*(o p + 4), y=*(o p + 5), t = 0, u = *(o p + 3), v = malloc(*(int*)p - 128 + x * y), fread(v, 1, *(int*)p - 128, l), w = v, fclose(l), 1) ? (s = SDL_SetVideoMode(x, y, 32, SDL_SWSURFACE)) ? 0 : 1 : 1 : 1 : 1 ) exit(-1), x ? y : v; I: i = v ? v : 0, k = v + 16;
added on the 2016-01-22 09:20:13 by sol_hsa sol_hsa
Code:dc.w $ffff,$fffe
added on the 2016-01-22 19:57:26 by ok3anos ok3anos
Code:tas.b $24.w
added on the 2016-01-22 21:09:52 by lsl lsl
Code: const __m128 nXYZ12Z34 = _mm_hadd_ps(nX12X34Y12Y34, normalZZZZ); // | X | Y | Z1+Z2 | Z3+Z4 |
added on the 2016-01-23 14:11:18 by superplek superplek
Code:mat3 mm = rotation_matrix(normalize(mix(latBegin.xyz, latEnd.xyz, frameInfo.z / latEnd.w) - ro), vec3(0));
added on the 2016-01-23 19:40:24 by merry merry
Quote:
Code:dc.w $ffff,$fffe

nonono:
Code: dc.l -2
added on the 2016-01-23 21:43:38 by bizun_ bizun_
Code:int result = lame_encode_buffer(gfp, (const short*)sample->buff, (const short*)sample->buff, sample->length, encoder_buffer, ENCODER_BUFFER_SIZE);
added on the 2016-01-24 01:45:28 by cce cce
Code:Demo.Render(MUSIC_GETSYNC());
added on the 2016-01-24 04:44:08 by BoyC BoyC
Code:void editorWindow::makeDemo() {
added on the 2016-01-24 09:44:56 by urs urs
Code:cmp ($00,x)
added on the 2016-01-24 22:22:23 by JTZ JTZ
Code: nop ;todo
added on the 2016-01-24 23:26:05 by wertstahl wertstahl
Code:VENDOR_LOCK = true
added on the 2016-01-25 02:56:55 by wertstahl wertstahl
Code:for (int i = 0; i < 591; i++) PFNGL[i] = wglGetProcAddress(names[i]);
added on the 2016-01-26 12:47:47 by EvilOne EvilOne
Code:type = vm->scope->SetSymType(a1->getText().c_str(), typeIn); // könnte ja ein lokales symbol sein...
added on the 2016-01-26 13:48:36 by bartman bartman
Code:Node *pNode = getNode()->getParent()->getParent()->getParent()->getParent();


FML.
added on the 2016-01-26 16:07:53 by Preacher Preacher
Code:public class MyExpertActivity extends Activity { private Fragment currentFragment; [...] currentFragment = new MyFragmentThatSucks(); [...] public Fragment getCurrentFragment() { return currentFragment; } }


Or even better

Code:public MyExpertApplication extends Application { public static MyExpertActivity currentActivity; public static Fragment currentFragment; [...] public Activity getActivity() { return currentActivity; } [...] public Fragment getCurrentFragment() { return currentFragment; } }


Please don't :)
added on the 2016-01-26 16:44:54 by Romain337 Romain337
But it follows the style guide!
added on the 2016-01-27 02:02:39 by T$ T$
Code:for(int i = 0; i < rn.length; sn[rn[i++]]++);

I'm always fascinated by simple things that make a splash. ;)
added on the 2016-02-05 19:59:57 by tomaes tomaes
Code: if(n==1); dt(n)=mt(1)*abs(z(1)-0)/sin(theta(1)); # hack-y workaround since octave dsn't allow z(0); elseif(n>1) ...


Coding in ^^ that kind of crap has been a significant portion of my afternoon.
added on the 2016-02-06 01:37:22 by jmph jmph
Code:%rep 12 fsqrt %endrep
added on the 2016-02-09 23:48:16 by Blueberry Blueberry
Code: move.l -4(a0,d5.w),d3
added on the 2016-02-10 15:33:49 by ham ham
Code:memcpy(&plugin.Info.dwPluginId1, "DBM0", 4); memcpy(&plugin.Info.dwPluginId2, "Echo", 4); plugin.Info.routingFlags = SNDMIXPLUGININFO::irAutoSuspend; plugin.Info.mixMode = 0; plugin.Info.gain = 10; plugin.Info.reserved = 0; plugin.Info.dwOutputRouting = 0; MemsetZero(plugin.Info.dwReserved); strcpy(plugin.Info.szName, "Echo"); strcpy(plugin.Info.szLibraryName, "DigiBooster Pro Echo");

Let's count struct initialization as one random line of code.
0::::::::::POKE53281,1:::::::POKE53281,0:::::::::::::::GOTO0
added on the 2016-02-10 16:51:53 by VJSLOF VJSLOF

login