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
// node capture.js で実行するとactual_images/以下にそれぞれのスナプショットが保存される。 | |
const puppeteer = require("puppeteer"); | |
(async () => { | |
// ブラウザを起動 | |
// わかりやすいように、ヘッドレスモードをOFFにして、各アクションに300msec遅延させる | |
const browser = await puppeteer.launch({ | |
headless: false, | |
slowMo: 300, | |
}); |
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
import Vue from "vue"; | |
import ExampleView from "components/ExampleView.vue"; | |
import { mount } from "avoriaz"; | |
describe("components/ExampleView", () => { | |
describe("computed", () => { | |
describe("hello", () => { | |
it("workが返される", () => { | |
const wrapper = mount(ExampleView, { | |
propsData: { |
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
var user = {id: "", title: "test"}; | |
delete user.id | |
User.create(user).exec(console.log); |
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
module.exports = { | |
// 中略 | |
ssl: { | |
key: require("fs").readFileSync(__dirname + "/../ssl/key.pem"), | |
cert: require("fs").readFileSync(__dirname + "/../ssl/cert.pem") | |
} | |
// 中略 | |
} |
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
// src/main/scala/plugin/PluginSystem.scala#L51 | |
// デフォルトはこれだけが定義されている | |
repositoriesList += PluginRepository("central", "https://github.com/takezoe/gitbucket_plugins.git") | |
// ローカルリポジトリを追加 | |
// git://は駄目な模様 | |
repositoriesList += PluginRepository("local", "https://github.com/hikaruworld/test") |
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
FROM centos:centos6 | |
# 依存ライブラリインストール | |
RUN yum install -y which | |
RUN yum install -y java7 | |
RUN yum install -y wget | |
RUN yum install -y tar | |
# jettyの起動用ユーザーを作成 | |
RUN useradd -s /sbin/nologin jetty |
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
@PersistenceUnit | |
private EntityManager entityManager; | |
public List<ApplicationUser> find() { | |
List<ApplicationUser> list = this.entityManager | |
.createNamedQuery("ApplicationUser.find", ApplicationUser.class) | |
.setFirstResult(0) | |
.setMaxResults(10) | |
.getResultList(); |
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
@Entity | |
@Table(name = "SAMPLE_USER", catalog = "") | |
@Data | |
public class SampleUser implements Serializable { | |
private static final long serialVersionUID = 1L; | |
@EmbeddedId | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
protected SampleUserPK sampleUserPK; | |
@Column(name = "UPDATE_DATE") | |
@Temporal(TemporalType.TIMESTAMP) |
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
<link rel="stylesheet" href="css/common.css" type="text/css" jsfc="h:outputStylesheet" library="css" name="common.css"/> |
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
if [ -f /Applications/NetBeans/glassfish-4.0/bash_completion.d/asadmin ]; then | |
. /Applications/NetBeans/glassfish-4.0/bash_completion.d/asadmin | |
fi |
NewerOlder