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
(ns example | |
(:require [applied-science.js-interop :as j] | |
[promesa.core :as p] | |
["@electric-sql/pglite" :as PGlite])) | |
(p/let [db (new PGlite.PGlite) | |
_ (j/call db :exec "CREATE TABLE IF NOT EXISTS todo (id SERIAL PRIMARY KEY, task TEXT, done BOOLEAN DEFAULT fals | |
e);") | |
_ (j/call db :exec "INSERT INTO todo (task, done) VALUES ('Install PGlite from NPM', true);") | |
_ (j/call db :exec "INSERT INTO todo (task, done) VALUES ('Load PGlite', 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
import segyio | |
import napari | |
# wget http://s3.amazonaws.com/open.source.geoscience/open_data/newzealand/Taranaiki_Basin/Keri_3D/Kerry3D.segy | |
segyfile = '../../data/pylops/Kerry3D.segy' | |
f = segyio.open(segyfile, | |
iline=segyio.tracefield.TraceField.SourceEnergyDirectionExponent, | |
xline=segyio.tracefield.TraceField.CDP) |
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
[ | |
{ | |
"API_NUMBER": "15-007-20008", | |
"API_NUM_NODASH": "15007200080000", | |
"COMMENTS": "Plugged and Abandoned", | |
"COMPLETION": "12-MAR-1967", | |
"CURR_OPERATOR": " Inc.", | |
"DEPTH": " KB", | |
"ELEVATION": "unavailable", | |
"ELEV_REF": "1535", |
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
KID: string . | |
API_NUMBER: string . | |
API_NUM_NODASH: string . | |
LEASE: string . | |
WELL: string . | |
FIELD: string . | |
LATITUDE: string . | |
LONGITUDE: string . | |
LONG_LAT_SOURCE: string . | |
TOWNSHIP: string . |
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
``` | |
valgrind ./webdis | |
==25858== Memcheck, a memory error detector | |
==25858== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. | |
==25858== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info | |
==25858== Command: ./webdis | |
==25858== | |
==25858== Thread 4: | |
==25858== Invalid read of size 4 | |
==25858== at 0x11C42E: redisAsyncDisconnect (async.c:359) |
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
fn build | |
Building image raej/jrest:0.0.1 | |
Sending build context to Docker daemon 337.9kB | |
Step 1/12 : FROM fnproject/fn-java-fdk-build:latest as build-stage | |
latest: Pulling from fnproject/fn-java-fdk-build | |
bc95e04b23c0: Pull complete | |
3cbd22648d7b: Pull complete | |
689a1b344d36: Pull complete | |
21d8309ec350: Pull complete | |
c133b2f9ec79: Pull complete |
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
docker build --tag local-bigchaindb . | |
Sending build context to Docker daemon 2.293 MB | |
Step 1 : FROM rethinkdb:2.3 | |
2.3: Pulling from library/rethinkdb | |
75a822cd7888: Pull complete | |
6e2d8dd0ca87: Pull complete | |
e56239563bb3: Pull complete | |
bf0f28d27004: Pull complete | |
1c6ba2c166ad: Pull complete | |
Digest: sha256:ab81bd8c5d8514b416331a00da048f0c041787e0a3f0d93219e46db069d65a58 |
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
## docker pull bigchaindb/bigchaindb | |
## docker run --rm -v "$HOME/bigchaindb_docker:/data" -ti bigchaindb/bigchaindb -y configure | |
## docker run -v "$HOME/bigchaindb_docker:/data" -d --name bigchaindb -p "58080:8080" -p "59984:9984" bigchaindb/bigchaindb start | |
## docker-machine ip bigchaindb | |
from bigchaindb_driver import BigchainDB | |
bdb = BigchainDB('http://192.168.99.100:59984/api/v1') # From docker-machine ip bigchaindb and docker ps | |
bicycle = { |
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
/** | |
* @section License | |
* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2014-2016, Erik Moqvist | |
* | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without |
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
/** | |
* @section License | |
* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2014-2016, Erik Moqvist | |
* | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without |
NewerOlder