Usage
go run orcbulkimport.go --key="<orc_key>" --host="<orc_host>" <filename>| /* The beginning of a standard library */ | |
| Array.prototype.indexOf = function (obj, pos, compareFn) { | |
| var pos = pos || 0; | |
| compareFn = compareFn || function(obj1, obj2) { return obj1 == obj2; }; | |
| for (; pos < this.length; pos++) { | |
| if (compareFn(obj, this[pos])) { return pos; } | |
| } |
| y(M) -> (fun(X) -> X(X) end)(fun (F) -> M(fun(A) -> (F(F))(A) end) end). |
| -module(bubble_sort). | |
| -export([bubble_sort/1, bubble_sort/2]). | |
| -spec bubble_sort(list(T)) -> list(T). | |
| bubble_sort(L) -> | |
| bubble_sort(L, fun(A, B) -> | |
| case A > B of | |
| true -> greater_than; | |
| false -> | |
| case A =:= B of |
| #!/bin/bash | |
| num_obj=$1 | |
| workers=$2 | |
| block=$((num_obj/workers)) | |
| for i in `seq 0 $(($workers-1))` | |
| do | |
| (( | |
| mkdir /tmp/rnd$i |
| $(function () { | |
| $("pre.example").each(function(i, ele) { | |
| var example = {"X-cc": "", "From": "[email protected]", "X-Folder": "\\MCASH (Non-Privileged)\\Cash, Michelle\\Inbox", "Content-Transfer-Encoding": "7bit", "X-bcc": "", "X-Origin": "Cash-M", "To": ["[email protected]"], "parts": [{"content": "\r\n=================\r\nMike Baer\r\nAccenture - Legal Group\r\n100 South Wacker Drive, Ste. 515, Chicago, IL 60606-4006\r\nVoice: 312-693-1512, Octel: 69/31512, Fax: 312-652-1512\r\neMail: [email protected]\r\n=================\r\n\r\n\r\n\r\nThis message is for the designated recipient only and may contain\r\nprivileged or confidential information. If you have received it in error,\r\nplease notify the sender immediately and delete the original. Any other\r\nuse of the email by you is prohibited.\r\n - B0033CF1.TIF \r\n\r\n", "contentType": "text/plain"}], "X-FileName": "MCASH (Non-Privileged).pst", "Mime-Version": "1.0", "X-From": "[email protected]@ENRON\r\n <IMCEA |
| { | |
| "selectQuery" : "select foodDescs.*, foodCats.fdgrp_desc from foodDescs join foodCats on foodCats.fdgrp_cd = foodDescs.fdgrp_cd", | |
| "primaryField" : "ndb_no", | |
| "updatedAtField": "updated_at", | |
| "source" : "jdbc:mysql://localhost/nutridb_sr25_sanitized", | |
| "username" : "root", | |
| "password" : "", | |
| "apiKey" : "c9a0e182-7c01-48d2-81dd-dc36c4e3e79d", | |
| "collection" : "food9" | |
| } |
| package main | |
| import ( | |
| "bufio" | |
| "encoding/json" | |
| "flag" | |
| "github.com/orchestrate-io/gorc" | |
| "io" | |
| "log" | |
| "os" |
| package main | |
| import ( | |
| "bufio" | |
| "encoding/json" | |
| "flag" | |
| "github.com/orchestrate-io/gorc" | |
| "io" | |
| "log" | |
| "os" |
Usage
go run orcbulkimport.go --key="<orc_key>" --host="<orc_host>" <filename>| import tensorflow as tf | |
| from tensorflow.contrib.learn.python.learn.ops.dropout_ops import DROPOUTS | |
| class PeriodicValidationMonitor(tf.contrib.learn.python.learn.monitors.ValidationMonitor): | |
| def __init__(self, | |
| val_X, | |
| val_y, | |
| n_classes=0, | |
| validate_steps=100, |