Skip to content

Instantly share code, notes, and snippets.

View sebastienros's full-sized avatar

Sébastien Ros sebastienros

View GitHub Profile
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
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;
@sebastienros
sebastienros / highh5.txt
Last active October 20, 2017 22:34
High5 benchmarks results
Lhc: 34 KB
NodeJsOrg: 8 KB
NpmOrg: 11 KB
HugePage: 894 KB
## High5
Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---------- |-------------:|------------:|------------:|-----------:|----------:|----------:|------------:|
Lhc | 4,995.6 us | 95.86 us | 98.45 us | 1968.7500 | 226.5625 | - | 12114.27 KB |