This file contains 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
const errorObject = (param) => { | |
if (param === true) { | |
return { | |
isError: false, | |
payload: 'TRUE', | |
}; | |
} else { | |
return { | |
isError: true, | |
payload: 'ERR', |
This file contains 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
<?php | |
# ===================================================== | |
# Confirmed work with Misskey 13.12.2 | |
# Requires openssl extension and PHP 7.4.0 or later | |
# Edit php.ini | |
# ;extension=openssl -> extension=openssl | |
# ===================================================== | |
set_time_limit(0); | |
# ==================== Config Start =================== |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<meta http-equiv='X-UA-Compatible' content='IE=edge'> | |
<title>Slack Reminder Creator</title> | |
<meta name='viewport' content='width=device-width, initial-scale=1'> | |
<script> | |
const inputState = { | |
chName: '', |
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 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
<?php | |
function get_post_data($post_id) { | |
$url = esc_url(get_permalink($post_id)); | |
$title = esc_attr(get_the_title($post_id)); | |
$img = ''; | |
if (has_post_thumbnail($post_id)) { | |
$img = get_the_post_thumbnail_url($post_id, 'thumb-520'); | |
} else { |
This file contains 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
#!/bin/bash | |
getProgress() { | |
local issueNo=$1 | |
local issue=$(curl -sS \ | |
-H "Authorization: token $GH_TOKEN" \ | |
-H "Accept: 'application/vnd.github.v3+json'" \ | |
https://api.github.com/repos/$TARGET_REPO/issues/$issueNo \ | |
| perl -lpe 's/\n//') |
This file contains 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
/** | |
* ## 使い方 | |
* | |
* 1. あすけん PC サイトにログイン | |
* 2. データを取得したい範囲で beginYear, endYear を設定 | |
* 3. ブラウザのコンソールにこのスクリプトを流す | |
* 4. TSV がコンソールに出力される | |
*/ | |
/** データ取得開始年 */ |
This file contains 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
// ==UserScript== | |
// @name Disable Google analytics | |
// @description Disable Google analytics by owner access | |
// @author Lycolia Rizzim | |
// @namespace https://lycolia.info/ | |
// @version 0.1 | |
// @match pattern here | |
// @run-at document-start | |
// @grant none | |
// ==/UserScript== |
This file contains 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
Windows Registry Editor Version 5.00 | |
[-HKEY_CLASSES_ROOT\Directory\shell\git_gui] | |
[-HKEY_CLASSES_ROOT\Directory\shell\git_shell] | |
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\git_gui] | |
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\git_shell] | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_gui] | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_shell] |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
#region 環境 | |
import sys | |
import subprocess | |
# トレースバック非表示 | |
sys.tracebacklimit = 0 |
NewerOlder