Skip to content

Instantly share code, notes, and snippets.

View dont-parse-options-after-the-last-positional-argument#example
$ cat
import argparse
p = argparse.ArgumentParser()
p.add_argument('-a', action='store_true')
p.add_argument('-qa', nargs='?')
p.add_argument('-qb', nargs='?')
p.add_argument('command', nargs=argparse.REMAINDER)
famzah / test.mjs
Created Sep 22, 2021
Prove that we can compare ArrayBuffer variables by casting them to a Uint8Array TypedArray view
View test.mjs
// in regards to:
/* global console */
/* eslint-disable no-console */
/* global ArrayBuffer */
/* global Uint8Array */
/* global Float32Array */
/* global Float64Array */
/* global Uint32Array */
famzah / fcgid_proc_unix.c
Created Jan 17, 2017
mod_fcgi: Excessive memory usage when large files are uploaded
View fcgid_proc_unix.c
apr_status_t proc_write_ipc(fcgid_ipc *ipc_handle,
apr_bucket_brigade *output_brigade)
apr_status_t rv;
struct iovec vec[FCGID_VEC_COUNT];
int nvec = 0;
apr_bucket *e;
for (e = APR_BRIGADE_FIRST(output_brigade);
View ABC.groovy
package com.onresolve.jira.groovy.jql
import com.atlassian.crowd.embedded.api.User
import com.atlassian.jira.jql.query.QueryCreationContext
import com.atlassian.jira.util.MessageSet
import com.atlassian.query.clause.TerminalClause
import com.atlassian.query.operand.FunctionOperand
class ABC extends AbstractScriptedJqlFunction implements JqlQueryFunction{