普通に自己参照を使えばいいんだけど、多用すると「@self」まみれでプロパティ参照が長くなって可読性がちょっと落ちるんじゃないかなーということで、JSONPlus の resolve を使う方法。
前提
- Gulp でとりあえず動作させる
- JSONPlus を使うので JSON5 としてコメント書いてる
/*! | |
* jQuery UI jCarouselLite | |
* | |
* Copyright 2015, Startia Lab | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* http://jquery.org/license | |
* | |
* Ported from jCarouselLite v1.1 to UI widget | |
* http://www.gmarwaha.com/jquery/jcarousellite/ | |
* |
// jQuery easing に ease を追加 | |
$.extend( $.easing, | |
{ | |
ease: function(x, t, b, c, d){ | |
var easing = BezierEasing.css.ease; | |
return easing(t/d); | |
} | |
}); | |
// jQuery easing に超適当に作った cubic bezier を tekitou という名前で追加 |
var hoge = ''; | |
$(selector).on(event,function(){ | |
$.ajax({ | |
async:false, | |
success:function(){ | |
hoge='1'; | |
} | |
}); | |
if(hoge=='1'){ | |
fuga(); |
普通に自己参照を使えばいいんだけど、多用すると「@self」まみれでプロパティ参照が長くなって可読性がちょっと落ちるんじゃないかなーということで、JSONPlus の resolve を使う方法。
前提
{{#block "sprites"}} | |
{{#each sprites}} | |
@{{strings.name_name}}: '{{name}}'; | |
@{{strings.name_x}}: {{px.x}}; | |
@{{strings.name_y}}: {{px.y}}; | |
@{{strings.name_offset_x}}: {{px.offset_x}}; | |
@{{strings.name_offset_y}}: {{px.offset_y}}; | |
@{{strings.name_width}}: {{px.width}}; | |
@{{strings.name_height}}: {{px.height}}; | |
@{{strings.name_total_width}}: {{px.total_width}}; |
{{#block "sprites"}} | |
{{#each sprites}} | |
${{strings.name_name}}: '{{name}}'; | |
${{strings.name_x}}: {{px.x}}; | |
${{strings.name_y}}: {{px.y}}; | |
${{strings.name_offset_x}}: {{px.offset_x}}; | |
${{strings.name_offset_y}}: {{px.offset_y}}; | |
${{strings.name_width}}: {{px.width}}; | |
${{strings.name_height}}: {{px.height}}; | |
${{strings.name_total_width}}: {{px.total_width}}; |
// https://qiita.com/dosec/items/c6aef40fae6977fd89ab | |
// から移植+α | |
// とりあえず | |
// (文字列).kansuji2arabic(split3) | |
// で動作 | |
(function(){ | |
// 改良版 typeOf(のさらに改良) | |
// http://qiita.com/Hiraku/items/87e5d1cdaaa475c80cc2 | |
var typeOf = function(x) { |
<?php | |
/* | |
パラメータ(両方とも必須にしている): | |
shorturl:短縮したい URL | |
title:yourls の画面に表示するタイトル | |
*/ | |
$host = $_SERVER['HTTP_REFERER']; | |
$str = parse_url($host); |
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<package> | |
<comment> | |
The vbac is not VBA compiler. | |
Instead, this unsophisticated script frees VBA code from binary files. | |
This script is distributed as part of the Ariawase library. | |
The Project Page: https://github.com/vbaidiot/Ariawase | |
Modified by: twitter:@ginlime |