⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
(ns myapp.authenticate.oauth | |
"OAuth authentication" | |
(:require | |
[cheshire.core :as json] | |
[clj-http.client :as http] | |
[clojure.string :as string] | |
[clojure.tools.logging :as logging]) | |
(:use | |
[oauthentic.core :only [build-authorization-url fetch-token]] | |
[ring.util.response :only [redirect]] |
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
package ma.glasnost.orika.test.community; | |
import java.util.Arrays; | |
import java.util.List; | |
import ma.glasnost.orika.MapperFacade; | |
import ma.glasnost.orika.MapperFactory; | |
import ma.glasnost.orika.impl.ConfigurableMapper; | |
import org.junit.Test; |
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
#!/bin/bash | |
# | |
# Watch current directory (recursively) for file changes, and execute | |
# a command when a file or directory is created, modified or deleted. | |
# | |
# Written by: Senko Rasic <[email protected]> | |
# | |
# Requires Linux, bash and inotifywait (from inotify-tools package). | |
# | |
# To avoid executing the command multiple times when a sequence of |
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
package ma.glasnost.orika.impl.generator.specification; | |
import ma.glasnost.orika.MapperFactory; | |
import ma.glasnost.orika.impl.generator.SourceCodeContext; | |
import ma.glasnost.orika.impl.generator.Specification; | |
import ma.glasnost.orika.impl.generator.VariableRef; | |
import ma.glasnost.orika.metadata.FieldMap; | |
public class IfInitializedHibernateSpecification extends AbstractSpecification { |
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
package ma.glasnost.orika.impl.generator; | |
import java.util.ArrayList; | |
import java.util.List; | |
import ma.glasnost.orika.MapperFactory; | |
import ma.glasnost.orika.impl.generator.specification.AnyTypeToString; | |
import ma.glasnost.orika.impl.generator.specification.ApplyRegisteredMapper; | |
import ma.glasnost.orika.impl.generator.specification.ArrayOrCollectionToArray; | |
import ma.glasnost.orika.impl.generator.specification.ArrayOrCollectionToCollection; |
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
/* | |
AnnotationClassMapBuilder extends the default class map builder and override byDefault method to lookup for more metadata | |
*/ | |
public class AnnotationClassMapBuilder<A, B> extends ClassMapBuilder<A, B> { | |
protected AnnotationClassMapBuilder(Type<A> aType, Type<B> bType, PropertyResolverStrategy propertyResolver, | |
DefaultFieldMapper[] defaults) { | |
super(aType, bType, propertyResolver, defaults); | |
} |
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 class Constructors { | |
public static void main(String[] args) { | |
ConfigurableMapper mapper = new ConfigurableMapper() { | |
@Override | |
protected void configure(MapperFactory factory) { | |
factory.classMap(A.class, B.class) | |
.fieldMap("name", logical("name", String.class), false) | |
/* Should not be included when generating mappers */ | |
.exclude() |
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 java.util.ArrayList; | |
import java.util.List; | |
import java.util.Map; | |
import ma.glasnost.orika.MapperFactory; | |
import ma.glasnost.orika.impl.ConfigurableMapper; | |
public class SO1 { | |
/** |
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 java.util.LinkedHashMap; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import ma.glasnost.orika.DefaultFieldMapper; | |
import ma.glasnost.orika.MapperFactory; | |
import ma.glasnost.orika.property.PropertyResolverStrategy; | |
OlderNewer