text:
/**
 * @author Brad Leege <bleege@gmail.com>
 * Created on 10/15/13 at 7:57 PM
 */

package org.osmdroid.tileprovider.tilesource;

import org.osmdroid.ResourceProxy;
import org.osmdroid.tileprovider.MapTile;
import org.osmdroid.tileprovider.util.ManifestUtil;

import android.content.Context;

public class MapBoxTileSource extends OnlineTileSourceBase
{
    /** the meta data key in the manifest */
    private static final String MAPBOX_MAPID = "MAPBOX_MAPID";

	private static final String[] mapBoxBaseUrl = new String[]{
			"http://a.tiles.mapbox.com/v3/",
			"http://b.tiles.mapbox.com/v3/",
			"http://c.tiles.mapbox.com/v3/",
			"http://d.tiles.mapbox.com/v3/"};

	private static String mapBoxMapId = "";

	/**
     * TileSource with configuration defaults set.
     *
 Warning, the static method {@link #retrieveMapBoxMapId(android.content.Context)} should have been invoked once before constructor invocation
     */
    public MapBoxTileSource()
    {
		super("mbtiles", ResourceProxy.string.mapbox, 1, 18, 256, ".png", mapBoxBaseUrl);
    }

    /**
     * TileSource allowing majority of options (sans url) to be user selected.
     *
 Warning, the static method {@link #retrieveMapBoxMapId(android.content.Context)} should have been invoked once before constructor invocation
	 * @param name Name
	 * @param resourceId Resource Id
	 * @param zoomMinLevel Minimum Zoom Level
	 * @param zoomMaxLevel Maximum Zoom Level
	 * @param tileSizePixels Size of Tile Pixels
	 * @param imageFilenameEnding Image File Extension
	 */
    public MapBoxTileSource(String name, ResourceProxy.string resourceId, int zoomMinLevel, int zoomMaxLevel, int tileSizePixels, String imageFilenameEnding)
    {
		super(name, resourceId, zoomMinLevel, zoomMaxLevel, tileSizePixels, imageFilenameEnding, mapBoxBaseUrl);
    }

    /**
     * TileSource allowing all options to be user selected.
     *
 Warning, the static method {@link #retrieveMapBoxMapId(android.content.Context)} should have been invoked once before constructor invocation
     * @param name Name
     * @param resourceId Resource Id
     * @param zoomMinLevel Minimum Zoom Level
     * @param zoomMaxLevel Maximum Zoom Level
     * @param tileSizePixels Size of Tile Pixels
     * @param imageFilenameEnding Image File Extension
     * @param mapBoxVersionBaseUrl MapBox Version Base Url @see https://www.mapbox.com/developers/api/#Versions
     */
    public MapBoxTileSource(String name, ResourceProxy.string resourceId, int zoomMinLevel, int zoomMaxLevel, int tileSizePixels, String imageFilenameEnding, String mapBoxMapId, String mapBoxVersionBaseUrl)
    {
		super(name, resourceId, zoomMinLevel, zoomMaxLevel, tileSizePixels, imageFilenameEnding,
				new String[] { mapBoxVersionBaseUrl });
    }

    /**
     * Read the API key from the manifest.

     * This method should be invoked before class instantiation.

     */
    public static void retrieveMapBoxMapId(final Context aContext)
    {
        // Retrieve the MapId from the Manifest
        mapBoxMapId = ManifestUtil.retrieveKey(aContext, MAPBOX_MAPID);
    }

    public static String getMapBoxMapId()
    {
        return mapBoxMapId;
    }

    @Override
    public String getTileURLString(final MapTile aMapTile)
    {
        StringBuffer url = new StringBuffer(getBaseUrl());
        url.append(getMapBoxMapId());
        url.append("/");
        url.append(aMapTile.getZoomLevel());
        url.append("/");
        url.append(aMapTile.getX());
        url.append("/");
        url.append(aMapTile.getY());
        url.append(".png");

        String res = url.toString();

        return res;
    }
}


text:
const styleMap = new Map();

export default function loadStyle(id, src) {
    return new Promise((resolve, reject) => {
        let styleTag = styleMap.get(id);
        if (styleTag) {
            return resolve();
        }

        if (!styleTag) {
            styleTag = document.createElement('link');
            styleTag.rel = 'stylesheet';
            styleTag.type = 'text/css';
            document.head.appendChild(styleTag);

            styleMap.set(id, styleTag);
        }

        if (styleTag.href) {
            styleTag.href = src;
        } else {
            styleTag.setAttribute('href', src);
        }

        styleTag.onload = resolve;
        styleTag.onerror = reject;

        return null;
    });
}

redpajama_set_name: RedPajamaGithub


text:
//
//  SKPrintAccessoryController.h
//  Skim
//
//  Created by Christiaan Hofman on 2/24/08.

#import <Cocoa/Cocoa.h>
#import <Quartz/Quartz.h>
#import "SKViewController.h"

@interface SKPrintAccessoryController : SKViewController <NSPrintPanelAccessorizing>

@property (nonatomic) BOOL autoRotate;
@property (nonatomic) PDFPrintScalingMode printScalingMode;

@end