Skip to content

Instantly share code, notes, and snippets.

View styrken's full-sized avatar
✌️
1337

Rasmus Styrk styrken

✌️
1337
View GitHub Profile
//
// LoginSelectionRouter.swift
//
// Created by Rasmus Styrk on 12/12/2019.
// Copyright © 2019 House of Code ApS. All rights reserved.
//
import UIKit
class LoginSelectionRouter: LoginSelectionRouterInput {
//
// AppCordinator.swift
//
// Created by Rasmus Styrk on 12/12/2019.
// Copyright © 2019 House of Code ApS. All rights reserved.
//
import UIKit
import RxSwift
//
// AppDelegate.swift
//
// Created by Rasmus Styrk on 12/12/2019.
// Copyright © 2019 Rasmus Styrk. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppleSignInController < ApplicationController
APPLE_PEM_URL = "https://appleid.apple.com/auth/keys"
# /api/apple/validate
def validate
name = params[:name]
userIdentity = params[:userIdentity]
jwt = params[:jwt]
//
// AppleSignInViewController.swift
//
// Created by Rasmus Styrk on 26/11/2019.
// Copyright © 2019 House of Code ApS. All rights reserved.
//
import UIKit
import AuthenticationServices
@styrken
styrken / RippleCircleNode.swift
Created September 14, 2018 19:08
SpriteKit: Resizable circle with a ripple effect animation
//
// RippleCircleNode.swift
//
// Created by Rasmus Styrk on 14/09/2018.
// Copyright © 2018 House of Code ApS. All rights reserved.
//
// Updated https://gist.github.com/gblancogarcia/4b8c22dd9f0272edde86
// - Swift 4.2
// - Made fade out a bit slower
// - Changed scale paramater to newRadius instead
@styrken
styrken / svn-authors.sh
Last active December 16, 2015 13:29
Simple bash scripts to import svn repository into a git "bare" repository. 1. Run svn-authors.sh to generate an authors-file for git 2. Run the svn-to-git.sh script 3. Copy the new "bare" repo somewhere 4. Clone your new "bare" repo and start working Both scripts can be run without arguments to print out a usage line.
#!/bin/sh
# Url for the svn repo, example: svn://svn.domain.com/libs/libaes/trunk
SVN_URL=$1
SVN_TEMP_DIR=tempsvn
if [ -z $SVN_URL ]
then
echo "Not enough arguments..\n"
echo "Usage: ./svn-authors.sh svn-url [> authors.txt]"