Skip to content

Instantly share code, notes, and snippets.

//
// MonumentCollectionCell.swift
// wherein
//
// Created by christophe milliere on 20/05/2018.
// Copyright © 2018 christophe milliere. All rights reserved.
//
import UIKit
//
// MapViewController.swift
// wherein
//
// Created by christophe milliere on 10/05/2018.
// Copyright © 2018 christophe milliere. All rights reserved.
//
import UIKit
import NMAKit
const path = require('path');
const entryPlus = require('webpack-entry-plus');
const glob = require('glob');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const mode = process.env.NODE_ENV === 'production' ? 'production' : 'development';
const extractSass = new ExtractTextPlugin({
filename: '[name].css',
entry: {
front:"./build/resources/src/front/.scss",
mobile:"./build/resources/src/mobile/.scss",
rwd: "./build/resources/src/rwd/*.scss"
},
output: {
filename: '[name].css',
path: path.resolve(__dirname, './application/site/resources/', "src"),
},
visits: [
{
year: "2017",
visitsYear: {
"uuid": "4f31a703-ac8f-4d34-9ff1-cf756264adbc",
"motive": "Lorem, ipsum dolor sit amet consectetur adipisicing elit.",
"notes": "Magni quia necessitatibus nemo explicabo, numquam debitis rem veniam laborum voluptatem voluptates culpa ipsam doloribus veritatis a praesentium deleniti? A, necessitatibus impedit!",
"datedAt": "2018-11-08T19:28:16.000Z",
"animalUuid": "cfaf36e3-f1a1-4f18-822a-3c7724ccb6bb",
"createdAt": "2017-11-08T19:28:16.000Z",
@IBAction func tess(_ sender: Any) {
let storybord = UIStoryboard.init(name: "Main", bundle: nil)
let tabController = storybord.instantiateViewController(withIdentifier: "tab") as! UITabBarController
let nav = tabController.viewControllers?.first as! UINavigationController
let vc = nav.viewControllers.first as! Vc1ViewController
vc.la = "tab et nav"
present(vc, animated: true, completion: nil)
@IBAction func tess(_ sender: Any) {
let storybord = UIStoryboard.init(name: "Main", bundle: nil)
let tabController = storybord.instantiateViewController(withIdentifier: "tab") as! UITabBarController
let vv = storybord.instantiateViewController(withIdentifier: "vc1") as! Vc1ViewController
vv.la = "ok"
let nav = tabController.viewControllers?.first as! UINavigationController
nav.pushViewController(vv, animated: true)
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if let tabbarcontroller = segue.destination as? UITabBarController {
let navigation = tabbarcontroller.viewControllers?.first as! UINavigationController
let vc = navigation.viewControllers.first as! Vc1ViewController
vc.la = "Navigation ok"
}
}
UIView.animate(withDuration: 0.5, animations: {
button.transform = CGAffineTransform(rotationAngle: (CGFloat(Double.pi)))
}) { (isAnimationComplete) in
// Nested Block
UIView.animate(withDuration: 0.5) {
button.transform = CGAffineTransform(rotationAngle: (CGFloat(Double.pi * 2)))
}
}
var birthDate = document.getElementById("id");
var format = "mm/dd/yyyy";
var match = new RegExp(format
.replace(/(\w+)\W(\w+)\W(\w+)/, "^\\s*($1)\\W*($2)?\\W*($3)?([0-9]*).*")
.replace(/m|d|y/g, "\\d"));
var replace = "$1/$2/$3$4"
.replace(/\//g, format.match(/\W/));
function format(target)