Skip to content

Instantly share code, notes, and snippets.

View elwadi's full-sized avatar
🎯
Focusing

elwadi amine elwadi

🎯
Focusing
View GitHub Profile
'use strict';
import {StyleSheet, Dimensions, Platform, I18nManager} from "react-native";
import ColorsApp from './ColorsApp';
import { RFValue, RFPercentage } from "react-native-responsive-fontsize";
const screenWidth = Math.round(Dimensions.get('window').width);
const screenHeight = Math.round(Dimensions.get('window').height);
const PrimaryColor = ColorsApp.PRIMARY;
//////////////////// COLORS APP
const ColorsApp = {
PRIMARY: "#bf7c2f",
SECONDARY: "#191818",
BACKGROUND: "#fff",
PRIMARY_RGBA: "rgba(191, 124, 47, 0.1)",
@elwadi
elwadi / install-postgres-10-ubuntu.md
Created January 17, 2018 17:09 — forked from alistairewj/install-postgres-10-ubuntu.md
Install PostgreSQL 10 on Ubuntu

Install PostgreSQL 10 on Ubuntu

This is a quick guide to install PostgreSQL 10 - tested on Ubuntu 16.04 but likely can be used for Ubuntu 14.04 and 17.04 as well, with one minor modification detailed below.

(Optional) Uninstall other versions of postgres

To make life simple, remove all other versions of Postgres. Obviously not required, but again, makes life simple.

dpkg -l | grep postgres
module.exports = {
_add:function(req,res){
var property_id=req.param('property');
var searchData={agency:req.user.agency,deletedAt:null,id:property_id};
Property.findOne(searchData).exec(function(err,property){
if(err || !property){
req.addFlash('error','Erreur chargement de la propriété');
res.redirect('property');
module.exports = {
/**
*
* Using raw socket.io functionality from a Sails.js controller
*
*/
index: function (req,res) {