Skip to content

Instantly share code, notes, and snippets.

View bobbyjam99-zz's full-sized avatar

Tomokazu Imai bobbyjam99-zz

View GitHub Profile
@bobbyjam99-zz
bobbyjam99-zz / Main.java
Created June 21, 2016 16:28
Eclipse Collectionsを使って日付(01-31)のListを作成
ImmutableList<String> list = IntInterval.fromTo(1, 31)
.collect(new IntToObjectFunction<String>() {
public String valueOf(int i) {
return String.format("%02d", i);
}
});

The Basics を自分理解用のために意訳。

AEMを開発する上での前提条件

  • Webアプリケーションの基礎知識
    • リクエスト/レスポンスサイクル
    • HTML
    • CSS
  • JavaScript

CQ Development - Guidelines and Best Practices を自分理解用のために意訳。

ガイドライン、ベストプラクティス

テンプレートやコンポーネントを使用する際のガイドライン

  • ページの新しいタイプを作るために存在しているテンプレートを再利用する。
  • 新しいページには paragraph system (parsys/iparsys) を使う。
  • アクセス権を定義します。paragraph systems のデザインモード。権限が割り当てられた人のみ編集できるように。
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
host='localhost'
port='7001'
user='weblogic'
passwd='weblogic'
server='AdminServer'
POOLTHREADRUNTIME='ThreadPoolRuntime/ThreadPoolRuntime'
JVMRUNTIME='../../JVMRuntime/'+server
<?xml version="1.0"?>
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications
with XML.</description>
@bobbyjam99-zz
bobbyjam99-zz / osaki_gotanda_lunchmap.rst
Last active September 30, 2015 08:49
大崎 五反田周辺のランチマップです。感想は個人の主観です。PRお待ちしています。
@bobbyjam99-zz
bobbyjam99-zz / print_memusage_classes
Created June 9, 2015 10:34
WebLogic/JRockitからWebLogic/HotSpotに移行する際、非ヒープ領域のサイジング根拠のために、JRockit上でロードされているクラスを取得するするためのワンライナー
jrcmd `ps -ef | grep weblogic.Server | grep AdminServer | awk '{print $2}'` print_memusage | grep classes
/usr/java/jdk1.7.0_72/bin/jstack 12625 > threaddump_12625.txt
ps auxww | grep ${MAIN_CLASS} | grep ${HOST} | grep ${DOMAIN} | grep -v grep | nawk '{print $2}'
<!DOCTYPE html>
<html>
<head>
<script src="build/react.js"></script>
<script src="build/JSXTransformer.js"></script>
</head>
<body>
<div id="app-container"></div>
<script type="text/jsx">
var App = React.createClass({