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
<!DOCTYPE html> | |
<html lang="ja"><head><meta charset="utf-8" /></head> | |
<body> | |
<div ng-app="app" ng-controller="scrollCtrl"> | |
<form name="form" novalidate> | |
<h1 id="top">TOP</h1> | |
<div> | |
<ul> | |
<li><a href="" ng-click="innerLink('name1')">name1</a></li> | |
<li><a href="" ng-click="innerLink('id1')">id1</a></li> |
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
<!DOCTYPE html> | |
<html lang="ja"><head><meta charset="utf-8" /></head> | |
<body> | |
<div ng-app="app" ng-controller="confirmCtrl"> | |
<form name="form" novalidate> | |
<div> | |
<input type="text" ng-model="target" name="target" /> | |
<input type="text" ng-model="targetConfirm" name="targetConfirm" | |
confirm="target" | |
/> |
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
def func = { | |
try{ | |
return {print('a');0}() | |
}finally{ | |
return {print('b');1}() | |
} | |
} | |
println func() // ab1 |
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
def instDir = "$buildDir/instrumented_classes" | |
task setInstResources(){ | |
dependsOn 'testClasses' | |
} | |
setInstResources << { | |
copy{ | |
from sourceSets.test.output.resourcesDir | |
into instDir | |
} | |
} |
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
package jp.eiya.aya.geb.practice | |
@Grab('org.gebish:geb-core') | |
import geb.Page | |
class CorrectedGoogleTopPage extends Page{ | |
static url = 'https://www.bing.com' // fail | |
static at = { | |
title == 'Google' | |
searchBox.value() == '' |
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
/* | |
2.2.x added Implicit closure coercion | |
*/ | |
interface StringFilter{ | |
def filter(String source); | |
} | |
class SemicollonRemover{ | |
static String remove(String source,StringFilter filter){ |
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
def myVar = 'myvar' | |
def callMyVar() { | |
println myVar | |
} | |
callMyVar() |
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
def relativize = {file-> | |
projectDir.toURI().relativize(file.toURI()).toString() | |
} | |
task(enhance,dependsOn:classes) << { | |
description 'OpenJPA enhancer task.' | |
ant.taskdef ( | |
name : 'openjpac', | |
classpath : project.runtimeClasspath.asPath, | |
classname : 'org.apache.openjpa.ant.PCEnhancerTask' |
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
git rev-parse --git-dir |
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
#!/bin/bash | |
echo "prepush called" | |
DIR=$PWD | |
ROOT=$PWD/`git rev-parse --show-cdup` | |
ROOT=${ROOT%/} | |
result=0 | |
#dryRun |