Skip to content

Instantly share code, notes, and snippets.

View pipe.clj
(create-bill
(let [$$ (let [$$ item]
(update-price $$ 100))]
(add-to-cart cart $$)))
View risp-2.0.rs
use std::collections::HashMap;
use std::fmt;
use std::io;
use std::num::ParseFloatError;
use std::rc::Rc;
/*
Types
*/
View risp-1.2.rs
use std::collections::HashMap;
use std::fmt;
use std::io;
use std::num::ParseFloatError;
/*
Types
*/
#[derive(Clone)]
View risp-1.1.rs
use std::collections::HashMap;
use std::fmt;
use std::io;
use std::num::ParseFloatError;
/*
Types
*/
#[derive(Clone)]
View risp-1.0.rs
use std::collections::HashMap;
use std::fmt;
use std::io;
use std::num::ParseFloatError;
/*
Types
*/
#[derive(Clone)]
View repro
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 Sep 21, 2017
import-samples
View steps.md

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';