This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Matrix4+Extensions.swift | |
// StARs | |
// | |
// Created by Konrad Feiler on 17.12.17. | |
// Copyright © 2017 Konrad Feiler. All rights reserved. | |
// | |
import Foundation | |
import SceneKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
extension UIView { | |
func currentFirstResponder() -> UIResponder? { | |
if self.isFirstResponder() { | |
return self | |
} | |
for view in self.subviews { | |
if let responder = view.currentFirstResponder() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var io = require('socket.io').listen(80); | |
io.sockets.on('connection', function (socket) { | |
console.log("Someone just connected!"); | |
// Echo back messages from the client | |
socket.on('message', function (message) { | |
console.log("Got message: " + message); | |
socket.emit('message', message); | |
}); |