Skip to content

Instantly share code, notes, and snippets.

View kissge's full-sized avatar
😮‍💨
優秀エンジニア手伝ってくれたのむ

Yusuke Kido kissge

😮‍💨
優秀エンジニア手伝ってくれたのむ
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Emoji check</title>
<style>
/** Color Emoji hack: originally from https://necomesi.jp/blog/tsmd/posts/154 */

Note aaa

bbb

@kissge
kissge / debug-print.js
Last active April 17, 2022 07:31
2022-04-17 JSでいい感じのデバッグ出力をする
// @ts-check
/**
* @type {JSON['stringify']}
* @param {any} value
*/
const debugPrint = (value, replacer = null, space = null) => {
const n = JSON.stringify(value)?.length || String(value).length;
return postprocess(JSON.stringify(preprocess(value, n), replacer, space), n);
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
{
# Relaunch as an elevated process:
Start-Process powershell.exe "-File",('"{0}"' -f $MyInvocation.MyCommand.Path) -Verb RunAs
exit
}
$set = @{}
while ($true) {
#!/bin/bash
tmp=$(mktemp -d)
d=$(date +%Y%m%dT%H%M%S%z)
cd "$tmp"
mkdir -p "$d"
cat /var/log/system.log >"$d/system.log"
@kissge
kissge / date-iso.cpp
Created March 19, 2022 11:28
date(1) 速すぎない?
// g++ -std=c++11 -O3 date-iso.cpp -o date-iso
#include <chrono>
#include <cstdio>
using namespace std::chrono;
int main()
{
auto now = system_clock::now();
28ddba4afc13a2401224.js:formatted:11637
It looks like you're using the development build of the Firebase JS SDK.
When deploying Firebase apps to production, it is advisable to only import
the individual SDK components you intend to use.
For the module builds, these are available in the following manner
(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):
CommonJS Modules:
const firebase = require('firebase/app');
MIT License
Copyright (c) 2022 Yusuke Kido
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Function Analysis() {
echo "Analysis ver. 1"
date
Get-ComputerInfo | Out-String
echo "=========="
echo "the contents of hosts file:"
cat C:\Windows\system32\drivers\etc\hosts
echo "=========="