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
// スクロール内の指定したセレクタの位置まで、スクロールする関数 | |
function scrollTopPointingSelector(_scrollSelector, _pointingSelector) | |
{ | |
var $pointingEl = $(_pointingSelector); | |
var $scrollEl = $(_scrollSelector); | |
if($pointingEl.length > 0 && $scrollEl.length > 0) { | |
// 指定されたセレクタが存在する場合に、指定位置までスクロールする | |
var pointObjOffsetTop = $pointingEl.offset().top; | |
var scrollObjOffsetTop = $scrollEl.offset().top; |
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 theme_enqueue_styles() { | |
// 親CSSの読み込み | |
wp_enqueue_style('parent-style', get_template_directory_uri() . '/style.css' ); | |
// 親CSSを継承して、子CSSの読み込み | |
wp_enqueue_style('child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style')); | |
} | |
// テーマスタイル読み込みアクションをスクリプトキューに追加 | |
add_action('wp_enqueue_scripts', 'theme_enqueue_styles'); |
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
/** | |
* jQueryのSelector実行結果が存在するか判定する | |
* [例] | |
* if ($("#id").exists()) { | |
* // #idが存在するとき | |
* } | |
*/ | |
jQuery.fn.exists = function(){return Boolean(this.size() > 0);} | |
jQuery.fn.notExists = function(){return !this.exists();} |
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"> | |
<title>Micro Interaction - Main -</title> | |
<meta name="description" content="Micro Interaction Main Screen."> | |
<meta name="author" content="Koga"> | |
<meta name="viewport" content="width=device-width, maximum-scale=1.0, minimum-scale=0.5,user-scalable=yes,initial-scale=1.0" /> | |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.css"> |
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
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Timestamp; | |
import java.text.MessageFormat; | |
import java.text.ParseException; | |
import java.util.Date; |
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
@echo off | |
SET /P "NAME=名前を入力してください>" | |
SET /P "PID=PIDを入力してください>" | |
C:\java\7\jdk1.7.0_67\bin\jmap.exe "-dump:format=b,file=%~dp0\heapdump-%PID%-%NAME%.hprof" %PID% | |
rem C:\java\7\jdk1.7.0_67\bin\jmap.exe "-F" "-dump:format=b,file=%~dp0\heapdump-%PID%-%NAME%.hprof" %PID% | |
@echo on |
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
.app { | |
grid-template-rows: 45px repeat(3, 1fr); /* 縦幅 */ | |
-ms-grid-rows: 45px (1fr)[3];/* IE11は[]でrepeatを指定 */ | |
grid-template-columns: 200px repeat(2, 1fr); /* 横幅 */ | |
-ms-grid-columns: 200px (1fr)[2];/* IE11は[]でrepeatを指定 */ | |
} |
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
.app { | |
grid-template-rows: 45px fit-content(50vw); | |
-ms-grid-rows: 45px minmax(min-content, max-content);/* IE11はminmax+max-widthで、fit-contentを指定 */ | |
grid-template-columns: 200px fit-content(50vw); | |
-ms-grid-columns: 200px minmax(min-content, max-content);/* IE11はminmax+max-widthで、fit-contentを指定 */ | |
} | |
.app [role=main11] { | |
max-width: 50vw;/* IE11のmax-width */ | |
} |
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
# RaspberryPiにsshログイン | |
# キャッシュを全て削除 | |
$ rm -R .homebridge/accessories/ | |
$ rm -R .homebridge/persist/ | |
$ rm -R .homebridge/plugin-persist/ | |
# ついでに最新バージョンを確認 | |
$ sudo npm outdated -g | |
Package Current Wanted Latest Location |
OlderNewer