Skip to content

Instantly share code, notes, and snippets.

View 2no's full-sized avatar
🥳

Kazunori Ninomiya 2no

🥳
View GitHub Profile
@2no
2no / SwiftyBeaverLogHandler.swift
Last active September 24, 2020 15:10
swift-log+SwiftyBeaver
import Logging
import SwiftyBeaver
struct SwiftyBeaverLogHandler: LogHandler {
var metadata: Logger.Metadata = .init()
var logLevel: Logger.Level = .info
init(_: String) {
}
@2no
2no / AlertManager.swift
Created May 31, 2020 13:18
SwiftUI+Alert Queue
import Combine
import SwiftUI
class AlertManager: ObservableObject {
@Published var isPresented = false
private var queues: [Alert] = []
private var cancellable: AnyCancellable?
init() {
@2no
2no / inside-frontend-vol1.md
Last active February 27, 2017 04:42
Inside Frontend Vol.1

Inside Frontend Vol.1

Web over ServiceWorker

@jxck

Web vs PC App

これまで

Web vs Mobile

@2no
2no / extract_app_retentions.js
Last active April 24, 2017 05:33
iTunes Connect App アナリティクスのリテンションを API 経由で取得。Chrome のコンソールで実行
{
const RETENTION_ENDPOINT = '/analytics/api/v1/data/retention';
const DAY_MILLISECONDS = 60 * 60 * 24 * 1000;
const START_DATE = '2016-04-23';
const params = (() => {
const params = {};
(location.hash.split('?')[1] || '').split('&').forEach((param) => {
const parts = param.split('=');
params[parts[0]] = parts[1];
@2no
2no / git2go_log.go
Last active December 11, 2016 12:08
git2go で `git log`
package main
import (
"fmt"
"log"
"os"
"strings"
"github.com/libgit2/git2go"
)
var diff,
filePath = '[file path]',
fso = new ActiveXObject('Scripting.FileSystemObject'),
file = fso.getFile(filePath),
date = new Date(file.dateLastModified),
sh = new ActiveXObject('WScript.Shell');
// ペイント起動
sh.run('mspaint ' + filePath);
while (!sh.appActivate('Paint')) {
let s:dataset = {
\ '山田': {
\ 'カレー': 2.5,
\ 'ラーメン': 3.5,
\ 'チャーハン': 3.0,
\ '寿司': 3.5,
\ '牛丼': 2.5,
\ "うどん": 3.0,
\ },
\ '田中': {
//: Playground - noun: a place where people can play
import UIKit
let dataset = [
"山田": [
"カレー": 2.5,
"ラーメン": 3.5,
"チャーハン": 3.0,
"寿司": 3.5,

AWS Summit Tokyo 2016 2016/06/02

Security by Design 〜AWS で実現する機能的で信頼性の高いガバナンスモデル〜

高田智己

  • セキュリティと監査における現在の課題と解決へのアプローチ
  • Security By Design の紹介
  • AWS Enterprixse Accelerator Quick Start - Compliance