Skip to content

Instantly share code, notes, and snippets.

View sebastienros's full-sized avatar

Sébastien Ros sebastienros

View GitHub Profile
Orchard's Source Moving To Git
By the end of July, we’ll be moving the Orchard sources hosted on CodePlex from a Mercurial repository to a Git repository. This won’t impact or affect Orchard's users, but Orchard's contributors might need to act before this move.
Forks
All of the current forks on the CodePlex website relative to Orchard will be deleted as part of this move. If you have forked Orchard, and you need to keep that fork, you can clone the fork and keep it locally or you can find somewhere else to push it. Alternatively we are doing a backup of all of them as of today's state, which you can request later on if you were not able to clone it in time. We will keep this backup for a few months only.
Pull Requests
The Orchard team will decline all the currently active pull requests before we move to Git. The result of this action is that you will receive a notification, and will have to recreate it once we have completed the move. We will not be accepting any new pull requests until this move is compl
@sebastienros
sebastienros / gist:6274930
Created August 19, 2013 22:25
Real life performance benchmark script
var o = {};
o.Foo = 'bar';
o.Baz = 42;
o.Blah = o.Foo + o.Baz;
function fib(n){
if(n<2) {
return n;
}
/* The Great Computer Language Shootout
http://shootout.alioth.debian.org/
contributed by Isaac Gouy */
var PI = 3.141592653589793;
var SOLAR_MASS = 4 * PI * PI;
var DAYS_PER_YEAR = 365.24;
function Body(x,y,z,vx,vy,vz,mass){
this.x = x;
GitHub Flavored Markdown
================================
*View the [source of this content](http://github.github.com/github-flavored-markdown/sample_content.html).*
Let's get the whole "linebreak" thing out of the way. The next paragraph contains two phrases separated by a single newline character:
Roses are red
Violets are blue
/*
* Copyright (C) 2007 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using Orchard.ContentManagement;
using Orchard.Indexing;
namespace Attendees.Controllers
{
public class SearchController : Controller
@sebastienros
sebastienros / Ticks.cs
Created November 17, 2015 00:43
Ticks performance
using System;
public class Program
{
public static void Main()
{
var iterations = 1000000;
var sw = new System.Diagnostics.Stopwatch();
using LightningDB;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using YesSql.Core.Storage;
namespace YesSql.Storage.LightningDB
@sebastienros
sebastienros / PortableObject-NETCore.md
Last active September 27, 2023 01:01
Configuring Portable Object localization in ASP.NET Core

Configuring Portable Object localization in ASP.NET Core

The package which is used in this article is avaible on MyGet on this url: https://www.myget.org/F/orchardcore-preview/api/v3/index.json

This article walks you through the steps for using Portable Object files (PO files) inside your ASP.NET Core application.

What is a PO file

PO files are files that contain the translated strings for a given language. They reveal very useful as contrary to standard resx files, PO files support pluralization and are distributed as text files.