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
let hasRedirectSet | |
wp.data.subscribe(()=>{ | |
const { isAutosavingPost, | |
didPostSaveRequestSucceed, | |
getCurrentPostAttribute } = wp.data.select('core/editor') | |
if ( !isAutosavingPost() | |
&& !hasRedirectSet | |
&& didPostSaveRequestSucceed() |
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
vim.api.nvim_create_user_command('ShowRootHighlightUnderCursor', function() | |
local function findRoot(id, tree) | |
local transId = vim.fn.synIDtrans(id) | |
local name = vim.fn.synIDattr(id, 'name') | |
table.insert(tree, name) | |
if id == transId then | |
print(table.concat(tree, ' -> ')) | |
else | |
findRoot(transId, tree) |
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 my_post_type() { | |
register_post_type( | |
'news', | |
array( | |
'public' => true, | |
'has_archive' => true, | |
'rewrite' => array( | |
'with_front' => false, | |
'slug' => 'my-post-type' |
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
stages: | |
- get_reference | |
- regression_test | |
- publish | |
backstopjs_reference: | |
stage: get_reference | |
image: | |
name: backstopjs/backstopjs:latest | |
entrypoint: [""] |
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
from api_key import * | |
import tweepy | |
import time | |
from datetime import datetime, timezone, timedelta | |
# Keep follow in this listed user. | |
exclude_list = ["Soukou"] | |
client = tweepy.Client( | |
bearer_token = BEARER_TOKEN, |
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
version: '3.7' | |
services: | |
mirakurun: | |
image: chinachu/mirakurun | |
cap_add: | |
- SYS_ADMIN | |
- SYS_NICE | |
ports: | |
- "40772:40772" | |
- "9229:9229" |
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
<?xml version="1.0"?> | |
<ruleset name="WordPress" namespace="WordPress"> | |
<description>WordPress Coding Standards</description> | |
<autoload>./PHPCSAliases.php</autoload> | |
<rule ref="WordPress-Core"> | |
<exclude name="WordPress.Files.FileName"/> | |
</rule> | |
<rule ref="WordPress-Docs"/> |
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
version: '3' | |
services: | |
redmine: | |
image: redmine | |
restart: always | |
ports: | |
- 32790:3000 |
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
- name: PT2-T1 | |
types: | |
- GR | |
command: /usr/local/bin/recdvb --dev 1 --b25 <channel> - - | |
isDisabled: false | |
- name: PT2-T2 | |
types: | |
- GR | |
command: /usr/local/bin/recdvb -dev 3 -b25 <channel> - - |
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
'Standard Module, Defenition TYPE | |
Type Employee | |
ID as String | |
PersonalName as String | |
FamilyName as String | |
PhoneNumber as String | |
End Type | |
Sub FindPhoneNumber(ByVal Id as String) |
NewerOlder