Metadata in PDF files can be stored in at least two places:
- the Info Dictionary, a limited set of key/value pairs
- XMP packets, which contain RDF statements expressed as XML
| /* | |
| This can be used in unit tests to simulate a DOM document. | |
| I have implemented the bare minimum. Feel free to add more, or to change my implementation. | |
| Sample Usage: | |
| import 'jasmine'; | |
| import { MockElement } from './support/mock-element'; |
| using System; | |
| using System.Collections.Generic; | |
| using System.Drawing; | |
| using System.Linq; | |
| using System.Threading; | |
| namespace Snake | |
| { | |
| public enum Direction { Stop, Up, Down, Left, Right } |
| using System; | |
| using System.Collections.Generic; | |
| using System.Xml; | |
| namespace Improve.Framework.Xml | |
| { | |
| public class XmlOutput : IDisposable | |
| { | |
| // The internal XmlDocument that holds the complete structure. | |
| XmlDocument xd = new XmlDocument(); |
| using System; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| namespace Hash | |
| { | |
| public class Hash | |
| { | |
| public Hash() { } |
| public static IOrderedQueryable<T> OrderBy<T>( | |
| this IQueryable<T> source, | |
| string property) | |
| { | |
| return ApplyOrder<T>(source, property, "OrderBy"); | |
| } | |
| public static IOrderedQueryable<T> OrderByDescending<T>( | |
| this IQueryable<T> source, | |
| string property) |
| public static void ForEach<T>(this IEnumerable<T> enumeration, Action<T> action) | |
| { | |
| foreach (var item in enumeration) | |
| { | |
| action(item); | |
| } | |
| } |
| var @switch = new Dictionary<Type, Action> { | |
| { typeof(Type1), () => ... }, | |
| { typeof(Type2), () => ... }, | |
| { typeof(Type3), () => ... }, | |
| }; | |
| @switch[typeof(MyType)](); |
| #!/bin/bash | |
| killall Xcode | |
| xcrun -k | |
| xcodebuild -alltargets clean | |
| rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" | |
| rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" | |
| rm -rf ~/Library/Developer/Xcode/DerivedData/* | |
| rm -rf ~/Library/Caches/com.apple.dt.Xcode/* | |
| open /Applications/Xcode.app |
| { | |
| "USD": { | |
| "symbol": "$", | |
| "name": "US Dollar", | |
| "symbol_native": "$", | |
| "decimal_digits": 2, | |
| "rounding": 0, | |
| "code": "USD", | |
| "name_plural": "US dollars" | |
| }, |