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
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 } |
/* | |
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'; |
#!/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 |
#!/bin/bash | |
# Thanks to: https://gist.github.com/DavidFrahm/4409d6b74e46377e7be7 | |
# Usage: ./create_ipa.sh <Scheme Name> <Provisioning Profile> | |
echo "Building Ionic iOS release..." | |
ionic build --release ios | |
pushd platforms/ios/ | |
echo "Building archive file..." | |
xcodebuild -scheme "$1" -configuration Release clean archive -archivePath "build/$1.xcarchive" |
Using the ASP.NET bundling and minifications is pretty straight forward, but here is a small guide that take care of a few gotchas when implementing bundles in your Umbraco project.
ASP.NET Bundling and Minifications is part of the Microsoft ASP.NET Web Optimization Framework and is installed via NuGet;
PM> Install-Package Microsoft.AspNet.Web.Optimization
Once this is done, you need to create a BundleConfig.cs
in your App_Start
1 folder. This is where you register your different bundles. It can be extremely simple, or it can be more complex, but the gist of it is this;
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |