This file contains 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
{ | |
"Salute": { | |
"icon": "👩⚕️", | |
"data": [] | |
}, | |
"Gelaterie": { | |
"icon": "🍦", | |
"data": [ | |
{ | |
"name": "Gelateria K2", |
This file contains 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 Libraries | |
var express = require('express'); | |
var session = require('express-session') | |
var bodyParser = require('body-parser'); | |
var mongoose = require('mongoose'); | |
var passport = require('passport') | |
, LocalStrategy = require('passport-local').Strategy; | |
var cors = require('cors') | |
// ENV file with config |
This file contains 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 | |
class MyCustomCell: UICollectionViewCell { | |
// mainView is my custom parent view, that contains every other component of the cell | |
@IBOutlet weak var mainView: UIView! | |
override func awakeFromNib() { | |
super.awakeFromNib() | |
This file contains 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 | |
class ViewController: UIViewController { | |
// CollectionView from Storyboard | |
@IBOutlet weak var myCollectionView: UICollectionView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
myCollectionView.delegate = self |
This file contains 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 express = require('express'); | |
var app = express(); | |
var Parse = require("parse/node"); | |
var bodyParser = require('body-parser'); | |
const pug = require('pug'); | |
var multer = require('multer'); | |
var upload = multer({ dest: __dirname + '/tmp/' }); |
This file contains 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
class ShowEverywhere{ | |
var view: UIView? | |
var viewController: UIViewController? | |
init(view: UIView){ | |
self.view = view | |
self.viewController = nil | |
} |
This file contains 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
// Mark: - Merge Videos and export Finalized Video | |
private func merge(clips: [Clip]){ | |
let composition = AVMutableComposition() | |
let trackID = kCMPersistentTrackID_Invalid | |
let videoTrack = composition.addMutableTrack(withMediaType: AVMediaTypeVideo, preferredTrackID: trackID) | |
//let audioTrack = composition.addMutableTrack(withMediaType: AVMediaTypeAudio, preferredTrackID: trackID) | |
var totalTime = kCMTimeZero | |