This file contains 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.Xna.Framework; | |
using System.Linq; | |
namespace Screens | |
{ | |
/// <summary> | |
/// This is a screen that can be added to the ScreenManager. Extend it and add components | |
/// to it in the Initialize() method. You can also override the Update() and Draw() method. | |
/// </summary> |
This file contains 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Audio; | |
using Microsoft.Xna.Framework.Content; | |
using Microsoft.Xna.Framework.GamerServices; | |
using Microsoft.Xna.Framework.Graphics; | |
using Microsoft.Xna.Framework.Input; | |
using Microsoft.Xna.Framework.Media; |
This file contains 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
Choose a ticket class: <select id="tickets"></select> | |
<p id="ticketOutput"></p> | |
<script id="ticketTemplate" type="text/x-jquery-tmpl"> | |
{{if chosenTicket}} | |
You have chosen <b>${ chosenTicket().name }</b> | |
($${ chosenTicket().price }) | |
<button data-bind="click: resetTicket">Clear</button> | |
{{/if}} |
This file contains 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
<form id="addSpeaker"> | |
<fieldset> | |
<legend>Speaker Info</legend> | |
Name: <input type="text" id="name" /> <br /> | |
Bio: <textarea id="bio"></textarea> <br /> | |
Twitter Handle: <input type="text" id="twitterHandle" /> <br /> | |
State: <input type="text" id="state" /> <br /> | |
Photo Url: <input type="text" id="photoUrl" /> | |
</fieldset> | |
<fieldset> |
This file contains 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
<!-- edit this; the PDF file must be on the same domain as this page --> | |
<iframe id="input" src="your-file.pdf"></iframe> | |
<!-- embed the pdftotext service as an iframe --> | |
<iframe id="processor" src="http://hubgit.github.com/2011/11/pdftotext/"></iframe> | |
<!-- a container for the output --> | |
<div id="output"></div> | |
<script> |
This file contains 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; | |
using System.Messaging; | |
using System.Reactive.Concurrency; | |
using System.Reactive.Linq; | |
namespace MSMQPubSubRx | |
{ | |
class Program | |
{ | |
public static MessageQueue msmqQueue; |
This file contains 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
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES; | |
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled; | |
// by the way, you need to logout and log back in for this to take effect. Or at least that's what | |
// Quartz Debug says. Who knows, maybe it's lying? | |
// P.S. Go to [Apple menu --> System Preferences --> Displays --> Display --> Scaled] after logging | |
// back in, and you'll see a bunch of "HiDPI" resolutions in the list to choose from. |
This file contains 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
<script type="text/ng-template" id="one.html"> | |
<div>This is first template</div> | |
</script> | |
<script type="text/ng-template" id="two.html"> | |
<div>This is second template</div> | |
</script> |
This file contains 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; | |
using System.Linq.Expressions; | |
using Automatonymous; | |
using NHibernate.Mapping.ByCode; | |
public static class AutomatonymousNHibernateExtensions | |
{ | |
public static void StateProperty<T, TMachine>(this IClassMapper<T> mapper, Expression<Func<T, State>> stateExpression) | |
where T : class | |
where TMachine : StateMachine, new() |
This file contains 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 ServiceStackJsonFormatter : MediaTypeFormatter | |
{ | |
public ServiceStackJsonFormatter() | |
{ | |
SupportedMediaTypes.Add(new MediaTypeHeaderValue("application/json")); | |
SupportedEncodings.Add(new UTF8Encoding(false, true)); | |
SupportedEncodings.Add(new UnicodeEncoding(false, true, true)); | |
} | |
OlderNewer