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
'use strict' | |
const puppeteer = require('puppeteer') | |
/** | |
* @param {Object} event | |
* @param {Object} context Contextオブジェクト | |
* @param {function} callback コールバックオプション | |
*/ | |
exports.handler = async (event, context, callback) => { |
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 hudson.model.* | |
def thr = Thread.currentThread() | |
def build = thr?.executable | |
def buildData = build.getActions(hudson.plugins.git.util.BuildData.class).first() | |
def lastBuild = buildData.lastBuild | |
def revision = lastBuild.revision | |
println lastBuild |
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
def cmd = "git ls-remote -t [git repository]" | |
def proc = cmd.execute() | |
proc.text.readLines() | |
.findAll{ t -> !t.endsWith('^{}') } | |
.collect{ t -> t.split().last() } |
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
package com.hiroisojp.java8.defaultmethod; | |
import org.junit.Test; | |
import static org.hamcrest.CoreMatchers.is; | |
import static org.junit.Assert.assertThat; | |
/** | |
* 以下の環境で検証 | |
* OS:MaxOSX 10.8.3 |
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
public interface HogeLogic { | |
public Object execute(String param); | |
} | |
@Component | |
public class HogeLogic1 implements HogeLogic { | |
private static final Logger LOGGER = LoggerFactory.getLogger(HogeLogic1.class); | |
@Override |