Create a new Automater flow
Add 'Service'. Service receives 'no input' in 'iTerm'. Add 'Run AppleScript'.
| public class ComparingUtils { | |
| public static <T extends Comparable<T>> ComparisonBuilder<T> is(T comparable) { | |
| return new ComparisonBuilder<>(comparable); | |
| } | |
| public static class ComparisonBuilder<T> { | |
| private Comparable<T> subject; |
| #!/bin/bash | |
| # DESCRIPTION | |
| # ----------- | |
| # | |
| # Produces CSV output like this: | |
| # | |
| # LAST CHANGE TIME, TIME ELAPSED, AUTHOR, BRANCH | |
| # 2017-01-16 14:56:26 +0000, 3 months ago, [email protected], origin/bug-fix-1 | |
| # 2017-01-23 18:27:53 +0300, 2 months ago, [email protected], origin/new-feature-1 |
| #!/bin/bash | |
| # Run tests | |
| mvn clean test --fail-never | |
| # Print header | |
| echo | |
| echo "TEST NAME, TESTS COUNT, FAILURES COUNT, ERRORS COUNT, SKIPPED COUNT, TIME ELAPSED" | |
| # Prepare report |
| import org.springframework.beans.BeansException; | |
| import org.springframework.context.ApplicationContext; | |
| import org.springframework.context.ApplicationContextAware; | |
| import org.springframework.stereotype.Component; | |
| @Component | |
| public class ApplicationContextHolder implements ApplicationContextAware { | |
| private static ApplicationContext applicationContext; |
| import org.apache.commons.collections4.CollectionUtils; | |
| import org.apache.commons.collections4.IteratorUtils; | |
| import org.apache.commons.lang3.StringUtils; | |
| import org.hibernate.query.criteria.internal.path.PluralAttributePath; | |
| import org.springframework.data.domain.Page; | |
| import org.springframework.data.domain.PageRequest; | |
| import org.springframework.data.repository.support.PageableExecutionUtils; | |
| import javax.persistence.EntityManager; | |
| import javax.persistence.TypedQuery; |
| … | grep -v "sen gelme ulan ayı" |
| package com.example; | |
| import java.util.concurrent.CompletableFuture; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| public class Comp { | |
| public static void main(String[] args) { |
| package ...configuration; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.context.annotation.Profile; | |
| import org.springframework.scheduling.annotation.EnableAsync; | |
| @Configuration | |
| @EnableAsync | |
| @Profile("!test") | |
| public class AsyncConfiguration { |
| #!/usr/bin/python | |
| from Foundation import NSWorkspace, NSURL | |
| import urllib | |
| def show_gists(): | |
| NSWorkspace.sharedWorkspace().openURL_(NSURL.URLWithString_('https://gist.github.com/search?q=%40pudquick&ref=searchresults')) | |
| def search_gists(search_string): | |
| NSWorkspace.sharedWorkspace().openURL_(NSURL.URLWithString_('https://gist.github.com/search?q=%%40pudquick+%s&ref=searchresults' % search_string)) |
Create a new Automater flow
Add 'Service'. Service receives 'no input' in 'iTerm'. Add 'Run AppleScript'.