View main.go
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
module github.com/tmtk75/m | |
go 1.16 | |
require ( | |
github.com/aws/aws-sdk-go-v2/config v1.4.1 // indirect | |
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.4.0 // indirect | |
) |
View COVID19-exposure.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View list-reminders.swift
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 Darwin | |
import EventKit | |
import Foundation | |
var debug = false | |
if ProcessInfo.processInfo.environment["DEBUG"] != nil { | |
debug = true | |
} | |
// https://stackoverflow.com/questions/28016578/how-to-create-a-date-time-stamp-and-format-as-iso-8601-rfc-3339-utc-time-zone |
View switchMap-sample.ts
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 { of, interval, never } from "rxjs"; | |
import { map, switchMap } from "rxjs/operators"; | |
const a = of(1, 2, 3, 4); | |
const b = of(1, 2, 3, 4).pipe(map(e => e * 10)); | |
const c = of(1, 2, 3, 4).pipe(map(e => e * 100)); | |
const main = interval(1000).pipe( | |
switchMap(i => { | |
switch (i % 3) { |
View list-reminder.swift
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 Cocoa | |
//var str = "Hello, playground" | |
import EventKit | |
let eventStore = EKEventStore() | |
func allowAuthorization() { | |
if getAuthorization_status() { | |
// 許可されている | |
return |
View lunr-sample.js
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
const lunr = require("lunr"); | |
const lunrstemmer = require("lunr-languages/lunr.stemmer.support"); | |
const lunrtinyseg = require("lunr-languages/tinyseg"); | |
const lunrja = require("lunr-languages/lunr.ja"); | |
lunrstemmer(lunr); | |
lunrtinyseg(lunr); | |
lunrja(lunr); | |
// console.trace("init lunr"); |
View main.go
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 ( | |
"flag" | |
"fmt" | |
"image" | |
"image/draw" | |
"image/png" | |
"log" | |
"math" |
View hover.html
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<style type="text/css"> | |
#main { display: flex; flex: 1; } | |
.node { border: 1px solid gray; width: 160px; height: 100px; margin: 1px; } | |
.node:hover { background-color: rgba(0, 0, 0, 0.1); } | |
</style> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/5.0.1/Rx.min.js"></script> | |
<script src="https://d3js.org/d3.v4.min.js"></script> |
View ls-ec2.sh
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 | |
sort_key=${1-Name} | |
aws ec2 describe-instances \ | |
--output table \ | |
--filter Name=instance-state-name,Values=running \ | |
Name=tag-key,Values=role \ | |
Name=tag-key,Values=site \ | |
--query ' | |
sort_by( | |
Reservations[].Instances[], |
View index.ios.js
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 React, { | |
AppRegistry, | |
StyleSheet, | |
Text, | |
View, | |
ListView, | |
Image, | |
NavigatorIOS, | |
TouchableWithoutFeedback, | |
WebView |
NewerOlder