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
implicit class formatHours(val sc: StringContext) { | |
def fh(args: Any*): String = sc.s(args.map(m => "%02d".format(m)): _*) | |
} | |
override lazy val toString = fh"$hours:$minutes" |
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(library = {"${assets.path}/mixins/reveal/jquery.reveal.js",}, | |
stylesheet={"${assets.path}/mixins/reveal/reveal.css"}) | |
public class Reveal { | |
@InjectComponent | |
private org.apache.tapestry5.corelib.components.Zone zzzone; | |
@Inject | |
private AjaxResponseRenderer ajaxResponseRenderer; |
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
$.extend(Tapestry.Validator,{ | |
notnull : function(field, message) { | |
Tapestry.Validator.required(field, message); | |
} | |
}); |
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
<div ng-app="App" ng-controller="Controller"> | |
//label// | |
</div> |
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 static void contributeJavaScriptStackSource( | |
MappedConfiguration<String, JavaScriptStack> configuration) { | |
configuration.addInstance("newJQueryStack", JQueryStack .class); | |
} |
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
(function( $ ) { | |
T5.extendInitializers(function(){ | |
function init(spec) { | |
var element = spec.element; | |
var zoneId = spec.zoneId; | |
var dialogId = spec.dialogId; | |
var url = spec.url; |
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
<plugin> | |
<groupId>com.jayway.maven.plugins.android.generation2</groupId> | |
<artifactId>maven-android-plugin</artifactId> | |
<version>3.9.0-SNAPSHOT</version> | |
<configuration> | |
<devices> | |
<device>127.0.0.1:5555</device> | |
</devices> | |
<ips> | |
<ip>127.0.0.1:5555</ip> |
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
private MainActivity activity; | |
@Before | |
public void setup() { | |
activity = Robolectric.buildActivity(MainActivity.class).get(); | |
} | |
@Test | |
public void shouldProduceGreetingWhenButtonPressed() { | |
TextView textView = (TextView) activity.findViewById(R.id.textView); |
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 ZIBASE = "xxxxxxxxx"; | |
var TOKEN = "xxxxxxx"; | |
var action = "rowzibasecommand"; | |
function runScenario () { | |
//Run the scénario 3 | |
var param1 = "1"; | |
var param2 = "3"; | |
var param3 = ""; |
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
function processLabel(label) { | |
var data = GmailApp.getUserLabelByName(label).getThreads(); | |
for (var i=0; i < data.length; i++) { | |
if(!data[i].isUnread() && !data[i].hasStarredMessages()){ | |
data[i].moveToTrash(); | |
} | |
} | |
}; | |
function deleteOldMessages(){ |
OlderNewer