Skip to content

Instantly share code, notes, and snippets.

<?php
interface Human
{
public function getName();
public function setName(string $name);
public function getWeight();
public function setWeight(int $weight);
public function getHeight();
public function setHeight(int $height);
@mtdtks
mtdtks / git_.sh
Last active September 20, 2017 04:54
git lfs settings.
```
git {repo}
git lfs install
git lfs add {target-file-name}
git add .gitattributes
```
#あとは普通にコミット
@mtdtks
mtdtks / browzerOpen.vbs
Created February 15, 2017 08:08
IEを開きgoogleを表示する
Sub ie_test() 'IEテストする。
'IEの起動
Dim objIE As Object '変数を定義します。
Set objIE = CreateObject("InternetExplorer.Application") 'オブジェクトを作成します。
objIE.Visible = True '可視、Trueで見えるようにします。
'処理したいページを表示します。
objIE.navigate "http://www.google.co.jp/"
@mtdtks
mtdtks / myVimCheetSheet.vim
Created November 16, 2016 04:19
vimチートシート
'ウィンドウ幅調整
<C-w>{1-9}>
<C-w>{1-9}<
@mtdtks
mtdtks / searchCenter.json
Last active November 6, 2016 09:50
Chrome Extention SearchCenter Settings.
[{"Engines":[{"Id":"0.313595164631836230.5731538813777386","name":"amazon","SearchUrl":"https://www.amazon.co.jp/s/ref=nb_sb_noss?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&url=search-alias%3Daps&field-keywords=searchcenter","SearchEngineName":"amazon","IconUrl":"https://www.amazon.co.jp/favicon.ico"},{"Id":"0.98083402312939080.7275880045827463","name":"日本の古本屋","SearchUrl":"https://www.kosho.or.jp/products/list.php?transactionid=8f4f1548f48a176bea3373d6fbab43809b3f2b81&mode=search_retry&pageno=&search_pageno=1&product_id=&reset_baseinfo_id=&baseinfo_id=&product_class_id=&quantity=1&from_mode=&search_facet_publisher=&search_word=searchcenter&search_name=&search_name_matchtype=like&search_author=&search_author_matchtype=like&search_publisher=&search_publisher_matchtype=like&search_isbn=&search_published_year_min=&search_published_year_max=&search_comment4=&search_comment4_matchtype=like&search_book_flg=&search_price_min=&search_price_max=&search_orderby=price&search_sorttype=asc&search_page_max=25&search_i
@mtdtks
mtdtks / HatenaFavicon.txt
Created November 2, 2016 09:48
fvicon getter by hatena, Hatena::Favicon
http://favicon.hatena.ne.jp/?url=[URL]
@mtdtks
mtdtks / searchAtOnce.js
Created November 1, 2016 04:42
同時検索するブックマークレット
javascript:(function(){
var url = [
"http://www.amazon.co.jp/gp/search/?field-keywords=%s",
"https://www.google.co.jp/search?site=&source=hp&q=%s"
];
var key = prompt("キーワードを入力");
for(var i = 0;i <= url.length;i ){
var target = url[i].replace("%s",key);
window.open(target,"_blank");
};
@mtdtks
mtdtks / lastDateOfMonth.js
Created October 30, 2016 15:00
その月の最終日を取得する
var date = new Date(year, month, 0);
@mtdtks
mtdtks / AddMenu.js
Last active December 7, 2016 15:41
メニューに新しい項目を追加する
/**
*@メニュー"MenuName"に"testFunc"を追加
*/
function addMenuTestFunc() {
"use strict";
var spreadsheetObj = SpreadsheetApp.getActiveSpreadsheet();
var menuList = [];
menuList.push({
name : "TestFunc",
functionName : "testFunc"
public class Main {
public static void main(String[] args) {
}
}