Vurp っていうのを使うとWordPressも簡単にワールドプレスにできる。
適当にWordPressを立ち上げておいて、 config.js
を以下のように設定する。
"use strict";
const config = {
var slack_token = "xoxp-xxxxxxxxxxx-...."; | |
var slack_channel = "#channnel"; | |
function scraping(day /* 1..31 */){ | |
var url = "https://www.tokyo-dome.co.jp/dome/event/schedule.html"; | |
var res, pattern, html, pos1, pos2, text; | |
res = UrlFetchApp.fetch(url); | |
if (typeof day === "number" && day < 10) { | |
day = "0" + day; | |
} |
Option Explicit | |
Function IsTitle(sh As Shape) As Boolean | |
On Error GoTo Trap | |
IsTitle = False | |
If sh.PlaceholderFormat.Type = ppPlaceholderTitle Then IsTitle = True | |
Trap: | |
End Function | |
// Slackのチャンネル一覧とpurposeを投稿 | |
//[ファイル]→[プロジェクトのプロパティ]→[スクリプトのプロパティ]に以下の各プロパティを設定すること | |
// slack_api_token APIトークン。 https://api.slack.com/docs/oauth-test-tokens で Create Token を押すと生成される xxxx-1234567890-1234567890 のような値 | |
// channel 投稿するチャンネル | |
function slackApi(token, path, params) { | |
if(!params) params = {}; | |
var url = "https://slack.com/api/" + path; | |
var q = "?token=" + encodeURIComponent( token ); | |
for( var key in params ){ |
Vurp っていうのを使うとWordPressも簡単にワールドプレスにできる。
適当にWordPressを立ち上げておいて、 config.js
を以下のように設定する。
"use strict";
const config = {
全国1千万のalertファンのみなさまお待たせしました! Shibuya.XSS techtalk #8 を2016年11月14日19時より開催します。 会場は株式会社リクルートテクノロジーズ 41F アカデミーホール(東京都千代田区丸の内1-9-2 グラントウキョウサウスタワー)を予定しています。
今回は超大物スペシャルゲストが特別来日ということで、スペシャルゲストと並んで講演できる名誉あるスピーカー枠を広く募集します。 発表時間は15分、募集人数は6名とします。
/* | |
* https://gist.github.com/username/123456 のようなURLを受け取ると、そのrawコンテンツを取得しcallbackに渡す | |
*/ | |
function retrieveGistContent( gistUrl, callback ){ | |
var t = ""; | |
var _write = document.write; | |
if( !/^https:\/\/gist\.github\.com\/[^\/]+\/[\da-fA-F]+$/.test( gistUrl ) ) return; | |
document.write = function(){ | |
for( var i = 0; i < arguments.length; i++ ){ | |
t += arguments[ i ]; |
@if(0)==(0) echo off | |
rem 引数無しで起動すると C:\Program Files (x86)\Burp\ に保存されている複数のburpから最新のburp*.jarを実行する。 | |
rem 引数 update を付与して起動すると、PortSwigerから最新のフリー版のburpをダウンロードしC:\Program Files (x86)\Burp\ に保存する | |
setlocal | |
setlocal ENABLEDELAYEDEXPANSION | |
set burp=0 | |
if /I "%1" == "update" goto UPDATE | |
for %%a in ( "C:\Program Files (x86)\Burp\*.jar" ) do ( | |
set x=%%~na | |
if !burp! lss !x! set burp=!x! |
if(""==0) {/* | |
@echo off | |
title httpd %CD% | |
:loop | |
node "%~f0" %* | |
if %ERRORLEVEL% EQU 35 GOTO loop | |
goto :eof | |
*/ | |
} | |
"use strict"; |
'スライド内のフォント使用箇所を探す | |
Option Explicit | |
Private Function CheckFont(t As TextRange, Fonts()) As Boolean | |
Dim i As Long | |
For i = LBound(Fonts) To UBound(Fonts) | |
If t.Font.Name = Fonts(i) Then | |
CheckFont = True | |
Exit Function | |
End If |
if(""==0) {/* | |
@echo off | |
echo "BAT" | |
node "%~f0" %* | |
goto :eof | |
*/ | |
console.log( "js" ); | |
} | |