Presto is a “Distributed SQL Query Engine for Big Data” that gives you the ability to join across data stores! 🎉
The easiest way to install Presto is with Homebrew.
brew install presto
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
// Whatever needs to happen before | |
UIStoryboard *storyboard; | |
BOOL isIphone = ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone)? TRUE : FALSE; | |
if(isIphone) { | |
//iPhone Family | |
CGSize deviceScreenSize = [[UIScreen mainScreen] bounds].size; |
// Simple groupcache example: https://github.com/golang/groupcache | |
// Running 3 instances: | |
// go run groupcache.go -addr=:8080 -pool=http://127.0.0.1:8080,http://127.0.0.1:8081,http://127.0.0.1:8082 | |
// go run groupcache.go -addr=:8081 -pool=http://127.0.0.1:8081,http://127.0.0.1:8080,http://127.0.0.1:8082 | |
// go run groupcache.go -addr=:8082 -pool=http://127.0.0.1:8082,http://127.0.0.1:8080,http://127.0.0.1:8081 | |
// Testing: | |
// curl localhost:8080/color?name=red | |
package main | |
import ( |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"net/http" | |
"strings" | |
"time" |
#!/bin/bash | |
############################################### | |
# To use: | |
# chmod +x install-redis.sh | |
# ./install-redis.sh | |
############################################### | |
version=4.0.8 | |
echo "*****************************************" | |
echo " 1. Prerequisites: Install updates, set time zones, install GCC and make" |
FROM alpine:latest as alpine | |
RUN apk --no-cache add tzdata zip ca-certificates | |
WORKDIR /usr/share/zoneinfo | |
# -0 means no compression. Needed because go's | |
# tz loader doesn't handle compressed data. | |
RUN zip -r -0 /zoneinfo.zip . | |
FROM scratch | |
ENV ZONEINFO /zoneinfo.zip | |
COPY --from=alpine /zoneinfo.zip / |
#!/bin/bash | |
# | |
# chmod +x docker-cleanup | |
# cp docker-cleanup /usr/local/bin | |
# */10 * * * * /usr/local/bin/docker-cleanup | |
if [ ! $(command -v docker) ]; then | |
echo "Docker is not installed or not running." | |
exit 1 | |
fi |
version: '2' | |
services: | |
db: | |
image: postgres | |
environment: | |
GET_HOSTS_FROM: dns | |
POSTGRES_DB: dev | |
POSTGRES_USER: postgres-dev | |
POSTGRES_PASSWORD: password | |
ports: |
import sys | |
import json | |
import csv | |
## | |
# Convert to string keeping encoding in mind... | |
## | |
def to_string(s): | |
try: | |
return str(s) |
package utils | |
import ( | |
"bytes" | |
"encoding/json" | |
"io" | |
) | |
// data, err := generateMap(StreamToByte(resp.Body)) |