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
| """ | |
| Requirements: | |
| * A Wordpress Blog | |
| * Ghost export file (json). | |
| * Python Packages: python-wordpress-xmlrpc | |
| >>> pip install python-wordpress-xmlrpc | |
| WARNING: |
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
| exception ItemAlreadyExists of string | |
| exception ItemNotFound of string | |
| exception DomainError of string | |
| type Command = | |
| | CreateInventoryItem of Id: int | |
| | RenameInventoryItem of Id: int * Name: string | |
| | RemoveItemsFromInventory of Id: int * Amount: int | |
| | AddItemsToInventory of Id: int * Amount: int | |
| | DeactivateInventoryItem of Id: int |
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; | |
| using System.Collections.Generic; | |
| using System.Dynamic; | |
| using System.Globalization; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Web; | |
| using System.Web.ModelBinding; | |
| namespace VS11BetaTAPWebForms |
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
| [AttributeUsage(System.AttributeTargets.All, AllowMultiple = true, Inherited = true)] | |
| public class ಠ_ಠAttribute : Attribute | |
| { | |
| public ILog Log { get; set; } | |
| public ಠ_ಠAttribute() | |
| { | |
| Log.Info("This code is bad and you should feel bad"); | |
| } | |
| } |
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
| # An example of elasticsearch & Tire setup for ActiveRecord associations. | |
| # | |
| # A `Book has_many :chapters` scenario, with mapping and JSON serialization | |
| # for indexing associated models. | |
| # | |
| # Demonstrates three important caveats as of now: | |
| # | |
| # 1. You you have to use `touch: true` in the `belongs_to` declaration, | |
| # to automatically notify the parent model about the update. | |
| # |