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
/**** | |
ChatWorkルーム単位のチャットバックアップ用スクリプト | |
テキストファイルで諸々良い感じに成形してバックアップ出来ます。 | |
使い方: 1.読み込みたい部屋を開く。2.読み込みたい範囲までスクロールして読み込む。3.Chromeの開発者ツールのConsoleに貼り付けて実行 | |
注意:直接HTML書き換えているので終わった後はページ更新をおすすめします。 | |
****/ | |
function timeConvert(timestamp) { | |
var a = new Date(timestamp * 1000); | |
var year = a.getFullYear(); | |
var month = a.getMonth() + 1; |
This file has been truncated, but you can view the full file.
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 ZenzaWatch DEV版 | |
// @namespace https://github.com/segabito/ | |
// @description ZenzaWatchの開発 先行バージョン | |
// @match *://www.nicovideo.jp/* | |
// @match *://ext.nicovideo.jp/ | |
// @match *://ext.nicovideo.jp/#* | |
// @match *://blog.nicovideo.jp/* | |
// @match *://ch.nicovideo.jp/* | |
// @match *://com.nicovideo.jp/* |
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
try-catch non Exception | |
<?php | |
$time = microtime(TRUE); | |
$arr = array(); | |
foreach (range(1, 1000000) as $i) { | |
try { | |
$arr[$i] = $i; | |
// throw new Exception("foo"); |
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
"use strict"; | |
/** | |
* ui-ios-numerickeybord | |
* AngularJS 1.6.x向け | |
* ディレクティブはポップアップ。クリックするとアラートを表示する。 | |
* 表示内容は ボタンの data-text の内容。 | |
* popup-target 属性にアラートボックスのセレクタを指定する(例: popup-target="#alert" )。 | |
*/ | |
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="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"> | |
</script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.7.19/fabric.js"> | |
</script> | |
<title>画像ファイルをタップしてカウントタグをつけるサンプル</title> | |
<script> |
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 | |
//NewpostCatch class | |
if ( !class_exists('NewpostCatch') ) { | |
class NewpostCatch extends WP_Widget { | |
// variables | |
var $pluginDir = ""; | |
// structure | |
function __construct() { |
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
# Python3 & python-twitter v3.2 | |
import twitter # python-twitter | |
import csv | |
import io | |
import codecs | |
from requests_oauthlib import OAuth1Session | |
REQUEST_TOKEN_URL = 'https://api.twitter.com/oauth/request_token' | |
ACCESS_TOKEN_URL = 'https://api.twitter.com/oauth/access_token' | |
AUTHORIZATION_URL = 'https://api.twitter.com/oauth/authorize' |
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
/** | |
* データをPOSTする | |
* @param String アクション | |
* @param Object POSTデータ連想配列 | |
* 記述元Webページ http://fujiiyuuki.blogspot.jp/2010/09/formjspost.html | |
* サンプルコード | |
* <a onclick="execPost('/hoge', {'fuga':'fuga_val', 'piyo':'piyo_val'});return false;" href="#">POST送信</a> | |
*/ | |
function execPost(action, data) { | |
// フォームの生成 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Sub 選択中のシートの一番上にある図のリンク先を変更する() | |
For Each sh In ActiveWindow.SelectedSheets | |
sh.DrawingObjects(1).Formula = "=ヘッダー!$A$1:$S$3" | |
Next sh | |
End Sub |
NewerOlder