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.springframework.core.Ordered; | |
import org.springframework.core.annotation.Order; | |
import org.springframework.shell.plugin.support.DefaultPromptProvider; | |
import org.springframework.stereotype.Component; | |
/** | |
* Class to set the CLI Prompt. | |
*/ | |
@Component | |
@Order(Ordered.HIGHEST_PRECEDENCE) |
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
/** | |
* Created by 4F2E4A2E & Daniel P. on 27.08.2016. | |
*/ | |
var oxford = require('project-oxford'), | |
fs = require('fs'); | |
/** | |
* TODO: Require the faceapi's id in order to start the app &/ give the possibility to add one via the ui. | |
* @type {oxford.Client} | |
*/ |
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
Edit: | |
vim ~/.gitconfig | |
--- | |
[diff] | |
tool = meld | |
[difftool] | |
prompt = false | |
[difftool "meld"] | |
cmd = meld "$LOCAL" "$REMOTE" | |
[alias] |
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
@echo off | |
FOR %%F IN (*.*) DO ( | |
IF %%~zF LSS 1 DEL %%~nf.png | |
IF %%~zF LSS 1 DEL %%F | |
) |
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
echo -n 'myuser:mypassword' | openssl base64 |
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
const {GraphQLServer} = require('graphql-yoga'); | |
const swaggerGraphQLSchema = require('swagger-to-graphql'); | |
const API_BASE_URL = 'http://petstore.swagger.io/v2'; | |
swaggerGraphQLSchema('./schema/petstore.swagger.json') | |
.then(schema => { | |
const options = { | |
port: 4000 | |
}; | |
const server = new GraphQLServer({ |