Skip to content

Instantly share code, notes, and snippets.

(create-bill
(let [$$ (let [$$ item]
(update-price $$ 100))]
(add-to-cart cart $$)))
use std::collections::HashMap;
use std::fmt;
use std::io;
use std::num::ParseFloatError;
use std::rc::Rc;
/*
Types
*/
use std::collections::HashMap;
use std::fmt;
use std::io;
use std::num::ParseFloatError;
/*
Types
*/
#[derive(Clone)]
use std::collections::HashMap;
use std::fmt;
use std::io;
use std::num::ParseFloatError;
/*
Types
*/
#[derive(Clone)]
use std::collections::HashMap;
use std::fmt;
use std::io;
use std::num::ParseFloatError;
/*
Types
*/
#[derive(Clone)]
API="https://api.wit.ai"
TOKEN=""
curl -X DELETE \
"$API/entities/Conversation" \
-H "authorization: Bearer $TOKEN"
curl -X POST \
"$API/entities" \
-H "authorization: Bearer $TOKEN" \
@stopachka
stopachka / steps.md
Created September 21, 2017 09:23
import-samples

2. Import all entities and samples on a new app

Here is a quick script, that gives all the samples, can go ahead and create the entities needed, alongside the samples on a new app:

const _ = require('lodash');
const fetch = require('node-fetch');
const samples = require('./samples');
const TOKEN = 'CHANGE_ME';
<Response>hello</Response>