Held by Balázs Suhajda and Glenn Jorde in Malmö 2015-02-21 @ FooCafe. Sponsored by tretton37.
Permalink here: http://bit.ly/polymer-malmo
- Agenda @ suhajdab.github.io
- Polymer element basics @ www.polymer-project.org
Held by Balázs Suhajda and Glenn Jorde in Malmö 2015-02-21 @ FooCafe. Sponsored by tretton37.
Permalink here: http://bit.ly/polymer-malmo
.git |
<?php | |
/* | |
@name Server Logs Viewer | |
@description Emulates the tail() function. View the latest lines of your LAMP server logs in your browser. | |
@author Alexandre Plennevaux (pixeline.be) | |
@team Oleg Basov ([email protected]) | |
@date 16.12.2015 | |
*/ |
'use strict'; | |
//npm install gulp gulp-minify-css gulp-uglify gulp-clean gulp-cleanhtml gulp-jshint gulp-strip-debug gulp-zip --save-dev | |
var gulp = require('gulp'), | |
clean = require('gulp-clean'), | |
cleanhtml = require('gulp-cleanhtml'), | |
minifycss = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
stripdebug = require('gulp-strip-debug'), |
My implementation of the Gale/Shapley algorithm in Python. This algorithm is designed to address the Stable Marriage Problem.
Compare this recursive variant with the implementations on Rosetta Code.
Given an equal number of men and women to be paired for marriage, each man ranks all the women in order of his preference and each women ranks all the men in order of her preference.
A stable set of engagements for marriage is one where no man prefers a women over the one he is engaged to, where that other woman also prefers that man over the one she is engaged to. I.e. with consulting marriages, there would be no reason for the engagements between the people to change.
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Text; | |
using System.Threading.Tasks; | |
using MongoDB.Bson; | |
using MongoDB.Driver; | |
using MongoDB.Driver.Builders; |
/* source: https://github.com/larrymyers/jasmine-reporters */ | |
/* The MIT License | |
Copyright (c) 2010 Larry Myers | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
using System; | |
using System.Web.Mvc; | |
using RequireHttpsAttributeBase = System.Web.Mvc.RequireHttpsAttribute; | |
namespace AppHarbor.Web | |
{ | |
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, | |
AllowMultiple = false)] | |
public class RequireHttpsAttribute : RequireHttpsAttributeBase | |
{ |
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |