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
// Learn more about F# at http://fsharp.org | |
open System | |
open System.IO | |
open Thoth.Json.Net | |
[<Literal>] | |
let FilePath = "./contacts.json" | |
let writeToDisk str = | |
File.WriteAllText(FilePath,str) |
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
let private getDeliveristData (url : string) = | |
async { | |
try | |
let requestPath = url | |
use client = new HttpClient() | |
let! resp = client.GetAsync( requestPath) |> Async.AwaitTask | |
let! responseString = resp.Content.ReadAsStringAsync() |> Async.AwaitTask | |
match resp.StatusCode with |
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
package com.example.couchbasetest; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import com.couchbase.lite.BasicAuthenticator; | |
import com.couchbase.lite.CouchbaseLiteException; | |
import com.couchbase.lite.DataSource; |
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
{ | |
"interface":":4984", | |
"logging": { | |
"log_file_path": "/var/tmp/sglogs", | |
"console": { | |
"log_level": "debug", | |
"log_keys": ["*"] | |
}, | |
"error": { | |
"enabled": true, |
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
package com.example.couchbasetest; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import com.couchbase.lite.BasicAuthenticator; | |
import com.couchbase.lite.CouchbaseLiteException; | |
import com.couchbase.lite.DataSource; | |
import com.couchbase.lite.Database; |
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
package com.example.edmonproject; | |
/* | |
Basal | |
Bolus | |
FingerStick | |
Sleep | |
HeartRate | |
Exercise |
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
package com.example.edmonproject; | |
import android.content.Context; | |
import android.support.annotation.NonNull; | |
import android.util.Log; | |
import com.google.android.gms.tasks.OnCompleteListener; | |
import com.google.android.gms.tasks.OnFailureListener; | |
import com.google.android.gms.tasks.OnSuccessListener; | |
import com.google.android.gms.tasks.Task; |
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
// Learn more about F# at http://fsharp.org | |
module LoanPayments | |
open System.IO | |
open System | |
let lines = | |
File.ReadAllLines("./t/Loan payments data.csv") |> Array.distinct |> Array.map (fun x -> x.Split(',')) | |
let header = lines |> Array.take 1 |
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
@bloomTest = | |
EXTRACT bloom byte[] | |
FROM "/output/bloomtestSend.csv" | |
USING Extractors.Csv(); | |
@rs0 = | |
SELECT sqlProjrecv.Recieve.recv(bloom) AS bloomRes | |
FROM @bloomTest; |
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
public static class Recieve | |
{ | |
public static string recv(byte[] b) | |
{ | |
Test bloom = Deserialize(b); | |
return bloom.getVal(); | |
} | |
[Serializable] | |
public class Test |
NewerOlder