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
#!/usr/bin/env bash | |
set -euo pipefail | |
echo "getting temperature and humidity from ${METER_MAC_ADDRESS}" | |
data="$(/usr/local/bin/switchbot-meter -a "${METER_MAC_ADDRESS}")" | |
echo "${data}" | |
body="$(echo "${data}" | jq -c '{(.addr): del(.addr)}')" | |
ts=$(echo "${data}" | jq -r '.ts') | |
echo "${body}" | curl -X POST \ |
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
'use strict'; | |
const { RateLimiter } = require('limiter'); | |
// プロビジョニングされた WCU | |
const PROVISIONED_WCU = 5; | |
/** | |
* DynamoDB のレートリミッターを作成する | |
* |
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
C:\Users\foo>echo %PATHEXT% | |
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC |
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
let s:file = [ '#bd2c00' , '#666666' , 1 , 240 , 'bold' ] | |
" Normal mode | |
let s:N1 = [ '#ffffff' , '#6cc644' , 255 , 2 ] " mode | |
let s:N2 = [ '#ffffff' , '#999999' , 255 , 248 ] " info | |
let s:N3 = [ '#ffffff' , '#666666' , 255 , 240 ] " statusline | |
let g:airline#themes#github#normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3, s:file) | |
let g:airline#themes#github#normal_modified = { | |
\ 'info_separator': [ '#999999' , '#333333' , 248 , 232 , '' ] , |
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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
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
# coding: utf-8 | |
require 'csv' | |
module GoogleContacts | |
class Contacts | |
attr_reader :cards | |
def initialize | |
@cards = [] | |
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
--- | |
--- | |
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title>{{ site.title | xml_escape }}</title> | |
<link href="{{ site.url }}" /> | |
<updated>{{ site.time | date_to_xmlschema }}</updated> | |
<author> | |
<name>{{ site.author | xml_escape }}</name> |
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
require 'yaml' | |
require 'time' | |
require 'fileutils' | |
require 'uuidtools' | |
CONFIG_YML = File.expand_path('../_config.yml', __FILE__) | |
CONFIG = YAML.load(File.read(CONFIG_YML, encoding: 'UTF-8')) | |
SOURCE_DIR = File.expand_path(CONFIG['source'] || File.dirname(__FILE__)) |
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
# -*- coding: utf-8 -*- | |
# | |
# Generates css files from Sass source files with Compass. | |
# | |
require 'pathname' | |
require 'sass' | |
require 'compass' | |
module Jekyll |
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
"============================================================================= | |
" Licensed under the MIT license: | |
" http://www.opensource.org/licenses/mit-license.php | |
"============================================================ | |
function! unite#sources#outline#aspvbs#outline_info() | |
return s:outline_info | |
endfunction | |
let s:Util = unite#sources#outline#import('Util') |
NewerOlder