Skip to content

Instantly share code, notes, and snippets.

View ChrisMissal's full-sized avatar
💭
set status

Chris Missal ChrisMissal

💭
set status
View GitHub Profile
@ChrisMissal
ChrisMissal / blog-engine.md
Last active December 12, 2015 06:19
These are the things I want in a blog engine. I'm tempted to write one myself because I feel the ease of use will let me blog more often.

Chris Missal's Unnamed and Opinionated Blog Engine


The purpose of these requirements are to define a blog engine that is perfect for me. I don't need many features, I just want to blog about code and tech things.

This project should be language agnostic in that I don't care what is used to build it. I'm really looking at it from a user perspective, not a developer. However, the idea of being able to type on one side of the screen and see a live preview of my formatted markdown on the other is most important and I think could be shared as a separate open source project. Again... all just thoughts right now.

Reasons:

  1. I feel like blogging engines have too much "junk" in them. They distract me too often because they're trying to be a full-blown CMS. I would rather focus on content and writing than page/category/tag management.
@ChrisMissal
ChrisMissal / css-comments.css
Created February 2, 2013 17:23
You could search your CSS for rules that involve users or comments. The ^ makes it easier to find those tags.
/**
* #.# Section title
*
* @tags ^users ^comments
*
* @description Description of section, whether or not it has media queries, etc.
*/
.selector {
float: left;
@ChrisMissal
ChrisMissal / Program.cs
Created January 30, 2013 06:23
This shows how Palmer and TempusReader can play nicely together!
class Program
{
private static int attempts = 0;
static void Main(string[] args)
{
Retry.On<Exception>().For("2.5 seconds".InTime()).With(context =>
{
Program.SendRequest();
});
@ChrisMissal
ChrisMissal / adding-defaults-to-objects-in-underscore-1.js
Created September 28, 2012 00:04
Adding Defaults to objects in Underscore
var start = {
id: 123,
count: 41,
desc: 'this is information',
title: 'Base Object',
tag: 'uncategorized',
values: [1,1,2,3,5,8,13]
};
var more = {
name: 'Los Techies',
@ChrisMissal
ChrisMissal / extending-objects-in-underscore-1.js
Created September 28, 2012 00:03
Extending objects in Underscore
var start = {
id: 123,
count: 41,
desc: 'this is information',
title: 'Base Object',
tag: 'uncategorized',
values: [1,1,2,3,5,8,13]
};
var more = {
name: 'Los Techies',
@ChrisMissal
ChrisMissal / extending-objects-in-dojo-1.js
Created September 28, 2012 00:03
Extending objects in Dojo
var start = {
id: 123,
count: 41,
desc: 'this is information',
title: 'Base Object',
tag: 'uncategorized',
values: [1,1,2,3,5,8,13]
};
var more = {
name: 'Los Techies',
@ChrisMissal
ChrisMissal / extending-objects-in-ext-js-1.js
Created September 28, 2012 00:02
Extending objects in Ext JS
var start = {
id: 123,
count: 41,
desc: 'this is information',
title: 'Base Object',
tag: 'uncategorized',
values: [1,1,2,3,5,8,13]
};
var more = {
name: 'Los Techies',
@ChrisMissal
ChrisMissal / extending-objects-in-jquery-1.js
Created September 27, 2012 23:39
Extending objects in jQuery
var start = {
id: 123,
count: 41,
desc: 'this is information',
title: 'Base Object',
tag: 'uncategorized',
values: [1,1,2,3,5,8,13]
};
var more = {
name: 'Los Techies',
@ChrisMissal
ChrisMissal / Diff.cs
Created September 24, 2012 22:52
Creates a dynamic object from the differences of two strongly typed objects.
public static class Diff
{
public static dynamic GetDynamicDiff<T>(T left, T right)
{
return GetDynamicDiff(left, right, typeof(T));
}
private static dynamic GetDynamicDiff<T>(T left, T right, Type type)
{
dynamic expando = new System.Dynamic.ExpandoObject();
@ChrisMissal
ChrisMissal / Helper.cs
Created September 18, 2012 23:19
A helper class to nicely wrap service calls and provide JSON responses back.
private class Helper<T> : IDisposable where T : CheckoutInformation
{
private readonly T _input;
private readonly IOrderService _orderService;
private readonly Func<object, JsonResult> _jsonResultSelector;
private object _data;
public CheckoutHelper(T input, IOrderService orderService, Func<object, JsonResult> jsonResultSelector)
{