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
module.exports = { | |
hexStringToIntArray: function(str) { | |
var res = [] | |
for(var i = 0; i < str.length; i += 2) { | |
res.push(parseInt(str.substring(i, i+2), 16)) | |
} | |
return res | |
}, | |
byteArrayToHexString: function(array) { |
=begin | |
Converts: | |
# people.csv | |
Name, Age, Height | |
Ahmed, 12, 103 | |
Mohamed, 19, 176 | |
.. into: | |
# people.json |
Using JSON in Postgres by example.
docker run --name my-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
#!/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:
// White doesn't provide a C# wrapper library (yet), but you can still easily | |
// create charges by sending requests directly to the API. Here's how. | |
using RestSharp; | |
var client = new RestClient(); | |
client.BaseUrl = "https://api.start.payfort.com/"; | |
client.Authenticator = new HttpBasicAuthenticator("your_secret_api_key_here", ""); | |
var request = new RestRequest("charges", Method.POST); // send a POST request | |
request.AddParameter("currency", "AED"); |
/* | |
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; |
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 |