Skip to content

Instantly share code, notes, and snippets.

//
// Application+Testing.swift
// AppTests
//
// Created by Ondrej Rafaj on 27/02/2018.
//
import Foundation
import AppVaporTestTools
import Vapor
import VaporTestTools

Keybase proof

I hereby claim:

  • I am cellane on github.
  • I am cellane (https://keybase.io/cellane) on keybase.
  • I have a public key ASBDtAvEzN7BaGPdWWWoTWw7ANppkt8C3h22ILqrmbkjKwo

To claim this, I am signing this object:

private func joinQuery<T: Entity & SoftDeletable, U: Entity>(for entity: T.Type, joined: U.Type) throws -> Query<T> {
return try entity
.makeQuery()
.withSoftDeleted()
.join(Pivot<U, T>.self)
.join(Join(kind: .inner, base: Pivot<U, T>.self, joined: U.self, baseKey: Pivot<U, T>.leftIdKey, joinedKey: U.idKey))
}
#!/usr/bin/env python
from pbxproj import XcodeProject, PBXShellScriptBuildPhase
import subprocess
import sys
import os
process = subprocess.Popen("vapor xcode -n", shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
while True:
nextline = process.stdout.readline()
//
// ELSeekableVideoPlayerView.m
// CKSiS
//
// Created by Milan Vít on 13.03.17.
// Copyright (c) 2017 EYELEVEL. All rights reserved.
//
#import <Masonry/Masonry.h>
#import "ELSeekableVideoPlayerView.h"
//
// ELLanguageRunner.h
// DiorHUB
//
// Created by Milan Vít on 26.09.16.
// Copyright (c) 2016 EYELEVEL. All rights reserved.
//
#import <Foundation/Foundation.h>
import vapoursynth as vs
core = vs.get_core()
clip = video_in
dst_fps = display_fps
while (dst_fps > 60):
dst_fps /= 2
/p Pulling in...
/p 15... <se.10> <wait.5>
/p 10... <se.10> <wait.5>
/mk attack5 <me>
/p 5... <se.10> <wait.1>
/mk attack4 <me>
/p 4... <se.10> <wait.1>
/mk attack3 <me>
/p 3... <se.10> <wait.1>
/mk attack2 <me>
# vim: set ft=python:
# see the README at https://gist.github.com/phiresky/4bfcfbbd05b3c2ed8645
# source: https://github.com/mpv-player/mpv/issues/2149
# source: https://github.com/mpv-player/mpv/issues/566
# source: https://github.com/haasn/gentoo-conf/blob/nanodesu/home/nand/.mpv/filters/mvtools.vpy
import vapoursynth
core = vapoursynth.get_core()
//: Playground - noun: a place where people can play
import UIKit
import XCPlayground
class Bonjour: NSObject, NSNetServiceDelegate, NSNetServiceBrowserDelegate {
let browser: NSNetServiceBrowser
var services: [NSNetService]
override init() {