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
# ==== Emojis ==== | |
# 🎉 :tada: 最初のコミット | |
# 🐛 :bug: バグ修正 | |
# 👍 :+1: 機能改善 | |
# ✨ :sparkles: 部分的な機能追加 | |
# 💄 :lipstick: UI・スタイルの修正・改善 | |
# ♻️️ :recycle: リファクタリング | |
# 🚿 :shower: 不要な機能・使われなくなった機能の削除 | |
# ✅ :white_check_mark: テストの修正・改善 | |
# 👷 :construction_worker: CIの修正・改善 |
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
Ext.Viewport.add([ | |
{ | |
id : 'currentFPS', | |
xtype : 'component', | |
bottom: 0, | |
right : 0, | |
width : 50, | |
height: 50, | |
style : 'background-color: red; color: white;' | |
}, |
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
/**********************************************/ | |
/* | |
/* IR_Black Skin by Ben Truyman - 2011 | |
/* | |
/* Based on Todd Werth's IR_Black: | |
/* http://blog.toddwerth.com/entries/2 | |
/* | |
/* Inspired by Darcy Clarke's blog post: | |
/* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
/* |
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
import org.codehaus.jackson.JsonNode; | |
import org.codehaus.jackson.map.ObjectMapper; | |
import play.libs.Json; | |
import java.text.SimpleDateFormat; | |
public class JsonEx extends Json { | |
/** | |
* Convert an object to JsonNode. |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<framework xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:noNamespaceSchemaLocation="schemas/frameworkDescriptionVersion1.1.xsd" name="sencha" | |
invoke="/usr/local/sencha-sdk-tools/bin/sencha" alias="sencha" enabled="true" version="1"> | |
<command> | |
<name>app</name> | |
<help><![CDATA[<div>Usage:</div><div> sencha app [action] [arguments...]</div><div><br></div><div>Description:</div><div> Resolve application dependencies and build for production</div><div><br></div><div>Available actions: (*) denotes required parameter</div><div><br></div><div> create (Alias to 'sencha generate app') Generate a new project with the recommended structure</div><div> </div><div> -n, --name * The namespace of the application to create. This will be used as the prefix for all your classes</div><div> -p, --path &nbs |
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
upstream unicorn { | |
server unix:/tmp/unicorn.sock; | |
} | |
server { | |
listen 80; | |
server_name example.com; | |
root /home/nginx/redmine/public; | |
access_log logs/redmine.access.log; | |
error_log logs/redmine.error.log; |
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
<div class="navbar navbar-fixed-top"> | |
<div class="navbar-inner"> | |
<div class="container"> | |
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</a> | |
<a class="brand" href="#">Name</a> |
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
var record = Ext.getStore('Products').first(), | |
storeName = record.associations.getByKey('field_name').storeName, | |
childStore = record[storeName] |
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
var store = this.store, | |
selModel = this.getSelectionModel(); | |
// 一番初めのレコードを選択状態にする | |
selModel.select(store.first()); | |
// itemtapイベントを発火 | |
this.fireEvent('itemtap', list, 0, list.getNode(store.first())); |
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
# generate app dir | |
cd ~/Workspace/ext/sencha-touch/1.1/jsbuilder | |
./sencha.sh generate app MyApp | |
mkdir MyApp/lib/touch | |
cp ../sencha-touch* MyApp/lib/touch/ | |
cp -r ../resources MyApp/lib/touch/ | |
# compass create | |
cd MyApp/ | |
compass create resources --css-dir=css --sass-dir=scss |