This file contains hidden or 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 | |
| ) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 |
This file contains hidden or 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) { |
This file contains hidden or 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 |
This file contains hidden or 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"); |
This file contains hidden or 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" |
This file contains hidden or 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> |
This file contains hidden or 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[], |
This file contains hidden or 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