Skip to content

Instantly share code, notes, and snippets.

@jfreyre
jfreyre / gist:5371608
Last active December 24, 2020 14:04 — forked from djq/gist:2846196
Install Postgres 9.1, PostGIS 2.0 and pgRouting on a clean Ubuntu 12.04 install
#!/bin/bash
#
# Install Postgres 9.1, PostGIS 2.0.2 and pgRouting on a clean Ubuntu 12.04 install
# updated to PostGIS 2.0.2
# add the ubuntu gis ppa repository
sudo apt-get -y install python-software-properties
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
/* tslint:disable */
/* eslint-disable */
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v13.1.6.0 (NJsonSchema v10.0.28.0 (Newtonsoft.Json v9.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------
// ReSharper disable InconsistentNaming
export class Client {
@jfreyre
jfreyre / HttpClientPartners.cs
Last active November 26, 2019 13:40
Result of the auto-generated http client with nswag
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v13.1.6.0 (NJsonSchema v10.0.28.0 (Newtonsoft.Json v9.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------
#pragma warning disable 108 // Disable "CS0108 '{derivedDto}.ToJson()' hides inherited member '{dtoBase}.ToJson()'. Use the new keyword if hiding was intended."
#pragma warning disable 114 // Disable "CS0114 '{derivedDto}.RaisePropertyChanged(String)' hides inherited member 'dtoBase.RaisePropertyChanged(String)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword."
#pragma warning disable 472 // Disable "CS0472 The result of the expression is always 'false' since a value of type 'Int32' is never equal to 'null' of type 'Int32?'
#pragma warning disable 1573 // Disable "CS1573 Parameter '...' has no matching param tag in the XML comment for ...
@jfreyre
jfreyre / index.html
Created August 13, 2014 13:30
D3.js - Create a custom color scale
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<style type="text/css" media="screen">
div {
width:60px;
height: 60px;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<!-- Le contenu caché -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Titre de la page</title>
</head>
<body>
<!-- Le contenu visible -->
<h1>Document XHTML 1.0 valide</h1>
@jfreyre
jfreyre / global.asax.cs
Last active August 29, 2015 14:25
How to list all availables routes from a webapi application
#region Usings
using System;
using System.Web;
using System.Web.Helpers;
using System.Web.Http;
using System.Web.Http.Description;
using System.Web.Mvc;
//
// ViewController.m
//
// Created by Jérome Freyre on 13.04.15.
// Copyright (c) 2015 @jfreyre. All rights reserved.
//
#import "ViewController.h"
#import <AddressBook/AddressBook.h>
@jfreyre
jfreyre / index.html
Created March 31, 2015 06:35
Angular | Same directive name but different implementation
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-example14-production</title>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.6/angular.min.js"></script>
<script src="script.js"></script>
<div class="article">
<div class="en-tete">
<h1>Lorem ipsum</h1>
</div>
<div class="contenu">
<p>Lorem ipsum dolor sit amet</p>
</div>
<div class="meta">...</div>
</div>