Skip to content

Instantly share code, notes, and snippets.

@esistgut
esistgut / graphql-go-mongodb-example.go
Created September 13, 2018 20:17 — forked from aquiseb/graphql-go-mongodb-example.go
Minimal example of GraphQL Golang and MongoDB playing nicely together. Edit
// Embedded in this article https://medium.com/p/c98e491015b6
package main
import (
"fmt"
"log"
"net/http"
"time"
"github.com/graph-gophers/graphql-go"
@esistgut
esistgut / prestashop.conf
Created July 25, 2018 16:55 — forked from julienbourdeau/prestashop.conf
PrestaShop Nginx Configuration
server {
listen 80;
listen [::]:80; #Use this to enable IPv6
server_name www.example.com;
root /var/www/prestashop17;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
index index.php index.html;
@esistgut
esistgut / Prestashop-1.7_NGINX_config
Created July 25, 2018 16:55 — forked from cosmic76/Prestashop-1.7_NGINX_config
Configuration NGINX for PrestaShop 1.7
server {
listen 80;
listen [::]:80; #Use this to enable IPv6
server_name www.example.com;
root /var/www/prestashop17;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
index index.php index.html;
@esistgut
esistgut / jsonld.service.ts
Created August 11, 2017 17:27
A very dirty solution to render JSON-LD on Angular (tested on 4.3.4)
import {Inject, Injectable, Input} from '@angular/core';
import {ɵgetDOM, ɵDomAdapter, DOCUMENT} from '@angular/platform-browser';
@Injectable()
export class JsonLDService {
private dom: ɵDomAdapter;
@Input() public content: any;
@esistgut
esistgut / content-for-group.js
Created April 23, 2016 20:47 — forked from mrozema/content-for-group.js
Ember 2.0 compatible select box
import Ember from "ember";
export default Ember.Helper.helper(function([content, group, contentGroupKey]) {
return content.filterBy(contentGroupKey, group);
});