This file contains hidden or 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
<!--とりあえず自治会名ー地区名のリストを書き出してみます。--> | |
<ul> | |
{% for sz in szs %} | |
<li>{{sz.jichitai}}: | |
<!--collenction_nameでReferenceProperty型のオブジェクトを取得--> | |
{% for x in sz.funens %} | |
{{x.funen}} | |
{% endfor %} | |
</li> | |
{% endfor %} |
This file contains hidden or 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
##loop.index0 でenumerate()のようなインデックスを取得できる | |
{% for item in items.binkans %} | |
BEGIN:VEVENT | |
UID:shizu-gomi.binkan{{loop.index0}}.{{params.today}} | |
DTSTAMP:{{params.today}} | |
SUMMARY:ビン缶ゴミ回収日 | |
LOCATION:{{items.jichitai}} | |
DESCRIPTION:清水区{{items.jichitai}}の缶ビンゴミ回収日 | |
DTSTART;TZID=Japan:{{item.binkan}} |
This file contains hidden or 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
mysqladmin -i10 processlist status -u root -p |
This file contains hidden or 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
for val in query: | |
name = val.key().name() |
This file contains hidden or 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
1) Preferences > Plugins > Browse repositoriesで"LESS CSS Compiler"をインストールする | |
。 | |
2) 環境をリスタートし、Preferences > LESS ProfilesでLESSソースディレクトリ、アウトプットするCSSディレクトリを入力する。"include files by path"はとりあえず *.lessにしている。あらかじめprojectにless用、css用のディレクトリを作っておく。 | |
3) lessのコンパイルは右クリック> compile to css | |
4) File Watcherが設定されているとlessファイルに変更が加わったら即時的にCSSにコンパイルされるようになる。File Watcherの設定項目は自動的に入力されていたり、program pathだけ入力されていなかったりいろいろ。 | |
program pathは自分のmacの場合は/usr/bin/lessだった。 | |
winではlessc.cmdファイルへのパスを指定するらしい。 |
This file contains hidden or 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
codaとIntelliJでHTMLコードを整形する方法。 | |
1)coda | |
php-codapluginをインストールし、プラグイン> php & web toolkit > HTML > Tidy HTML | |
2)IntelliJ | |
option + command + L (メニュー的には Code > Reformat code ..) |
This file contains hidden or 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
#model | |
class Smgomi(db.Model): | |
initial = db.StringProperty() | |
jichitai = db.StringProperty() | |
kanen = db.StringProperty() | |
funen = db.StringProperty() | |
kstart = db.StringProperty() | |
fstart = db.StringProperty() | |
chomei = db.StringProperty() |
This file contains hidden or 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
$(".switch").click(function(){ | |
$(this).next().slideToggle(); | |
$("span",this).toggleClass("fa-mimus-square"); | |
$("span",this).toggleClass("fa-plus-square"); | |
}) |
This file contains hidden or 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
1) Macのapacheの設定 | |
1-1) /etc/apache2/users/[user_account].confを作る。 | |
1-2) 下記例のようにuserディレクトリを記述する | |
<Directory "/Users/[user_account]/Sites/"> | |
AllowOverride All | |
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec ExecCGI | |
AddHandler cgi-script .cgi | |
<Limit GET POST OPTIONS PROPFIND> | |
Order allow,deny |
This file contains hidden or 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
$ zip -e -r 圧縮後のファイル名 対象のフォルダ名 | |
コマンド入力後、パスワードを聞かれるの適当に。 |