Skip to content

Instantly share code, notes, and snippets.

View ics-nohara's full-sized avatar

Nohara Nozomi ics-nohara

View GitHub Profile
@ics-nohara
ics-nohara / gruntfile.js
Created January 14, 2016 07:25
grunt - copy file
module.exports = function(grunt) {
grunt.initConfig({
copy: {
main: {
// コピー元ディレクトリの指定
src: "src/*",
// コピー先ディレクトリの指定
dest: "dist/",
},
}
@ics-nohara
ics-nohara / index.html
Created August 13, 2015 02:43
Electron作成時のテンプレ
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Template</title>
</head>
<body>
<h1>テンプレ</h1>
We are using io.js <script>document.write(process.version)</script>
and Electron <script>document.write(process.versions['electron'])</script>.
@ics-nohara
ics-nohara / daylog
Created January 13, 2015 05:08
今日のGItのコミットログを表示する(SourceTreeカスタム操作用 - カスタム操作登録時に「フル出力を表示する」にチェックを入れておく)
#!/bin/sh
git log --author=ics-nohara --since=yesterday --format='- %s' --date=iso
@ics-nohara
ics-nohara / tower_git.md
Created April 1, 2014 07:44
タワー(gitクライアント)

Tower > Preference > Git Confit > Path to Git Binary > Change から内蔵gitか、別のバージョンのgitなど選べる

ちなみにタワー内蔵gitは

Tower.app/Contents/Resources/git/bin/git

にある

@ics-nohara
ics-nohara / sample.as
Created August 2, 2013 11:07
YuruHereDocの使い方
var executeStr:String;
var hereDoc:YuruHereDoc = new YuruHereDoc();
hereDoc.addValue("id", id);
hereDoc.addValue("EMBED_SWF_STR",EMBED_SWF_STR);
// swf埋め込みにこのidを設定する許可を追加する
executeStr = hereDoc.convert((<![CDATA[
if (fl.getDocumentDOM() && fl.getDocumentDOM().selection[0] && fl.getDocumentDOM().selection[0] != '[object Shape]')
{
fl.getDocumentDOM().selection[0].setPublishPersistentData('#{id}','#{EMBED_SWF_STR}',true);
@ics-nohara
ics-nohara / YuruHereDoc.as
Last active December 20, 2015 13:29
変数を埋め込めるテキストを作ります。 ヒアドキュメントっぽい感じです。
package
{
import flash.text.TextField;
/**
* 変数を埋め込めるテキストを作ります。
* ヒアドキュメントっぽい感じです。
* @author Nozomi Nohara
*/
public class YuruHereDoc