Skip to content

Instantly share code, notes, and snippets.

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'
@mitnick78
mitnick78 / gist:1ea36800ae373662a498
Created September 26, 2014 10:49
erreur : param is missing or the value is empty: project_member
def new_team
@team = ProjectMember.new(team_params)
if @team.save
render json: {
status: "ok",
id: id,
lastname: lastname,
pense bete
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';
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){
//
// MapViewController.swift
// wherein
//
// Created by christophe milliere on 10/05/2018.
// Copyright © 2018 christophe milliere. All rights reserved.
//
import UIKit
import NMAKit
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)
}
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)
}
func toControllerView(id: Int) {
let detailController = self.storyboard?.instantiateViewController(withIdentifier: "DetailController") as! DetailController
detailController.id = id
self.present(detailController, animated: true, completion: nil)
}
//
// MonumentCollection.swift
// wherein
//
// Created by christophe milliere on 20/05/2018.
// Copyright © 2018 christophe milliere. All rights reserved.
//
import UIKit