sudo apt-get install blueman build-essentials calcurse chromium-browser cpufrequtils gnupg2 gparted hfsprogs imagemagick linux-tools-common lxappearance mplayer rtorrent ruby skype ubuntu-restricted-essentials urlview vagrant vim xclip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface MessageFormatter | |
| { | |
| byte[] Serialize(object message); | |
| object Deserialize(byte[] data, Type type); | |
| } | |
| public class NetDataContractMessageFormatter : MessageFormatter | |
| { | |
| private readonly NetDataContractSerializer serializer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace WebSocket | |
| // Appache 2.0 license | |
| // References: | |
| // [1] Proposed WebSockets Spec December 2011 http://tools.ietf.org/html/rfc6455 | |
| // [2] John McCutchan (Google Dart Team Member) http://www.altdevblogaday.com/2012/01/23/writing-your-own-websocket-server/ | |
| // [3] A pretty good Python implemenation by mrrrgn https://github.com/mrrrgn/websocket-data-frame-encoder-decoder/blob/master/frame.py | |
| // [4] WebSockets Organising body http://www.websocket.org/echo.html | |
| // [5] AndrewNewcomb's Gist (starting point) https://gist.github.com/AndrewNewcomb/711664 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.Practices.TransientFaultHandling; | |
| public class RavenDBTransientErrorDetectionStrategy : ITransientErrorDetectionStrategy | |
| { | |
| public bool IsTransient(Exception ex) | |
| { | |
| dynamic currentException = ex; | |
| while(currentException != null) | |
| { |
by 0xabad1dea, December 2014
This document is an RFC of sorts for increasing the adoption rate of Singular They in technical English. This is not an ultimatum; this is not shaming anyone who has done otherwise; and this is definitely not applicable to any other language.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Cells = | |
| // Types | |
| type LifeSpec = | |
| | LifeSpec of GenerationSpec list | |
| and GenerationSpec = | |
| | GenerationSpec of strength: int * liveness: (int -> bool) | |
Rich Hickey • 3 years ago
Sorry, I have to disagree with the entire premise here.
A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.
Mastery comes from a combination of at least several of the following:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class EventSubscriber : IEventSubscriber | |
| { | |
| private IReadModelPersistence _persistence; | |
| public void CatchUpAndSubscribe (IEventBus eventBus, IEventStore eventStore) | |
| { | |
| CatchUpUntilNow(eventStore); | |
| eventBus.Subscribe (this); | |
| CatchUpUntilNow(eventStore); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var gulp = require('gulp'); | |
| var bower = require('gulp-bower'); | |
| var less = require('gulp-less'); | |
| var sourcemaps = require('gulp-sourcemaps'); | |
| var aspnetk = require("gulp-aspnet-k"); | |
| var imagemin = require('gulp-imagemin'); | |
| var pngquant = require('imagemin-pngquant'); | |
| var gutil = require('gulp-util'); | |
| var plumber = require('gulp-plumber'); | |
| var colors = require('colors'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace Blah { | |
| [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = true)] | |
| public sealed class ValidatedNotNullAttribute : Attribute | |
| { | |
| } | |
| public static class Guard |