A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
# -*- coding: utf-8 -*- | |
import gdata.contacts.client | |
import gdata.contacts.data | |
USER = "" | |
PASSWD = "" | |
PREFIX = '041' | |
def add_prefix_to_contacts(gd_client, prefix): |
/* Copyright 2013 Jakub Jirutka. All rights reserved. | |
* | |
* "THE KOFOLA-WARE LICENSE" (Revision 1): | |
* Jakub Jirutka originally wrote this file. As long as you retain this notice you | |
* can do whatever you want with this stuff. If we meet some day, and you think | |
* this stuff is worth it, you can buy me a Kofola in return. <jakub@jirutka.cz> | |
*/ | |
import java.io.File; | |
import java.io.FileNotFoundException; |
sourceSets { | |
generated { | |
java { | |
srcDirs = ['src/main/generated'] | |
} | |
} | |
} | |
configurations { | |
querydslapt |
/** | |
* Find the longest class names in Spring. | |
* Also find FactoryFactory classes. | |
* a goof-off project by @thom_nic | |
*/ | |
import java.util.jar.* | |
defaultTasks 'longest', 'factoryfactory' |
package benchmark; | |
import org.openjdk.jmh.annotations.*; | |
import java.lang.invoke.MethodHandle; | |
import java.lang.invoke.MethodHandles; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.InvocationTargetException; | |
import java.util.concurrent.TimeUnit; |
import java.io.IOException; | |
import java.io.StringReader; | |
import java.net.URLDecoder; | |
import java.security.Principal; | |
import java.util.Base64; | |
import java.util.Collections; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import javax.annotation.Priority; |
package introspect; | |
import net.bytebuddy.instrumentation.method.bytecode.bind.annotation.AllArguments; | |
import net.bytebuddy.instrumentation.method.bytecode.bind.annotation.Origin; | |
import java.lang.reflect.Method; | |
import java.util.concurrent.atomic.AtomicInteger; | |
public class LogInterceptor { |
apply plugin: 'java' | |
apply plugin: 'java-library-distribution' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
compile 'org.apache.commons:commons-lang3:3.3.2' | |
} |
/* | |
* Copyright 2015 Thomas Broyer | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |