You can post a json file with curl
like so:
curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION
so for example:
package main | |
import ( | |
"context" | |
"crypto/rand" | |
"encoding/base64" | |
"encoding/json" | |
"fmt" | |
"github.com/gorilla/sessions" | |
"github.com/prometheus/common/log" |
gcloud container clusters list | |
gcloud container clusters resize $CLUSTER_NAME --num-nodes=0 | |
export KUBECONFIG=/path/to/admin.conf |
package main | |
import ( | |
"context" | |
"fmt" | |
"math/rand" | |
"reflect" | |
"sync" | |
"time" | |
"unsafe" |
package main | |
// Robert Morris algo | |
import ( | |
crand "crypto/rand" | |
"fmt" | |
"io" | |
"math/rand" | |
"time" | |
) |
This installation of Cloudera is for development only, do not use it in production.
Download cloudera docker image from https://www.cloudera.com/downloads/quickstart_vms/5-13.html
See also. https://www.cloudera.com/documentation/enterprise/5-13-x/topics/quickstart_docker_container.html
#include <iostream> | |
#include <vector> | |
using namespace std; | |
int partition(vector<int> &vec, int p, int r) ; | |
void quickSort(vector<int> &vec, int p, int r) { | |
if(p < r) { | |
int q = partition(vec, p, r); | |
quickSort(vec, p, q - 1); |