Jan 14
Yep, it’s totally trivial, but I always forget how to create a new command in latex that has arguments. Here it is once and for all.
\newcommand{\err}[1]{\textcolor{red}{#1}}
\newcommand{\err}[1]{\textcolor{red}{#1}}
class String def valid_float? true if Float self rescue false end end
require 'enumerator'
IO.read('image.png')[0x10..0x18].unpack('NN')
for index, item in enumerate(items): pass
min(find(rand() < cumsum(p)))
#include <time.h> static clock_t tic_timestart; void tic(void) { tic_timestart = clock(); } float toc(void) { clock_t tic_timestop; tic_timestop = clock(); printf("time: %8.2f.\n", (float)(tic_timestop - tic_timestart) / CLOCKS_PER_SEC); return (float)(tic_timestop - tic_timestart) / CLOCKS_PER_SEC; } float tocq(void) { clock_t tic_timestop; tic_timestop = clock(); return (float)(tic_timestop - tic_timestart) / CLOCKS_PER_SEC; }
/* CFDIV divides 1/a[3] * CFADD adds c[12] + d[12] * CFMUL multiplies b[4] * h[7] * CFASN assigns A[5] = 0 * CFSTO stores A[5] = (...) * CFTFR transfers A[5] = b[7] * CFNTF negated transfers A[5] = -b[7] * CFCOM compares c[5] < b[7] */ typedef struct statistics_t *statistics; typedef struct statistics_t { long div; long add; long mul; long asn; long sto; long tfr; long ntf; long com; } Statistics;