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
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<configSections> | |
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /> | |
</configSections> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | |
</startup> |
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 main() { | |
// 現在のドキュメント | |
var doc = app.activeDocument; | |
// 保存先フォルダの選択 | |
var folder = Folder.selectDialog("保存先フォルダの選択"); | |
if (folder == null) { | |
return; | |
} | |
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
-- iTunesの曲を指定時間ずつ再生(レーティング考慮) | |
-- see: | |
-- http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1081882590 (base script) | |
-- https://discussions.apple.com/thread/2274705 (fade) | |
-- 標準の再生時間(秒) | |
property zapTime : 30 | |
-- レーティングを考慮するか(trueの場合下記のratingToAdditionalTimeにもとづいて時間を追加) | |
property ratingAdditionalTimeEnable : true |
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 | |
/** | |
* ランダムな文字列を返します。 | |
* | |
* 使用例: | |
* randomstr(); | |
* randomstr(6, array('unique'=>true, 'chars'=>'abcdef')); | |
* randomstr(6, array('unique'=>true, 'chars'=>range('c', 'h'))); | |
* | |
* オプション: |
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 rollover plugin (習作) | |
* public domain | |
* | |
* | |
* 使用例: | |
* // 例えば button_off.png をhover時に button_on.png に変更します。 | |
* $("img").rollover(); | |
* // 例えば button.png をhover時に button_over.png に変更します。 | |
* $("img").rollover('', '_over'); |
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 | |
// tweet test | |
require_once 'HTTP/OAuth/Consumer.php'; | |
require_once 'Services/Twitter.php'; | |
require_once 'Services/Bitly.php'; | |
// http://dev.twitter.com/apps/{数字} 内の「Consumer key」 | |
$consumer_key = ''; | |
// http://dev.twitter.com/apps/{数字} 内の 「Consumer secret」 |
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
DELIMITER $$ | |
CREATE FUNCTION `apppass`(s TEXT) RETURNS text CHARSET utf8 | |
COMMENT 'CakePHPアプリケーション固有のパスワードを生成して返します' | |
BEGIN | |
DECLARE salt TEXT DEFAULT '{Security.Saltの値}'; | |
RETURN SHA1(CONCAT(salt, s)); | |
END$$ |
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
''' <summary> | |
''' </summary> | |
''' <remarks>http://dobon.net/vb/dotnet/programing/makeentrypoint.html</remarks> | |
Public Class Program | |
<STAThread()> _ | |
Public Shared Sub Main() | |
Application.EnableVisualStyles() | |
Application.SetCompatibleTextRenderingDefault(False) | |
Application.Run(New Form1) | |
End Sub |
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 | |
require_once 'PHPUnit/Framework.php'; | |
class ExampleTest extends PHPUnit_Framework_TestCase | |
{ | |
/** | |
* @dataProvider dataDataProvider | |
*/ | |
function testDataProvider($expected, $input) | |
{ |
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
Public Class Form | |
Sub New() | |
InitializeComponent() | |
End Sub | |
Protected Overrides Sub OnVisibleChanged(ByVal e As System.EventArgs) | |
If Me.Visible Then Me.FadeIn() Else Me.FadeOut() | |
MyBase.OnVisibleChanged(e) | |
End Sub |
OlderNewer