ITCSS
https://itcss.io/
UFOCSS
https://medium.com/openmindonline/how-i-organize-css-in-large-projects-using-ufocss-part-1-9d04417f39f3
https://medium.com/openmindonline/how-i-organize-css-in-large-projects-using-ufocss-part-2-68786ff41749
import Logging | |
import SwiftyBeaver | |
struct SwiftyBeaverLogHandler: LogHandler { | |
var metadata: Logger.Metadata = .init() | |
var logLevel: Logger.Level = .info | |
init(_: String) { | |
} |
import Combine | |
import SwiftUI | |
class AlertManager: ObservableObject { | |
@Published var isPresented = false | |
private var queues: [Alert] = [] | |
private var cancellable: AnyCancellable? | |
init() { |
{ | |
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]; |
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, |