Skip to content

Instantly share code, notes, and snippets.

View moonpyk's full-sized avatar

Clément Bourgeois moonpyk

View GitHub Profile
"use strict";
function _array_like_to_array(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
return arr2;
}
function _array_without_holes(arr) {
if (Array.isArray(arr)) return _array_like_to_array(arr);
}
function _class_call_check(instance, Constructor) {
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="css/bootstrap.css"/>
</head>
from __future__ import print_function
from math import log, exp
def point_rosee(temperature, rh):
"""
Calcule le point de rosée
:param temperature: La temperature de l'air en °C
:param rh: L'humidité relative en %
public class Blop {
IEnumerable<TreeViewNode> BuildTree(IEnumerable<TreeViewBlob> blobs)
{
return blobs
.GroupBy(b => b.Name.Split('/')[0])
.Select(g =>
{
var children = g.Where(b => b.Name.Length > g.Key.Length + 1).Select(b => new TreeViewBlob
{
Name = b.Name.Substring(g.Key.Length + 1),
abstract class CasClinique {
hasFievre(): boolean {
return true;
}
symptomes(): string[] {
return null;
}
hasSymptome(s: string) {
var ss = this.symptomes();
@moonpyk
moonpyk / keybase.md
Last active September 19, 2016 13:35

Keybase proof

I hereby claim:

  • I am moonpyk on github.
  • I am moonpyk (https://keybase.io/moonpyk) on keybase.
  • I have a public key whose fingerprint is D340 31D3 75F3 57C8 71A6 AB35 89DD 55E1 12B0 4214

To claim this, I am signing this object:

The Master Assembly Binder does not know this assembly, and neither does the GAC. Reference from assembly ActiveMesa.R2P to assembly JetBrains.ReSharper.Psi.CSharp could not be resolved.
The Master Assembly Binder does not know this assembly, and neither does the GAC. Reference from assembly ActiveMesa.R2P to assembly JetBrains.Platform.Util could not be resolved.
The Master Assembly Binder does not know this assembly, and neither does the GAC. Reference from assembly ActiveMesa.R2P to assembly JetBrains.ReSharper.Psi could not be resolved.
The Master Assembly Binder does not know this assembly, and neither does the GAC. Reference from assembly ActiveMesa.R2P to assembly JetBrains.ReSharper.Feature.Services.CSharp could not be resolved.
The Master Assembly Binder does not know this assembly, and neither does the GAC. Reference from assembly ActiveMesa.R2P to assembly JetBrains.Platform.DocumentModel could not be resolved.
The Master Assembly Binder does not know this assembly, and neither does the GAC. Refere
@moonpyk
moonpyk / Web.config
Created March 31, 2016 09:01
Passage à Roslyn pour MVC.
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
</compilers>
</system.codedom>
@moonpyk
moonpyk / gist:0d7355a7912a17737fb6
Created October 30, 2014 21:00
JS Inheritence
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var BaseClass = (function () {
function BaseClass() {
}
BaseClass.prototype.noargs = function () {
@moonpyk
moonpyk / gist:7053144
Created October 19, 2013 08:36
Windows store won't start after Windows 8.1 update
powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\WinStore\AppxManifest.xml