Skip to content

Instantly share code, notes, and snippets.

@outten45
outten45 / product_evolution_example_queries.md
Last active January 9, 2019 21:32
example graphql queries

Examples of graphql queries

Pull the first 10 people from the results coming and include them id, first, middle and last names. Also include pagination information.

query {
  personList(size: 10 from: 1) {
    results {
      id
      name {
@outten45
outten45 / vivo-vitro loc
Created March 1, 2018 22:06
vivo-vitro LOC
Created by https://github.com/cgag/loc:
--------------------------------------------------------------------------------
Language Files Lines Blank Comment Code
--------------------------------------------------------------------------------
Java 1409 238307 39856 29927 168524
HTML 348 105607 259 2411 102937
JavaScript 583 145714 21302 22650 101762
Plain Text 121 61326 2645 0 58681
XML 98 21166 2754 3641 14771
<section data-background-transition='zoom' data-transition='concave' data-state='blackout'>
<h1>GraphQL</h1>
<br/>
<h1 class='fragment grow'><a style='color:deepskyblue;' href='http://graphql.org/'>igraphql.org</a></h1>
</section>
<section data-background-transition='zoom' data-transition='linear' data-markdown>
## History
<img src="https://commonplace.net/wp-content/uploads/2010/02/terminal.jpg">
</section>
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
# Create `workers` count to process strings added to the channel (ch). The
# channel is buffered to hold `buffered_entries` entries. There are
# `item_count` strings added to the channel.
workers = 4
buffered_entries = 10
item_count = 200
Random.new_seed
def work(ch : Channel, worker_number : Int)
@outten45
outten45 / sshtunnel.go
Created December 31, 2015 15:32 — forked from iamralch/sshtunnel.go
SSH tunnelling in Golang
package main
import (
"log"
"bufio"
"time"
"os"
"fmt"
"io"
"net"
Bass Connection Groups:
http://calendar.duke.edu/events/index.rss?gfu[]=Bass%2520Connections&gfu[]=Bass%2520Connections-Brain%2520%2526%2520Society&gfu[]=Bass%20Connections-Education%20%26%20Human%20Development&gfu[]=Bass%20Connections-Energy&gfu[]=Bass%20Connections-Global%20Health&gfu[]=Bass%20Connections-Information%2C%20Society%20%26%20Culture
# using VirtualBox version $VBOX_VERSION
FROM boot2docker/boot2docker
RUN apt-get install p7zip-full
RUN mkdir -p /vboxguest && \
cd /vboxguest && \
curl -L -o vboxguest.iso http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso && \
7z x vboxguest.iso -ir'!VBoxLinuxAdditions.run' && \
sh VBoxLinuxAdditions.run --noexec --target . && \
// from http://bit.ly/GH9oCQ
(function (con) {
'use strict';
var prop, method;
var empty = {};
var dummy = function() {};
var properties = 'memory'.split(',');
var methods = ('assert,count,debug,dir,dirxml,error,exception,group,' +
'groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,' +
'time,timeEnd,trace,warn').split(',');
@outten45
outten45 / my.cnf
Created September 3, 2013 02:10
mysql config for vagrant (/etc/my.cnf)
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
innodb_flush_log_at_trx_commit = 2
innodb_log_file_size = 256M
innodb_flush_method = O_DIRECT