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
class aaaa{ | |
public function __construct() | |
{ | |
add_action('wp_head', array( | |
$this,'register_preview_header' | |
)); | |
} | |
public function register_preview_header() | |
{ |
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
''' | |
動画用の前処理生成器。 | |
動画に対して加工する場合、連続した画像に対して同じ変換をかけたくなる場合に使う。 | |
クラスはNumpyとPillowに依存している。 | |
Example | |
-------- | |
``` |
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
''' | |
usage) python jacoco-report-inlinize.py 'target/site/jacoco/**/*.html' | |
''' | |
import os | |
import re | |
from os.path import dirname, abspath, relpath, normpath | |
import glob | |
import functools |
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 | |
set -ue | |
# 必要に応じて | |
# yum update -y | |
# Tomcatユーザの作成 | |
useradd -s /sbin/nologin --no-create-home tomcat |
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
""" | |
Original: https://gist.github.com/damianavila/5305869 | |
""" | |
import sys | |
import io | |
import os | |
import glob | |
from datetime import datetime | |
from os.path import dirname, basename |
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
/** | |
* PFX converter | |
* | |
* (Usage) node convertpfx.js chain-certifications.crt private.pem private-passphrase.txt output.pfx | |
* | |
*/ | |
const fs = require('fs') | |
const forge = require('node-forge') |
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 | |
# usage) get-keyvault-certificate.sh my-keyvault fukasawah-dev | |
set -ue | |
umask 027 | |
GROUP=nginx |
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 | |
# usage) bash tfimport.sh RESOURCE_TYPE RESOURCE_NAME RESOURCE_ADDR | |
# eg.) bash tfimport.sh "aws_s3_bucket_notification" "foo" my-s3-bucket-name | |
set -ue | |
TEMP_TF_FILE="temp.$$.tf" | |
RESOURCE_TF_FILE="resources.tf" |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>Static Template</title> | |
</head> | |
<body> | |
<form onsubmit="zipcode(); return false;"> |
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
''' | |
# Usage: | |
export TRAINING_KEY=XXXXXXXXXXX | |
python customvision-projects-image-count.py | |
# API Docs: | |
CustomVision Training API: https://southcentralus.dev.cognitive.microsoft.com/docs/services/Custom_Vision_Training_3.0/ | |
CustomVision Prediction API: https://southcentralus.dev.cognitive.microsoft.com/docs/services/Custom_Vision_Prediction_3.0/ | |
''' |
OlderNewer