This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id "com.marklogic.ml-gradle" version "2.2.0" | |
} | |
repositories { | |
jcenter() | |
maven { url "http://developer.marklogic.com/maven2/" } | |
maven { url "http://repository.cloudera.com/artifactory/cloudera-repos/" } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Herewith my experiences of building curl. | |
1) fork (curl)[https://github.com/curl/curl] | |
2) setup build env | |
``` | |
./configure --disable-shared --enable-debug --enable-maintainer-mode | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
query=${1:-*} | |
echo ${query} >/dev/null | |
echo "query returned no results" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <map> | |
using namespace std; | |
typedef multimap <string, tuple<int,int> > ptable; | |
int main() { | |
string orig = "a large span of text"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef HEADER_CURL_ALTSVC_H | |
#define HEADER_CURL_ALTSVC_H | |
/*************************************************************************** | |
* _ _ ____ _ | |
* Project ___| | | | _ \| | | |
* / __| | | | |_) | | | |
* | (__| |_| | _ <| |___ | |
* \___|\___/|_| \_\_____| | |
* | |
* Copyright (C) 1998 - 2018, Daniel Stenberg, <[email protected]>, et al. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef HEADER_CURL_ALTSVC_H | |
#define HEADER_CURL_ALTSVC_H | |
/*************************************************************************** | |
* _ _ ____ _ | |
* Project ___| | | | _ \| | | |
* / __| | | | |_) | | | |
* | (__| |_| | _ <| |___ | |
* \___|\___/|_| \_\_____| | |
* | |
* Copyright (C) 1998 - 2018, Daniel Stenberg, <[email protected]>, et al. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
(: the power of algebraic data types in xquery | |
This example shows how we can composite up data models | |
which 'carry' their own operations along with them. | |
:) | |
(: using John Snelson's inspirational https://github.com/jpcs/data.xq :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare function local:topo-sort($unsorted, $sorted ) { | |
if (empty($unsorted)) then $sorted | |
else | |
let $allnodes := $unsorted [ every $id in depends/@id satisfies $id = $sorted/@id] | |
return | |
if ($allnodes) then | |
local:topo-sort( $unsorted except $allnodes, ($sorted, $allnodes )) | |
else () | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Once in office will work with congress to pass rational gun law (and nothing else). | |
Choose vice president running mate based on 2nd best polling. | |
Once gun laws have been passed or executive orders declared, retire. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure \ | |
--without-PACKAGE \ | |
--without-zlib \ | |
--without-brotli \ | |
--without-winssl --without-schannel \ | |
--without-mesalink --without-nss --without-libpsl \ | |
--without-libmetalink \ | |
--without-librtmp \ | |
--without-winidn --without-libidn2 \ | |
--disable-NTLM --disable-ntlm-wb \ |