Skip to content

Instantly share code, notes, and snippets.

View contact_form.md

Parameter and Label Values

The list below confirms the sections and fields used for the Contacts form.

Generally speaking, the form is organized by company and contact. Company information is present because the search is a business contact and therefore is associated with a company.

Catalogues

For now, we are using InsideView's catalogue data. If one of the parameters from the form corresponds to an InsideView field which uses reference data, then the link to the reference data will be included with the Label.

@jgwerner
jgwerner / cod_activation_registration.md
Last active Oct 16, 2018
Cup of Data Registration and Activation Endpoints w/ Examples
View cod_activation_registration.md

Cup of Data Registration and Activation Endpoints w/ Examples

Registration Endpoint

Create new local user

Register a new user with local authentication settings (user id and password).

cURL

View index.html
<!-- For more examples: https://codepen.io/Zaku/pen/eRmRxz -->
<svg class="liquid-button"
data-text="BUTTON"
data-force-factor="0.1"
data-layer-1-viscosity="0.5"
data-layer-2-viscosity="0.4"
data-layer-1-mouse-force="400"
data-layer-2-mouse-force="500"
data-layer-1-force-limit="1"
View installGo.sh
# Based in large part from https://github.com/canha/golang-tools-install-script
#!/bin/bash
set -e
VERSION="1.9"
print_help() {
echo "Usage: bash goinstall.sh OPTION"
echo -e "\nOPTIONS:"
@jgwerner
jgwerner / launch_notebook_new_student.py
Last active Aug 8, 2017
simple script to launch notebook with new 3Blades project/server
View launch_notebook_new_student.py
"""
First login:
- Login with UI
- Backend signal identifies new user
- Script creates a new project
- Script creates a new server
- Script start the new server
- Script downloads course files
View end_to_end_notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jgwerner
jgwerner / datascience_workflow.md
Created Jun 20, 2017
Standard data science workflow
View datascience_workflow.md

Data Science Workflow

Define the Problem

  • What is the problem? Provide formal and informal definitions.
  • Why does the problem need to be solved? Motivation, benefits, how it will be used.
  • How would I solve the problem? Describe how the problem would be solved manually to flush domain knowledge.

Prepare Data

@jgwerner
jgwerner / jupyter_notebook_config.py
Created May 19, 2017
Jupyter Notebook config enabled for IFrames.
View jupyter_notebook_config.py
from jupyter_core.paths import jupyter_data_dir
import subprocess
import os
import errno
import stat
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.port = 8888
c.NotebookApp.open_browser = False
@jgwerner
jgwerner / custom_jupyter_notebook_image.md
Created May 18, 2017
Custom 3Blades Jupyter Notebook setup.
View custom_jupyter_notebook_image.md

Add custom Jupyter Notebook to 3Blades

  1. Clone base notebook repo and cd into base-notebook:

    git clone https://github.com/3blades/notebook-servers cd base-notebook

  2. Add custom config to jupyter_notebook_config.py to allow iFrame using custom URL:

View swagger.json
{"swagger": "2.0", "info": {"title": "3blades API", "version": ""}, "consumes": ["application/json"], "produces": ["application/json"], "paths": {"/actions/": {"get": {"operationId": "actions_list", "responses": {"200": {"description": "Action list", "schema": {"type": "array", "items": {"$ref": "#/definitions/Action"}}}}, "parameters": [{"name": "limit", "required": false, "in": "query", "description": "", "type": "string"}, {"name": "offset", "required": false, "in": "query", "description": "", "type": "string"}, {"name": "state", "required": false, "in": "query", "description": "", "type": "string"}, {"name": "start_date", "required": false, "in": "query", "description": "", "type": "string"}, {"name": "end_date", "required": false, "in": "query", "description": "", "type": "string"}, {"name": "ordering", "required": false, "in": "query", "description": "", "type": "string"}], "tags": ["actions"]}}, "/actions/{id}/cancel/": {"post": {"operationId": "actions_cancel_create", "responses": {"201": {"descriptio
You can’t perform that action at this time.