INSERT GRAPHIC HERE (include hyperlink in image)
Subtitle or Short Description Goes Here
use diesel; | |
use diesel::prelude::*; | |
use diesel::PgConnection; | |
use schema::users; | |
#[derive(Queryable, Deserialize, Serialize)] | |
pub struct User { | |
pub id: Option<i32>, | |
pub first_name: String, | |
pub last_name: String, |
#![feature(plugin)] | |
#![plugin(serde_macros)] | |
use std::ops::Deref; | |
use rocket::http::Status; | |
use rocket::request::{self, FromRequest}; | |
use rocket::{Request, State, Outcome}; | |
use r2d2; | |
use diesel::PgConnection; | |
use r2d2_diesel::ConnectionManager; |
#![feature(plugin)] | |
#[macro_use] extern crate diesel; | |
#[macro_use] extern crate serde_json; | |
#[macro_use] extern crate serde_derive; | |
extern crate dotenv; | |
//extern crate uuid; | |
pub mod schema; | |
pub mod models; |
extern crate diesel; | |
extern crate payment_api; | |
use std::process::Command; | |
use payment_api::*; | |
fn main() { | |
let connection = establish_connection(); | |
// execute a cli to generate a key pair | |
let output = Command::new("/Users/tim.siwula/Desktop/parity/target/debug/./ethkey") |
[~/Documents/Projects/Fae]$ghci | |
GHCi, version 8.2.2: http://www.haskell.org/ghc/ :? for help | |
<interactive>:1:19: error: | |
Not in scope: ‘System.IO.hSetBuffering’ | |
No module named ‘System.IO’ is imported. | |
<interactive>:1:43: error: | |
Not in scope: ‘System.IO.stdin’ | |
No module named ‘System.IO’ is imported. |
Ambiguous type variable ‘a0’ arising from a use of ‘getLast’ | |
prevents the constraint ‘(Read a0)’ from being solved. | |
Relevant bindings include | |
transferTXIDM :: Maybe a0 (bound at bin/FaeServer/App.hs:93:5) | |
Probable fix: use a type annotation to specify what ‘a0’ should be. | |
These potential instances exist: | |
instance (Read b, Read a) => Read (Either a b) | |
-- Defined in ‘Data.Either’ | |
instance forall k (s :: k). Read (Proxy s) | |
-- Defined in ‘Data.Proxy’ |
``` | |
➜ karl git:(master) sudo pip3 install --user karl | |
The directory '/Users/tim.siwula/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. | |
The directory '/Users/tim.siwula/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. | |
Collecting karl | |
Downloading https://files.pythonhosted.org/packages/46/db/c75ee661d10e7a3aa49c3d1d05fdd34e008537fbcfee531fa66a55eea71f/karl-0.2.10-py3-none-any.whl | |
Collecting mythril>=0.19.1 (from karl) | |
Requirement already satisfied: web3>=4.8.2 in /Users/tim.siwula/Library/Python/3.7/lib/python/site-packages (from karl) (4.8.2) | |
Requirement already satisfied: rlp>=1.0.1 in /Users/tim.siwula/Library/Python/3.7/lib/python/site-packages (from myth |
#@shared_task | |
def decode_speech(audio_file): | |
decoder.decode_phrase(audio_file) | |
# If the keyword "ordenador" is spotted, then switch to jsgf mode | |
# Speech Example: Ordenador show me photos of Sara | |
if decoder.get_hyp() == "ordenador": | |
print ("BINGOOOO") | |
print(decoder.get_search_method()) | |
decoder.set_search("grammar") |