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
variable "main" { | |
default = { | |
"aws_account_ids" = ["XXXXXXXXXX"] | |
"app_name" = "XXXX" | |
"region" = "ap-northeast-1" | |
"az_1" = "ap-northeast-1a" | |
"az_2" = "ap-northeast-1c" | |
"acm_certificate_arn" = "arn:aws:acm:ap-northeast-1:XXXXXXXXX:certificate/XXXXXXXXXXXXXXXXXXXXXXXXXXXX" | |
"app_public_key_path" = "XXXX.pub" | |
"management_public_key_path" = "XXXX.pub" |
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
AWSTemplateFormatVersion: "2010-09-09" | |
Description: Network resource template part1 | |
Resources: | |
# VPCの設定 | |
sbcntrVpc: | |
Type: AWS::EC2::VPC | |
Properties: | |
CidrBlock: 10.0.0.0/16 | |
EnableDnsHostnames: true | |
EnableDnsSupport: true |
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
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#include <WiFi.h> | |
#include "Ambient.h" | |
#include "max6675.h" | |
#define SECOND (1000) | |
#define MINUTE (SECOND * 60) | |
#define HOUR (MINUTE * 60) | |
#define DAY (HOUR * 24) |
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
[Desktop Entry] | |
Type=Application | |
Name=windowpy | |
Exec=/usr/bin/python2.7 /home/pi/projects/camera/camera.py | |
Terminal=false |
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 Tkinter as tk | |
import RPi.GPIO as GPIO | |
from datetime import datetime | |
import picamera | |
import os.path | |
import time | |
camera = picamera.PiCamera() | |
camera.resolution = (2592, 1944) |
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
;3DWOX Desktop Version : 1.2.689 | |
;[Cartridge_Number] : <0> | |
;----------------------------------------- | |
;Layer_Height(mm) : 0.200000 | |
;Wall_Thickness(mm) : 0.800000 | |
;Enable_Retraction(0=Off,1=On) : 1 | |
;Bottom/Top_Thickness(mm) : 0.800000 |
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 os | |
import concurrent.futures as confu | |
def target_func(x): | |
return x + 1 | |
def main(): | |
count = 10 |
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
{{define "base"}} | |
<html lang="en"> | |
<head> | |
<title>{{template "title" .}}</title> | |
</head> | |
<body> | |
{{template "body" .}} | |
</body> | |
</html> | |
{{end}} |
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
type PageItem struct { | |
Page int | |
Str string | |
} | |
type Page struct { | |
Items []PageItem | |
MaxPage int | |
} |
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 ( | |
"fmt" | |
"github.com/PuerkitoBio/goquery" | |
"io/ioutil" | |
"strconv" | |
"strings" | |
"time" | |
) |
NewerOlder