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 Combine | |
import SwiftUI | |
class AlertManager: ObservableObject { | |
@Published var isPresented = false | |
private var queues: [Alert] = [] | |
private var cancellable: AnyCancellable? | |
init() { |
<?php | |
// usage: | |
// youtube_proxy.php?url=http%3a%2f%2fwww%2eyoutube%2ecom%2fwatch%3fv%3dmxPXPv3oNY4%26feature%3dfvsr | |
define('YOUTUBE_DOMAIN', 'www.youtube.com'); | |
// fmt(優先度:左->右) | |
$fmtTbl = array(5, 18, 34, 22, 37); | |
$url = isset($_GET['url']) ? rawurldecode($_GET['url']) : ''; |
import Logging | |
import SwiftyBeaver | |
struct SwiftyBeaverLogHandler: LogHandler { | |
var metadata: Logger.Metadata = .init() | |
var logLevel: Logger.Level = .info | |
init(_: String) { | |
} |
{ | |
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]; |
var LINE = require('./line.js'); | |
var line = new LINE(); | |
var email = 'your email'; | |
var password = 'your password'; | |
line.login(email, password, function(error, result) { | |
if (error) { | |
return; | |
} | |
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="1password" /> | |
<package id="7zip" /> | |
<package id="ag" /> | |
<package id="adobe-creative-cloud" /> | |
<package id="atom" /> | |
<package id="autohotkey" /> | |
<package id="chefdk" /> | |
<package id="chocolateygui" /> |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
SetTitleMatchMode,2 | |
#InstallKeybdHook | |
#UseHook | |
#Space::IME_SET(!IME_GET()) | |
#Enter:: return ; Disable Windows Narrator |
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"strings" | |
"github.com/libgit2/git2go" | |
) |