Create a new Automater flow
Add 'Service'. Service receives 'no input' in 'iTerm'. Add 'Run AppleScript'.
| public final class TurkishNumberUtils { | |
| private static final String SPACE = " "; | |
| private static final String EMPTY = ""; | |
| private static final String[] PERIOD_NAMES = {EMPTY, "bin", "milyon", "milyar", "trilyon", "katrilyon", "kentilyon"}; | |
| private static final String[] UNITS_TEXTS = {EMPTY, "bir", "iki", "üç", "dört", "beş", "altı", "yedi", "sekiz", "dokuz"}; |
| lsof -i tcp:8080 | |
| # Example output: | |
| # COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME | |
| # java 86935 ... |
Create a new Automater flow
Add 'Service'. Service receives 'no input' in 'iTerm'. Add 'Run AppleScript'.
| #!/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)) |
| 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 { |
| 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) { |
| … | grep -v "sen gelme ulan ayı" |
| 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; |
| 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; |
| #!/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 |