Skip to content

Instantly share code, notes, and snippets.

4F2E4A2E 4F2E4A2E

Block or report user

Report or block 4F2E4A2E

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View swagger-to-graphq.yoga.js
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({
@4F2E4A2E
4F2E4A2E / base64.encoding.sh
Last active Dec 26, 2017
base64 encoding using bash
View base64.encoding.sh
echo -n 'myuser:mypassword' | openssl base64
@4F2E4A2E
4F2E4A2E / remove-empty-files-and-images.bat
Created Dec 26, 2017
Remove empty files and images from current folder.
View remove-empty-files-and-images.bat
@echo off
FOR %%F IN (*.*) DO (
IF %%~zF LSS 1 DEL %%~nf.png
IF %%~zF LSS 1 DEL %%F
)
View meldmerge.git.config
Edit:
vim ~/.gitconfig
---
[diff]
tool = meld
[difftool]
prompt = false
[difftool "meld"]
cmd = meld "$LOCAL" "$REMOTE"
[alias]
@4F2E4A2E
4F2E4A2E / meteor-facepi-gist.js
Last active Sep 7, 2016
Faceapi Meteor.wrapAsync
View meteor-facepi-gist.js
/**
* 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}
*/
@4F2E4A2E
4F2E4A2E / SpringShellCustomPrompt.java
Created Dec 21, 2015
Spring Shell Custom Prompt Provider
View SpringShellCustomPrompt.java
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)
You can’t perform that action at this time.