Skip to content

Instantly share code, notes, and snippets.

View sheerun's full-sized avatar
🎵

Adam Stankiewicz sheerun

🎵
View GitHub Profile
#!/bin/sh
printf "Hello world"
#include <bits/stdc++.h>
using namespace std;
bool prime(long n) {
if (n < 2) return false;
for (long i = 2; i*i <= n; i++) {
if (n % i == 0) return false;
}
#!/bin/bash
export NAME=ghost
export TARGET=root@1.2.3.4
export SERVICE=$(mktemp)
cat > $SERVICE <<EOF
[Unit]
Description=Ghost
After=docker.service
@sheerun
sheerun / schema.json
Created January 21, 2017 12:33
API Umbrella definition
{
"api": {
"id": "string",
"name": "string",
"sort_order": 0,
"backend_protocol": "http",
"frontend_host": "string",
"backend_host": "string",
"servers": [
{
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
Function.prototype.$asyncbind = function $asyncbind(self, catcher) {
'use strict';
if (!Function.prototype.$asyncbind) {
Object.defineProperty(Function.prototype, '$asyncbind', {
value: $asyncbind,
version: '2'
services:
web:
image: node:4-slim
volumes:
- .:/app
command: node /app/index.js
ports:
- "9500:9500"
/* @flow */
export class GraphQLSchema {
getQueryType() {
return "foobar";
}
}