2015-07-14
- ウシ
- ウサギ
- ウマ
// Gulp utilities | |
const {src, dest, watch, series, parallel} = require("gulp"); | |
const source = require("vinyl-source-stream"); | |
const buffer = require("vinyl-buffer"); | |
const streamify = require("gulp-streamify"); | |
const rename = require("gulp-rename"); | |
const sourcemaps = require("gulp-sourcemaps"); | |
// Error handling | |
const plumber = require('gulp-plumber'); |
Sub Zen2han() | |
Dim num As Integer | |
Dim cells As Range | |
Set cells = ActiveSheet.cells.SpecialCells(xlCellTypeConstants, xlTextValues) | |
For num = 0 To 9 | |
cells.Replace What:=Right(StrConv(Str(num), vbWide), 1), Replacement:=Right(Str(num), 1) | |
Next | |
cells.Replace What:="-", Replacement:="-" | |
End Sub |
// 2014-12-16 | |
google.maps.Map.prototype.fitBoundsPerfectly = function fitBoundsPerfectly(aBounds) { | |
var mapBounds, mapSW, mapNE, mapDLat, mapDLng, aSW, aNE, dLat, dLng, ratio, dZoom; | |
mapBounds = this.getBounds(); | |
mapSW = mapBounds.getSouthWest(); | |
mapNE = mapBounds.getNorthEast(); | |
mapDLat = mapNE.lat() - mapSW.lat(); | |
mapDLng = mapNE.lng() - mapSW.lng(); |
2013-10-10
対応しているブラウザ
対応していないブラウザ
;; いろいろ | |
;; https://web.archive.org/web/20040817084508/http://member.nifty.ne.jp:80/seiya-suda/utilities.html | |
(defvar *yank-select-popup-menu* nil) | |
(setq *yank-select-popup-menu* (create-popup-menu nil)) | |
(defun yank-select () | |
(interactive) | |
(while (get-menu-position *yank-select-popup-menu* 'yank-select) | |
(delete-menu *yank-select-popup-menu* 'yank-select)) | |
(continue-pre-selection) |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Applications\i_view64.exe] | |
@="" | |
[HKEY_CLASSES_ROOT\Applications\i_view64.exe\DefaultIcon] | |
@="C:\\Apps\\IrfanView\\i_view64.exe,0" | |
[HKEY_CLASSES_ROOT\Applications\i_view64.exe\shell] |
<?php | |
/* | |
メールをディスクに保存する | |
Based on rudiedirkx/mailtodisk.php | |
https://gist.github.com/rudiedirkx/ae893b4041aadda70d42 | |
[php.ini] | |
sendmail_path = "C:\Server\php72nts\php.exe C:\Server\mailtodisk.php \"C:\Server\var\mailoutput\__TIME__-__RAND__-__SUBJECT__.eml\"" | |
sendmail_path = "/usr/bin/php /var/www/mailtodisk.php \"/var/www/mailoutput/__TIME__-__RAND__-__SUBJECT__.eml\"" |
function pbcopy(s,d,e,l,a){ | |
d=document;a="appendChild";e=d.createElement("div");e[a](d.createElement("pre")).textContent=s; | |
l=e.style;l.position="fixed";l.left="-100%";d.body[a](e);d.getSelection().selectAllChildren(e); | |
l=d.execCommand("copy");d.body.removeChild(e);return l} |
/* | |
ブラウザに表示中の文字列をクリップボードにコピーする(jQueryを使用した実装) | |
jQuery + Bootstrap (v3) を使用している場合にすぐ動くコード。 | |
次のようにマークアップすると、そのすぐあとにコピーするためのボタンが生成される。 | |
<span class="js-cbcopy">コピーしたい文字列</span> | |
*/ | |
$(function() { | |
function CBCopy(E) { |