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 main | |
import ( | |
"database/sql/driver" | |
"fmt" | |
"github.com/jinzhu/gorm" | |
_ "github.com/jinzhu/gorm/dialects/postgres" | |
_ "github.com/jinzhu/gorm/dialects/sqlite" | |
) |
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
diff --git a/services/application.go b/services/application.go | |
index 39573a5b..3d5c0cad 100644 | |
--- a/services/application.go | |
+++ b/services/application.go | |
@@ -43,7 +43,7 @@ type ChainlinkApplication struct { | |
BulkRunDeleter SleeperTask | |
pendingConnectionResumer *pendingConnectionResumer | |
bridgeTypeMutex sync.Mutex | |
- jobSubscriberID, txManagerID, connectionResumerID string | |
+ jobSubscriberID, txManagerID, connectionResumerID int |
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
diff --git a/services/application.go b/services/application.go | |
index 39573a5b..3d5c0cad 100644 | |
--- a/services/application.go | |
+++ b/services/application.go | |
@@ -43,7 +43,7 @@ type ChainlinkApplication struct { | |
BulkRunDeleter SleeperTask | |
pendingConnectionResumer *pendingConnectionResumer | |
bridgeTypeMutex sync.Mutex | |
- jobSubscriberID, txManagerID, connectionResumerID string | |
+ jobSubscriberID, txManagerID, connectionResumerID int |
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
func TestHeightsController_Index(t *testing.T) { | |
threshold := big.NewInt(2) | |
tests := []struct { | |
name string | |
status int | |
}{ | |
{"good clients", 200}, | |
// Hard to do error cases without adding an if with difference setup. could add test helpers... | |
} |
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
#!/usr/bin/env node | |
const delay = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
const countdown = async () => { | |
await delay(5000) | |
console.log("hello world") | |
} | |
countdown() |
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 main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
func main() { | |
callback := func(int) bool { return false } | |
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
coreml_model = coremltools.converters.Keras.convert( | |
path, | |
input_names=['input_1'], | |
image_input_names=['input_1'], | |
output_names=['density_map']) | |
coreml_model.save("CrowdPredictor.mlmodel") |
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 services | |
import ( | |
"sync" | |
"time" | |
"github.com/asdine/storm" | |
"github.com/smartcontractkit/chainlink/logger" | |
"github.com/smartcontractkit/chainlink/store" | |
"github.com/smartcontractkit/chainlink/store/models" |
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
error: Couldn't lookup symbols: | |
type metadata for CrowdCountApiMac.FriendlyClassification | |
CrowdCountApiMac.MultiArray.copy() -> CrowdCountApiMac.MultiArray<A> | |
CrowdCountApiMac.MultiArray.image(offset: A, scale: A) -> Swift.Optional<__C.NSImage> | |
CrowdCountApiMac.FriendlyPredictor.predictAllPromise(image: __C.NSImage, on: __C.OS_dispatch_queue) -> Promises.Promise<Swift.Array<CrowdCountApiMac.FriendlyPrediction>> | |
protocol witness table for Swift.Double : CrowdCountApiMac.MultiArrayType in CrowdCountApiMac | |
__swift_FORCE_LOAD_$_swiftCoreMedia | |
__swift_FORCE_LOAD_$_swiftCoreAudio | |
CrowdCountApiMac.FriendlyPredictor.DensityMapWidth.unsafeMutableAddressor : Swift.Int | |
type metadata accessor for CrowdCountApiMac.FriendlyPredictor |
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
// | |
// RealmConfiguration+extensions.swift | |
// CrowdCount | |
// | |
// Created by Dimitri Roche on 8/3/18. | |
// inspired by https://medium.com/@shenghuawu/realm-lightweight-migration-4559b9920487 | |
// Copyright © 2018 Dimitri Roche. All rights reserved. | |
// | |
import Foundation |