BeRealのロゴみたいなやつ(参考)

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
| var last_id = "8999999999999999999"; | |
| init = () => { | |
| let path = location.pathname.split("/"), | |
| pathlist = ["home", "explore", "search", "notifications", "messages", "i"]; | |
| if (path.length != 2 || pathlist.includes(path[1])) { | |
| alert("ユーザーのページを開いてください"); | |
| return; | |
| } | |
| screen_name = path[1]; |
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
| https://nanoha.pages.dev/app/download?url=https://api.end2end.tech/download?id=f5d466698626 |
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
| /** | |
| * Calc M(n) | |
| * @param n number | |
| */ | |
| export const npei = (n: number) => n * 6200000000 |
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
| @tailwind base; | |
| @tailwind components; | |
| @tailwind utilities; |
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
| if (import.meta.env.DEV) { | |
| const script = document.createElement('script') | |
| script.src = 'https://cdn.jsdelivr.net/npm/eruda' | |
| // @ts-ignore global eruda | |
| script.onload = () => globalThis.eruda.init() | |
| document.body.append(script) | |
| } |
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
| let targetUrl: string = '' | |
| if (Deno.args[0]) { | |
| try { | |
| const urlObjectUrl = new URL(Deno.args[0]) | |
| urlObjectUrl.protocol = 'http:' | |
| targetUrl = urlObjectUrl.href | |
| alert(`${targetUrl} に指定しました!`) | |
| break | |
| } catch (_error) { |
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
| // @ts-check | |
| /** | |
| * Get random color code | |
| * @return {string} | |
| */ | |
| export const getRandomColor = () => '#' + Math.random().toString(16).slice(2, 8) |
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 pandas as pd | |
| kokusei = pd.read_csv('data/c01.csv', encoding='shift-jis') | |
| kokusei = kokusei.dropna(subset=['都道府県名']) | |
| h27 = kokusei[kokusei['西暦(年)'] == 2015] | |
| h27 = h27[~h27['都道府県コード'].isin(['00', '0A', '0B'])] |
