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 LanguageDetector from "i18next-browser-languagedetector"; | |
import defaultTranslations from "./messages.json"; | |
import i18n from "i18next"; | |
import { initReactI18next } from "react-i18next"; | |
i18n | |
.use(LanguageDetector) | |
.use(initReactI18next) | |
.init({ | |
resources: { |
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
type LoginProvidersState = { | |
+loadedState: string, | |
+providers: { | |
[key: string]: string | |
} | |
}; | |
export class LoginProvidersContainer extends Container<LoginProvidersState> { | |
state = { | |
loadedState: PENDING, |
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
9 5 1 | |
4 3 8 | |
2 7 6 |
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 org.junit.Test; | |
import java.util.Arrays; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Set; | |
public class Unicorns { | |
@Test | |
public void patUnicorns() { |
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 GroovyClassloaderTest { | |
@Test | |
public void loadGroovyScript() throws Exception { | |
CompilerConfiguration compilerConfiguration = new CompilerConfiguration(); | |
compilerConfiguration.setClasspath("/base/directory/containing/groovy/files"); | |
GroovyClassLoader gcl = new GroovyClassLoader(getClass().getClassLoader(), compilerConfiguration); | |
Class<?> cls = gcl.loadClass("SampleClass", true, true, true); |
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
{ | |
"title": "My Blog Post", | |
"author": { | |
"name": "Graham", | |
"link": "http://localhost:8080/authors/graham", | |
"id": "graham" | |
}, | |
........ | |
} |
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
{ | |
"title": "My Blog Post", | |
"author": { | |
"name": "Graham", | |
"id": "graham" | |
}, | |
........ | |
} |