Using JSON in Postgres by example.
- Download and install: Docker Toolbox
- Open Docker Quickstart Terminal
- Start a new postgres container:
docker run --name my-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
Using JSON in Postgres by example.
docker run --name my-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres# @ your EC2 instance
sudo apt update
sudo apt install openjdk-8-jre unzip
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d android-sdk
sudo mv android-sdk /opt/
export ANDROID_SDK_ROOT=/opt/android-sdk| #!/bin/sh | |
| if test -t 1; then exec 1>/dev/null | |
| fi | |
| if test -t 2; then exec 2>/dev/null | |
| fi | |
| "$@" & |
| ''' | |
| This is an example of how to send data to Slack webhooks in Python with the | |
| requests module. | |
| Detailed documentation of Slack Incoming Webhooks: | |
| https://api.slack.com/incoming-webhooks | |
| ''' | |
| import requests | |
| # Set the webhook_url to the one provided by Slack when you create the webhook at |
I hereby claim:
To claim this, I am signing this object:
| /* | |
| Coded by Marjan Olesch | |
| Sketch from Insctructables.com | |
| Open source - do what you want with this code! | |
| */ | |
| #include <Servo.h> | |
| int PIN_ESC = 9, value = 0; | |
| Servo srvESC; |
| /*====================================================================================================================================* | |
| ImportJSON by Trevor Lohrbeer (@FastFedora) | |
| ==================================================================================================================================== | |
| Version: 1.2.1 | |
| Project Page: http://blog.fastfedora.com/projects/import-json | |
| Copyright: (c) 2012-2013 by Trevor Lohrbeer | |
| License: GNU General Public License, version 3 (GPL-3.0) | |
| http://www.opensource.org/licenses/gpl-3.0.html | |
| ------------------------------------------------------------------------------------------------------------------------------------ | |
| A library for importing JSON feeds into Google spreadsheets. Functions include: |
| 32.502345269453031 | 31.70700584656992 | |
|---|---|---|
| 53.426804033275019 | 68.77759598163891 | |
| 61.530358025636438 | 62.562382297945803 | |
| 47.475639634786098 | 71.546632233567777 | |
| 59.813207869512318 | 87.230925133687393 | |
| 55.142188413943821 | 78.211518270799232 | |
| 52.211796692214001 | 79.64197304980874 | |
| 39.299566694317065 | 59.171489321869508 | |
| 48.10504169176825 | 75.331242297063056 | |
| 52.550014442733818 | 71.300879886850353 |
| # y = theta_1 * x + theta_0 | |
| # Not actually required in the gradient descent calculation; just used to verify | |
| # the sanity of the results :) | |
| def compute_error_for_line_given_points(theta_0, theta_1, points): | |
| totalError = 0 | |
| for i in range(0, len(points)): | |
| x = points[i, 0] | |
| y = points[i, 1] | |
| totalError += (y - (theta_1 * x + theta_0)) ** 2 | |
| return totalError / (2 * float(len(points))) |