This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Parse args | |
ssid="$1" | |
password="$2" | |
# Create Wi-Fi config | |
cat > wpa_supplicant.conf <<EOF | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package exampleservice | |
import ( | |
"net/http" | |
) | |
type Service struct{} | |
func NewService() *Service { | |
return &Service{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"net/http" | |
"github.com/gorilla/mux" | |
"google.golang.org/appengine" | |
service "github.com/xxmatyuk/example-gae-go111/example_app" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import board | |
import atexit | |
import json | |
import adafruit_dht | |
import RPi.GPIO as GPIO | |
from flask import Flask | |
# Fans | |
FANS_PIN = 21 |