text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>SKMapSurfaceListener (SKMaps Framework)</title>
<meta name="date" content="2016-10-27">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

com.skobbler.ngx.map

Interface SKMapSurfaceListener

public interface SKMapSurfaceListener

Listener for map surface events.

Version:

3.0.2

Method Summary

Methods

Modifier and Type
Method and Description

void
onActionPan()

Notifies when an action on map is done.

void
onActionZoom()

Notifies when a zoom is done.

void
onAnnotationSelected(SKAnnotation annotation)

Notifies when an annotation was tapped on the map.

void
onBoundingBoxImageRendered(int requestId)

Notifies when a request to render a map region to a file has been
 completed.

void
onCompassSelected()

Notifies when the compass was tapped.

void
onCurrentPositionSelected()

Notifies when the current position is selected.

void
onCustomPOISelected(SKMapCustomPOI customPoi)

Notifies when a custom POI was tapped on the map.This method is notified
 on the UI thread.

void
onDoubleTap(SKScreenPoint point)

Notifies when a double tap was done.

void
onGLInitializationError(java.lang.String errorMessage)

Notifies that the gl surface could not be initialized

void
onInternationalisationCalled(int result)

Notifies when the set internationalisation method was called.

void
onInternetConnectionNeeded()

Notifies when map tiles need to be downloaded, but this can't be done
 because the library mode is set to offline.

void
onLongPress(SKScreenPoint point)

Notifies when a long press was done.

void
onMapActionDown(SKScreenPoint point)

Notifies when a pressed gesture has started.

void
onMapActionUp(SKScreenPoint point)

Notifies when a pressed gesture has finished.

void
onMapPOISelected(SKMapPOI mapPOI)

Notifies when a map POI was tapped on the map.

void
onMapRegionChanged(SKCoordinateRegion mapVisibleRegion)

Notifies when the map region was changed.

void
onMapRegionChangeEnded(SKCoordinateRegion mapRegion)

Notifies when the region of the map finished changing.

void
onMapRegionChangeStarted(SKCoordinateRegion mapRegion)

Notifies when the region of the map will begin changing.

void
onObjectSelected(int objectId)

Notifies when an object (polygon or polyline) that was previously drawn
 on the map is selected.

void
onPOIClusterSelected(SKPOICluster poiCluster)

Notifies when a cluster was tapped.

void
onRotateMap()

Notifies when the map was rotated.

void
onScreenshotReady(android.graphics.Bitmap screenshot)

void
onSingleTap(SKScreenPoint point)

Notifies when a single tap was made.

void
onSurfaceCreated(SKMapViewHolder mapViewHolder)

Notifies when the map surface is created or recreated.

Method Detail

onActionPan

void onActionPan()

Notifies when an action on map is done. This method is notified on the UI
 thread.

onActionZoom

void onActionZoom()

Notifies when a zoom is done. This method is notified on the UI thread.

onSurfaceCreated

void onSurfaceCreated(SKMapViewHolder mapViewHolder)

Notifies when the map surface is created or recreated. This will happen
 after the activity is resumed. IMPORTANT : Methods to the
 SKMapSurfaceView should be called only after this notification
 not after inflating the view.  .This method is notified on the UI
 thread.

Parameters:

mapViewHolder - the view that holds the map view

onMapRegionChanged

void onMapRegionChanged(SKCoordinateRegion mapVisibleRegion)

Notifies when the map region was changed. This method is called whenever
 the currently displayed map region changes. During panning/zooming, this
 method may be called many times to report updates to the map position.
 Therefore, your implementation of this method should be as lightweight as
 possible to avoid affecting performance. This method is notified on the
 UI thread.

Parameters:

mapVisibleRegion - - new map center

onMapRegionChangeStarted

void onMapRegionChangeStarted(SKCoordinateRegion mapRegion)

Notifies when the region of the map will begin changing. During one
 panning/zooming, this method is called once, at the beginning. This
 method is notified on the UI thread.

Parameters:

mapRegion - the current visible map region.

onMapRegionChangeEnded

void onMapRegionChangeEnded(SKCoordinateRegion mapRegion)

Notifies when the region of the map finished changing. During one
 panning/zooming, this method is called once, at the end. This method is
 notified on the UI thread.

Parameters:

mapRegion - the final visible map region.

onDoubleTap

void onDoubleTap(SKScreenPoint point)

Notifies when a double tap was done. This method is notified on the UI
 thread.

Parameters:

point - point where double tap was done.

onSingleTap

void onSingleTap(SKScreenPoint point)

Notifies when a single tap was made. This method is notified on the UI
 thread.

Parameters:

point - point where the single tap was done.

onRotateMap

void onRotateMap()

Notifies when the map was rotated. This method is notified on the UI
 thread.

onLongPress

void onLongPress(SKScreenPoint point)

Notifies when a long press was done. This method is notified on the UI
 thread.

Parameters:

point - point where the long press was done.

onInternetConnectionNeeded

void onInternetConnectionNeeded()

Notifies when map tiles need to be downloaded, but this can't be done
 because the library mode is set to offline.

onMapActionDown

void onMapActionDown(SKScreenPoint point)

Notifies when a pressed gesture has started. This method is notified on
 the UI thread.

Parameters:

point - point where the gesture has started.

onMapActionUp

void onMapActionUp(SKScreenPoint point)

Notifies when a pressed gesture has finished. This method is notified on
 the UI thread.

Parameters:

point - point where the gesture has ended.

onPOIClusterSelected

void onPOIClusterSelected(SKPOICluster poiCluster)

Notifies when a cluster was tapped. This method is notified on the UI
 thread.

Parameters:

poiCluster -

onMapPOISelected

void onMapPOISelected(SKMapPOI mapPOI)

Notifies when a map POI was tapped on the map. This method is notified on
 the UI thread.

Parameters:

mapPOI -

onAnnotationSelected

void onAnnotationSelected(SKAnnotation annotation)

Notifies when an annotation was tapped on the map. This method is
 notified on the UI thread.

Parameters:

annotation -

onCustomPOISelected

void onCustomPOISelected(SKMapCustomPOI customPoi)

Notifies when a custom POI was tapped on the map.This method is notified
 on the UI thread.

Parameters:

customPoi -

onCompassSelected

void onCompassSelected()

Notifies when the compass was tapped. This method is notified on the UI
 thread.

onCurrentPositionSelected

void onCurrentPositionSelected()

Notifies when the current position is selected. This method is notified
 on the UI thread.

onObjectSelected

void onObjectSelected(int objectId)

Notifies when an object (polygon or polyline) that was previously drawn
 on the map is selected. This method is notified on the UI thread.

Parameters:

objectId - the id of the selected object (polygon or polyline)

onInternationalisationCalled

void onInternationalisationCalled(int result)

Notifies when the set internationalisation method was called. This method
 is notified on the UI thread.

Parameters:

result - the result of the method:

 0 - failed

 1 - success

 2- option not supported by the current map installed

onBoundingBoxImageRendered

void onBoundingBoxImageRendered(int requestId)

Notifies when a request to render a map region to a file has been
 completed. This method is notified on the UI thread.

onGLInitializationError

void onGLInitializationError(java.lang.String errorMessage)

Notifies that the gl surface could not be initialized

Parameters:

errorMessage -

onScreenshotReady

void onScreenshotReady(android.graphics.Bitmap screenshot)

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

			Copyright &#169 2014  skobbler GmbH, Luisenstr. 41, 10117 Berlin, Germany. All rights reserved.


text:
=begin rdoc
  Author:  Phil Kates (mailto:me@philkates.com)
=end
require "rubygems"
require "httparty"
require "cgi"
require "uri"
require "net/http"
require "tvdbmapper"

=begin rdoc
Create a TVShow.new like this.
  tvshow = TVShow.new(:series_name => "The Wire")
OR
  tvshow = TVShow.new(:series_id => "79126")
=end
class TVShow
  include HTTParty
  format :xml
  attr_accessor :mirror, :series_name, :series_id, :series, :actors, :episodes, :banners
  def initialize(params)
    @api_key = "BC7240CD299E99B5"
    @series_name = params[:series_name]
    @series_id = params[:series_id]
    result = self.class.get("http://www.thetvdb.com/api/#{@api_key}/mirrors.xml")
    @mirror = result["Mirrors"]["Mirror"]["mirrorpath"]
    self.class.base_uri @mirror
  end
  def get_series_by_name # TODO : Find series by name?
    res = self.class.get("/api/GetSeries.php?seriesname=" + CGI::escape(@series_name.to_s))
    if res["Data"].to_s =~ /.*connection to localhost.*/
      raise "TVDB API Down"
    else
      res = res["Data"]["Series"]
    end
    if res.is_a?(Hash)
      @series_id = res["seriesid"]
      return [res]
    elsif res.is_a?(Array)
      return res
    else
      raise "Unexpected Data Type Returned #{res.class}"
    end
  end
  def get_series_as_zip(path)
    check_series_id
    if path.is_a? String
      path = Pathname.new(path)
    end
    res = Net::HTTP.get URI.parse("http://zip.thetvdb.com/data/zip/en/#{@series_id}.zip")
    file = File.open(path + "testing.zip", 'w')
    file.write(res)
    file.close

    zipfile = Zip::ZipFile.open(path + "testing.zip")
    zipfile.extract("en.xml", path + "en.xml")
    zipfile.extract("actors.xml", path + "actors.xml")
    zipfile.extract("banners.xml", path + "banners.xml")
    zipfile.close

    @series_xml = File.open(path + "en.xml", 'r').readlines.to_s
    @actor_xml = File.open(path + "actors.xml", 'r').readlines.to_s
    @banner_xml = File.open(path + "banners.xml", 'r').readlines.to_s

    @series = TVDBMapper::Series.parse(@series_xml).first
    @episodes = TVDBMapper::Episodes.parse(@series_xml)
    @actors = TVDBMapper::Actors.parse(@actor_xml)
    @banners = TVDBMapper::Banners.parse(@banner_xml)

    FileUtils.rm(path + "en.xml")
    FileUtils.rm(path + "actors.xml")
    FileUtils.rm(path + "banners.xml")
    FileUtils.rm(path + "testing.zip")
  end
  def find_by_episode(season, episode_number)
    season = season.to_s
    episode_number = episode_number.to_s
    @episodes.select { |e| e.number == episode_number && e.season == season }.first
  end
  def get_episode_banner(image_path)
    Net::HTTP.get URI.parse("http://images.thetvdb.com/banners/#{image_path}")
  end
  private
    def check_series_id
      if @series_id == nil
        raise "series_id must not be nil"
      end
    end
end

redpajama_set_name: RedPajamaGithub


text:
	<lobby ng-show="!room.$selected"></lobby>

<input-box></input-box>


text:
SYNONYM

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Tent. fl. abyss. 2:382. 1850

#### Original name
null

### Remarks
null


text:
package crawler

import (
	"fmt"
	"github.com/PuerkitoBio/fetchbot"
	"github.com/Unknwon/com"
	"github.com/fatih/color"
	"log"
	"net/http"
	"net/http/httputil"
	"net/url"
	"strings"
	"time"
)

func (cr *Crawler) Handler(ctx *fetchbot.Context, res *http.Response, e error) {
	if e != nil {
		log.Println(e)
		return
	}
	color.Cyan("[%d] %s,", res.StatusCode, ctx.Cmd.URL())
	if res.ContentLength > 10*1000*1000 {
		log.Println("File to large")
		return
	}

	crTime := time.Duration(0)

	durString := res.Header.Get(CrawlerRequestTimeHeader)
	if durString != "" {
		crTime = time.Duration(com.StrTo(durString).MustInt64())
		res.Header.Del(CrawlerRequestTimeHeader)
	}

	bts, e := httputil.DumpResponse(res, true)
	if e != nil {
		log.Println(e)
		return
	}

	l, has := cr.store.GetLink(ctx.Cmd.URL().RequestURI())
	if !has {
		l = NewLink(ctx.Cmd.URL())
	}

	l.CrawlTime = crTime
	l.Visited = time.Now()

	e = cr.store.SaveBlob(l.URL().String(), bts)
	if e != nil {
		log.Println(e)
		return
	}

	e = cr.store.SaveLink(l)
	if e != nil {
		log.Println(e)
		return
	}

	arr := strings.SplitN(string(bts), "\n\n", 2)
	if len(arr) < 2 {
		log.Println("body not found", ctx.Cmd.URL())
		return
	}

	urls := ExtractLinks(ctx.Cmd.URL(), []byte(arr[1]))
	for _, v := range urls {
		link, has := cr.store.GetLink(v.RequestURI())
		if has {
			continue
		}
		link = NewLink(v)
		e := cr.store.SaveLink(link)
		if e != nil {
			log.Println(e)
			return
		}

		clearUrl(v)
		if cr.NeedVisit(v) {
			cr.dupMu.Lock()
			cr.dup[v.String()] = struct{}{}
			cr.dupMu.Unlock()
			ctx.Q.SendStringGet(v.String())
		}

	}
}

func (cr *Crawler) NeedVisit(u *url.URL) bool {
	if strings.Contains(u.String(), "login") {
		return false
	}
	if _, ok := cr.dup[u.String()]; ok {
		return false
	}
	if _, ok := cr.allowedSites[u.Host]; !ok {
		return false
	}
	return true
}

func (cr *Crawler) ResponseMatch(res *http.Response) bool {
	return false
}

type ContextCmd struct {
}

func NewContextCmd(string) *ContextCmd {
	return nil
}

func (c ContextCmd) URL() *url.URL {
	return nil
}

func (c ContextCmd) Method() string {
	return ""
}

type Doer struct {
	*http.Client
}

var CrawlerRequestTimeHeader = "crawler-request-time"

func (d *Doer) Do(req *http.Request) (*http.Response, error) {
	if d.Client == nil {
		d.Client = http.DefaultClient
		d.Client.Timeout = 25 * time.Second
	}
	start := time.Now()
	resp, e := d.Client.Do(req)
	since := time.Since(start)
	if e != nil {
		return resp, e
	}
	resp.Header.Set(CrawlerRequestTimeHeader, fmt.Sprint(since.Nanoseconds()))
	return resp, e
}


text:
#include "core/svg/SVGZoomEvent.h"

#include "core/svg/SVGElement.h"
#include "core/svg/SVGPointTearOff.h"
#include "core/svg/SVGRectTearOff.h"

namespace blink {

SVGZoomEvent::SVGZoomEvent()
    : m_newScale(0.0f)
    , m_previousScale(0.0f)
{
}

SVGRectTearOff* SVGZoomEvent::zoomRectScreen() const
{
    SVGRectTearOff* rectTearOff = SVGRectTearOff::create(SVGRect::create(), 0, PropertyIsNotAnimVal);
    rectTearOff->setIsReadOnlyProperty();
    return rectTearOff;
}

float SVGZoomEvent::previousScale() const
{
    return m_previousScale;
}

SVGPointTearOff* SVGZoomEvent::previousTranslate() const
{
    SVGPointTearOff* pointTearOff = SVGPointTearOff::create(SVGPoint::create(m_previousTranslate), 0, PropertyIsNotAnimVal);
    pointTearOff->setIsReadOnlyProperty();
    return pointTearOff;
}

float SVGZoomEvent::newScale() const
{
    return m_newScale;
}

SVGPointTearOff* SVGZoomEvent::newTranslate() const
{
    SVGPointTearOff* pointTearOff = SVGPointTearOff::create(SVGPoint::create(m_newTranslate), 0, PropertyIsNotAnimVal);
    pointTearOff->setIsReadOnlyProperty();
    return pointTearOff;
}

const AtomicString& SVGZoomEvent::interfaceName() const
{
    return EventNames::SVGZoomEvent;
}

DEFINE_TRACE(SVGZoomEvent)
{
    UIEvent::trace(visitor);
}

} // namespace blink


text:
namespace {

bool RunOneTest(
    const content::TestInfo& test_info,
    bool* ran_at_least_once,
    const std::unique_ptr<content::BrowserMainRunner>& main_runner) {
  if (!content::BlinkTestController::Get()->PrepareForLayoutTest(
          test_info.url, test_info.current_working_directory,
          test_info.enable_pixel_dumping, test_info.expected_pixel_hash)) {
    return false;
  }

  *ran_at_least_once = true;
#if defined(OS_ANDROID)
  // The message loop on Android is provided by the system, and does not
  // offer a blocking Run() method. For layout tests, use a nested loop
  // together with a base::RunLoop so it can block until a QuitClosure.
  base::RunLoop run_loop;
  run_loop.Run();
#else
  main_runner->Run();
#endif

  if (!content::BlinkTestController::Get()->ResetAfterLayoutTest())
    return false;

#if defined(OS_ANDROID)
  // There will be left-over tasks in the queue for Android because the
  // main window is being destroyed. Run them before starting the next test.
  base::RunLoop().RunUntilIdle();
#endif
  return true;
}

int RunTests(const std::unique_ptr<content::BrowserMainRunner>& main_runner) {
  content::BlinkTestController test_controller;
  {
    // We're outside of the message loop here, and this is a test.
    base::ThreadRestrictions::ScopedAllowIO allow_io;
    base::FilePath temp_path;
    base::GetTempDir(&temp_path);
    test_controller.SetTempPath(temp_path);
  }

  std::cout << "#READY\n";
  std::cout.flush();

  base::CommandLine::StringVector args =
      base::CommandLine::ForCurrentProcess()->GetArgs();
  content::TestInfoExtractor test_extractor(args);
  bool ran_at_least_once = false;
  std::unique_ptr<content::TestInfo> test_info;
  while ((test_info = test_extractor.GetNextTest())) {
    if (!RunOneTest(*test_info, &ran_at_least_once, main_runner))
      break;
  }
  if (!ran_at_least_once) {
    base::ThreadTaskRunnerHandle::Get()->PostTask(
        FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
    main_runner->Run();
  }

#if defined(OS_ANDROID)
  // We need to execute 'main_runner->Shutdown()' before the test_controller
  // destructs when running on Android, and after it destructs when running
  // anywhere else.
  main_runner->Shutdown();
#endif

  return 0;
}

}  // namespace

// Main routine for running as the Browser process.
int LayoutTestBrowserMain(
    const content::MainFunctionParams& parameters,
    const std::unique_ptr<content::BrowserMainRunner>& main_runner) {
  base::ScopedTempDir browser_context_path_for_layout_tests;

  CHECK(browser_context_path_for_layout_tests.CreateUniqueTempDir());
  CHECK(!browser_context_path_for_layout_tests.path().MaybeAsASCII().empty());
  base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
      switches::kContentShellDataPath,
      browser_context_path_for_layout_tests.path().MaybeAsASCII());

#if defined(OS_ANDROID)
  content::EnsureInitializeForAndroidLayoutTests();
#endif

  int exit_code = main_runner->Initialize(parameters);
  DCHECK_LT(exit_code, 0)
      << "BrowserMainRunner::Initialize failed in LayoutTestBrowserMain";

  if (exit_code >= 0)
    return exit_code;

  if (base::CommandLine::ForCurrentProcess()->HasSwitch(
          switches::kCheckLayoutTestSysDeps)) {
    base::ThreadTaskRunnerHandle::Get()->PostTask(
        FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
    main_runner->Run();
    content::Shell::CloseAllWindows();
    main_runner->Shutdown();
    return 0;
  }

  exit_code = RunTests(main_runner);
  base::RunLoop().RunUntilIdle();

#if !defined(OS_ANDROID)
  main_runner->Shutdown();
#endif

  return exit_code;
}


text:
#import <AsyncDisplayKit/ASLayoutable.h>

/** A layout spec is an immutable object that describes a layout, loosely inspired by React. */
@interface ASLayoutSpec : NSObject <ASLayoutable>

/**
 * Creation of a layout spec should only happen by a user in layoutSpecThatFits:. During that method, a
 * layout spec can be created and mutated. Once it is passed back to ASDK, the isMutable flag will be
 * set to NO and any further mutations will cause an assert.
 */
@property (nonatomic, assign) BOOL isMutable;

- (instancetype)init;

/**
 * Adds a child to this layout spec using a default identifier.
 *
 * @param child A child to be added.
 *
 * @discussion Every ASLayoutSpec must act on at least one child. The ASLayoutSpec base class takes the
 * reponsibility of holding on to the spec children. Some layout specs, like ASInsetLayoutSpec,
 * only require a single child.
 *
 * For layout specs that require a known number of children (ASBackgroundLayoutSpec, for example)
 * a subclass should use this method to set the "primary" child. It can then use setChild:forIdentifier:
 * to set any other required children. Ideally a subclass would hide this from the user, and use the
 * setChild:forIdentifier: internally. For example, ASBackgroundLayoutSpec exposes a backgroundChild
 * property that behind the scenes is calling setChild:forIdentifier:.
 */
- (void)setChild:(id<ASLayoutable>)child;

/**
 * Adds a child with the given identifier to this layout spec.
 *
 * @param child A child to be added.
 *
 * @param identifier An identifier associated with the child.
 *
 * @discussion Every ASLayoutSpec must act on at least one child. The ASLayoutSpec base class takes the
 * reponsibility of holding on to the spec children. Some layout specs, like ASInsetLayoutSpec,
 * only require a single child.
 *
 * For layout specs that require a known number of children (ASBackgroundLayoutSpec, for example)
 * a subclass should use the setChild method to set the "primary" child. It can then use this method
 * to set any other required children. Ideally a subclass would hide this from the user, and use the
 * setChild:forIdentifier: internally. For example, ASBackgroundLayoutSpec exposes a backgroundChild
 * property that behind the scenes is calling setChild:forIdentifier:.
 */
- (void)setChild:(id<ASLayoutable>)child forIdentifier:(NSString *)identifier;

/**
 * Adds childen to this layout spec.
 *
 * @param children An array of ASLayoutable children to be added.
 *
 * @discussion Every ASLayoutSpec must act on at least one child. The ASLayoutSpec base class takes the
 * reponsibility of holding on to the spec children. Some layout specs, like ASStackLayoutSpec,
 * can take an unknown number of children. In this case, the this method should be used.
 * For good measure, in these layout specs it probably makes sense to define
 * setChild: and setChild:forIdentifier: methods to do something appropriate or to assert.
 */
- (void)setChildren:(NSArray *)children;

/**
 * Get child methods
 *
 * There is a corresponding "getChild" method for the above "setChild" methods.  If a subclass
 * has extra layoutable children, it is recommended to make a corresponding get method for that
 * child. For example, the ASBackgroundLayoutSpec responds to backgroundChild.
 *
 * If a get method is called on a spec that doesn't make sense, then the standard is to assert.
 * For example, calling children on an ASInsetLayoutSpec will assert.
 */

/** Returns the child added to this layout spec using the default identifier. */
- (id<ASLayoutable>)child;

/**
 * Returns the child added to this layout spec using the given identifier.
 *
 * @param identifier An identifier associated withe the child.
 */
- (id<ASLayoutable>)childForIdentifier:(NSString *)identifier;

/** Returns all children added to this layout spec. */
- (NSArray *)children;

@end


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<TITLE></TITLE>

April 9, 2014

RE:

Filter Socks and Other Filter Media

Leakproof Container Required

Oil and Gas Wells

Dear Operator,

North Dakota Administrative Code Section 43-02-03-19.2 states in part that all waste material associated with

exploration or production of oil and gas must be properly disposed of in an authorized facility in accord with all

applicable local, state, and federal laws and regulations.

Filtration systems are commonly used during oil and gas operations in North Dakota. The Commission is very

concerned about the proper disposal of used filters (including filter socks) used by the oil and gas industry.

Effective June 1, 2014, a container must be maintained on each well drilled in North Dakota beginning when the

well is spud and must remain on-site during clean-out, completion, and flow-back whenever filtration operations

are conducted. The on-site container must be used to store filters until they can be properly disposed of in an

authorized facility. Such containers must be:

 leakproof to prevent any fluids from escaping the container

 covered to prevent precipitation from entering the container

 placard to indicate only filters are to be placed in the container

If the operator will not utilize a filtration system, a waiver to the container requirement will be considered, but

only upon the operator submitting a Sundry Notice (Form 4) justifying their request.

As previously stated in our March 13, 2014 letter, North Dakota Administrative Code Section 33-20-02.1-01

states in part that every person who transports solid waste (which includes oil and gas exploration and production

wastes) is required to have a valid permit issued by the North Dakota Department of Health, Division of Waste

Management. Please contact the Division of Waste Management at (701) 328-5166 with any questions on the

solid waste program. Note oil and gas exploration and production wastes include produced water, drilling mud,

invert mud, tank bottom sediment, pipe scale, filters, and fly ash.

Thank you for your cooperation.

Sincerely,

Bruce E. Hicks

Assistant Director

April 16, 2014

RE:

PERMIT STIPULATION

Dear OPERATOR:

The below stipulation is applicable to all of the permits on the enclosed list.

Effective June 1, 2014, a covered leak-proof container (with placard) for filter sock disposal must be

maintained on the well site beginning when the well is spud, and must remain on-site during clean-out,

completion, and flow-back whenever filtration operations are conducted.

Sincerely,

Todd L. Holweger

Mineral Resources Permit Manager

Enclosures

v v FileNo

Well_Nm

Field

Cnty

Stat

17781

GOLDEN CREEK 44-23H

CORRAL CREEK

DUN

LOC

18326

ATLANTIC EXPRESS 11-30H

CORRAL CREEK

DUN

LOC

18582

PACIFIC EXPRESS 41-25H

CORRAL CREEK

DUN

LOC

19954

CCU OLYMPIAN 21-2TFH

CORRAL CREEK

DUN

LOC

20468

BROWN 41-1TFH

BLUE BUTTES

MCK

LOC

20469

STATE VEEDER 44-36TFH

BLUE BUTTES

MCK

LOC

20894

SOUTH HART 17-1H

ZENITH

STK

LOC

20988

WATERVILLE 41-27H

WILLMEN

DUN

LOC

21574

MANCHESTER 14-9MBH

LITTLE KNIFE

DUN

LOC

21881

SHEEP CREEK 18-1H

ROUGH RIDER

MCK

LOC

22196

NORTH BRANCH 28-1H

WILDCAT

MCK

LOC

22204

MANCHESTER 24-9MBH

LITTLE KNIFE

DUN

LOC

23866

ORA 21-25H

HAYSTACK BUTTE

MCK

LOC

23867

AIDEN 21-25MBH

HAYSTACK BUTTE

MCK

LOC

24175

WATCHMAN PEAK 11-2MBH

WESTBERG

MCK

LOC

24213

RAIDER 31-5TFH

TWIN VALLEY

MCK

LOC

25199

MERTON 21-15MBH 2NH

NORTH FORK

MCK

LOC

25200

JEROME 21-15MBH 2SH

NORTH FORK

MCK

LOC

25201

MERTON 21-15TFH 3NH

NORTH FORK

MCK

LOC

25202

JEROME 21-15TFH 3SH

NORTH FORK

MCK

LOC

26220

HARLEY 41-2TFH

BLUE BUTTES

MCK

LOC

26221

HARLEY 41-2MBH

BLUE BUTTES

MCK

LOC

26222

HARLEY 31-2TFH

BLUE BUTTES

MCK

LOC

26387

CCU NORTH COAST 31-25MBH

CORRAL CREEK

DUN

LOC

26388

CCU NORTH COAST 31-25TFH

CORRAL CREEK

DUN

LOC

26389

CCU NORTH COAST 21-25MBH

CORRAL CREEK

DUN

LOC

26390

CCU NORTH COAST 21-25TFH

CORRAL CREEK

DUN

LOC

27147

ARCHES 14-35TFH

KEENE

MCK

LOC

27306

LILLIBRIDGE 21-27TFH

JOHNSON CORNER

MCK

LOC

27307

COPPER DRAW 21-27MBH

JOHNSON CORNER

MCK

LOC

27308

LILLIBRIDGE 21-27MBH

JOHNSON CORNER

MCK

LOC

27344

STAFFORD 13-34MBH

BLUE BUTTES

MCK

LOC

27345

STAFFORD 13-34TFH

BLUE BUTTES

MCK

LOC

27349

STAFFORD 14-34TFH

BLUE BUTTES

MCK

LOC

27606

BULLRUSH 34-10MBH-B

ELIDAH

MCK

LOC

27607

BULLRUSH 34-10TFH-B

ELIDAH

MCK

LOC

27608

BULLRUSH 44-10MBH

ELIDAH

MCK

LOC

27696

HAYMAKER 41-15TFH-A

ELIDAH

MCK

LOC

27697

HAYMAKER 31-15MBH-B

ELIDAH

MCK

LOC

27698

HAYMAKER 31-15TFH-B

ELIDAH

MCK

LOC

27699

HAYMAKER 31-15MBH-A

ELIDAH

MCK

LOC

27700

HAYMAKER 31-15TFH-A

ELIDAH

MCK

LOC

27701

HAYMAKER 21-15MBH

ELIDAH

MCK

LOC

27706

HAYMAKER 44-22MBH-A

ELIDAH

MCK

LOC

27707

HAYMAKER 44-22TFH-B

ELIDAH

MCK

LOC

27708

HAYMAKER 44-22MBH-B

ELIDAH

MCK

LOC

27709

HAYDON 44-22TFH-ULW

ELIDAH

MCK

LOC

27715

SIVERTSON RUSH 14-10MBH ULW

ELIDAH

MCK

LOC

27716

BULLRUSH 14-10TFH

ELIDAH

MCK

LOC

27806

CCU OLYMPIAN 21-2MBH

CORRAL CREEK

DUN

LOC

27807

CCU OLYMPIAN 31-2TFH

CORRAL CREEK

DUN

LOC

27808

CCU OLYMPIAN 31-2MBH

CORRAL CREEK

DUN

LOC

27820

ROLFSRUD BULL 44-10MBH ULW

ELIDAH

MCK

LOC

27889

CCU OLYMPIAN 11-2MBH

CORRAL CREEK

DUN

LOC

27890

CCU OLYMPIAN 11-2TFH

CORRAL CREEK

DUN

LOC

28043

BULLRUSH 21-10PH

ELIDAH

MCK

LOC

28073

SHENANDOAH 14-36TFH

KEENE

MCK

LOC

28074

SHENANDOAH 14-36MBH ULW

KEENE

MCK

LOC

White, Samantha J.

From:

White, Samantha J.

Sent:

Thursday, April 17, 2014 1:34 PM

To:

'Donna.J.Williams@ConocoPhillips.com'

Subject:

Filter Sock Permit Stipulation

Attachments:

Burlington Res O&G Co.pdf

Note attached documents referring to permit stipulations regarding permits which have not been spud. Contact Kevin

Connors, Dave Hvinden or Todd Holweger with questions 7013288020.

Thank you!

1

September 23, 2011

DONNA WILLIAMS

SR. REGULATORY ADVISOR

BURLINGTON RESOURCES OIL & GAS COMPANY LP

P.O. BOX 51810

MIDLAND, TX 79710

RE:

HORIZONTAL WELL

MANCHESTER 14-9MBH

SWSW Section 9-147N-97W

Dunn County

Well File # 21574

Dear DONNA :

Pursuant to Commission Order No. 16610, approval to drill the above captioned well is hereby given. The

approval is granted on the condition that all portions of the well bore not isolated by cement, be no closer than

the 200' setback from the north & south boundaries and 500' setback from the east & west boundaries within the

1280 acre spacing unit consisting of Sec. 4 & 9-147N-97W.

PERMIT STIPULATIONS: Tool error is not required pursuant to order. BURLINGTON RES O&G

CO must contact NDIC Field Inspector Jennifer Bickler at 701-290-8633 prior to location construction.

Location Construction Commencement (Three Day Waiting Period)

Operators shall not commence operations on a drill site until the 3rd business day following publication of the

approved drilling permit on the NDIC - OGD Daily Activity Report. If circumstances require operations to

commence before the 3rd business day following publication on the Daily Activity Report, the waiting period may

be waived by the Director. Application for a waiver must be by sworn affidavit providing the information

necessary to evaluate the extenuating circumstances, the factors of NDAC 43-02-03-16.2 (1), (a)-(f), and any other

information that would allow the Director to conclude that in the event another owner seeks revocation of the

drilling permit, the applicant should retain the permit.

Permit Fee & Notification

Payment was received in the amount of $100 via credit card. It is requested that notification be given

immediately upon the spudding of the well. This information should be relayed to the Oil & Gas Division,

Bismarck, via telephone. The following information must be included: Well name, legal location, permit number,

drilling contractor, company representative, date and time of spudding. Office hours are 8:00 a.m. to 12:00 p.m.

and 1:00 p.m. to 5:00 p.m. Central Time. Our telephone number is (701) 328-8020, leave a message if after hours

or on the weekend.

DONNA WILLIAMS

September 23, 2011

Page 2

Survey Requirements for Horizontal, Horizontal Re-entry, and Directional Wells

NDAC Section 43-02-03-25 (Deviation Tests and Directional Surveys) states in part (that) the survey

contractor shall file a certified copy of all surveys with the director free of charge within thirty days of completion.

Surveys must be submitted as one electronic copy, or in a form approved by the director. However, the director

may require the directional survey to be filed immediately after completion if the survey is needed to conduct the

operation of the director's office in a timely manner. Certified surveys must be submitted via email in one adobe

document, with a certification cover page to certsurvey@nd.gov.

Survey points shall be of such frequency to accurately determine the entire location of the well bore.

Confidential status

Your request for confidential status of all information furnished to the Director, or his representatives, is

hereby granted. Such information, except production runs, shall remain confidential for six months commencing

on the date the well is spud.

Confidential status notwithstanding, the Director and his representatives shall have access to all well

records wherever located. Your company personnel, or any person performing work for your company shall

permit the Director and his representatives to come upon any lease, property, well, or drilling rig operated or

controlled by them, complying with all safety rules, and to inspect the records and operation of such wells and to

have access at all times to any and all records of wells. The Commission's field personnel periodically inspect

producing and drilling wells. Any information regarding such wells shall be made available to them at any time

upon request. The information so obtained by the field personnel shall be maintained in strict confidence and

shall be available only to the Commission and its staff.

Drilling pit

Please be advised approval for use of a drilling reserve pit or drill cuttings pit on this site is contingent on

site specific conditions and special pit closure requirements may apply.

Surface casing cement

Tail cement utilized on surface casing must have a minimum compressive strength of 500 psi within 12

hours, and tail cement utilized on production casing must have a minimum compressive strength of 500 psi

before drilling the plug or initiating tests.

Logs

NDAC Section 43-02-03-31 requires the running of a Cement Bond Log from which the presence of

cement can be determined in every well in which production or intermediate casing has been set and a Gamma

Ray Log must be run from total depth to ground level elevation of the well bore. All logs must be submitted as

one paper copy and one digital copy in LAS (Log ASCII) format, or a format approved by the Director. Image

logs that include, but are not limited to, Mud Logs, Cement Bond Logs, and Cyberlook Logs, cannot be produced

in their entirety as LAS (Log ASCII) files. To create a solution and establish a standard format for industry to

follow when submitting image logs, the Director has given approval for the operator to submit an image log as a

TIFF (*.tif) formatted file. The TIFF (*.tif) format will be accepted only when the log cannot be produced in its

entirety as a LAS (Log ASCII) file format. The digital copy may be submitted on a standard CD, or attached to an

email sent to digitallogs@nd.gov Thank you for your cooperation.

Sincerely,

Nathaniel Erbele

Petroleum Resource Specialist

$33/,&$7,21)253(50,772'5,//+25,=217$/:(//)250+

INDUSTRIAL COMMISSION OF NORTH DAKOTA

OIL AND GAS DIVISION

600 EAST BOULEVARD DEPT 405

BISMARCK, ND 58505-0840

SFN 54269 (08-2005)

PLEASE READ INSTRUCTIONS BEFORE FILLING OUT FORM.

PLEASE SUBMIT THE ORIGINAL AND ONE COPY.

Type of Work

Type of Well

Approximate Date Work Will Start

Confidential Status

New Location

Oil & Gas

10 / 15 / 2011

Yes

Operator

Telephone Number

BURLINGTON RESOURCES OIL & GAS COMPANY LP

432-688-6943

Address

City

State

Zip Code

P.O. BOX 51810

MIDLAND

TX

79710

 Notice has been provided to the owner of any

 This well is not located within five hundred

permanently occupied dwelling within 1,320 feet.

feet of an occupied dwelling.

:(//,1)250$7,21 ,IPRUHWKDQRQHODWHUDOSURSRVHG enter data for additional laterals on page 2)

Well Name

Well Number

MANCHESTER

14-9MBH

Surface Footages

Qtr-Qtr

Section

Township

Range

County

855 FL

S

355 F W L

SWSW

9

147 1

97

:

Dunn

Longstring Casing Point Footages

Qtr-Qtr

Section

Township

Range

County

1264 F S

L

520 F W L

SWSW

9

147 1

97

:

Dunn

Longstring Casing Point Coordinates From Well Head

Azimuth

Longstring Total Depth

409 N From WH

165 E From WH

22

11471 Feet MD

11219 Feet TVD

Bottom Hole Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

220 F N

LF

660

W L

LOT4

4

147 1

97

:

Dunn

Bottom Hole Coordinates From Well Head

KOP Lateral 1

Azimuth Lateral 1

Estimated Total Depth Lateral 1

9475 N From WH

305 E From WH

10778 Feet MD

90

20555 Feet MD

11219 Feet TVD

Latitude of Well Head

Longitude of Well Head

NAD Reference

Description of

(Subject to NDIC Approval)

47

33

41.41

-103

03

19.77

NAD83

Spacing Unit:

Sec. 4 & 9-147N-97W

Ground Elevation

Acres in Spacing/Drilling Unit

Spacing/Drilling Unit Setback Requirement

Industrial Commission Order

2490 Feet Above S.L.

1280

200 Feet N/S

500

Feet

Feet E/W

16610

North Line of Spacing/Drilling Unit

South Line of Spacing/Drilling Unit

East Line of Spacing/Drilling Unit

West Line of Spacing/Drilling Unit

5301 Feet

5253 Feet

10536 Feet

10550 Feet

Objective Horizons

Pierre Shale Top

BAKKEN

2155

Proposed

Size

Weight

Depth

Cement Volume

127(6XUIDFHKROHPXVWEHGULOOHGZLWKIUHVKZDWHU

Surface Casing

9  5/8

36 Lb./Ft. 2355

Feet

796

Sacks

DQGVXUIDFHFDVLQJPXVWEHFHPHQWHGEDFNWRVXUIDFH

Proposed

Size

Weight(s)

Longstring Total Depth

Cement Volume

Cement Top

Top Dakota Sand

Longstring Casing

732

Lb./Ft.

11471 Feet MD

11219 Feet TVD

856

Sacks

5071 Feet

5571

Feet

Base of Last

Last

Salt (If

Charles Applicable)

Salt (If Applicable)

127(,QWHUPHGLDWHRUORQJVWULQJFDVLQJVWULQJPXVWEHFHPHQWHGDERYHWKHWRS'DNRWD*URXS6DQG

9582 Feet

Proposed Logs

GR/CBL

Drilling Mud Type (Vertical Hole - Below Surface Casing)

Drilling Mud Type (Lateral)

Invert

Brine

Survey Type in Vertical Portion of Well

Survey Frequency: Build Section

Survey Frequency: Lateral

Survey Contractor

MWD Every 100 Feet

30 Feet

90 Feet

PATHFINDER

127($*DPPD5D\ORJPXVWEHUXQWRJURXQGVXUIDFHDQGD&%/PXVWEHUXQRQLQWHUPHGLDWHRUORQJVWULQJFDVLQJVWULQJLIVHW

6XUYH\VDUHUHTXLUHGDWOHDVWHYHU\IHHWLQWKHEXLOGVHFWLRQDQGHYHU\IHHWLQWKHODWHUDOVHFWLRQRIDKRUL]RQWDOZHOO 0HDVXUHPHQW

LQDFFXUDFLHVDUHQRWFRQVLGHUHGZKHQGHWHUPLQLQJFRPSOLDQFHZLWKWKHVSDFLQJGULOOLQJXQLWERXQGDU\VHWEDFNUHTXLUHPHQWH[FHSW LQWKH

IROORZLQJVFHQDULRV:KHQWKHDQJOHEHWZHHQWKHZHOOERUHDQGWKHUHVSHFWLYHERXQGDU\LVGHJUHHVRUOHVVRU,I,QGXVWU\VWDQGDUG

PHWKRGVDQGHTXLSPHQWDUHQRWXWLOL]HG&RQVXOWWKHDSSOLFDEOHILHOGRUGHUIRUH[FHSWLRQV

,IPHDVXUHPHQWLQDFFXUDFLHVDUHUHTXLUHGWREHFRQVLGHUHGD0:'PHDVXUHPHQWLQDFFXUDF\ZLOOEHDSSOLHGWRWKHKRUL]RQWDOSRUWLRQRIWKHZHOO

ERUH7KLVPHDVXUHPHQWLQDFFXUDF\LVDSSOLHGWRWKHZHOOERUHIURP.23WR7'

5(48,5('$77$&+0(176&HUWLILHGVXUYH\RU
VSODWKRUL]RQWDOVHFWLRQSODWHVWLPDWHGJHRORJLFDOWRSV proposed mud/cementing plan,

directional plot/plan, $100 fee.

6HH3DJHIRU&RPPHQWVVHFWLRQDQGVLJQDWXUHEORFN

Page 2

SFN 54269 (08-2005)

&200(176$'',7,21$/,1)250$7,21$1'25/,672)$77$&+0(176

4 1/2" 13.5# LINER {UNCEMENTED} 11471-20555. PLEASE CHARGE PERMIT FEE TO CREDIT CARD ON FILE.

Lateral 2

KOP Lateral 2

Azimuth Lateral 2

Estimated Total Depth Lateral 2

KOP Coordinates From Well Head

Feet MD

Feet MD

Feet TVD

From WH

From WH

Formation Entry Point Coordinates From Well Head

Bottom Hole Coordinates From Well Head

From WH

From WH

From WH

From WH

KOP Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

FL

FL

1

:

Bottom Hole Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

FL

F

L

1

:

Lateral 3

KOP Lateral 3

Azimuth Lateral 3

Estimated Total Depth Lateral 3

KOP Coordinates From Well Head

Feet MD

Feet MD

Feet TVD

From WH

From WH

Formation Entry Point Coordinates From Well Head

Bottom Hole Coordinates From Well Head

From WH

From WH

From WH

From WH

KOP Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

F

L

FL

1

:

Bottom Hole Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

F

L

FL

1

:

Lateral 4

KOP Lateral 4

Azimuth Lateral 4

Estimated Total Depth Lateral 4

KOP Coordinates From Well Head

Feet MD

Feet MD

Feet TVD

From WH

From WH

Formation Entry Point Coordinates From Well Head

Bottom Hole Coordinates From Well Head

From WH

From WH

From WH

From WH

KOP Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

FL

FL

1

:

Bottom Hole Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

FL

FL

1

:

Lateral 5

KOP Lateral 5

Azimuth Lateral 5

Estimated Total Depth Lateral 5

KOP Coordinates From Well Head

Feet MD

Feet MD

Feet TVD

From WH

From WH

Formation Entry Point Coordinates From Well Head

Bottom Hole Coordinates From Well Head

From WH

From WH

From WH

From WH

KOP Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

FL

FL

1:

Bottom Hole Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

FL

FL

1

:

Date

I hereby swear or affirm the information provided is true, complete and correct as determined from all available records.

09 / 19 / 2011

Signature

Printed Name

Title

ePermit

DONNA WILLIAMS

SR. REGULATORY ADVISOR

Email Address(es)

)2567$7(86(21/<

)2567$7(86(21/<

Permit and File Number

API Number

Date Approved

21574

  025  01479

9 / 23 / 2011

Field

By

LITTLE KNIFE

Nathaniel Erbele

Pool

Permit Type

Title

BAKKEN

DEVELOPMENT

Petroleum Resource Specialist

Document Outline

Form 4

4-Intent-Well Name Change

4-Intent-Permit Cancellation

4-Intent-Permit Renewal

4-Intent-Permit Renewal

4-intent-permit renewal

4-intent- OH log waiver

Form 1


text:
#ifndef WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_EXTERNAL_VIDEO_RENDER_EXTERNAL_IMPL_H_
#define WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_EXTERNAL_VIDEO_RENDER_EXTERNAL_IMPL_H_

#include "i_video_render.h"
#include "critical_section_wrapper.h"
#include "module_common_types.h"

namespace webrtc {

// Class definitions
class VideoRenderExternalImpl: IVideoRender, public VideoRenderCallback
{
public:
    /*
     *   Constructor/destructor
     */

    VideoRenderExternalImpl(const WebRtc_Word32 id,
                            const VideoRenderType videoRenderType,
                            void* window, const bool fullscreen);

    virtual ~VideoRenderExternalImpl();

    virtual WebRtc_Word32 Init();

    virtual WebRtc_Word32 ChangeUniqueId(const WebRtc_Word32 id);

    virtual WebRtc_Word32 ChangeWindow(void* window);

    /**************************************************************************
     *
     *   Incoming Streams
     *
     ***************************************************************************/

    virtual VideoRenderCallback
            * AddIncomingRenderStream(const WebRtc_UWord32 streamId,
                                      const WebRtc_UWord32 zOrder,
                                      const float left, const float top,
                                      const float right, const float bottom);

    virtual WebRtc_Word32
            DeleteIncomingRenderStream(const WebRtc_UWord32 streamId);

    virtual WebRtc_Word32
            GetIncomingRenderStreamProperties(const WebRtc_UWord32 streamId,
                                              WebRtc_UWord32& zOrder,
                                              float& left, float& top,
                                              float& right, float& bottom) const;

    /**************************************************************************
     *
     *   Start/Stop
     *
     ***************************************************************************/

    virtual WebRtc_Word32 StartRender();

    virtual WebRtc_Word32 StopRender();

    /**************************************************************************
     *
     *   Properties
     *
     ***************************************************************************/

    virtual VideoRenderType RenderType();

    virtual RawVideoType PerferedVideoType();

    virtual bool FullScreen();

    virtual WebRtc_Word32
            GetGraphicsMemory(WebRtc_UWord64& totalGraphicsMemory,
                              WebRtc_UWord64& availableGraphicsMemory) const;

    virtual WebRtc_Word32
            GetScreenResolution(WebRtc_UWord32& screenWidth,
                                WebRtc_UWord32& screenHeight) const;

    virtual WebRtc_UWord32 RenderFrameRate(const WebRtc_UWord32 streamId);

    virtual WebRtc_Word32 SetStreamCropping(const WebRtc_UWord32 streamId,
                                            const float left, const float top,
                                            const float right,
                                            const float bottom);

    virtual WebRtc_Word32 ConfigureRenderer(const WebRtc_UWord32 streamId,
                                            const unsigned int zOrder,
                                            const float left, const float top,
                                            const float right,
                                            const float bottom);

    virtual WebRtc_Word32 SetTransparentBackground(const bool enable);

    virtual WebRtc_Word32 SetText(const WebRtc_UWord8 textId,
                                  const WebRtc_UWord8* text,
                                  const WebRtc_Word32 textLength,
                                  const WebRtc_UWord32 textColorRef,
                                  const WebRtc_UWord32 backgroundColorRef,
                                  const float left, const float top,
                                  const float right, const float bottom);

    virtual WebRtc_Word32 SetBitmap(const void* bitMap,
                                    const WebRtc_UWord8 pictureId,
                                    const void* colorKey, const float left,
                                    const float top, const float right,
                                    const float bottom);

    // VideoRenderCallback
    virtual WebRtc_Word32 RenderFrame(const WebRtc_UWord32 streamId,
                                      VideoFrame& videoFrame);

private:
    WebRtc_Word32 _id;
    CriticalSectionWrapper& _critSect;
    bool _fullscreen;
};

} //namespace webrtc

#endif  // WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_EXTERNAL_VIDEO_RENDER_EXTERNAL_IMPL_H_


text:
<?php

namespace Braintree\Error;

use Braintree\Util;

/**
 * error object returned as part of a validation error collection
 * provides read-only access to $attribute, $code, and $message
 *
 * <b>== More information ==</b>
 *
 * // phpcs:ignore Generic.Files.LineLength
 * See our {@link https://developer.paypal.com/braintree/docs/reference/general/result-objects#error-results developer docs} for more information
 */
class Validation
{
    private $_attribute;
    private $_code;
    private $_message;

    // phpcs:ignore PEAR.Commenting.FunctionComment.Missing
    public function __construct($attributes)
    {
        $this->_initializeFromArray($attributes);
    }

    // phpcs:ignore PEAR.Commenting.FunctionComment.Missing
    private function _initializeFromArray($attributes)
    {
        foreach ($attributes as $name => $value) {
            $varName = "_$name";
            $this->$varName = Util::delimiterToCamelCase($value, '_');
        }
    }

    // phpcs:ignore PEAR.Commenting.FunctionComment.Missing
    public function __get($name)
    {
        $varName = "_$name";
        return isset($this->$varName) ? $this->$varName : null;
    }
}


text:
package com.google.api.codegen.viewmodel;

import com.google.api.codegen.SnippetSetRunner;
import com.google.auto.value.AutoValue;

@AutoValue
public abstract class DynamicLangXApiSubclassView implements ViewModel {
  public abstract String templateFileName();

  public abstract FileHeaderView fileHeader();

  public abstract String protoFilename();

  public abstract String name();

  public abstract String parentName();

  public abstract String outputPath();

  @Override
  public String resourceRoot() {
    return SnippetSetRunner.SNIPPET_RESOURCE_ROOT;
  }

  public static Builder newBuilder() {
    return new AutoValue_DynamicLangXApiSubclassView.Builder();
  }

  @AutoValue.Builder
  public abstract static class Builder {
    public abstract Builder templateFileName(String val);

    public abstract Builder fileHeader(FileHeaderView val);

    public abstract Builder protoFilename(String simpleName);

    public abstract Builder name(String val);

    public abstract Builder parentName(String val);

    public abstract Builder outputPath(String val);

    public abstract DynamicLangXApiSubclassView build();
  }
}


text:
#if !UNITY_4_7
using System.IO;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;

namespace Assets.Realtime.Ortc.Editor
{
    public class OrtcIOSPostProcessor
    {
        [PostProcessBuild]
        public static void ChangeXcodePlist(BuildTarget buildTarget, string pathToBuiltProject)
        {
            if (buildTarget == BuildTarget.iOS)
            {
                // Get plist
                string plistPath = pathToBuiltProject + "/Info.plist";
                PlistDocument plist = new PlistDocument();
                plist.ReadFromString(File.ReadAllText(plistPath));

                // Get root
                PlistElementDict rootDict = plist.root;

                // IOS9 security
                var bgModes = rootDict.CreateDict("NSAppTransportSecurity");
                bgModes.SetBoolean("NSAllowsArbitraryLoads", true);
                var exModes = bgModes.CreateDict("NSExceptionDomains");
                var rt = exModes.CreateDict("realtime.co");
                rt.SetBoolean("NSIncludesSubdomains", true);
                rt.SetBoolean("NSTemporaryExceptionAllowsInsecureHTTPLoads", true);

                //Obj Linker
                string projPath = pathToBuiltProject + "/Unity-iPhone.xcodeproj/project.pbxproj";
                PBXProject proj = new PBXProject();
                proj.ReadFromString(File.ReadAllText(projPath));
                string targetGUID = proj.TargetGuidByName("Unity-iPhone");
                proj.AddBuildProperty(targetGUID, "OTHER_LDFLAGS", "-ObjC");
                File.WriteAllText(projPath, proj.WriteToString());

                //libicucore
                proj.AddFileToBuild(targetGUID, proj.AddFile("usr/lib/libicucore.tbd", "Framework/libicucore.tbd", PBXSourceTree.Sdk));
                proj.AddFileToBuild(targetGUID, proj.AddFile("usr/lib/libicucore.tbd", "Framework/libicucore.tbd", PBXSourceTree.Build));

                proj.AddFrameworkToProject(targetGUID, "Security.framework", true);
                proj.AddFrameworkToProject(targetGUID, "libicucore.tbd", true);

                // Write to file
                File.WriteAllText(plistPath, plist.WriteToString());
            }
        }
    }
}
#endif


text:
/*
 * Third party
 */
//= ../../bower_components/jquery/dist/jquery.min.js
//= ../../bower_components/jquery-ui/jquery-ui.min.js
//= ../../bower_components/slideout.js/dist/slideout.min.js
//= ../../bower_components/ladda/dist/spin.min.js
//= ../../bower_components/ladda/dist/ladda.min.js

/*
 * Custom scripts
 */
$(function(){
//= partials/bid_page.js
//= partials/slideout_menu.js
//= partials/sort_page.js
//= partials/vendor_page.js
//= partials/finance_page.js
//= partials/auction_actions.js
//= partials/part_actions.js
});
//= partials/core_functions.js


text:
// <copyright file="MultipleTargetsException.cs">
//      Copyright (c) Arseni Mourzenko 2015. The code is distributed under the MIT License.
// </copyright>
// <author id="5c2316d3-622a-4a8d-816d-5054a48f415f">Arseni Mourzenko</author>

namespace MockEverything.Engine
{
    using System;
    using System.Diagnostics.CodeAnalysis;
    using System.Runtime.Serialization;
    using System.Security.Permissions;

    /// <summary>
    /// Represents an exception thrown when the proxy assembly refers to multiple target assemblies.
    /// </summary>
    [Serializable]
    public class MultipleTargetsException : Exception
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="MultipleTargetsException"/> class.
        /// </summary>
        [ExcludeFromCodeCoverage]
        public MultipleTargetsException()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="MultipleTargetsException"/> class.
        /// </summary>
        /// <param name="message">The message that describes the error.</param>
        [ExcludeFromCodeCoverage]
        public MultipleTargetsException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="MultipleTargetsException"/> class.
        /// </summary>
        /// <param name="message">A message that describes the current exception.</param>
        /// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
        [ExcludeFromCodeCoverage]
        public MultipleTargetsException(string message, Exception innerException)
            : base(message, innerException)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="MultipleTargetsException"/> class with the specified serialization information and context.
        /// </summary>
        /// <param name="info">The data necessary to serialize or deserialize an object.</param>
        /// <param name="context">Description of the source and destination of the specified serialized stream.</param>
        [ExcludeFromCodeCoverage]
        protected MultipleTargetsException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }

        /// <summary>
        /// When overridden in a derived class, sets the <see cref="System.Runtime.Serialization.SerializationInfo"/> with information about the exception.
        /// </summary>
        /// <param name="info">The <see cref="System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
        /// <param name="context">The <see cref="System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination.</param>
        /// <exception cref="System.ArgumentNullException">The info parameter is a null reference (Nothing in Visual Basic).</exception>
        [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
        [ExcludeFromCodeCoverage]
        public override void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            base.GetObjectData(info, context);
        }
    }
}


text:
/* UINavigationBar with first 3 back buttons as
 * custom UIButtons and remaining back buttons as
 * default BarButtonItems.
 */
#bar1 {
    background-color : rgb(30,30,30);
    border-width     : 1px;
    border-color     : gray;
    color            : white;
    font-family      : "Helvetica";
    font-size        : 20px;
    font-weight      : bold;
}

#bar1 back-bar-button
{
    top                 : 6;
    size                : 115 31;
    shape               : arrow-button-left;
    content-edge-inset  : 0 0 0 6;
    border-radius       : 5px;
    font-family         : "American Typewriter";
    font-weight         : bold;
    font-size           : 12px;
    font-weight         : normal;
    color               : #ffffff;
    background-color    : #008ed4;
}

/* Make the first three back buttons
    different colors */
#myLeftNavButton2 {
     background-color : red;
}
#myLeftNavButton3 {
     background-color : green;
}
#myLeftNavButton4 {
     background-color : blue;
}

/* Use percentages on linear gradient to
   uniformly distribute colors */
#bar2 {
   background-image : linear-gradient(
                        #E23622 49%,
                        #FC684E 50%
                      );
   border-radius    : 10px;
   border-width     : 2px;
   border-color     : gray;
   color            : black;
   font-family      : "Helvetica";
   font-size        : 20px;
   font-weight      : bold;
}

/* Create horizontal gradient with angle
   on linear gradient */
#bar3 {
   background-image : linear-gradient(
                        -90deg,
                        #1e5799 0%,
                        #2989d8 50%,
                        #207cca 51%,
                        #7db9e8 100%
                        );
   border-radius    : 10px;
   border-width     : 2px;
   border-color     : gray;
   color            : black;
   font-family      : "Helvetica";
   font-size        : 20px;
   font-weight      : bold;
}

/* horizontal linear gradient with solid fill colors */
#bar4 {
   background-image : linear-gradient(
                        #0a0a0a 0%,
                        #0c0c0c 50%,
                        #222 51%,
                        #333 100%
                      );
   border-radius    : 10px;
   border-width     : 2px;
   border-color     : gray;
   color            : gray;
   font-family      : "Helvetica";
   font-size        : 20px;
   font-weight      : bold;
}

#navPushButton {
   border-radius    : 5px;
   font-family      : "American Typewriter";
   font-size        : 13px;
   font-weight      : bold;
   color            : #ffffff;
   background-color : #008ed4;
}


text:
<?php
session_start();
session_destroy();// to destroying all previous sessions

if(isset($_POST['login'])){
session_start();
include("connection.php");
$UID=strtoupper($_POST['Username']);
$PASSWORD=$_POST['Password'];
$query="SELECT TEACHERID,PASSWORD FROM teachermas where teacherid='$UID'";
$result=mysqli_query($link,$query);
if(mysqli_affected_rows($link)>0){

 $data=mysqli_fetch_array($result,MYSQLI_ASSOC);
 $DBPASS=$data['PASSWORD'];
$query="SELECT FNAME,LNAME FROM teacherdetail where teacherid='$UID'";
$result=mysqli_query($link,$query);

if(mysqli_affected_rows($link)>0){
    $data=mysqli_fetch_array($result,MYSQLI_ASSOC);
    if($PASSWORD==$DBPASS){
        $_SESSION['utname']=$data['FNAME'];
        $_SESSION['utid']=$UID;
        header("location:s_teacher.php");
    }
    else{
                    $i=1;
    }
}
    else{
                    $i=2;
    }
}
else{
                    $i=3;
}
}
?>

<!DOCTYPE HTML>

<meta name="viewport" content="width=device-width,inital-scale=1" />
	<title>Faculty_login</title>
    <link rel="stylesheet" href="css/bootstrap.css" />

        <input type="button" class="btn btn-info myhomebtn" value="  Home  "/>

Faculty Login

<form class="form-horizontal" method="post" name="phpForm" action="<?php $_SERVER['PHP_SELF'];?>">
<fieldset>

  User Id   *  :

  <input id="username" name="Username" type="text"  placeholder="Enter UserId" class="form-control input-md" required="">

  Password   *  :

    <input id="password" name="Password" type="password" placeholder="Enter Password" class="form-control input-md" required="">

    <input type="checkbox" id="show" name="Show"  onchange="ShowHide()" /> Show Password
    Forgot Password?

    <input type="submit" id="login" name="login" class="btn btn-success" value="LOGIN" />
    <input type="reset" id="reset" name="reset" class="btn btn-danger" value="RESET" />

</fieldset>
</form>

<?php
if(isset($_POST['login'])){
    if($i==1){
        echo '';
    }
    else if($i==2){echo '';
        }

    else if($i==3){echo '';
        }
}
?>


text:
using Llvm.NET.Native;

namespace Llvm.NET.Values
{
    /// LLVM Global value
    public class GlobalValue
        : Constant
    {
        /// Visibility of this global value
        public Visibility Visibility
        {
            get
            {
                return ( Visibility )NativeMethods.GetVisibility( ValueHandle );
            }
            set
            {
                NativeMethods.SetVisibility( ValueHandle, ( LLVMVisibility )value );
            }
        }

        /// Linkage specification for this symbol
        public Linkage Linkage
        {
            get
            {
                return ( Linkage )NativeMethods.GetLinkage( ValueHandle );
            }
            set
            {
                NativeMethods.SetLinkage( ValueHandle, ( LLVMLinkage )value );
            }
        }

        /// Flag to indicate if this is an Unnamed address
        public bool UnnamedAddress
        {
            get
            {
                return NativeMethods.HasUnnamedAddr( ValueHandle );
            }
            set
            {
                NativeMethods.SetUnnamedAddr( ValueHandle, value );
            }
        }

        /// Flag to indicate if this is a declaration
        public bool IsDeclaration => NativeMethods.IsDeclaration( ValueHandle );

        /// Module containing this global value
        public NativeModule ParentModule => NativeType.Context.GetModuleFor( NativeMethods.GetGlobalParent( ValueHandle ) );

        internal GlobalValue( LLVMValueRef valueRef )
            : base( valueRef )
        {
        }
    }

    public static class GlobalValueExtensions
    {
        /// Visibility of this global value
        public static T Visibility<T>( this T self, Visibility value )
            where T : GlobalValue
        {
            self.Visibility = value;
            return self;
        }

        /// Linkage specification for this symbol
        public static T Linkage<T>( this T self, Linkage value )
            where T : GlobalValue
        {
            self.Linkage = value;
            return self;
        }
    }
}


text:
@class OrgApacheHarmonySecurityAsn1BerInputStream;

#include "J2ObjC_header.h"
#include "org/apache/harmony/security/asn1/ASN1StringType.h"

@interface OrgApacheHarmonySecurityAsn1ASN1Time : OrgApacheHarmonySecurityAsn1ASN1StringType {
}

- (instancetype)initWithInt:(jint)tagNumber;

- (id)getDecodedObjectWithOrgApacheHarmonySecurityAsn1BerInputStream:(OrgApacheHarmonySecurityAsn1BerInputStream *)inArg;

@end

J2OBJC_EMPTY_STATIC_INIT(OrgApacheHarmonySecurityAsn1ASN1Time)

CF_EXTERN_C_BEGIN
CF_EXTERN_C_END

J2OBJC_TYPE_LITERAL_HEADER(OrgApacheHarmonySecurityAsn1ASN1Time)

#endif // _OrgApacheHarmonySecurityAsn1ASN1Time_H_


text:
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/ec2/EC2Request.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ec2/model/Filter.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>

namespace Aws
{
namespace EC2
{
namespace Model
{

  /**
   */
  class AWS_EC2_API DescribeAvailabilityZonesRequest : public EC2Request
  {
  public:
    DescribeAvailabilityZonesRequest();

    // Service request name is the Operation name which will send this request out,
    // each operation should has unique request name, so that we can get operation's name from this request.
    // Note: this is not true for response, multiple operations may have the same response name,
    // so we can not get operation's name from response.
    inline virtual const char* GetServiceRequestName() const override { return "DescribeAvailabilityZones"; }

    Aws::String SerializePayload() const override;

  protected:
    void DumpBodyToUrl(Aws::Http::URI& uri ) const override;

  public:

    /**
     *
The filters.

 group-name - For Availability
     * Zones, use the Region name. For Local Zones, use the name of the group
     * associated with the Local Zone (for example, us-west-2-lax-1) For
     * Wavelength Zones, use the name of the group associated with the Wavelength Zone
     * (for example, us-east-1-wl1-bos-wlz-1).

     * message - The Zone message.

     * opt-in-status - The opt-in status (opted-in, and
     * not-opted-in | opt-in-not-required).

     *
 parent-zoneID - The ID of the zone that handles some of the
     * Local Zone and Wavelength Zone control plane operations, such as API calls.

     *

 parent-zoneName - The ID of the zone that handles
     * some of the Local Zone and Wavelength Zone control plane operations, such as API
     * calls.

 region-name - The name of the Region for
     * the Zone (for example, us-east-1).

     * state - The state of the Availability Zone, the Local Zone, or the
     * Wavelength Zone (available).

     * zone-id - The ID of the Availability Zone (for example,
     * use1-az1), the Local Zone (for example,
     * usw2-lax1-az1), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     * zone-name - The name of the Availability Zone (for example,
     * us-east-1a), the Local Zone (for example,
     * us-west-2-lax-1a), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     */
    inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }

    /**
     *
The filters.

 group-name - For Availability
     * Zones, use the Region name. For Local Zones, use the name of the group
     * associated with the Local Zone (for example, us-west-2-lax-1) For
     * Wavelength Zones, use the name of the group associated with the Wavelength Zone
     * (for example, us-east-1-wl1-bos-wlz-1).

     * message - The Zone message.

     * opt-in-status - The opt-in status (opted-in, and
     * not-opted-in | opt-in-not-required).

     *
 parent-zoneID - The ID of the zone that handles some of the
     * Local Zone and Wavelength Zone control plane operations, such as API calls.

     *

 parent-zoneName - The ID of the zone that handles
     * some of the Local Zone and Wavelength Zone control plane operations, such as API
     * calls.

 region-name - The name of the Region for
     * the Zone (for example, us-east-1).

     * state - The state of the Availability Zone, the Local Zone, or the
     * Wavelength Zone (available).

     * zone-id - The ID of the Availability Zone (for example,
     * use1-az1), the Local Zone (for example,
     * usw2-lax1-az1), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     * zone-name - The name of the Availability Zone (for example,
     * us-east-1a), the Local Zone (for example,
     * us-west-2-lax-1a), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     */
    inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }

    /**
     *
The filters.

 group-name - For Availability
     * Zones, use the Region name. For Local Zones, use the name of the group
     * associated with the Local Zone (for example, us-west-2-lax-1) For
     * Wavelength Zones, use the name of the group associated with the Wavelength Zone
     * (for example, us-east-1-wl1-bos-wlz-1).

     * message - The Zone message.

     * opt-in-status - The opt-in status (opted-in, and
     * not-opted-in | opt-in-not-required).

     *
 parent-zoneID - The ID of the zone that handles some of the
     * Local Zone and Wavelength Zone control plane operations, such as API calls.

     *

 parent-zoneName - The ID of the zone that handles
     * some of the Local Zone and Wavelength Zone control plane operations, such as API
     * calls.

 region-name - The name of the Region for
     * the Zone (for example, us-east-1).

     * state - The state of the Availability Zone, the Local Zone, or the
     * Wavelength Zone (available).

     * zone-id - The ID of the Availability Zone (for example,
     * use1-az1), the Local Zone (for example,
     * usw2-lax1-az1), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     * zone-name - The name of the Availability Zone (for example,
     * us-east-1a), the Local Zone (for example,
     * us-west-2-lax-1a), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     */
    inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }

    /**
     *
The filters.

 group-name - For Availability
     * Zones, use the Region name. For Local Zones, use the name of the group
     * associated with the Local Zone (for example, us-west-2-lax-1) For
     * Wavelength Zones, use the name of the group associated with the Wavelength Zone
     * (for example, us-east-1-wl1-bos-wlz-1).

     * message - The Zone message.

     * opt-in-status - The opt-in status (opted-in, and
     * not-opted-in | opt-in-not-required).

     *
 parent-zoneID - The ID of the zone that handles some of the
     * Local Zone and Wavelength Zone control plane operations, such as API calls.

     *

 parent-zoneName - The ID of the zone that handles
     * some of the Local Zone and Wavelength Zone control plane operations, such as API
     * calls.

 region-name - The name of the Region for
     * the Zone (for example, us-east-1).

     * state - The state of the Availability Zone, the Local Zone, or the
     * Wavelength Zone (available).

     * zone-id - The ID of the Availability Zone (for example,
     * use1-az1), the Local Zone (for example,
     * usw2-lax1-az1), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     * zone-name - The name of the Availability Zone (for example,
     * us-east-1a), the Local Zone (for example,
     * us-west-2-lax-1a), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     */
    inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }

    /**
     *
The filters.

 group-name - For Availability
     * Zones, use the Region name. For Local Zones, use the name of the group
     * associated with the Local Zone (for example, us-west-2-lax-1) For
     * Wavelength Zones, use the name of the group associated with the Wavelength Zone
     * (for example, us-east-1-wl1-bos-wlz-1).

     * message - The Zone message.

     * opt-in-status - The opt-in status (opted-in, and
     * not-opted-in | opt-in-not-required).

     *
 parent-zoneID - The ID of the zone that handles some of the
     * Local Zone and Wavelength Zone control plane operations, such as API calls.

     *

 parent-zoneName - The ID of the zone that handles
     * some of the Local Zone and Wavelength Zone control plane operations, such as API
     * calls.

 region-name - The name of the Region for
     * the Zone (for example, us-east-1).

     * state - The state of the Availability Zone, the Local Zone, or the
     * Wavelength Zone (available).

     * zone-id - The ID of the Availability Zone (for example,
     * use1-az1), the Local Zone (for example,
     * usw2-lax1-az1), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     * zone-name - The name of the Availability Zone (for example,
     * us-east-1a), the Local Zone (for example,
     * us-west-2-lax-1a), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     */
    inline DescribeAvailabilityZonesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}

    /**
     *
The filters.

 group-name - For Availability
     * Zones, use the Region name. For Local Zones, use the name of the group
     * associated with the Local Zone (for example, us-west-2-lax-1) For
     * Wavelength Zones, use the name of the group associated with the Wavelength Zone
     * (for example, us-east-1-wl1-bos-wlz-1).

     * message - The Zone message.

     * opt-in-status - The opt-in status (opted-in, and
     * not-opted-in | opt-in-not-required).

     *
 parent-zoneID - The ID of the zone that handles some of the
     * Local Zone and Wavelength Zone control plane operations, such as API calls.

     *

 parent-zoneName - The ID of the zone that handles
     * some of the Local Zone and Wavelength Zone control plane operations, such as API
     * calls.

 region-name - The name of the Region for
     * the Zone (for example, us-east-1).

     * state - The state of the Availability Zone, the Local Zone, or the
     * Wavelength Zone (available).

     * zone-id - The ID of the Availability Zone (for example,
     * use1-az1), the Local Zone (for example,
     * usw2-lax1-az1), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     * zone-name - The name of the Availability Zone (for example,
     * us-east-1a), the Local Zone (for example,
     * us-west-2-lax-1a), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     */
    inline DescribeAvailabilityZonesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}

    /**
     *
The filters.

 group-name - For Availability
     * Zones, use the Region name. For Local Zones, use the name of the group
     * associated with the Local Zone (for example, us-west-2-lax-1) For
     * Wavelength Zones, use the name of the group associated with the Wavelength Zone
     * (for example, us-east-1-wl1-bos-wlz-1).

     * message - The Zone message.

     * opt-in-status - The opt-in status (opted-in, and
     * not-opted-in | opt-in-not-required).

     *
 parent-zoneID - The ID of the zone that handles some of the
     * Local Zone and Wavelength Zone control plane operations, such as API calls.

     *

 parent-zoneName - The ID of the zone that handles
     * some of the Local Zone and Wavelength Zone control plane operations, such as API
     * calls.

 region-name - The name of the Region for
     * the Zone (for example, us-east-1).

     * state - The state of the Availability Zone, the Local Zone, or the
     * Wavelength Zone (available).

     * zone-id - The ID of the Availability Zone (for example,
     * use1-az1), the Local Zone (for example,
     * usw2-lax1-az1), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     * zone-name - The name of the Availability Zone (for example,
     * us-east-1a), the Local Zone (for example,
     * us-west-2-lax-1a), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     */
    inline DescribeAvailabilityZonesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }

    /**
     *
The filters.

 group-name - For Availability
     * Zones, use the Region name. For Local Zones, use the name of the group
     * associated with the Local Zone (for example, us-west-2-lax-1) For
     * Wavelength Zones, use the name of the group associated with the Wavelength Zone
     * (for example, us-east-1-wl1-bos-wlz-1).

     * message - The Zone message.

     * opt-in-status - The opt-in status (opted-in, and
     * not-opted-in | opt-in-not-required).

     *
 parent-zoneID - The ID of the zone that handles some of the
     * Local Zone and Wavelength Zone control plane operations, such as API calls.

     *

 parent-zoneName - The ID of the zone that handles
     * some of the Local Zone and Wavelength Zone control plane operations, such as API
     * calls.

 region-name - The name of the Region for
     * the Zone (for example, us-east-1).

     * state - The state of the Availability Zone, the Local Zone, or the
     * Wavelength Zone (available).

     * zone-id - The ID of the Availability Zone (for example,
     * use1-az1), the Local Zone (for example,
     * usw2-lax1-az1), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     * zone-name - The name of the Availability Zone (for example,
     * us-east-1a), the Local Zone (for example,
     * us-west-2-lax-1a), or the Wavelength Zone (for example,
     * us-east-1-wl1-bos-wlz-1).

 zone-type
     * - The type of zone, for example, local-zone.

     */
    inline DescribeAvailabilityZonesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }

    /**
     *
The names of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline const Aws::Vector<Aws::String>& GetZoneNames() const{ return m_zoneNames; }

    /**
     *
The names of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline bool ZoneNamesHasBeenSet() const { return m_zoneNamesHasBeenSet; }

    /**
     *
The names of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline void SetZoneNames(const Aws::Vector<Aws::String>& value) { m_zoneNamesHasBeenSet = true; m_zoneNames = value; }

    /**
     *
The names of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline void SetZoneNames(Aws::Vector<Aws::String>&& value) { m_zoneNamesHasBeenSet = true; m_zoneNames = std::move(value); }

    /**
     *
The names of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline DescribeAvailabilityZonesRequest& WithZoneNames(const Aws::Vector<Aws::String>& value) { SetZoneNames(value); return *this;}

    /**
     *
The names of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline DescribeAvailabilityZonesRequest& WithZoneNames(Aws::Vector<Aws::String>&& value) { SetZoneNames(std::move(value)); return *this;}

    /**
     *
The names of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline DescribeAvailabilityZonesRequest& AddZoneNames(const Aws::String& value) { m_zoneNamesHasBeenSet = true; m_zoneNames.push_back(value); return *this; }

    /**
     *
The names of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline DescribeAvailabilityZonesRequest& AddZoneNames(Aws::String&& value) { m_zoneNamesHasBeenSet = true; m_zoneNames.push_back(std::move(value)); return *this; }

    /**
     *
The names of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline DescribeAvailabilityZonesRequest& AddZoneNames(const char* value) { m_zoneNamesHasBeenSet = true; m_zoneNames.push_back(value); return *this; }

    /**
     *
The IDs of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline const Aws::Vector<Aws::String>& GetZoneIds() const{ return m_zoneIds; }

    /**
     *
The IDs of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline bool ZoneIdsHasBeenSet() const { return m_zoneIdsHasBeenSet; }

    /**
     *
The IDs of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline void SetZoneIds(const Aws::Vector<Aws::String>& value) { m_zoneIdsHasBeenSet = true; m_zoneIds = value; }

    /**
     *
The IDs of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline void SetZoneIds(Aws::Vector<Aws::String>&& value) { m_zoneIdsHasBeenSet = true; m_zoneIds = std::move(value); }

    /**
     *
The IDs of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline DescribeAvailabilityZonesRequest& WithZoneIds(const Aws::Vector<Aws::String>& value) { SetZoneIds(value); return *this;}

    /**
     *
The IDs of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline DescribeAvailabilityZonesRequest& WithZoneIds(Aws::Vector<Aws::String>&& value) { SetZoneIds(std::move(value)); return *this;}

    /**
     *
The IDs of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline DescribeAvailabilityZonesRequest& AddZoneIds(const Aws::String& value) { m_zoneIdsHasBeenSet = true; m_zoneIds.push_back(value); return *this; }

    /**
     *
The IDs of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline DescribeAvailabilityZonesRequest& AddZoneIds(Aws::String&& value) { m_zoneIdsHasBeenSet = true; m_zoneIds.push_back(std::move(value)); return *this; }

    /**
     *
The IDs of the Availability Zones, Local Zones, and Wavelength Zones.

     */
    inline DescribeAvailabilityZonesRequest& AddZoneIds(const char* value) { m_zoneIdsHasBeenSet = true; m_zoneIds.push_back(value); return *this; }

    /**
     *
Include all Availability Zones, Local Zones, and Wavelength Zones regardless
     * of your opt-in status.

If you do not use this parameter, the results
     * include only the zones for the Regions where you have chosen the option to opt
     * in.

     */
    inline bool GetAllAvailabilityZones() const{ return m_allAvailabilityZones; }

    /**
     *
Include all Availability Zones, Local Zones, and Wavelength Zones regardless
     * of your opt-in status.

If you do not use this parameter, the results
     * include only the zones for the Regions where you have chosen the option to opt
     * in.

     */
    inline bool AllAvailabilityZonesHasBeenSet() const { return m_allAvailabilityZonesHasBeenSet; }

    /**
     *
Include all Availability Zones, Local Zones, and Wavelength Zones regardless
     * of your opt-in status.

If you do not use this parameter, the results
     * include only the zones for the Regions where you have chosen the option to opt
     * in.

     */
    inline void SetAllAvailabilityZones(bool value) { m_allAvailabilityZonesHasBeenSet = true; m_allAvailabilityZones = value; }

    /**
     *
Include all Availability Zones, Local Zones, and Wavelength Zones regardless
     * of your opt-in status.

If you do not use this parameter, the results
     * include only the zones for the Regions where you have chosen the option to opt
     * in.

     */
    inline DescribeAvailabilityZonesRequest& WithAllAvailabilityZones(bool value) { SetAllAvailabilityZones(value); return *this;}

    /**
     *
Checks whether you have the required permissions for the action, without
     * actually making the request, and provides an error response. If you have the
     * required permissions, the error response is DryRunOperation.
     * Otherwise, it is UnauthorizedOperation.

     */
    inline bool GetDryRun() const{ return m_dryRun; }

    /**
     *
Checks whether you have the required permissions for the action, without
     * actually making the request, and provides an error response. If you have the
     * required permissions, the error response is DryRunOperation.
     * Otherwise, it is UnauthorizedOperation.

     */
    inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }

    /**
     *
Checks whether you have the required permissions for the action, without
     * actually making the request, and provides an error response. If you have the
     * required permissions, the error response is DryRunOperation.
     * Otherwise, it is UnauthorizedOperation.

     */
    inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }

    /**
     *
Checks whether you have the required permissions for the action, without
     * actually making the request, and provides an error response. If you have the
     * required permissions, the error response is DryRunOperation.
     * Otherwise, it is UnauthorizedOperation.

     */
    inline DescribeAvailabilityZonesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}

  private:

    Aws::Vector<Filter> m_filters;
    bool m_filtersHasBeenSet;

    Aws::Vector<Aws::String> m_zoneNames;
    bool m_zoneNamesHasBeenSet;

    Aws::Vector<Aws::String> m_zoneIds;
    bool m_zoneIdsHasBeenSet;

    bool m_allAvailabilityZones;
    bool m_allAvailabilityZonesHasBeenSet;

    bool m_dryRun;
    bool m_dryRunHasBeenSet;
  };

} // namespace Model
} // namespace EC2
} // namespace Aws


text:
/**
 * Created by khjan on 2017-04-17.
 */
import {Component, ContentChild, Directive, Input} from '@angular/core';

@Directive({selector: 'GroupTitle'})
export class GroupTitle{
    @Input() value : string;
}

@Component({
    selector : 'my-button',
    template : `<button (click)="hello()">{{buttonValue}}</button>`
})
export class childButtonCmp{
    @Input() value : string;
    get buttonValue() : string { return this.value;}
    hello() { alert('hello');}
}

@Component({
    selector : 'button-group',
    template: `
        <div>{{getTitle}}</div>
        <my-button value="버튼1"></my-button>
        <my-button value="버튼2"></my-button>
        <my-button value="버튼3"></my-button>`
})
export class ButtonGroup{
    @ContentChild(GroupTitle) groupTitle : GroupTitle;
    get getTitle() : string { return this.groupTitle.value;}
}

@Component({
    selector : 'app-contentchild',
    template: `
        <button-group>
            <GroupTitle value="버튼 그룹"></GroupTitle>
        </button-group>`
})
export class ContentChildComp {}


text:
package com.greenpepper.util;

public class Timer
{

	private long start;
	private long finish;
	private boolean running;

	public Timer()
	{
	}

	public Timer start()
	{
		start = System.currentTimeMillis();
		running = true;
		return this;
	}

	public Timer stop()
	{
		finish = System.currentTimeMillis();
		running = false;
		return this;
	}

	public long elapse()
	{
		if (running)
		{
			return finish - start;
		}
		else if (start == 0)
		{
			return 0;
		}
		else
		{
			return System.currentTimeMillis() - start;
		}
	}

	public String toString()
	{
		return elapse() + " ms.";
	}
}


text:
<img src="./icon/appIcon.png" width="100">

noah will let you know the water level of the nearest river in the menu bar.

![demo](https://github.com/Noah0x0/noah/blob/media/demo-20170819/media/demo-20170819.gif)

## :droplet: Getting Started

```sh
# Clone this repository
$ git clone git@github.com:Noah0x0/noah.git

# Go into the repository
$ cd noah

# Install dependencies
$ yarn install

# Run the app
$ yarn start
```

## :droplet: Credits

by [FontAwesome](http://fontawesome.io/)

## :droplet: Downloads

You can download beta version for mac.

Also you can download demonstration version mac/win

https://drive.google.com/open?id=0B6uzpRVjk9MVUkQ2OXNjWE16WFE


text:
require 'test/unit/rr'

class TestFinsTcpProtocolOnOffline < Test::Unit::TestCase
  include Protocol::Omron

  def setup
    @protocol = FinsTcpProtocol.new host:'localhost', log_level: :debug
    Timeout.timeout(0.5) do
      @running = !!@protocol.open
    end
  rescue Timeout::Error
  end

  def teardown
    #@protocol.set_bits_to_device([false] * 8, FxDevice.new("M3000")) if @running
    @protocol.close
  end

  def test_query_node
    omit_if(@running)
    packet = [ "FINS".bytes.to_a,  0, 0, 0, 0x10,  0, 0, 0, 1,  0, 0, 0, 0,  0, 0, 0, 1,  0, 0, 0, 2].flatten
    stub(@protocol).receive{ packet }
    stub(@protocol).send_packet
    @protocol.query_node
    assert_equal 1, @protocol.source_node
  end

end


text:
package jobserver

import "github.com/pivotal-golang/lager"

type Server struct {
	logger lager.Logger
}

func NewServer(
	logger lager.Logger,
) *Server {
	return &Server{
		logger: logger,
	}
}


text:
require 'spec_helper'
require 'rails_deprecation_log_analyser/classifier/shared_examples'

module RailsDeprecationLogAnalyser
  module Classifier
    RSpec.describe 'equality_comparison_beween_parameters_and_hash' do
      it_behaves_like 'a simple classifier' do
        let(:classifier_name) { 'equality_comparison_beween_parameters_and_hash' }
        let(:deprecation_warning) { "Comparing equality between `ActionController::Parameters` and a `Hash` is deprecated and will be removed in Rails 5.1. Please only do comparisons between instances of `ActionController::Parameters`. If you need to compare to a hash, first convert it using `ActionController::Parameters#new`." }
      end
    end
  end
end


text:
<?php

namespace modules\users\services;

use common\exceptions\UserNotFoundException;
use \common\models\UserRecord;
use \modules\users\models\User as UserModel;
use \yii\base\Object;

/**
 * Try to make services instead of God model...
 * @package modules\users\services
 */
class Users extends Object {

    /** @var  \modules\users\models\Users */
    private $user;

    /** @var  \common\models\UserRecord */
    private $userRecord;

    public static function findAllQuery()
    {
        return UserRecord::find();
    }

    public static function getStatuses($status = null)
    {
        return UserModel::getStatuses($status);
    }

    public function findById($id)
    {
        $this->userRecord = UserRecord::findById($id);
        if (!$this->userRecord) {
            throw new UserNotFoundException;
        }

        $this->user = new UserModel($id);
        $this->user->load(['Users' => $this->userRecord->toArray()]);

        return $this->user;
    }

    /**
     * @param $data array Yii post or get request
     * @return bool
     */
    public function setUserParams(array $data)
    {
        return $this->user->load($data);
    }

    /**
     * Saves user's data
     *
     * @return bool true on success
     */
    public function saveUser()
    {
        if ($this->user->password) {
            $this->userRecord->setScenario('passwordUpdate');
            $this->userRecord->password = $this->user->password;
        } else {
            $this->userRecord->setScenario('update');
            $this->userRecord->setAttributes($this->user->toArray());
        }

        return $this->userRecord->save();
    }

    public function deleteUser()
    {
        $this->userRecord->setScenario('update');
        $this->userRecord->status = UserRecord::STATUS_DELETED;

        return $this->userRecord->save();
    }

    public function getUserModel()
    {
        return $this->user;
    }
}


text:
'use strict';

const assert = require('assert');
let battle;

describe('Magnet Pull', function () {
	afterEach(function () {
		battle.destroy();
	});

	it('should prevent Steel-type Pokemon from switching out normally', function () {
		battle = BattleEngine.Battle.construct();
		battle.join('p1', 'Guest 1', 1, [{species: "Magnezone", ability: 'magnetpull', moves: ['soak', 'charge']}]);
		battle.join('p2', 'Guest 2', 1, [
			{species: "Heatran", ability: 'flashfire', moves: ['curse']},
			{species: "Starmie", ability: 'illuminate', moves: ['reflecttype']},
		]);
		battle.choose('p2', 'switch 2');
		battle.commitDecisions();
		assert.strictEqual(battle.p2.active[0].template.speciesid, 'heatran');
		battle.choose('p2', 'switch 2');
		battle.commitDecisions();
		assert.strictEqual(battle.p2.active[0].template.speciesid, 'starmie');
		battle.choose('p1', 'move 2');
		battle.commitDecisions(); // Reflect Type makes Starmie part Steel
		battle.choose('p2', 'switch 2');
		battle.commitDecisions();
		assert.strictEqual(battle.p2.active[0].template.speciesid, 'starmie');
	});

	it('should not prevent Steel-type Pokemon from switching out using moves', function () {
		battle = BattleEngine.Battle.construct();
		battle.join('p1', 'Guest 1', 1, [{species: "Magnezone", ability: 'magnetpull', moves: ['toxic']}]);
		battle.join('p2', 'Guest 2', 1, [
			{species: "Heatran", ability: 'flashfire', moves: ['batonpass']},
			{species: "Tentacruel", ability: 'clearbody', moves: ['rapidspin']},
		]);
		battle.commitDecisions();
		battle.choose('p2', 'switch 2');
		assert.strictEqual(battle.p2.active[0].template.speciesid, 'tentacruel');
	});

	it('should not prevent Pokemon immune to trapping from switching out', function () {
		battle = BattleEngine.Battle.construct();
		battle.join('p1', 'Guest 1', 1, [{species: "Magnezone", ability: 'magnetpull', moves: ['substitute']}]);
		battle.join('p2', 'Guest 2', 1, [
			{species: "Aegislash", ability: 'stancechange', moves: ['swordsdance']},
			{species: "Arcanine", ability: 'flashfire', moves: ['roar']},
		]);
		battle.choose('p2', 'switch 2');
		battle.commitDecisions();
		assert.strictEqual(battle.p2.active[0].template.speciesid, 'arcanine');
	});
});


text:
Run Kodi using docker as a server

This will allow you to
* serves files through the Kodi UPnP Library to your UPnP client/players (such as Kodi or Chromecast).
* Web access every time , or use with some tools like [htpc-manager](http://htpc.io/)
* Trigger library scan When you want using api or from sickbeard/sickrage/couchpotato/sonarr/radarr/...

### Preqrequisites:
* Docker (Follow the [installation instructions](https://docs.docker.com/))
* A [shared Library with mysql](https://kodi.wiki/view/MySQL) is higly recommended to shared library ( If you don't use UPnP)

### Quick start

1. Prepare a full kodi profile with the regular GUI version ( windows or linux )

If you require web access, make sure to enable this, and set the port to **8089**.
Because 8080 is default for http proxy , this docker image expose 8089

Advices for the profile:
* You don't need any display , personnaly I disable all menu and told kodi to start on settings
* As software fake display is use , every graphic change is cpu cost , disable library update progess ( Settings / Media / Library : Hide progress of library updates)
* Only configure scrapers , and set addons on auto update

2. Make a copy of the ~/.kodi directory ( destination  doesn't matter , this is just an example)

        $ cp -r ~./kodi ~/kodi-server-profile

2. Use prebuild docker image ([see here](https://hub.docker.com/r/celedhrim/kodi-server/))

  For the last stable version,

        $ docker pull celedhrim/kodi-server

  For a specific version,

        $ docker pull celedhrim/kodi-server:branchname

  | branchname           | Kodi branch | Kodi version | Ubuntu version       |
  |----------------------|-------------|--------------|----------------------|
  | `lastest` ( default) | matrix      | 19.4         | 18.04 (Bionic Beaver)|
  | `helix`              | helix       | 14.2         | 14.04 (Trusty Tahr)  |
  | `isengard`           | isengard    | 15.2         | 14.04 (Trusty Tahr)  |
  | `jarvis`             | jarvis      | 16.1         | 16.04 (Xenial Xerus) |
  | `krypton`            | krypton     | 17.6         | Archlinux            |
  | `leia`               | leia        | 18.9         | 18.04 (Bionic Beaver)|
  | `matrix`             | matrix      | 19.4         | 18.04 (Bionic Beaver)|
  | `experimental`       | krypton     | 17.0rc2      | 18.04 (Bionic Beaver)|

3. Run the image ( change the **/path/to/kodi-server-profile**)

        $ docker run -d --restart="always" --net=host -v /path/to/kodi-server-profile:/usr/share/kodi/portable_data celedhrim/kodi-server

   or if use specific branch

        $ docker run -d --restart="always" --net=host -v /path/to/kodi-server-profile:/usr/share/kodi/portable_data celedhrim/kodi-server:branchname

### Build the container yourself
    $ git clone https://github.com/Celedhrim/docker-kodi-server.git
    $ cd docker-kodi-server
    $ git checkout branchname
    $ docker build --rm=true -t $(whoami)/kodi-server .

Then proceed with the Quick start section.