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
sudo port install tk tcl readline apple-gcc42 openssl | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
cd ~/.rbenv && mkdir src && cd src | |
curl -LO 'ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz' |
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
def new_team | |
@team = ProjectMember.new(team_params) | |
if @team.save | |
render json: { | |
status: "ok", | |
id: id, | |
lastname: lastname, |
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
pense bete |
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 { enableProdMode } from '@angular/core'; | |
import { renderModuleFactory } from '@angular/platform-server'; | |
import { ngHapiEngine, RenderOptions } from '@nguniversal/hapi-engine'; | |
import * as Boom from 'boom'; | |
import { readFileSync } from 'fs'; | |
import { Base_Reply, Request, Server } from 'hapi'; | |
import { join } from 'path'; | |
import 'reflect-metadata'; | |
import 'zone.js/dist/zone-node'; |
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 | |
class MonumentCollectionCell: UICollectionViewCell { | |
@IBOutlet weak var monumentViewCell: UIView! | |
@IBOutlet weak var cover: UIImageView! | |
var monument: MonumentSlider! | |
var mapView: MapViewController! | |
func setup(monument: MonumentSlider){ |
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
// | |
// MapViewController.swift | |
// wherein | |
// | |
// Created by christophe milliere on 10/05/2018. | |
// Copyright © 2018 christophe milliere. All rights reserved. | |
// | |
import UIKit | |
import NMAKit |
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
if let viewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "DetailController") as? DetailController { | |
viewController.id = id | |
if let navigator = navigationController { | |
navigator.pushViewController(viewController, animated: true) | |
} |
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
func toControllerView(id: Int) { | |
guard let VC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "DetailController") as? DetailController else { | |
print("View controller could not be instantiated") | |
return | |
} | |
VC.id = id | |
self.present(VC, animated: false, completion: nil) | |
} |
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
func toControllerView(id: Int) { | |
let detailController = self.storyboard?.instantiateViewController(withIdentifier: "DetailController") as! DetailController | |
detailController.id = id | |
self.present(detailController, animated: true, completion: nil) | |
} |
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
// | |
// MonumentCollection.swift | |
// wherein | |
// | |
// Created by christophe milliere on 20/05/2018. | |
// Copyright © 2018 christophe milliere. All rights reserved. | |
// | |
import UIKit |
OlderNewer