text
stringlengths 1
22.8M
|
|---|
Strepsiceros may refer to:
Strepsiceros, a genus of butterflies in the family Tortricidae, synonym of Strepsicrates
Strepsiceros Rafinesque, 1815, a genus of mammals in the family Bovidae, synonym of Tragelaphus
Strepsiceros Smith, 1827, a genus of mammals in the family Bovidae, synonym of Tragelaphus
|
Beta Equulei, Latinized from β Equulei, is the Bayer designation for a solitary star in the northern constellation of Equuleus. It is faintly visible to the naked eye with an apparent visual magnitude of 5.16. The annual parallax shift is 11.27 mas, indicating a separation of around 289 light years from the Sun. It is drifting closer with a radial velocity of −11 km/s.
This is an ordinary A-type main sequence star with a stellar classification of A3 V. It has 2.7 times the mass of the Sun and about four times the Sun's radius. The star is around 600 million years old – 93% of the way through its main sequence lifetime – and is spinning with a projected rotational velocity of 58 km/s. It is radiating 78 times the luminosity of the Sun from its photosphere at an effective temperature of about 9,000 K. The star emits an infrared excess indicating the presence of a dusty debris disk. The mean temperature of the dust is 85 K, indicating the semimajor axis of its orbit is 104 AU.
β Equulei has four optical companions. They are not physically associated with the star described above.
References
External links
Equuleus
A-type main-sequence stars
Equulei, Beta
Equulei, 10
203562
105570
BD+06 4811
8178
|
WordGirl (stylized as W✪RD GIRL) is an American children's Flash animated superhero television series produced by the Soup2Nuts animation unit of Scholastic Entertainment for PBS Kids. The series began as a series of shorts entitled The Amazing Colossal Adventures of WordGirl that premiered on PBS Kids Go! on November 10, 2006, usually shown at the end of Maya & Miguel; the segment was then spun off into a new thirty-minute episodic series that premiered on September 3, 2007 on most PBS member stations. The series of shorts consisted of thirty episodes, with 130 episodes in the full half-hour series.
WordGirl creator Dorothea Gillim felt that most children's animation "underestimated [children's] sense of humor" and hoped to create a more intellectual show for young audiences.
By June 2014, many PBS stations had stopped airing WordGirl, opting to air more popular series throughout the summer. However, new episodes continued to air on select stations, with streaming options on the PBS Kids website and video app. The series ended with the two-part episode "Rhyme and Reason", which was released on August 7, 2015.
The show was created for children ages 4–9. By 2022, the show had gained a cult following through social media.
Background
WordGirl began in 2006 as a series of shorts airing immediately after Maya & Miguel, becoming an independent show in September 2007.
The show's creator, Dorothea Gillim, believes that children's shows often underestimate children's intelligence:
Gillim says she created the show, in part, with the idea that parents would watch the show with their children to support their learning.
Each eleven-minute segment in each episode (except for the first three episodes) begins with verbal instructions to listen for two words that will be used throughout the plot of that episode. The words (examples include “diversion,” “cumbersome,” and “idolize”) are chosen according to academic guidelines. The reasoning is that children can understand words like “cumbersome” when told that it means “big and heavy and awkward”.
PBS NewsHour anchor Jim Lehrer agreed to do a mock interview with WordGirl. Jack D. Ferraiolo, who developed the series with Gillim and served as the series' head writer in season one, received an Emmy for his work on WordGirl.
Rather than hiring writers experienced with children's television, the show's original writers' previous credits included The Onion and Family Guy. Narrator Chris Parnell had previously worked on Saturday Night Live.
Synopsis
The series follows WordGirl, a girl with superpowers whose secret identity is Becky Botsford, a student. WordGirl was born on the fictional planet Lexicon (also a term referring to the vocabulary of a language or to a dictionary) but was sent away after sneaking onto a spaceship and sleeping there. Captain Huggy Face, a pet chimpanzee who was a pilot in the Lexicon Air Force, piloted the ship, but lost control when WordGirl awoke, and crash-landed on Earth (more specifically in Fair City), a planet that affords WordGirl her superpowers, including flight and super strength. WordGirl utilizes these powers to save her adoptive home, using her downed spacecraft as a secret base of operations.
WordGirl was adopted and provided an alter ego by Tim and Sally Botsford, who gave her the name Becky. While in her alter ego, she has a younger brother, TJ, obsessed with WordGirl, but still unknowingly a typical sibling rival to Becky. The Botsford family keeps Captain Huggy Face as a pet, naming him Bob. Becky attends Woodview Elementary School, where she is close friends with Violet Heaslip and the school newspaper reporter Todd “Scoops” Ming.
WordGirl tries to balance her superhero activities with her "normal" life. She battles against an assortment of villains that include but are not limited to The Butcher, Chuck the Evil Sandwich Making Guy, Dr. Two-Brains, Granny May, Mr. Big, Tobey McCalister III, Amazing Rope Guy and The Whammer. The villains are all prone to malapropisms. At the same time, she must worry about maintaining her second life as Becky, keeping people from discovering the truth and living normal family situations.
Format
Often, short animated segments are shown in between and at the end of episodes. "What's Your Favorite Word?", ostensibly hosted by Todd "Scoops" Ming, is a short jingle and a series of vox populi interviews asking random children what their favorite words are and why. A short game show segment called "May I Have a Word?" (stylized as MAYIHAVEAWORD in the text bubble on Beau Handsome's wall) airs following each eleven-minute segment. This segment features the game show host, Beau Handsome, asking three contestants the definition of a particular word. The segment was created by Kelly Miyahara, Barry Sonnenfeld, and Ryan Raddatz.
Yet another segment features the interstitials announcer (Rodger Parsons) asking Captain Huggy Face for a visual demonstration of a certain word (such as "strenuous" or "flummoxed"). When Captain Huggy Face correctly demonstrates the meaning of the word, a definition is given, followed by a victory dance by the chimpanzee sidekick.
During the four-part episode, "The Rise of Miss Power", a four-segment "Pretty Princess Power Hour" sketch is shown between acts, filling in for the average two-segment "May I Have a Word?" sketch, presumably to fill the double-length (52 minutes) time slot.
Companion website
The companion site to WordGirl lives on PBS Kids, and was built by interactive firm Big Bad Tomato. It contains vocabulary-building games, a section where children can submit their favorite word, a video page with clips from the show (only available in the US due to legal reasons), a "Heroes and Villains" section with character biographies and activities, and a PBS Parents section with episode guides, lessons, a site map, and more activities to play at home. As of April 2022, the website is still active.
Voice cast
Comics
A series of WordGirl comics were also released by Boom! Studios' new KaBOOM! line. The names of the volumes and the stories within them are:
Coalition of Malice
Coalition of Malice -
Super Fans -
Incredible Shrinking Allowance
The Incredible Shrinking Allowance -
Fondue, Fondon't -
Word Up!
The Ham Van Makes the Man -
Think Big -
Fashion Disaster
Fashion Disaster -
Fort Wham-Ground -
Series overview
Awards
The show has received seven Daytime Emmy nominations, winning four for "Outstanding Writing in Animation" in 2008, 2012–2013 and Outstanding Writing in an Animated Program in 2015.
2008:
2008 Television Critics Association Award for Outstanding Achievement in Youth Programming, awarded July 19
2008 Daytime Emmy for Outstanding Writing in Animation
2009:
Learning Magazine 2009 Teacher's Choice Award for Families
2009 iParenting Media Award
Featured at the KIDS FIRST! Film Festival 2009
NY Festivals' 2009 TV Programming and Promotions award
2012:
2012 Daytime Emmy for Outstanding Writing in Animation
2013:
2013 Daytime Emmy for Outstanding Writing in Animation
2015:
2015: Daytime Emmy for Outstanding Writing in an Animated Program
Reception
The series was positively received. Emily Ashby of Common Sense Media described the series as having a "brainy heroine [who] uses vocab to outwit bad guys." She also called it an "entertaining animated series" with some cartoon violence and said that it is an "excellent...choice for young grade-schoolers."
In 2022, Collider attested that the "non-white, little girl superhero" protagonist of WordGirl began a superhero trend. The article attests that the generation who grew up watching WordGirl later demanded new and diverse Marvel heroes, such as Captain Marvel.
References
External links
WordGirl at Super3
2000s American animated television series
2007 American television series debuts
2010s American animated television series
2015 American television series endings
American children's animated action television series
American children's animated adventure television series
American children's animated comic science fiction television series
American children's animated education television series
American children's animated science fantasy television series
American children's animated superhero television series
American flash animated television series
Animated superheroine television shows
Animated television series about children
Animated television series about monkeys
Animated television series about families
Boom! Studios titles
Child superheroes
Elementary school television series
English-language education television programming
PBS Kids shows
PBS original programming
Reading and literacy television series
Television series by Soup2Nuts
Television series created by Dorothea Gillim
|
```javascript
;/*!store/Page.ts*/
amis.define("c3d9fbb",(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageStore=void 0;var a=e("2426036");t.PageStore=a.types.model("Page",{id:a.types.identifier,icon:"",path:"",label:"",schema:a.types.frozen({})}).views((function(e){return{}})).actions((function(e){return{updateSchema:function(t){e.schema=t}}}))}));
;/*!store/index.ts*/
amis.define("8586189",(function(e,t,n,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainStore=void 0;var a=e("849c8c1"),i=e("2426036"),r=e("c3d9fbb"),d=e("f317306"),c=1;t.MainStore=i.types.model("MainStore",{pages:i.types.optional(i.types.array(r.PageStore),[{id:"".concat(c),path:"hello-world",label:"Hello world",icon:"fa fa-file",schema:{type:"page",title:"Hello world",body:""}}]),theme:"cxd",asideFixed:!0,asideFolded:!1,offScreen:!1,addPageIsOpen:!1,preview:!1,isMobile:!1,schema:i.types.frozen()}).views((function(e){return{get fetcher(){return(0,i.getEnv)(e).fetcher},get notify(){return(0,i.getEnv)(e).notify},get alert(){return(0,i.getEnv)(e).alert},get copy(){return(0,i.getEnv)(e).copy}}})).actions((function(e){return{toggleAsideFolded:function(){e.asideFolded=!e.asideFolded},toggleAsideFixed:function(){e.asideFixed=!e.asideFixed},toggleOffScreen:function(){e.offScreen=!e.offScreen},setAddPageIsOpen:function(t){e.addPageIsOpen=t},addPage:function(t){e.pages.push(r.PageStore.create(a.__assign(a.__assign({},t),{id:"".concat(++c)})))},removePageAt:function(t){e.pages.splice(t,1)},updatePageSchemaAt:function(t){e.pages[t].updateSchema(e.schema)},updateSchema:function(t){e.schema=t},setPreview:function(t){e.preview=t},setIsMobile:function(t){e.isMobile=t},afterCreate:function(){if("undefined"!=typeof window&&window.localStorage){var t=window.localStorage.getItem("store");t&&(0,i.applySnapshot)(e,JSON.parse(t)),(0,d.reaction)((function(){return(0,i.getSnapshot)(e)}),(function(e){window.localStorage.setItem("store",JSON.stringify(e))}))}}}}))}));
;/*!route/index.tsx*/
amis.define("11207ed",(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("849c8c1"),l=a.__importDefault(e("cc4bbf0")),o=e("167c905"),u=e("f7998ad"),c=e("fc22630"),f=l.default.lazy((function(){return Promise.resolve().then((function(){return new Promise((function(t){e(["816c31c"],(function(e){t(a.__importStar(e))}))}))}))})),i=l.default.lazy((function(){return Promise.resolve().then((function(){return new Promise((function(t){e(["218f7cb"],(function(e){t(a.__importStar(e))}))}))}))}));t.default=(0,c.observer)((function(e){e.store;return l.default.createElement(u.HashRouter,null,l.default.createElement("div",{className:"routes-wrapper"},l.default.createElement(o.ToastComponent,{key:"toast",position:"top-right"}),l.default.createElement(o.AlertComponent,{key:"alert"}),l.default.createElement(l.default.Suspense,{fallback:l.default.createElement(o.Spinner,{overlay:!0,className:"m-t-lg",size:"lg"})},l.default.createElement(u.Switch,null,l.default.createElement(u.Redirect,{to:"/hello-world",from:"/",exact:!0}),l.default.createElement(u.Route,{path:"/edit/:id",component:i}),l.default.createElement(u.Route,{component:f})))))}))}));
;/*!App.tsx*/
amis.define("4c5556c",(function(e,t,r,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("849c8c1"),n=o.__importDefault(e("cc4bbf0")),f=e("fc22630"),i=e("167c905"),c=o.__importDefault(e("a5149e9")),u=e("8586189"),s=o.__importDefault(e("11207ed")),l=o.__importDefault(e("6f82c2d"));t.default=function(){var e=window.store=u.MainStore.create({},{fetcher:function(e){var t=e.url,r=e.method,a=e.data,o=e.config,n=e.headers;return(o=o||{}).headers=o.headers||n||{},o.withCredentials=!0,"post"!==r&&"put"!==r&&"patch"!==r?(a&&(o.params=a),c.default[r](t,o)):(a&&a instanceof FormData||!a||"string"==typeof a||a instanceof Blob||a instanceof ArrayBuffer||(a=JSON.stringify(a),o.headers["Content-Type"]="application/json"),c.default[r](t,a,o))},isCancel:function(e){return c.default.isCancel(e)},notify:function(e,t){i.toast[e]?i.toast[e](t,"error"===e?"":""):console.warn("[Notify]",e,t),console.log("[notify]",e,t)},alert:i.alert,confirm:i.confirm,copy:function(e,t){void 0===t&&(t={});var r=(0,l.default)(e,t);return r&&(!t||!0!==t.shutup)&&i.toast.info(""),r}});return n.default.createElement(f.Provider,{store:e},n.default.createElement(s.default,{store:e}))}}));
```
|
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "path_to_url">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Function template token_finder</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../string_algo/reference.html#header.boost.algorithm.string.finder_hpp" title="Header <boost/algorithm/string/finder.hpp>">
<link rel="prev" href="tail_finder.html" title="Function tail_finder">
<link rel="next" href="range_finder.html" title="Function range_finder">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="path_to_url">People</a></td>
<td align="center"><a href="path_to_url">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="tail_finder.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../string_algo/reference.html#header.boost.algorithm.string.finder_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="range_finder.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.algorithm.token_finder"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Function template token_finder</span></h2>
<p>boost::algorithm::token_finder — "Token" finder </p>
</div>
<h2 xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../string_algo/reference.html#header.boost.algorithm.string.finder_hpp" title="Header <boost/algorithm/string/finder.hpp>">boost/algorithm/string/finder.hpp</a>>
</span>
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> PredicateT<span class="special">></span>
<span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <span class="identifier">token_finder</span><span class="special">(</span><span class="identifier">PredicateT</span> Pred<span class="special">,</span>
<span class="identifier">token_compress_mode_type</span> eCompress <span class="special">=</span> <span class="identifier">token_compress_off</span><span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.3.9.12.9.4"></a><h2>Description</h2>
<p>Construct the <code class="computeroutput">token_finder</code>. The finder searches for a token specified by a predicate. It is similar to std::find_if algorithm, with an exception that it return a range of instead of a single iterator.</p>
<p>If "compress token mode" is enabled, adjacent matching tokens are concatenated into one match. Thus the finder can be used to search for continuous segments of characters satisfying the given predicate.</p>
<p>The result is given as an <code class="computeroutput">iterator_range</code> delimiting the match.</p>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="computeroutput">Pred</code></span></p></td>
<td><p>An element selection predicate </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">eCompress</code></span></p></td>
<td><p>Compress flag </p></td>
</tr>
</tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>An instance of the <code class="computeroutput">token_finder</code> object </p></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<table xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<code class="filename">LICENSE_1_0.txt</code> or copy at <a href="path_to_url" target="_top">path_to_url
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="tail_finder.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../string_algo/reference.html#header.boost.algorithm.string.finder_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="range_finder.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
```
|
San Uk Tsuen () is a village Ha Tsuen, Yuen Long District, Hong Kong.
Administration
San Uk Tsuen is a recognized village under the New Territories Small House Policy.
References
External links
Delineation of area of existing village San Uk Tsuen (Ha Tsuen) for election of resident representative (2019 to 2022)
Webpages about San Uk Tsuen:
Villages in Yuen Long District, Hong Kong
Ha Tsuen
|
Mustache is a 2023 Pakistani-American comedy-drama film written and directed by Imran J. Khan and starring Atharva Verma and Alicia Silverstone.
Cast
Atharva Verma as Ilyas
Rizwan Manji as Hameed
Meesha Shafi as Asiya
Ayana Manji as Yasmeen
Shaheryar Rana as Musa
Mojeane Sadr as Sadia
Alicia Silverstone as Miss Martin
Melody Cao as Liz
Krishna Manivannan as Arun
Hasan Minhaj as Hasan
Esa as young Ilyas
Release
The film premiered at South by Southwest on March 12, 2023.
Reception
Mimi Calzada of The Daily Texan gave the film a positive review and wrote, "Mustache makes for an outstanding directorial feature debut from Imran Khan, which hugely benefits from Verma’s charming and endearing performance. Easily relatable, laugh-out-loud funny and downright delightful, Mustache solidifies itself as one of the best films in the SXSW 2023 lineup."
Justin Lowe of The Hollywood Reporter also gave the film a positive review and wrote, "A religion-themed comedy can be a tricky proposition, even if the tone is predominantly respectful, but Khan strikes a satisfying balance between satire and deference that’s enjoyable without excessively pushing boundaries."
The film won the Audience Award in the Narrative Feature competition at South by Southwest.
References
External links
American comedy-drama films
|
Gross out is described as a movement in art (often with comical connotations), which is intended to shock the viewer(s) and disgust the wider audience by presenting them with controversial material (such as toilet humor and fetishes) that might be ill received by a mainstream audience. The content of the movement is not for the average art appreciatist.
Cinema
Features
Gross-out is a subgenre of comedy movies in which the makers employ humor that is willfully "tasteless" or even downright disgusting. It usually involves gratuitous nudity, unrealistic aggressiveness towards property or Schadenfreude. The movies are generally aimed at a younger audience aged between 18 and 24. One boon of this genre is that it provides an inexpensive way to make a movie "edgy" and to generate media attention for it.
History
In the United States, following the abolition of the film industry's censorious Production Code and its replacement with the MPAA film rating system in the late 1960s, some filmmakers began to experiment with subversive film comedies, which explicitly dealt with taboo subjects such as sex and other bodily functions. Noteworthy examples include 1972's Pink Flamingos (in which the central character eats dog excrement) and other films by John Waters, and 1974's sketch comedy film The Groove Tube. As these films emerged from the counterculture movement and gained a measure of audience success, they inspired more mainstream films to follow their example. However, long before the Production Code, early silent comedy film makers produced and attempted several 'gross-out' pictures to the disdain of early film reviewers. One such example is the lost Nell's Eugenic Wedding starring Fay Tincher and Tod Browning.
The label "gross-out movie" was first applied by the mainstream media to 1978's National Lampoon's Animal House, a comedy about the fraternity experience at US colleges. Its humor included explicit use of bodily functions (like projectile vomiting). It was a great box office success despite its limited production costs and thus started an industry trend. Since then, gross-out films increased in number, and became almost the norm for American comedy films. Some films of this genre could be aimed at teen audiences (such as Superbad, Porky's, American Pie or Eurotrip), while others are targeted at somewhat more mature audiences (such as Borat, The Hangover or Wedding Crashers).
Theatre
Gross-out theatre is practiced on stage, particularly in the Edinburgh Festival. However, it is also displayed in British theatres.
The prime examples of the above are the stage version of the contemporary drama Trainspotting by bestselling playwright and author Irvine Welsh; the controversial New York musical Urinetown by Kotis and Hollmann; the outrageous anarchistic schlockomedy (shock horror comedy) musical about a Manchester jobcentre Restart by Komedy Kollective; and performances by another United Kingdom-based act, Forced Entertainment, who devised the iconic theatrical gorefest Bloody Mess.
Art
American cartoonist Basil Wolverton invented his trademark "spaghetti and meatballs" style of artwork.
Various artists helped create a flourishing gross-out art scene, which began mainly in the 1990s, the most famous of which were Damien Hirst, known for encasing mutilated, rotting cattle in formaldehyde, and making art of endangered marine species such as sharks in formaldehyde tanks, and Tracey Emin, whose exhibit of an unmade bed featured used tampons, condoms and blood-stained underwear.
Music
Gross out themes are common in popular music genres, such as hip hop and hard rock, where shock value helps create notoriety. Bands include Gwar, Cannibal Corpse and Agoraphobic Nosebleed.
GG Allin Allin was infamous for his transgressive music act, which included eating excrement, mutilating himself and attacking audience members.
Similar themes are also sometimes conveyed in music videos, such as Gross Out, a single from indie/garage rock band, The Vines.
See also
Garbage Pail Kids
Off-color humor
Screwball comedy film
Teen movie
References
External links
Visual arts genres
Comedy
Film genres
Theatrical genres
Censorship
|
```javascript
var minimist = require('minimist')
, n = require('numbro')
// eslint-disable-next-line no-unused-vars
, colors = require('colors')
, objectifySelector = require('../lib/objectify-selector')
, engineFactory = require('../lib/engine')
module.exports = function (program, conf) {
program
.command('sell [selector]')
.allowUnknownOption()
.description('execute a sell order to the exchange')
.option('--pct <pct>', 'sell with this % of currency balance', Number, conf.sell_pct)
.option('--order_type <type>', 'order type to use (maker/taker)', /^(maker|taker)$/i, conf.order_type)
.option('--size <size>', 'sell specific size of currency')
.option('--markup_sell_pct <pct>', '% to mark up sell price', Number, conf.markup_sell_pct)
.option('--order_adjust_time <ms>', 'adjust ask on this interval to keep order competitive', Number, conf.order_adjust_time)
.option('--order_poll_time <ms>', 'poll order status on this interval', Number, conf.order_poll_time)
.option('--max_slippage_pct <pct>', 'avoid selling at a slippage pct above this float', conf.max_slippage_pct)
.option('--debug', 'output detailed debug info')
.action(function (selector, cmd) {
var s = {options: minimist(process.argv)}
var so = s.options
delete so._
Object.keys(conf).forEach(function (k) {
if (typeof cmd[k] !== 'undefined') {
so[k] = cmd[k]
}
})
so.debug = cmd.debug
so.sell_pct = cmd.pct
so.selector = objectifySelector(selector || conf.selector)
var order_types = ['maker', 'taker']
if (!order_types.includes(so.order_type)) {
so.order_type = 'maker'
}
so.mode = 'live'
so.strategy = conf.strategy
so.stats = true
var engine = engineFactory(s, conf)
engine.executeSignal('sell', function (err, order) {
if (err) {
console.error(err)
process.exit(1)
}
if (!order) {
console.error('not enough asset balance to sell!')
}
process.exit()
}, cmd.size)
function checkOrder () {
if (s.api_order) {
s.exchange.getQuote({product_id: s.product_id}, function (err, quote) {
if (err) {
throw err
}
console.log('order status: '.grey + s.api_order.status.green + ', ask: '.grey + n(s.api_order.price).format('0.00000000').yellow + ', '.grey + n(s.api_order.price).subtract(quote.ask).format('0.00000000').red + ' above best ask, '.grey + n(s.api_order.filled_size).divide(s.api_order.size).format('0.0%').green + ' filled'.grey)
})
}
else {
console.log('placing order...')
}
}
setInterval(checkOrder, conf.order_poll_time)
})
}
```
|
```java
package com.iota.iri.crypto.batched;
import com.iota.iri.crypto.Curl;
import com.iota.iri.crypto.SpongeFactory;
/**
* Creates {@link BatchedHasher} objects based on the required type.
*/
public class BatchedHasherFactory {
/**
* The specific implementations of a {@link BatchedHasher}.
*/
public enum Type {
BCTCURL81,
BCTCURL27,
FakeBatchedCURL81,
FakeBatchedCURL27,
}
/**
* Creates a new {@link BatchedHasher} instances with a default
* batch timeout of {@link BatchedHasher#DEFAULT_BATCH_TIMEOUT_MILLISECONDS}.
*
* @param type the specific implementation of the {@link BatchedHasher}
* @return the BatchedHasher instance
*/
public static BatchedHasher create(Type type) {
return create(type, BatchedHasher.DEFAULT_BATCH_TIMEOUT_MILLISECONDS);
}
/**
* Creates a new {@link BatchedHasher} instance.
*
* @param type the specific implementation of the {@link BatchedHasher}
* @return the BatchedHasher instance
*/
public static BatchedHasher create(Type type, int batchTimeoutMilliSecs) {
switch (type) {
case BCTCURL81:
return new BatchedBCTCurl(Curl.HASH_LENGTH, 81, batchTimeoutMilliSecs);
case BCTCURL27:
return new BatchedBCTCurl(Curl.HASH_LENGTH, 27, batchTimeoutMilliSecs);
case FakeBatchedCURL81:
return new FakeBatchedCurl(Curl.HASH_LENGTH, SpongeFactory.Mode.CURLP81);
case FakeBatchedCURL27:
return new FakeBatchedCurl(Curl.HASH_LENGTH, SpongeFactory.Mode.CURLP27);
default:
return null;
}
}
}
```
|
Palm Angels is a luxury fashion label founded in 2015 by Italian art director and photographer, Francesco Ragazzi who is also the former artistic director of Moncler. Palm Angels is part of the New Guards Group and has collaborated with brands such as Moncler Genius, Playboi Carti, BBC Ice Cream, Under Armour & Clarks.
History
The book, published by Rizzoli, features a collection of black and white photographs of the L.A. skateboarding scene, shot by Ragazzi and an introduction written by Pharrell Williams. The launch took place in Paris at the former concept store named Colette.
This led to the creations of a brand where the fascination for American culture merges with the Italian perspective, inspiring collections composed of deconstructed and comfortable shapes with unexpected sartorial details. The release of the book in 2014 kicked off the first ready-to-wear collection (Fall-Winter 2015), with a Spring-Summer and a Fall-Winter collection subsequently released every year.
Collaborations
In 2017, Palm Angels created a series of collaborations with brands such as Suicoke and Sundek.
In 2018, Palm Angels later teamed up with American brand, Vlone to design a small capsule of hoodies and also with Playboi Carti for a limited-edition capsule collection composed of tracksuits, t-shirts, a hoodie, and a denim jacket each emblazoned with a logo that reads “Palm Angels Die Punk”.
Soon after, Palm Angels launched its collaboration with BBC Ice Cream at The Webster NY and its first collaboration in the world of hotellerie with Setai Miami during Art Basel 2019. More recently, Palm Angels presented its Fall Winter 2020 collection in New York, unveiling the Palm Angles x C. & Clarks collaboration.
Palm Angels partnered with Haas F1 Team for the 2023 season, contributing to the design of the team's garages and race suits, as well as featuring their branding on the sides of their car's liveries.
References
Fashion accessory companies
Italian fashion
|
Michael Wilbon (; born ) is an American commentator for ESPN and former sportswriter and columnist for The Washington Post. He is an analyst for ESPN and has co-hosted Pardon the Interruption on ESPN since 2001.
Early life and education
Wilbon was born and raised in Chicago, Illinois. He graduated from St. Ignatius College Preparatory School in 1976 and received his journalism degree in 1980 from Northwestern University's Medill School of Journalism. While in college, Wilbon wrote for The Daily Northwestern.
Career
Newspapers
Wilbon began working for The Washington Post in 1980 after summer internships at the newspaper in 1979 and 1980. He covered college sports, Major League Baseball, the National Football League and the National Basketball Association before being promoted to full-time columnist in 1990. His column in the Post, which dealt as much with the culture of sports as the action on the court or field, appeared up to four times a week until he left to work full-time for ESPN on December 7, 2010.
In his career, Wilbon covered ten Summer and Winter Olympic Games for The Washington Post, every Super Bowl since 1987, nearly every Final Four since 1982 and each year's NBA Finals since . Notably, he was also the only reporter based outside of Hawaii to cover the historic basketball upset of top-ranked Virginia by then-NAIA member Chaminade in 1982 (he was in Honolulu to cover a college football bowl game).
During his time at the Post, Wilbon earned the reputation as one of "the best deadline writer[s] in American newspapers." In 2001, Wilbon was named the top sports columnist by the Society of Professional Journalists.
In recent years, Wilbon has become more known as an ESPN personality than as a reporter. On December 7, 2010, he wrote his last column for the Washington Post and officially dedicated full-time to work for ESPN and ABC.
Television
After contributing to ESPN's The Sports Reporters and other shows on the cable network, Wilbon began co-hosting ESPN's daily opinion forum Pardon the Interruption (PTI) with Tony Kornheiser on October 22, 2001. Wilbon was also a member of ABC's NBA Countdown (which he hosted with Jalen Rose, Bill Simmons and Magic Johnson), which was the pre-game show for the network's NBA telecasts.
In addition to his work at The Washington Post, PTI and ESPN, Wilbon appeared weekly on WRC-TV in Washington, D.C., with WRC Sports Director George Michael, and Pro Football Hall of Famers John Riggins and Sonny Jurgensen on Redskins Report during the football season. He also appeared with Michael, USA Today basketball writer David Dupree and Tony Kornheiser on Full Court Press during the basketball season. Both of these shows were canceled in December 2008 due to budget cuts. Wilbon also forged a close friendship with former Marshall and former NFL quarterback Byron Leftwich while the young passer was a standout player for HD Woodson in Washington, D.C.
In late 2006, Wilbon agreed to a multi-year contract extension with ESPN. After accepting the contract, Wilbon offered to resign from the Post, but the newspaper's chairman Don Graham and executive editor Len Downie both asked him to stay on. The network gained priority therein with regards to conflicts with his newspaper assignments. The first major conflict occurred on February 4, 2007, when Wilbon covered a Detroit Pistons–Cleveland Cavaliers game instead of Super Bowl XLI.
Personal life
Wilbon currently lives in Bethesda, Maryland, and also has a home in Scottsdale, Arizona. Wilbon and his wife Cheryl Johnson Wilbon had their first child, Matthew Raymond Wilbon, via surrogate on March 26, 2008. Kornheiser often refers to Matthew affectionately as "Lilbon."
Wilbon has a cousin, Travon Bellamy, who played for the University of Illinois football team. Former ABC News reporter Carole Simpson is Wilbon's cousin.
Wilbon suffered a heart attack on January 27, 2008. After complaining of chest pains, he was taken to a Scottsdale hospital where doctors performed an angioplasty. Wilbon is also a type-2 diabetic.
On August 10, 2008, during a Cubs–Cardinals game at Wrigley Field, Wilbon threw out the ceremonial first pitch and then sang "Take Me Out to the Ballgame" as part of the seventh-inning stretch. Footage of Wilbon wearing a tucked-in Cubs jersey and bouncing the pitch is frequently shown on Pardon The Interruption as a friendly teasing by Kornheiser.
In May 2009, Wilbon competed in a made-for-TV "King of Bowling" show against pro bowling star Wes Malott. Wilbon beat Malott by a score of 256–248, but Wilbon received a 57-pin handicap and Malott had to use a plastic ball.
Wilbon has served as a trustee of Northwestern University.
White House visit
On July 12, 2013, Wilbon, Kornheiser and Tony Reali (PTI statistician and de facto co-host) were guests at the White House. After lunch the trio met in the Oval Office with President Barack Obama.
References
External links
African-American sports journalists
American sports journalists
African-American writers
American sports radio personalities
American television sports announcers
ESPN people
National Basketball Association broadcasters
National Football League announcers
Medill School of Journalism alumni
St. Ignatius College Prep alumni
The Washington Post people
Writers from Chicago
Journalists from Washington, D.C.
Living people
Sportswriters from Illinois
Writers from Bethesda, Maryland
Year of birth missing (living people)
|
```makefile
PKG_NAME="libretro-mame2000"
PKG_VERSION="2ec60f6e1078cf9ba173e80432cc28fd4eea200f"
PKG_SHA256=your_sha256_hash
PKG_LICENSE="MAME"
PKG_SITE="path_to_url"
PKG_URL="path_to_url{PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="MAME - Multiple Arcade Machine Emulator"
PKG_TOOLCHAIN="make"
PKG_LIBNAME="mame2000_libretro.so"
PKG_LIBPATH="${PKG_LIBNAME}"
PKG_LIBVAR="MAME2000_LIB"
if [ "${ARCH}" = "arm" ]; then
PKG_MAKE_OPTS_TARGET="ARM=1 USE_CYCLONE=1 USE_DRZ80=1"
fi
makeinstall_target() {
mkdir -p ${SYSROOT_PREFIX}/usr/lib/cmake/${PKG_NAME}
cp ${PKG_LIBPATH} ${SYSROOT_PREFIX}/usr/lib/${PKG_LIBNAME}
echo "set(${PKG_LIBVAR} ${SYSROOT_PREFIX}/usr/lib/${PKG_LIBNAME})" >${SYSROOT_PREFIX}/usr/lib/cmake/${PKG_NAME}/${PKG_NAME}-config.cmake
}
```
|
Wilhelm Preus Sommerfeldt (7 November 1881 – 17 February 1957) was a Norwegian bibliographer and librarian. He was born in Kristiania, and was the grandson of ships designer Hakon Adelsteen Sommerfeldt. He worked for the University Library of Oslo. Among his responsibilities was the annual Norsk bokfortegnelse, and he established Norsk tidsskriftindex in 1918, and edited the 34 first volumes of the series (1918–1951). He was decorated Knight, First Class of the Order of St. Olav in 1951.
References
1881 births
1957 deaths
Librarians from Oslo
Norwegian bibliographers
|
```c
/*
* This file is part of GodMode9
*
* This program is free software: you can redistribute it and/or modify
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*
* along with this program. If not, see <path_to_url
*/
#include <types.h>
#include <spi.h>
#include "hw/nvram.h"
// returns manuf id, memory type and size
// size = (1 << id[2]) ?
// apparently unreliable on some Sanyo chips?
#define CMD_RDID 0x9F
#define CMD_READ 0x03
#define CMD_WREN 0x06
#define CMD_WRDI 0x04
#define CMD_RDSR 0x05
#define CMD_DPD 0xB9 // deep power down
#define CMD_RDP 0xAB // release from deep power down
static u32 NVRAM_SendStatusCommand(u32 cmd, u32 width)
{
u32 ret;
SPI_XferInfo xfer[2];
xfer[0].buf = &cmd;
xfer[0].len = 1;
xfer[0].read = false;
xfer[1].buf = &ret;
xfer[1].len = width;
xfer[1].read = true;
ret = 0;
SPI_DoXfer(SPI_DEV_NVRAM, xfer, 2, true);
return ret;
}
u32 NVRAM_Status(void)
{
return NVRAM_SendStatusCommand(CMD_RDSR, 1);
}
u32 NVRAM_ReadID(void)
{
return NVRAM_SendStatusCommand(CMD_RDID, 3);
}
void NVRAM_DeepStandby(void)
{
NVRAM_SendStatusCommand(CMD_DPD, 0);
}
void NVRAM_Wakeup(void)
{
NVRAM_SendStatusCommand(CMD_RDP, 0);
}
void NVRAM_Read(u32 address, u32 *buffer, u32 len)
{
SPI_XferInfo xfer[2];
u32 cmd;
address &= BIT(24) - 1;
cmd = __builtin_bswap32(address) | CMD_READ;
xfer[0].buf = &cmd;
xfer[0].len = 4;
xfer[0].read = false;
xfer[1].buf = buffer;
xfer[1].len = len;
xfer[1].read = true;
SPI_DoXfer(SPI_DEV_NVRAM, xfer, 2, true);
}
```
|
```c++
///////////////////////////////////////////////////////////////////////////////////
/// OpenGL Mathematics (glm.g-truc.net)
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
/// in the Software without restriction, including without limitation the rights
/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
/// copies of the Software, and to permit persons to whom the Software is
/// furnished to do so, subject to the following conditions:
///
/// The above copyright notice and this permission notice shall be included in
/// all copies or substantial portions of the Software.
///
/// Restrictions:
/// By making use of the Software for military purposes, you choose to make
/// a Bunny unhappy.
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
/// THE SOFTWARE.
///
/// @ref gtx_dual_quaternion
/// @file glm/gtx/dual_quaternion.hpp
/// @date 2013-02-10 / 2013-02-20
/// @author Maksim Vorobiev (msomeone@gmail.com)
///
/// @see core (dependence)
/// @see gtc_half_float (dependence)
/// @see gtc_constants (dependence)
/// @see gtc_quaternion (dependence)
///
/// @defgroup gtx_dual_quaternion GLM_GTX_dual_quaternion
/// @ingroup gtx
///
/// @brief Defines a templated dual-quaternion type and several dual-quaternion operations.
///
/// <glm/gtx/dual_quaternion.hpp> need to be included to use these functionalities.
///////////////////////////////////////////////////////////////////////////////////
#pragma once
// Dependency:
#include "../glm.hpp"
#include "../gtc/constants.hpp"
#include "../gtc/quaternion.hpp"
#if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
# pragma message("GLM: GLM_GTX_dual_quaternion extension included")
#endif
namespace glm
{
/// @addtogroup gtx_dual_quaternion
/// @{
template <typename T, precision P = defaultp>
struct tdualquat
{
// -- Implementation detail --
typedef T value_type;
typedef glm::tquat<T, P> part_type;
# ifdef GLM_META_PROG_HELPERS
static GLM_RELAXED_CONSTEXPR length_t components = 2;
static GLM_RELAXED_CONSTEXPR precision prec = P;
# endif//GLM_META_PROG_HELPERS
// -- Data --
glm::tquat<T, P> real, dual;
// -- Component accesses --
# ifdef GLM_FORCE_SIZE_FUNC
typedef size_t size_type;
/// Return the count of components of a dual quaternion
GLM_FUNC_DECL GLM_CONSTEXPR size_type size() const;
GLM_FUNC_DECL part_type & operator[](size_type i);
GLM_FUNC_DECL part_type const & operator[](size_type i) const;
# else
typedef length_t length_type;
/// Return the count of components of a dual quaternion
GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const;
GLM_FUNC_DECL part_type & operator[](length_type i);
GLM_FUNC_DECL part_type const & operator[](length_type i) const;
# endif//GLM_FORCE_SIZE_FUNC
// -- Implicit basic constructors --
GLM_FUNC_DECL tdualquat() GLM_DEFAULT_CTOR;
GLM_FUNC_DECL tdualquat(tdualquat<T, P> const & d) GLM_DEFAULT;
template <precision Q>
GLM_FUNC_DECL tdualquat(tdualquat<T, Q> const & d);
// -- Explicit basic constructors --
GLM_FUNC_DECL explicit tdualquat(ctor);
GLM_FUNC_DECL explicit tdualquat(tquat<T, P> const & real);
GLM_FUNC_DECL tdualquat(tquat<T, P> const & orientation, tvec3<T, P> const & translation);
GLM_FUNC_DECL tdualquat(tquat<T, P> const & real, tquat<T, P> const & dual);
// -- Conversion constructors --
template <typename U, precision Q>
GLM_FUNC_DECL GLM_EXPLICIT tdualquat(tdualquat<U, Q> const & q);
GLM_FUNC_DECL explicit tdualquat(tmat2x4<T, P> const & holder_mat);
GLM_FUNC_DECL explicit tdualquat(tmat3x4<T, P> const & aug_mat);
// -- Unary arithmetic operators --
GLM_FUNC_DECL tdualquat<T, P> & operator=(tdualquat<T, P> const & m) GLM_DEFAULT;
template <typename U>
GLM_FUNC_DECL tdualquat<T, P> & operator=(tdualquat<U, P> const & m);
template <typename U>
GLM_FUNC_DECL tdualquat<T, P> & operator*=(U s);
template <typename U>
GLM_FUNC_DECL tdualquat<T, P> & operator/=(U s);
};
// -- Unary bit operators --
template <typename T, precision P>
GLM_FUNC_DECL tdualquat<T, P> operator+(tdualquat<T, P> const & q);
template <typename T, precision P>
GLM_FUNC_DECL tdualquat<T, P> operator-(tdualquat<T, P> const & q);
// -- Binary operators --
template <typename T, precision P>
GLM_FUNC_DECL tdualquat<T, P> operator+(tdualquat<T, P> const & q, tdualquat<T, P> const & p);
template <typename T, precision P>
GLM_FUNC_DECL tdualquat<T, P> operator*(tdualquat<T, P> const & q, tdualquat<T, P> const & p);
template <typename T, precision P>
GLM_FUNC_DECL tvec3<T, P> operator*(tdualquat<T, P> const & q, tvec3<T, P> const & v);
template <typename T, precision P>
GLM_FUNC_DECL tvec3<T, P> operator*(tvec3<T, P> const & v, tdualquat<T, P> const & q);
template <typename T, precision P>
GLM_FUNC_DECL tvec4<T, P> operator*(tdualquat<T, P> const & q, tvec4<T, P> const & v);
template <typename T, precision P>
GLM_FUNC_DECL tvec4<T, P> operator*(tvec4<T, P> const & v, tdualquat<T, P> const & q);
template <typename T, precision P>
GLM_FUNC_DECL tdualquat<T, P> operator*(tdualquat<T, P> const & q, T const & s);
template <typename T, precision P>
GLM_FUNC_DECL tdualquat<T, P> operator*(T const & s, tdualquat<T, P> const & q);
template <typename T, precision P>
GLM_FUNC_DECL tdualquat<T, P> operator/(tdualquat<T, P> const & q, T const & s);
// -- Boolean operators --
template <typename T, precision P>
GLM_FUNC_DECL bool operator==(tdualquat<T, P> const & q1, tdualquat<T, P> const & q2);
template <typename T, precision P>
GLM_FUNC_DECL bool operator!=(tdualquat<T, P> const & q1, tdualquat<T, P> const & q2);
/// Returns the normalized quaternion.
///
/// @see gtx_dual_quaternion
template <typename T, precision P>
GLM_FUNC_DECL tdualquat<T, P> normalize(tdualquat<T, P> const & q);
/// Returns the linear interpolation of two dual quaternion.
///
/// @see gtc_dual_quaternion
template <typename T, precision P>
GLM_FUNC_DECL tdualquat<T, P> lerp(tdualquat<T, P> const & x, tdualquat<T, P> const & y, T const & a);
/// Returns the q inverse.
///
/// @see gtx_dual_quaternion
template <typename T, precision P>
GLM_FUNC_DECL tdualquat<T, P> inverse(tdualquat<T, P> const & q);
/// Converts a quaternion to a 2 * 4 matrix.
///
/// @see gtx_dual_quaternion
template <typename T, precision P>
GLM_FUNC_DECL tmat2x4<T, P> mat2x4_cast(tdualquat<T, P> const & x);
/// Converts a quaternion to a 3 * 4 matrix.
///
/// @see gtx_dual_quaternion
template <typename T, precision P>
GLM_FUNC_DECL tmat3x4<T, P> mat3x4_cast(tdualquat<T, P> const & x);
/// Converts a 2 * 4 matrix (matrix which holds real and dual parts) to a quaternion.
///
/// @see gtx_dual_quaternion
template <typename T, precision P>
GLM_FUNC_DECL tdualquat<T, P> dualquat_cast(tmat2x4<T, P> const & x);
/// Converts a 3 * 4 matrix (augmented matrix rotation + translation) to a quaternion.
///
/// @see gtx_dual_quaternion
template <typename T, precision P>
GLM_FUNC_DECL tdualquat<T, P> dualquat_cast(tmat3x4<T, P> const & x);
/// Dual-quaternion of low single-precision floating-point numbers.
///
/// @see gtx_dual_quaternion
typedef tdualquat<float, lowp> lowp_dualquat;
/// Dual-quaternion of medium single-precision floating-point numbers.
///
/// @see gtx_dual_quaternion
typedef tdualquat<float, mediump> mediump_dualquat;
/// Dual-quaternion of high single-precision floating-point numbers.
///
/// @see gtx_dual_quaternion
typedef tdualquat<float, highp> highp_dualquat;
/// Dual-quaternion of low single-precision floating-point numbers.
///
/// @see gtx_dual_quaternion
typedef tdualquat<float, lowp> lowp_fdualquat;
/// Dual-quaternion of medium single-precision floating-point numbers.
///
/// @see gtx_dual_quaternion
typedef tdualquat<float, mediump> mediump_fdualquat;
/// Dual-quaternion of high single-precision floating-point numbers.
///
/// @see gtx_dual_quaternion
typedef tdualquat<float, highp> highp_fdualquat;
/// Dual-quaternion of low double-precision floating-point numbers.
///
/// @see gtx_dual_quaternion
typedef tdualquat<double, lowp> lowp_ddualquat;
/// Dual-quaternion of medium double-precision floating-point numbers.
///
/// @see gtx_dual_quaternion
typedef tdualquat<double, mediump> mediump_ddualquat;
/// Dual-quaternion of high double-precision floating-point numbers.
///
/// @see gtx_dual_quaternion
typedef tdualquat<double, highp> highp_ddualquat;
#if(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
/// Dual-quaternion of floating-point numbers.
///
/// @see gtx_dual_quaternion
typedef highp_fdualquat dualquat;
/// Dual-quaternion of single-precision floating-point numbers.
///
/// @see gtx_dual_quaternion
typedef highp_fdualquat fdualquat;
#elif(defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
typedef highp_fdualquat dualquat;
typedef highp_fdualquat fdualquat;
#elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
typedef mediump_fdualquat dualquat;
typedef mediump_fdualquat fdualquat;
#elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && defined(GLM_PRECISION_LOWP_FLOAT))
typedef lowp_fdualquat dualquat;
typedef lowp_fdualquat fdualquat;
#else
# error "GLM error: multiple default precision requested for single-precision floating-point types"
#endif
#if(!defined(GLM_PRECISION_HIGHP_DOUBLE) && !defined(GLM_PRECISION_MEDIUMP_DOUBLE) && !defined(GLM_PRECISION_LOWP_DOUBLE))
/// Dual-quaternion of default double-precision floating-point numbers.
///
/// @see gtx_dual_quaternion
typedef highp_ddualquat ddualquat;
#elif(defined(GLM_PRECISION_HIGHP_DOUBLE) && !defined(GLM_PRECISION_MEDIUMP_DOUBLE) && !defined(GLM_PRECISION_LOWP_DOUBLE))
typedef highp_ddualquat ddualquat;
#elif(!defined(GLM_PRECISION_HIGHP_DOUBLE) && defined(GLM_PRECISION_MEDIUMP_DOUBLE) && !defined(GLM_PRECISION_LOWP_DOUBLE))
typedef mediump_ddualquat ddualquat;
#elif(!defined(GLM_PRECISION_HIGHP_DOUBLE) && !defined(GLM_PRECISION_MEDIUMP_DOUBLE) && defined(GLM_PRECISION_LOWP_DOUBLE))
typedef lowp_ddualquat ddualquat;
#else
# error "GLM error: Multiple default precision requested for double-precision floating-point types"
#endif
/// @}
} //namespace glm
#include "dual_quaternion.inl"
```
|
Mary Elizabeth Kail (1828 – January 28, 1890) was an American poet, and the editor of the Connotton Valley Times.
Biography
Mary was born Mary Elizabeth Harper in 1827 or 1828 in Washington, D.C., to Andrew Harper and Mary McDermott-Roe. His mother was the daughter of Cornelius McDermott-Roe, laborer in the employ of George Washington. Mary's father Andrew died young, possibly of malaria, while Mary and her sister Virginia Harper were children. Mary and Virginia relocated together to Carroll County, Ohio, and on May 18, 1843, Mary married Gabriel Kail (1814–1888). Mary and Gabriel had five children: Maria Bell Kail (1844–1917), Virginia Elizabeth Kail (1847–1917), Albert Kail (1856-?), Emma Kail (c1857-?), and actor Jay Wirt Kail (1861-?).
By 1878, Mary was editor of the Connotton Valley Times in Carroll County, Ohio. In the late 1880s, Mary was a clerk for the United States Department of Treasury. She lost her position September 1885 due to a change in administration.
Mary died January 28, 1890, in Washington, D.C., or in Ohio.
Publications
"His Footstep at the Door" (1872) with music by Horace E. Kimball
"The Hero of Our Wilderness" (1872) with music by Horace E. Kimball
"Our Silver Wedding Song" (1882)
Crown our heroes, and other poems (1887)
References
External links
Mary Elizabeth Kail at Hymnary.org
1828 births
1890 deaths
19th-century American poets
American women poets
19th-century American women writers
Poets from Washington, D.C.
|
Revsnes Island () is a distinctive forked island with two branches, lying just off Hamnenabben Head in the east part of Lutzow-Holm Bay. Mapped by Norwegian cartographers from air photos taken by the Lars Christensen Expedition, 1936–37, and named Revsnes (fox's nose) because of its shape.
See also
List of antarctic and sub-antarctic islands
Islands of Queen Maud Land
Prince Harald Coast
|
SBRI Healthcare is a programme based in Twickenham, established to support technological innovations that tackle unmet needs within the NHS. It awards development grants to innovative companies.
The programme started in 2008. From 2013/2014 to 2015/2016 it has been funded by NHS England and awarded an average of £17.5 million per year to small businesses in the UK. RAND Europe evaluated the programme in 2017. The successful companies reported obstacles to the uptake of their products, including resistance to innovation in the NHS, and complex and bureaucratic procurement systems. They needed resources to complete development and obtain regulatory approval.
It runs two rounds of funding competitions a year, managed by individual Academic Health Science Networks. Companies are invited to bid for to develop solutions for specific health needs. The successful companies generally get between £700,000 and £1 million each for developing and testing their products. There is a preparatory feasibility funding package.
My mhealth was awarded £1,059,107 for its COPD patient self-management, and patient management system in 2013.
PA Consulting Group produced a report on the SBRI in September 2018 which estimated that it had generated £30 million savings for the NHS by improved self care and reduced use of services. It supported 1,050 jobs in small companies, raised more than £179 million in funding and delivered 60 products to the market.
References
Science and technology in the United Kingdom
|
```java
/*
This file is part of the iText (R) project.
Authors: Apryse Software.
This program is offered under a commercial and under the AGPL license.
For commercial licensing, contact us at path_to_url For AGPL licensing, see below.
AGPL licensing:
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
along with this program. If not, see <path_to_url
*/
package com.itextpdf.pdfa.checker;
import com.itextpdf.kernel.pdf.PdfAConformanceLevel;
import com.itextpdf.kernel.pdf.PdfDictionary;
import com.itextpdf.kernel.pdf.PdfName;
import com.itextpdf.kernel.pdf.PdfStream;
import com.itextpdf.pdfa.exceptions.PdfAConformanceException;
import com.itextpdf.pdfa.exceptions.PdfaExceptionMessageConstant;
import com.itextpdf.test.ExtendedITextTest;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Tag;
@Tag("UnitTest")
public class PdfA3CheckerTest extends ExtendedITextTest {
private PdfA1Checker pdfA3Checker = new PdfA3Checker(PdfAConformanceLevel.PDF_A_3B);
@BeforeEach
public void before() {
pdfA3Checker.setFullCheckMode(true);
}
@Test
public void checkFileSpecNotContainsAFRelationshipKeyTest() {
PdfDictionary fileSpec = new PdfDictionary();
fileSpec.put(PdfName.EF, PdfName.Identity);
Exception e = Assertions.assertThrows(PdfAConformanceException.class,
() -> pdfA3Checker.checkFileSpec(fileSpec)
);
Assertions.assertEquals(PdfaExceptionMessageConstant.your_sha256_hashD_AFRELATIONSHIP_KEYS, e.getMessage());
}
@Test
public void checkFileSpecNotContainsFKeyTest() {
PdfDictionary fileSpec = new PdfDictionary();
fileSpec.put(PdfName.EF, PdfName.Identity);
fileSpec.put(PdfName.AFRelationship, PdfName.Data);
Exception e = Assertions.assertThrows(PdfAConformanceException.class,
() -> pdfA3Checker.checkFileSpec(fileSpec)
);
Assertions.assertEquals(PdfaExceptionMessageConstant.FILE_SPECIFICATION_DICTIONARY_SHALL_CONTAIN_F_KEY_AND_UF_KEY, e.getMessage());
}
@Test
public void checkFileSpecContainsNullFKeyTest() {
PdfDictionary fileSpec = new PdfDictionary();
fileSpec.put(PdfName.EF, new PdfDictionary());
fileSpec.put(PdfName.F, PdfName.Identity);
fileSpec.put(PdfName.UF, PdfName.Identity);
fileSpec.put(PdfName.Desc, PdfName.Identity);
fileSpec.put(PdfName.AFRelationship, PdfName.Data);
Exception e = Assertions.assertThrows(PdfAConformanceException.class,
() -> pdfA3Checker.checkFileSpec(fileSpec)
);
Assertions.assertEquals(PdfaExceptionMessageConstant.your_sha256_hash_WITH_VALID_F_KEY, e.getMessage());
}
@Test
public void checkFileSpecContainsEmptyFKeyTest() {
PdfDictionary fileSpec = new PdfDictionary();
PdfDictionary ef = new PdfDictionary();
ef.put(PdfName.F, new PdfStream());
fileSpec.put(PdfName.EF, ef);
fileSpec.put(PdfName.F, new PdfDictionary());
fileSpec.put(PdfName.UF, PdfName.Identity);
fileSpec.put(PdfName.Desc, PdfName.Identity);
fileSpec.put(PdfName.AFRelationship, PdfName.Data);
Exception e = Assertions.assertThrows(PdfAConformanceException.class,
() -> pdfA3Checker.checkFileSpec(fileSpec)
);
Assertions.assertEquals(PdfaExceptionMessageConstant.your_sha256_hashPECIFICATION_STREAM_DICTIONARY, e.getMessage());
}
@Test
public void checkFileSpecContainsFKeyWithParamsTest() {
PdfDictionary fileSpec = new PdfDictionary();
PdfDictionary ef = new PdfDictionary();
PdfStream stream = new PdfStream();
stream.put(PdfName.Params, PdfName.Identity);
stream.put(PdfName.Subtype, PdfName.Identity);
ef.put(PdfName.F, stream);
fileSpec.put(PdfName.EF, ef);
fileSpec.put(PdfName.F, new PdfDictionary());
fileSpec.put(PdfName.UF, PdfName.Identity);
fileSpec.put(PdfName.Desc, PdfName.Identity);
fileSpec.put(PdfName.AFRelationship, PdfName.Data);
Exception e = Assertions.assertThrows(PdfAConformanceException.class,
() -> pdfA3Checker.checkFileSpec(fileSpec)
);
Assertions.assertEquals(PdfaExceptionMessageConstant.EMBEDDED_FILE_SHALL_CONTAIN_PARAMS_KEY_WITH_DICTIONARY_AS_VALUE, e.getMessage());
}
}
```
|
Dennis Township is a township in Cape May County, in the U.S. state of New Jersey. The township, and all of Cape May County, is part of the South Jersey region of the state and of the Ocean City metropolitan statistical area, and is part of the Philadelphia-Wilmington-Camden, PA-NJ-DE-MD combined statistical area, also known as the Delaware Valley or Philadelphia metropolitan area. As of the 2020 United States census, the township's population was 6,285, a decrease of 182 (−2.8%) from the 2010 census count of 6,467, which in turn reflected a decline of 25 (−0.4%) from the 6,492 counted in the 2000 census.
Dennis Township was incorporated as a township by an act of the New Jersey Legislature on March 1, 1827, from portions of Upper Township. Portions of the township were taken to form Sea Isle City borough (May 22, 1882) and Woodbine borough (March 3, 1903).
New Jersey Monthly magazine ranked Dennis Township as its 20th best place to live in its 2008 rankings of the "Best Places To Live" in New Jersey.
History
Dennis Township had been a dry town, where alcohol could not be sold, until 2001 when voters passed a referendum allowing liquor to be sold; the township council authorized the sale of a single license, which netted the township $1.1 million.
Geography
According to the United States Census Bureau, the township had a total area of 63.94 square miles (165.61 km2), including 60.42 square miles (156.49 km2) of land and 3.52 square miles (9.12 km2) of water (5.51%).
Belleplain (2010 Census population of 597) is an unincorporated community and census-designated place (CDP) located within the township.
Dennisville is the most important unincorporated community in Dennis Township. Ocean View is served as ZIP Code 08230. Other communities, localities and place names located partially or completely within the township include Clermont, East Creek, Eldora, Mount Pleasant, North Dennis, North-West Dennis, Ocean View, Savage Pond, South Dennis, South Seaville, Stipsons Island and West Creek Landing.
The township borders the municipalities of Avalon, Middle Township, Sea Isle City, Upper Township, Woodbine Borough in Cape May County; portions of Cumberland County, and the Delaware Bay.
Demographics
2010 census
The 2010 United States census counted 6,467 people, 2,370 households, and 1,792 families in the township. The population density was . There were 2,672 housing units at an average density of . The racial makeup was 96.75% (6,257) White, 0.79% (51) Black or African American, 0.19% (12) Native American, 0.56% (36) Asian, 0.03% (2) Pacific Islander, 0.32% (21) from other races, and 1.36% (88) from two or more races. Hispanic or Latino of any race were 1.81% (117) of the population.
Of the 2,370 households, 29.5% had children under the age of 18; 60.8% were married couples living together; 9.5% had a female householder with no husband present and 24.4% were non-families. Of all households, 19.6% were made up of individuals and 8.6% had someone living alone who was 65 years of age or older. The average household size was 2.68 and the average family size was 3.07.
21.4% of the population were under the age of 18, 8.6% from 18 to 24, 20.9% from 25 to 44, 34.1% from 45 to 64, and 15.0% who were 65 years of age or older. The median age was 44.5 years. For every 100 females, the population had 96.9 males. For every 100 females ages 18 and older there were 94.1 males.
The Census Bureau's 2006–2010 American Community Survey showed that (in 2010 inflation-adjusted dollars) median household income was $84,205 (with a margin of error of +/− $5,160) and the median family income was $84,400 (+/− $4,219). Males had a median income of $52,571 (+/− $3,535) versus $40,023 (+/− $5,496) for females. The per capita income for the borough was $30,545 (+/− $2,875). About 5.4% of families and 7.6% of the population were below the poverty line, including 12.0% of those under age 18 and 5.4% of those age 65 or over.
2000 census
As of the 2000 United States census there were 6,492 people, 2,159 households, and 1,737 families residing in the township. The population density was . There were 2,327 housing units at an average density of . The racial makeup of the township was 97.43% White, 0.96% African American, 0.09% Native American, 0.43% Asian, 0.02% Pacific Islander, 0.62% from other races, and 0.46% from two or more races. Hispanic or Latino of any race were 1.51% of the population.
There were 2,159 households, out of which 41.7% had children under the age of 18 living with them, 65.9% were married couples living together, 9.8% had a female householder with no husband present, and 19.5% were non-families. 15.4% of all households were made up of individuals, and 5.7% had someone living alone who was 65 years of age or older. The average household size was 2.91 and the average family size was 3.24.
In the township the population was spread out, with 28.3% under the age of 18, 6.4% from 18 to 24, 30.6% from 25 to 44, 22.5% from 45 to 64, and 12.3% who were 65 years of age or older. The median age was 37 years. For every 100 females, there were 96.5 males. For every 100 females age 18 and over, there were 93.4 males.
The median income for a household in the township was $56,595, and the median income for a family was $61,445. Males had a median income of $41,404 versus $31,329 for females. The per capita income for the township was $21,455. About 4.0% of families and 5.5% of the population were below the poverty line, including 6.6% of those under age 18 and 4.2% of those age 65 or over.
Government
Local government
Dennis Township is governed under the Township form of New Jersey municipal government, one of 141 municipalities (of the 564) statewide that use this form, the second-most commonly used form of government in the state. The Township Committee is comprised of five members, who are elected directly by the voters at-large in partisan elections to serve three-year terms of office on a staggered basis, with either one or two seats coming up for election each year as part of the November general election in a three-year cycle. At an annual reorganization meeting, the Township Committee selects one of its members to serve as Mayor and another as Deputy Mayor. The Committee members serve in a part-time capacity and receive an annual salary.
The governing body originally consisted of three elected officials, one of which would be elected by the membership to serve as the Mayor. In 1989 voters approved a ballot question to increase the membership from three members to five members, and in November 1990 the voters elected two additional Committee members. The first five-member committee took office in January 1991 at which time the governing body established the position of Township Administrator.
, the members of the Dennis Township Committee are Mayor Zeth Anthony Matalucci (R, term on committee ends December 31, 2025; term as mayor ends 2023), Deputy Mayor Scott J. Turner (R, term on committee and as deputy mayor ends 2023), Matthew J. Cox (R, 2025), Frank L. Germanio Jr. (R, 2024) and Thomas Van Artsdalen III (R, 2023).
In October 2017, the Township Committee appointed Nicolas Elisano to fill the seat expiring December 2019 that became vacant following the resignation of Melanie Smith, who was moving out of the township. In November 2018, Matthew J. Cox was elected to serve the balance of the term of office.
Federal, state and county representation
Dennis Township is located in the 2nd Congressional District and is part of New Jersey's 1st state legislative district.
Politics
As of March 2011, there were a total of 4,499 registered voters in Dennis Township, of which 1,091 (24.2%) were registered as Democrats, 1,527 (33.9%) were registered as Republicans and 1,877 (41.7%) were registered as Unaffiliated. There were 4 voters registered as Libertarians or Greens.
In the 2012 presidential election, Republican Mitt Romney received 55.5% of the vote (1,809 cast), ahead of Democrat Barack Obama with 43.1% (1,406 votes), and other candidates with 1.4% (45 votes), among the 3,296 ballots cast by the township's 4,624 registered voters (36 ballots were spoiled), for a turnout of 71.3%. In the 2008 presidential election, Republican John McCain received 55.4% of the vote (1,904 cast), ahead of Democrat Barack Obama, who received 42.4% (1,459 votes), with 3,437 ballots cast among the township's 4,331 registered voters, for a turnout of 79.4%. In the 2004 presidential election, Republican George W. Bush received 58.1% of the vote (1,977 ballots cast), outpolling Democrat John Kerry, who received around 40.0% (1,362 votes), with 3,401 ballots cast among the township's 4,424 registered voters, for a turnout percentage of 76.9.
In the 2013 gubernatorial election, Republican Chris Christie received 69.1% of the vote (1,647 cast), ahead of Democrat Barbara Buono with 29.4% (702 votes), and other candidates with 1.5% (36 votes), among the 2,481 ballots cast by the township's 4,559 registered voters (96 ballots were spoiled), for a turnout of 54.4%. In the 2009 gubernatorial election, Republican Chris Christie received 51.9% of the vote (1,251 ballots cast), ahead of both Democrat Jon Corzine with 37.1% (894 votes) and Independent Chris Daggett with 8.2% (197 votes), with 2,411 ballots cast among the township's 4,572 registered voters, yielding a 52.7% turnout.
Education
The Dennis Township Public Schools serve students in pre-kindergarten through eighth grade. As of the 2020–21 school year, the district, comprised of two schools, had an enrollment of 615 students and 62.4 classroom teachers (on an FTE basis), for a student–teacher ratio of 9.9:1. Schools in the district (with 2020–21 enrollment from the National Center for Education Statistics) are
Dennis Township Primary School with 268 students in grades Pre-K–2 and
Dennis Township Elementary / Middle School with 336 students in grades 3–8.
Students in public school for ninth through twelfth grades attend Middle Township High School in Cape May Court House, together with students from Avalon, Stone Harbor and Woodbine, as part of a sending/receiving relationship with the Middle Township Public Schools. As of the 2020–21 school year, the high school had an enrollment of 741 students and 64.6 classroom teachers (on an FTE basis), for a student–teacher ratio of 11.5:1.
Students are also eligible to attend the Cape May County Technical High School in Cape May Court House, which serves students from the entire county in its comprehensive and vocational programs, which are offered without charge to students who are county residents.
The Roman Catholic Diocese of Camden operates Bishop McHugh Regional School, a Catholic K–8 school. It is supported by four parishes in Cape May County. The school has a Cape May Courthouse postal address. The Press of Atlantic City describes the school as being in Ocean View, though it lies outside of the Ocean View CDP.
Transportation
, the township had a total of of roadways, of which were maintained by the municipality, by Cape May County, by the New Jersey Department of Transportation and by the New Jersey Turnpike Authority.
The Garden State Parkway is the most prominent highway serving Dennis Township, running for more than through the township. Other significant roads serving the township include U.S. Route 9, New Jersey Route 47, New Jersey Route 83 and New Jersey Route 347.
Notable people
People who were born in, residents of, or otherwise closely associated with Dennis Township include:
Richard S. Leaming (1828–1895), ship builder and politician who served in both the New Jersey General Assembly and the New Jersey Senate and on the Cape May County Board of Chosen Freeholders
Jonathan Maslow (1948–2008), author who wrote extensively about nature, with a focus on obscure and little-understood animals
Jarrett Porter (born 1993), baritone known for his performances as an opera and lieder singer.
Willie Royster (1954–2015), catcher who played in four games for the Baltimore Orioles in 1981
Joshua Swain (1778–1855), politician and inventor
Jeff Van Drew (born 1953), U.S. Representative for New Jersey's 2nd congressional district and former member of the New Jersey Senate, representing the 1st legislative district
See also
Dennisville, New Jersey
Dennisville Historic District
References
External links
Dennis Township website
Dennis Township Public Schools
School Data for the Dennis Township Public Schools, National Center for Education Statistics
The Cape May County Gazette Local community newspaper
The Beachcomber
1827 establishments in New Jersey
Populated places established in 1827
Township form of New Jersey government
Townships in Cape May County, New Jersey
|
Boca Chica Island, also known as "Isla de Muertos" (Island of the Dead) is located off the Pacific coast of Panama in the Gulf of Chiriquí, specifically in the Bahia de Muertos. Supposedly the island was a sacred burial grounds of one of the indigenous groups of Panama.
Approximately 6 miles from the town of Boca Chica, it is one of the few islands in the region covered in primary rainforest. The island's coastline is approximately 8.2 kilometers.
References
Bays of Panama
Pacific islands of Panama
|
The black-lined plated lizard (Gerrhosaurus nigrolineatus) is a species of lizard in the Gerrhosauridae family.
It is found in Gabon, Democratic Republic of the Congo, Angola, Namibia, Tanzania, Botswana, Malawi, Mozambique, South Africa,
Zimbabwe, Kenya, and Zambia.
References
Gerrhosaurus
Reptiles described in 1857
Taxa named by Edward Hallowell (herpetologist)
|
Minot's Ledge Light, officially Minots Ledge Light, is a lighthouse on Minots Ledge, one mile offshore of the towns of Cohasset and Scituate, Massachusetts, to the southeast of Boston Harbor. It is a part of the Town of Cohassett, in Plymouth County. The current lighthouse is the second on the site, the first having been washed away in a storm after only a few months of use.
First lighthouse
In 1843, lighthouse inspector I. W. P. Lewis compiled a report on Minots Ledge, showing that more than 40 vessels had been lost due to striking the ledge from 1832 to 1841, with serious loss of life and damage to property. The most dramatic incident was the sinking of a ship "St John" in October 1849 with ninety-nine Irish immigrants, who all drowned within sight of their new homeland. It was initially proposed to build a lighthouse similar to John Smeaton's pioneering Eddystone Lighthouse, situated off the south-west coast of England. However Captain William H. Swift, put in charge of planning the tower, believed it impossible to build such a tower on the mostly submerged ledge. Instead he successfully argued for an iron pile light, a spidery structure drilled into the rock.
The first Minot's Ledge Lighthouse was built between 1847 and 1850, and was lighted for the first time on January 1, 1850. One night in April 1851, the new lighthouse was struck by a major storm that caused damage throughout the Boston area. The following day only a few bent pilings were found on the rock. The two assistant keepers who had been tending the lighthouse at the time had died at their posts.
The current lighthouse
Until 1863 the design and construction of lighthouses was the responsibility of the Corps of Topographical Engineers; this resulted in a rivalry with the longer-established Army Corps of Engineers, which built fortifications and had responsibility, as it does today, for waterway improvements. The Chief Engineer of the Army Corps of Engineers, Joseph G. Totten, personally took charge of the project to design and construct a permanent lighthouse on Minot's Ledge.
Totten's design was as simple as it was effective. With extensive experience building fortifications, Totten fully appreciated the permanency and strength of granite constructions. He designed the lighthouse so the first 40 feet of lighthouse would be a solid granite base weighing thousands of tons. To secure the lighthouse to the ledge, he had several massive iron pins emplaced so that the lighthouse would be literally pinned to the ledge by its own weight. Working on the ledge could take place only in conditions when it was exposed at low tide and the sea was calm, so construction took years.
Work started on the current lighthouse in 1855, and it was completed and first lit on November 15, 1860. With a final cost of $300,000, it was the most expensive light house that was ever constructed in the United States to that date. The lighthouse is built of large and heavy dovetailed granite blocks, which were cut and dressed ashore in Quincy and taken to the ledge by ship. The lighthouse was equipped with a third-order Fresnel lens.
The light signal, a 1-4-3 flashing cycle adopted in 1894, is locally referred to as "I LOVE YOU" (1-4-3 being the number of letters in that phrase), and it is often cited as such by romantic couples within its range.
Minots Ledge Light was automated in 1947.
Historical information
The following is taken from the Coast Guard Historian's website:
Minot's Ledge Lighthouse keepers in 1940: George H. Fitzpatrick, Perc A. Evans, Patrick J. Bridy
Minot's Ledge Lighthouse was designated as a National Historic Civil Engineering Landmark by the American Society of Civil Engineers in 1977. The light was added to the National Register of Historic Places in 1987 as Minot's Ledge Light.
It was put up for sale under the National Historic Lighthouse Preservation Act in 2009.
Nomenclature and location
Officially, it is Minots Ledge Light, but the National Register listing calls it Minot's Ledge Light.
There is a replica of the top section of the lighthouse, located on the shores of Cohasset Harbor. The replica can be viewed just outside the Cohasset Sailing Club. The replica on shore is not a replica, but instead is made from the stone and steel remnants of the original upper portion of the lighthouse including the lamp chamber, which was wholly rebuilt in the late twentieth century, the copper dome is in fact a replica.. It is located about one mile off of the coast of Scituate Neck.
See also
Government Island Historic District, the Cohasset land station associated with the lighthouse
National Register of Historic Places in Plymouth County, Massachusetts
References
External links
Minot's Ledge poem. Fitz-James O'Brien, Harper's New Monthly Magazine, April 1861. audio recording, 2006, Public Domain.
Scituate, Massachusetts
Collapsed buildings and structures in the United States
Disasters in Massachusetts
1851 disasters in the United States
Historic Civil Engineering Landmarks
Lighthouses completed in 1850
Lighthouses completed in 1860
Lighthouses in Plymouth County, Massachusetts
Lighthouses on the National Register of Historic Places in Massachusetts
|
Wingless Angels is an album released in 1975 and it is the eighth album by folk musician John Stewart, former member of the Kingston Trio.
Track listing
All compositions by John Stewart except where noted.
Side one
"Hung on the Heart (Of a Man Back Home)" – 3:53
"Rose Water" – 3:11
"Wingless Angels/Survivors II" (John Stewart, Michael Cannon/John Stewart) – 5:25
"Some Kind of Love" – 3:56
"Survivors" – 4:02
Side two
"Summer Child" (John Stewart, Michael Cannon) – 4:51
"Josie" – 2:57
"Ride Stone Blind" – 4:33
"Mazatlan/Adelita" (John Stewart/Public Domain) – 4:11
"Let the Big Horse Run" – 3:49
Personnel
John Stewart – electric guitar, acoustic guitar
Joe Osborn - bass
Ron Tutt - drums
Peter Jameson - guitar
Waddy Wachtel - electric guitar, slide guitar
Tom Keene - piano, Fender Rhodes
Dan Dugmore - pedal steel
Arnie Moore - bass on "Let The Big Horse Run"
Jonathan Douglas - piano on "Some Kind Of Love"
Russ Kunkel - drums on "Some Kind Of Love"
Mike Settle - background vocals
Denny Brooks - background vocals
Stephanie Ford - background vocals
Daniel Moore - background vocals
Marti McCall - background vocals
Jackie Ward - background vocals
Lisa Freeman Roberts - background vocals
Additional personnel
Nikolas Venet - producer
Perry Botkin, Jr. - string arrangements, conductor
Pete Abbott - recording engineer
Andy McDonald - second
Sergio Reyes - second
Henry Diltz - photos
Frank Murvey - art direction
Gary Burdon - art direction
Gribbitt - graphics
Dave Guard - arrangements on "Ride Stone Blind"
Mike Settle - vocal arrangements on "Let The Big Horse Run"
Jon Douglas - arrangements on "Some Kind Of Love"
John Denver - Backing vocals on "Survivors"
References
1975 albums
John Stewart (musician) albums
Albums arranged by Perry Botkin Jr.
Albums produced by Nick Venet
RCA Records albums
|
Paragraph 78 (; also stylized as: § 78) is a Russian film by Mikhail Khleborodov released in 2007. The film was split into two parts Paragraph 78, Punkt 1 released on February 22, 2007, and Paragraph 78, Punkt 2 released on March 29, 2007. The screenplay was based on a 1995 story by Ivan Okhlobystin. Andrey Lazarchuk, the Russian writer of the modern turborealism literature style, wrote a novel based on this film (February 2007).
Plot
Future: soft drugs are legalized, Bowling is Olympic sport and countries such as the Asian Union and the United Pan-American States have appeared. An assault group under the command of Gudvin (Gosha Kutsenko) breaks apart because of his conflict with Skif (Vladimir Vdovichenkov).
Five years later Lisa (Anastasiya Slanevskaya) has left Skif and is married to Gudvin. Russia, the Asian Union and The United Pan-American States have signed a disarmament treaty, but keep a close watch one another.
A state of emergency is declared at one of Russia's secret and, per international treaties, prohibited laboratories on an island in the Arctic Ocean, causing an emergency beacon to begin broadcasting, creating the risk of discovery by the other nations. To prevent this from happening Gudvin assembles his former group. By that time Spam (Anatoli Belyj) is jailed, Luba (Stanislav Duzhnikov) works in that same prison as a warden, Festival (Grigori Siyatvinda) is engaged in commerce of banned drugs (lysergic acid), Pai (Azis Beyshinaliev) works in a casino, and Skif ruins himself with drink.
Together they depart to that island to penetrate the base and stop the emergency beacon.
Cast
Gosha Kutsenko as Gudvin
Vladimir Vdovichenkov as Skif
Grigory Siyatvinda as Festival
Anastasiya Slanevskaya as Lisa
Stanislav Duzhnikov as Luba
Azis Beyshinaliev as Pai
Anatoliy Beliy as Spam
Yusup Bakshiyev as Doktor
Mikhail Yefremov as Prison commander
Critics
The film was heavily criticised for a strong resemblance to a number of films, including Resident Evil, Doom, Phantom Force, Dragon Fighter and Aliens.
The film was heavily packed by product placement as the recent Russian films Night Watch and Day Watch. This includes Russian Channel One, Fan chips, Men's Health magazine, Pikador ketchup, Mail.ru service, Radio Maximum, Golden barrel beer, Grand Prix vodka, Wrigley's Spearmint, Qtek S110, Creative player, Panasonic notebook, etc.
References
External links
2007 films
2007 science fiction action films
2007 action thriller films
2000s Russian-language films
Russian science fiction action films
Russian science fiction thriller films
Russian action thriller films
Films released in separate parts
|
Baatein Kuch Ankahee Si () is an India Hindi-language drama television series that premiered on 21 August 2023 on Star Plus. It streams digitally on Disney+ Hotstar. Produced by Rajan Shahi under Director's Kut Productions, it is a remake of Star Jalsha's Bengali series Irabotir Chupkotha. It stars Sayli Salunkhe and Mohit Malik.
Premise
Vandana Karmarkar, a 35-year-old woman is struggling to make a mark in the Indian music industry with her unique voice. What will happen when the owner of a renowned music studio, Kunal Malhotra, a 40-year-old man crosses paths with her?
Cast
Main
Sayli Salunkhe as Vandana "Vandu" Vaibhav Joshi (nee - Karmarkar): Vijay and Sumitra's elder daughter; Hemant and Mrunal's sister; Vaibhav's wife
Mohit Malik as Kunal Malhotra: Kuldeep and Vani's son; Vedika's younger brother; Bobby's cousin; Sonia's husband; Tara's father
Recurring
Karanveer Mehra as Vaibhav Joshi: Vinayak and Sarita's son; Mrunal's boyfriend; Vandana's husband
Leena Jumani as Sonia Kunal Malhotra: Kunal's wife; Tara's mother; Indraneel's girlfriend
Yatin Karyekar as Vijay Karmarkar: Sumitra's husband; Hemant, Vandana and Mrunal's father; Shivam's grandfather
Kshitee Jog as Sumitra Karmarkar: Vijay's wife; Hemant, Vandana and Mrunal's mother; Shivam's grandmother
Vishal Nayak as Hemant Karmarkar: Vijay and Sumitra's son; Vandana and Mrunal's elder brother; Anagha's husband; Shivam's father
Garvita Sadhwani as Mrunal Karmarkar: Vijay and Sumitra's younger daughter; Hemant and Vandana's younger sister; Vaibhav's girlfriend
Abhidnya Bhave as Anagha Karmarkar: Hemant's wife; Shivam's mother
Arisht Jain as Shivam Karmarkar: Hemant and Anagha's son
Ujjwala Jog as Miss Karmarkar: Vijay's elder sister; Hemant, Vandana and Mrunal's aunt
Amit Behl as Kuldeep Malhotra: Pammi's elder brother; Vani's husband; Vedika and Kunal's father; Parisa's maternal grandfather
Aishwarya Narkar as Vani Malhotra: Kuldeep's wife; Vedika and Kunal's mother; Parisa's maternal grandmother
Ankita Sharma as Vedika Malhotra: Kuldeep and Vani's daughter; Kunal's elder sister; Bobby's cousin; Parisa's mother
Ketaki Kulkarni as Parisa: Vedika's daughter
Sheeba Akashdeep as Pammi Malhotra Sood: Kuldeep's younger sister; Guneet's wife; Bobby's mother
Romit Raj as Bobby Sood: Pammi and Guneet's son; Vedika and Kunal's cousin
Digvijay Purohit as Guneet Sood: Pammi's husband; Bobby's father
Hitesh Sampat as Vinayak Joshi: Sarita's husband; Vaibhav and Anjali's father
Sanyogeeta Bhave as Sarita Joshi: Vinayak's wife; Vaibhav and Anjali's mother
Sushma Jaywant as Anjali Joshi: Sarita and Vinayak's daughter; Vaibhav's sister
Aishwarya Aher as Sam
Amit Pachori as Indraneel Sarkar: A music director; Kunal's rival; Sonia's boyfriend
Jazlyn Tanwani as Child Tara Malhotra: Kunal and Sonia's daughter
Production
Casting
Initially Drashti Dhami and Sriti Jha were approached to play the female lead. Later, Mohit Malik as Kunal Malhotra and Sayli Salunkhe as Vandana Karmarkar were signed as the lead.
Development
The series title is inspired by the song Baatein Kuch Ankahein Si, from the 2007 Bollywood movie, Life in a... Metro. The series was announced on Star Plus by Director's Kut Productions. It is Director's Kut Productions first attempt at a mature love story. The series marks the second collaboration between Rajan Shahi and Malik after Miilee (2005). The launch event for the series was held on 19 August 2023. A launch party was held on 21 August 2023.
Release
Initially scheduled to premiere on 8 August 2023, it was postponed for two weeks. The cast of the show sought blessings at the Siddhivinayak Temple ahead of the launch on 21 August 2023. Salunkhe also went on to make special appearances in Yeh Rishta Kya Kehlata Hai, Anupamaa, Ghum Hai Kisikey Pyaar Meiin, Imlie, Pandya Store and Teri Meri Doriyaann to promote the show.
Soundtrack
The title track has been sung by Usha Uthup and Sanam. The musical event for the launch of title track was attended by the cast of Anupamaa and Yeh Rishta Kya Kehlata Hai.
Reception
Adaptations
References
External links
Baatein Kuch Ankahee Si on Disney+ Hotstar
2023 Indian television series debuts
2020s Indian television series
Hindi-language television shows
StarPlus original programming
Indian television soap operas
Indian drama television series
Indian romance television series
|
```objective-c
/*
*
*/
/* Memory bits manipulation functions in non-arch-specific C code */
#ifndef ZEPHYR_INCLUDE_ARCH_COMMON_SYS_BITOPS_H_
#define ZEPHYR_INCLUDE_ARCH_COMMON_SYS_BITOPS_H_
#ifndef _ASMLANGUAGE
#include <zephyr/toolchain.h>
#include <zephyr/types.h>
#include <zephyr/sys/sys_io.h>
#ifdef __cplusplus
extern "C" {
#endif
static ALWAYS_INLINE void sys_set_bit(mem_addr_t addr, unsigned int bit)
{
uint32_t temp = *(volatile uint32_t *)addr;
*(volatile uint32_t *)addr = temp | (1 << bit);
}
static ALWAYS_INLINE void sys_clear_bit(mem_addr_t addr, unsigned int bit)
{
uint32_t temp = *(volatile uint32_t *)addr;
*(volatile uint32_t *)addr = temp & ~(1 << bit);
}
static ALWAYS_INLINE int sys_test_bit(mem_addr_t addr, unsigned int bit)
{
uint32_t temp = *(volatile uint32_t *)addr;
return temp & (1 << bit);
}
static ALWAYS_INLINE void sys_set_bits(mem_addr_t addr, unsigned int mask)
{
uint32_t temp = *(volatile uint32_t *)addr;
*(volatile uint32_t *)addr = temp | mask;
}
static ALWAYS_INLINE void sys_clear_bits(mem_addr_t addr, unsigned int mask)
{
uint32_t temp = *(volatile uint32_t *)addr;
*(volatile uint32_t *)addr = temp & ~mask;
}
static ALWAYS_INLINE
void sys_bitfield_set_bit(mem_addr_t addr, unsigned int bit)
{
/* Doing memory offsets in terms of 32-bit values to prevent
* alignment issues
*/
sys_set_bit(addr + ((bit >> 5) << 2), bit & 0x1F);
}
static ALWAYS_INLINE
void sys_bitfield_clear_bit(mem_addr_t addr, unsigned int bit)
{
sys_clear_bit(addr + ((bit >> 5) << 2), bit & 0x1F);
}
static ALWAYS_INLINE
int sys_bitfield_test_bit(mem_addr_t addr, unsigned int bit)
{
return sys_test_bit(addr + ((bit >> 5) << 2), bit & 0x1F);
}
static ALWAYS_INLINE
int sys_test_and_set_bit(mem_addr_t addr, unsigned int bit)
{
int ret;
ret = sys_test_bit(addr, bit);
sys_set_bit(addr, bit);
return ret;
}
static ALWAYS_INLINE
int sys_test_and_clear_bit(mem_addr_t addr, unsigned int bit)
{
int ret;
ret = sys_test_bit(addr, bit);
sys_clear_bit(addr, bit);
return ret;
}
static ALWAYS_INLINE
int sys_bitfield_test_and_set_bit(mem_addr_t addr, unsigned int bit)
{
int ret;
ret = sys_bitfield_test_bit(addr, bit);
sys_bitfield_set_bit(addr, bit);
return ret;
}
static ALWAYS_INLINE
int sys_bitfield_test_and_clear_bit(mem_addr_t addr, unsigned int bit)
{
int ret;
ret = sys_bitfield_test_bit(addr, bit);
sys_bitfield_clear_bit(addr, bit);
return ret;
}
#ifdef __cplusplus
}
#endif
#endif /* _ASMLANGUAGE */
#endif /* ZEPHYR_INCLUDE_ARCH_COMMON_SYS_BITOPS_H_ */
```
|
Roman Manukhov (born March 11, 1994) is a Russian professional ice hockey defenceman who is currently playing for HC Sochi of the Kontinental Hockey League (KHL). He is a one-time Russian Champion.
Awards and honours
References
External links
1994 births
Living people
Ak Bars Kazan players
Avangard Omsk players
Bars Kazan players
Lokomotiv Yaroslavl players
Metallurg Novokuznetsk players
HC Ryazan players
Traktor Chelyabinsk players
Ice hockey people from Yekaterinburg
|
```xml
/*
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
*/
import {
makeObservable,
observable,
action,
computed,
autorun,
IReactionDisposer,
override,
} from 'mobx';
import {fetchBatchOperations} from 'modules/api/fetchBatchOperations';
import {BatchOperationDto} from 'modules/api/sharedTypes';
import {
BatchOperationQuery,
MigrationPlan,
Modifications,
applyBatchOperation,
applyOperation,
} from 'modules/api/processInstances/operations';
import {sortOperations} from '../utils/sortOperations';
import {logger} from 'modules/logger';
import {NetworkReconnectionHandler} from '../networkReconnectionHandler';
import {deleteDecisionDefinition} from 'modules/api/decisions/operations';
import {deleteProcessDefinition} from 'modules/api/processes/operations';
type Query = BatchOperationQuery;
type OperationPayload = Parameters<typeof applyOperation>['1'];
type ErrorHandler = ({
operationType,
statusCode,
}: {
operationType: OperationEntityType;
statusCode?: number;
}) => void;
type State = {
operations: OperationEntity[];
hasMoreOperations: boolean;
page: number;
status: 'initial' | 'first-fetch' | 'fetching' | 'fetched' | 'error';
};
const DEFAULT_STATE: State = {
operations: [],
hasMoreOperations: true,
page: 1,
status: 'initial',
};
const MAX_OPERATIONS_PER_REQUEST = 20;
class Operations extends NetworkReconnectionHandler {
state: State = {...DEFAULT_STATE};
isPollRequestRunning: boolean = false;
intervalId: null | ReturnType<typeof setInterval> = null;
disposer: null | IReactionDisposer = null;
constructor() {
super();
makeObservable(this, {
state: observable,
reset: override,
setOperations: action,
increasePage: action,
prependOperations: action,
setHasMoreOperations: action,
hasRunningOperations: computed,
startFetching: action,
handleFetchSuccess: action,
handleFetchError: action,
});
}
init() {
this.fetchOperations();
this.disposer = autorun(() => {
if (this.hasRunningOperations) {
if (this.intervalId === null) {
this.startPolling();
}
} else {
this.stopPolling();
}
});
}
fetchOperations = this.retryOnConnectionLost(
async (searchAfter?: OperationEntity['sortValues']) => {
this.startFetching();
const response = await fetchBatchOperations({
pageSize: MAX_OPERATIONS_PER_REQUEST,
searchAfter,
});
if (response.isSuccess) {
const operations = response.data;
this.setOperations(operations);
this.setHasMoreOperations(operations.length);
this.handleFetchSuccess();
} else {
this.handleFetchError();
}
},
);
fetchNextOperations = async () => {
this.increasePage();
this.fetchOperations(
this.state.operations[this.state.operations.length - 1]!.sortValues,
);
};
applyBatchOperation = async ({
operationType,
query,
migrationPlan,
modifications,
onSuccess,
onError,
}: {
operationType: OperationEntityType;
query: Query;
migrationPlan?: MigrationPlan;
modifications?: Modifications;
onSuccess: () => void;
onError: ErrorHandler;
}) => {
try {
const response = await applyBatchOperation({
operationType,
query,
migrationPlan,
modifications,
});
if (response.isSuccess) {
this.prependOperations(response.data);
onSuccess();
} else {
onError({operationType, statusCode: response.statusCode});
}
} catch {
onError({operationType});
}
};
applyOperation = async ({
instanceId,
payload,
onError,
onSuccess,
}: {
instanceId: string;
payload: OperationPayload;
onError?: ErrorHandler;
onSuccess?: (operationType: OperationEntityType) => void;
}) => {
const response = await applyOperation(instanceId, payload);
if (response.isSuccess) {
this.prependOperations(response.data);
onSuccess?.(payload.operationType);
} else {
onError?.({
operationType: payload.operationType,
statusCode: response.statusCode,
});
}
};
applyDeleteDecisionDefinitionOperation = async ({
decisionDefinitionId,
onError,
onSuccess,
}: {
decisionDefinitionId: string;
onError?: (statusCode: number) => void;
onSuccess?: () => void;
}) => {
const response = await deleteDecisionDefinition(decisionDefinitionId);
if (response.isSuccess) {
this.prependOperations(response.data);
onSuccess?.();
} else {
onError?.(response.statusCode);
}
};
applyDeleteProcessDefinitionOperation = async ({
processDefinitionId,
onError,
onSuccess,
}: {
processDefinitionId: string;
onError?: (statusCode: number) => void;
onSuccess?: () => void;
}) => {
const response = await deleteProcessDefinition(processDefinitionId);
if (response.isSuccess) {
this.prependOperations(response.data);
onSuccess?.();
} else {
onError?.(response.statusCode);
}
};
handlePolling = async () => {
this.isPollRequestRunning = true;
const response = await fetchBatchOperations(
{
pageSize: MAX_OPERATIONS_PER_REQUEST * this.state.page,
},
{isPolling: true},
);
if (this.intervalId !== null && response.isSuccess) {
this.setOperations(response.data);
}
if (!response.isSuccess) {
logger.error('Failed to poll operations');
}
this.isPollRequestRunning = false;
};
startFetching = () => {
if (this.state.status === 'initial') {
this.state.status = 'first-fetch';
} else {
this.state.status = 'fetching';
}
};
handleFetchSuccess = () => {
this.state.status = 'fetched';
};
handleFetchError = () => {
this.state.status = 'error';
};
startPolling = async () => {
this.intervalId = setInterval(() => {
if (!this.isPollRequestRunning) {
this.handlePolling();
}
}, 1000);
};
stopPolling = () => {
const {intervalId} = this;
if (intervalId !== null) {
clearInterval(intervalId);
this.intervalId = null;
}
};
prependOperations = (response: BatchOperationDto) => {
this.state.operations.unshift({...response, sortValues: undefined});
};
setOperations(response: any) {
const operations = [...this.state.operations, ...response].reduce(
(accumulator, operation) => {
accumulator[operation.id] = operation;
return accumulator;
},
{},
);
this.state.operations = sortOperations(Object.values(operations));
}
setHasMoreOperations(operationCount: number) {
this.state.hasMoreOperations =
operationCount === MAX_OPERATIONS_PER_REQUEST;
}
increasePage() {
this.state.page++;
}
get hasRunningOperations() {
return this.state.operations.some(
(operation) => operation.endDate === null,
);
}
reset() {
super.reset();
this.stopPolling();
this.state = {...DEFAULT_STATE};
this.disposer?.();
}
}
export const operationsStore = new Operations();
export type {ErrorHandler};
```
|
Capoeta pyragyi is a species of cyprinid in the genus Capoeta. It lives in the Tireh and Sezar rivers of Iran, and it is named after Turkmen poet and spiritual leader Magtymguly Pyragy.
References
pyragyi
Fish described in 2017
Taxa named by Ignacio Doadrio Villarejo
|
Delwar Hossain ( – 12 January 2023) was a Bangladeshi independent politician who was a Jatiya Sangsad member, representing the Barguna-1 constituency.
Life and career
Hossain was elected to parliament from Barguna-1 as an independent candidate in 2001.
Hossain died of kidney disease on 12 January 2023, at the age of 67.
References
1950s births
Year of birth missing
Place of birth missing
2023 deaths
8th Jatiya Sangsad members
Independent politicians in Bangladesh
People from Barguna district
Politicians from Barisal Division
|
Himantolophus nigricornis is a species of footballfish, a type of anglerfish. The fish is bathypelagic and is endemic to the central Pacific Ocean.
References
Himantolophidae
Deep sea fish
Fish described in 1988
|
```javascript
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
__v_0 = new Uint8Array([
0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x05, 0x01,
0x60, 0x00, 0x01, 0x7f, 0x03, 0x02, 0x01, 0x00, 0x05, 0x03, 0x01,
0x00, 0x01, 0x07, 0x11, 0x02, 0x04, 0x67, 0x72, 0x6f, 0x77, 0x00,
0x00, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x02, 0x00, 0x0a,
0x08, 0x01, 0x06, 0x00, 0x41, 0x01, 0x40, 0x00, 0x0b
]);
assertPromiseResult(
WebAssembly.compile(__v_0)
);
```
|
Razmeghan (, also Romanized as Razmeghān, Razmegān, Rakzaman, Rāzmakān, Razmaqān, and Razmqān) is a village in Golian Rural District of the Central District of Shirvan County, North Khorasan province, Iran.
At the 2006 National Census, its population was 949 in 237 households. The following census in 2011 counted 946 people in 271 households. The latest census in 2016 showed a population of 856 people in 272 households; it was the largest village in its rural district.
References
Shirvan County
Populated places in North Khorasan Province
Populated places in Shirvan County
|
```shell
#!/bin/bash
###
#
# Should be run from DeepQA/docker
#
# $1: work directory where to create deepQA's data
#
###
workdir="$1"
workdir=${workdir:="${DEEPQA_WORKDIR}"}
gitdir=$(readlink -f .)
echo "Creating:"
echo " - ${workdir}"
echo "From:"
echo " - ${gitdir}"
mkdir -p ${workdir}
cd ${workdir}
mkdir -p logs
cp -r ${gitdir}/../data ${workdir}
mkdir -p save/model-server
ln -s save/model-server model-server
```
|
Vine is a surname, and may refer to:
Barbara Vine, pseudonym of British writer Ruth Rendell
Carl Vine, Australian composer
David Vine, British television presenter
Fred Vine, English geologist and geophysicist who co-authored a critically important paper in the 1960s on continental drift
Harriette Vine, New Zealand lawyer
Ian Vine, British composer
Jay Vine, Australian professional racing cyclist
Jeremy Vine, English journalist and radio presenter
Joseph Vine, professional cricketer
Rowan Vine, English footballer
Stella Vine, English artist
Tim Vine, English comedian
William Edwin Vine, English Biblical scholar, theologian and writer, most famous for Vine's Expository Dictionary of Old and New Testament Words
See also
Vine
Vines (surname)
|
Cherkassky (), or Cherkasskaya (Черкасская; feminine), may refer to:
Mikhail Cherkassky (died 1571), Russian voyevoda and notable oprichnik
Yakov Cherkassky (died 1666), Russian statesman and military figure
Prince Alexander Bekovich-Cherkassky (died 1717), Russian officer who led the first Russian military expedition into Central Asia
Alexey Cherkassky (1680–1742), Russian statesman
Maria Cherkassky (1696–1747), lady-in-waiting from the Russian Empire, Trubetskoy family and House of Cherkasskiy
Vladimir Cherkassky (1821–1878), Russian public figure
Ekaterina Cherkassky (Vasilchikova) (1825–1888), House of Vasilchikov and House of Cherkasskiy
Maria Nikolaevna Cherkassky (died 1892), House of Tcherbatov and House of Cherkasskiy
Abram Cherkassky (1886–1967), Ukrainian/Soviet painter
Shura Cherkassky (1909–1995), Russian-born American classical pianist
Circassian dynasties
ru:Черкасский
|
```smalltalk
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using osu.Framework.Logging;
namespace osu.Framework.Threading
{
/// <summary>
/// Provides a scheduler that uses a managed thread "pool".
/// </summary>
public sealed class ThreadedTaskScheduler : TaskScheduler, IDisposable
{
private readonly BlockingCollection<Task> tasks;
private readonly ImmutableArray<Thread> threads;
private readonly string name;
private bool isDisposed;
private int runningTaskCount;
public string GetStatusString() => $"{name} concurrency:{MaximumConcurrencyLevel} running:{runningTaskCount} pending:{pendingTaskCount}";
/// <summary>
/// Initializes a new instance of the StaTaskScheduler class with the specified concurrency level.
/// </summary>
/// <param name="numberOfThreads">The number of threads that should be created and used by this scheduler.</param>
/// <param name="name">The thread name to give threads in this pool.</param>
public ThreadedTaskScheduler(int numberOfThreads, string name)
{
ArgumentOutOfRangeException.ThrowIfLessThan(numberOfThreads, 1);
this.name = name;
tasks = new BlockingCollection<Task>();
threads = Enumerable.Range(0, numberOfThreads).Select(_ =>
{
var thread = new Thread(processTasks)
{
Name = $"{nameof(ThreadedTaskScheduler)} ({name})",
IsBackground = true
};
thread.Start();
return thread;
}).ToImmutableArray();
}
/// <summary>
/// Continually get the next task and try to execute it.
/// This will continue as a blocking operation until the scheduler is disposed and no more tasks remain.
/// </summary>
private void processTasks()
{
try
{
foreach (var t in tasks.GetConsumingEnumerable())
{
Interlocked.Increment(ref runningTaskCount);
TryExecuteTask(t);
Interlocked.Decrement(ref runningTaskCount);
}
}
catch (ObjectDisposedException)
{
// tasks may have been disposed. there's no easy way to check on this other than catch for it.
}
}
/// <summary>
/// Queues a Task to be executed by this scheduler.
/// </summary>
/// <param name="task">The task to be executed.</param>
protected override void QueueTask(Task task)
{
try
{
tasks.Add(task);
}
catch (Exception ex) when (ex is InvalidOperationException or ObjectDisposedException)
{
// tasks may have been disposed. there's no easy way to check on this other than catch for it.
Logger.Log($"Task was queued for execution on a {nameof(ThreadedTaskScheduler)} ({name}) after it was disposed. The task will be executed inline.");
TryExecuteTask(task);
}
}
/// <summary>
/// Provides a list of the scheduled tasks for the debugger to consume.
/// </summary>
/// <returns>An enumerable of all tasks currently scheduled.</returns>
protected override IEnumerable<Task> GetScheduledTasks() => tasks.ToArray();
/// <summary>
/// Determines whether a Task may be inlined.
/// </summary>
/// <param name="task">The task to be executed.</param>
/// <param name="taskWasPreviouslyQueued">Whether the task was previously queued.</param>
/// <returns>true if the task was successfully inlined; otherwise, false.</returns>
protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued) => threads.Contains(Thread.CurrentThread) && TryExecuteTask(task);
/// <summary>Gets the maximum concurrency level supported by this scheduler.</summary>
public override int MaximumConcurrencyLevel => threads.Length;
private int pendingTaskCount
{
get
{
try
{
return tasks.Count;
}
catch (ObjectDisposedException)
{
// tasks may have been disposed. there's no easy way to check on this other than catch for it.
return 0;
}
}
}
/// <summary>
/// Cleans up the scheduler by indicating that no more tasks will be queued.
/// This method blocks until all threads successfully shutdown.
/// </summary>
public void Dispose()
{
if (isDisposed)
return;
isDisposed = true;
tasks.CompleteAdding();
foreach (var thread in threads)
thread.Join(TimeSpan.FromSeconds(10));
tasks.Dispose();
}
}
}
```
|
The 2022–23 CESAFI season is the 23rd season of the Cebu Schools Athletic Foundation, Inc., the preeminent inter-scholastic sports competition in Cebu.
This season marks the return of the physical events of the CESAFI, which because of the COVID-19 pandemic had held its two previous seasons virtually. The season will mark the first appearance of University of the Philippines Cebu (UP Cebu) as a regular member. Aside from UP Cebu, the Sisters of Mary–Boystown and City of Bogo Science and Arts Academy will both compete in the high school division in select events as guest members. Southwestern University will take a leave of absence for this season, citing a lack of budget for its sports teams.
The season is set to open on October 15, 2022.
Sports calendar
This is the calendar of sports events of the 2022–23 CESAFI season. The list includes the tournament duration and the venues.
Basketball
Six teams will play in the college division, while ten teams will play in the high school division. Southwestern University (SWU) Cobras will not take part for this season, taking a leave for absence. University of the Philippines Cebu (UP Cebu) Fighting Maroons, which was supposed to play its first season in the CESAFI, withdrew its teams in college and high school basketball, citing a need for more time to field a more competitive team.
College tournament
In the college division, the six (6) teams will play each other twice in a double round-robin tournament for the elimination round for a total of ten (10) games for each team. The top four (4) teams will advance to the Final Four. Originally, seven (7) teams were supposed to compete, until the withdrawal of UP Cebu.
Elimination round
Team standings
Results
Results on top and to the right of the gray cells are from first-round games; those to the bottom and to the left of it are from second-round games.
Bracket
Semifinals
The top 2 teams will have the twice-to-beat advantage; with them having to win only once, and their opponents twice, to advance.
UV vs USJR
USPF vs UC
Finals
The Finals is a best-of-three playoff.
Awards
High school tournament
In the high school division, the ten (10) teams will play each other once in a single round-robin tournament for the elimination round for a total of nine (9) games for each team. The top four (4) teams will advance to the Final Four. Originally, eleven (11) teams were supposed to compete, until the withdrawal of UP Cebu.
This marks the debut of the City of Bogo Science and Arts Academy (CBSAA) Trailblazers from Bogo, Cebu as a guest team.
Elimination round
Team standings
Results
Bracket
Semifinals
The top 2 teams will have the twice-to-beat advantage; with them having to win only once, and their opponents twice, to advance.
CBSAA vs UV
SHS-AdC vs UC
Finals
The Finals is a best-of-three playoff.
Awards
Volleyball
There will be 9 schools in the College Division (Both Men & Women)
Men's
Cebu Doctors University
Cebu Institute of Technology University
University of Cebu
University of Cebu - Lapu-Lapu & Mandaue Campus
University of the Philippines Cebu
University of the Visayas
University of San Carlos
University of San Jose-Recoletos
University of Southern Philippines Foundation
Women's
Cebu Doctors University
Cebu Institute of Technology University
University of Cebu
University of Cebu - Lapu-Lapu & Mandaue Campus
University of the Philippines Cebu
University of the Visayas
University of San Carlos
University of San Jose-Recoletos
University of Southern Philippines Foundation
Football
There will be 4 teams in both High School & College Divisions This Season.
High School
Don Bosco Technology Center
Sacred Heart School-Ateneo de Cebu
University of San Carlos
University of San Jose-Recoletos
College
University of Cebu
University of San Carlos
University of San Jose-Recoletos
University of Southern Philippines Foundation
References
External links
2022–23 in Philippine college basketball
2022 in Philippine sport
2023 in Philippine sport
|
Rhône Group is a global private equity firm with approximately $11 billion of assets under management, specializing in mergers and acquisitions, leveraged buyouts, recapitalizations, and partnerships with particular focus on European and trans-Atlantic investments. Rhône also offers financial advisory services, strategic alliances, joint partnerships, and business valuation services. Rhone Group was listed in 2013 to 2014 by Preqin as the 'Most Consistent Performing Private Equity Fund Manager' based on both its multiple and IRR of all 3 funds in the top quartile ranking.
Rhône is headquartered at the International Building at Rockefeller Center in New York City, with additional offices in London and Paris. Rhône was founded in 1995 by billionaire investors Robert Agostinelli and Steven Langman. The pair have been managing Rhône since inception. The company tends to invest in energy, materials, industrials, retailing, consumer staples, healthcare, and financial sectors. The company is a U.S. Securities and Exchange Commission Registered Investment Advisor. Investors include government and private sector pension and retirement funds, charitable foundations, university endowments, insurance companies, family savings and sovereign wealth funds. It focuses primarily on investments in European and trans-Atlantic companies.
London Office
In 2011, Rhône Group moved from their Knightsbridge office to 40 Bruton Street, Mayfair, signing a ten-year lease for the top three floors covering 8,000 square feet, at £105 per sq ft, the then-highest rent achieved in the West End.
Funds
Rhône Capital Partners Fund I
Rhône Capital Partners Fund II
Rhône Capital Partners Fund III
Rhône Capital Partners Fund IV
Rhône Capital Partners Fund V
Investments
Maxam
In August 2018, Rhône acquired a 45% stake in MAXAM Corp from Advent International. Maxam is among the three largest explosives companies in the world. The history of MAXAM Corp dates back to 1872 when Alfred Nobel founded the Sociedad Española de la Pólvora Dinamita in Bilbao, Spain. The company offers high-tech products and services ranging from terra solutions, outdoors, defense, and chemicals. Blasting solutions, cartridges and gunpowder, and raw materials for the nitro chemical industry are some of its key products. One of their brand's EXPAL specializes in demilitarization by recycling explosives recovered from different sectors such as infrastructures, mining industry, and demolitions. MAXAM generated revenue of over €1.1bn for its fiscal year to 31 March 2018. Rhône invested from its fifth fund which sees Maxam's management group retaining the remaining 55% of the company's shares. MAXAM has in excess of 6,500 employees, more than 50 subsidiaries, 80 industrial units and commercial operations in over 100 countries. The transaction sees Morgan Stanley act as financial advisor to Advent, and Lazard Frères as financial advisor to Rhône. Legal advisor to Advent was Uría Menéndez, while Pérez-Llorca and Kirkland & Ellis advised Rhône.
Fogo de Chão
In February 2018, Rhône acquired Brazilian steakhouse chain Fogo de Chão for $560 million. Founded in 1979 in Porto Alegre, Rio Grande do Sul, Brazil, it now operates in nearly 50 locations in the U.S., Mexico, Saudi Arabia, UAE and Brazil with plans for over 100 locations worldwide. The price of $15.75 a share was paid in cash, which represents a 25% premium over the restaurant company's closing price on the Nasdaq.
Nestlé Confectionary USA
In January 2018, Rhône Capital entered a binding offer to acquire Nestlé’s US confectionary business, joining a $2.5 billion race that includes Italy's Ferrero SpA and The Hershey Company. The sale includes established brands such as Butterfinger, Nerds, Laffy Taffy, and Crunch chocolate bars. Nestlé was advised by Goldman Sachs on the sale process.
Hudson's Bay Company
In October 2017, Canada's oldest retailer Hudson's Bay Company agreed to sell its historic Lord & Taylor Building to Rhône Capital and WeWork in a transaction valued at $850 million. The flagship building has been a presence on Fifth Avenue for more than a century, the 10-story limestone structure opened in 1914, and was named a New York City designated landmark in 2007.
Santillana
In September 2017, Spanish media company Prisa confirmed it was in talks over the sale of its Santillana publishing group with Rhône Capital. El Confidencial reported that Rhone was in negotiations to submit an offer of around $1.7 billion for the 75 percent stake Prisa holds in Santillana.
VistaJet
In 2017, Rhône invested $150 million cash into VistaJet together with secondary acquisitions, Rhône will have a $200 million stake in VistaJet. This ground breaking investment transaction serves as another key milestone in VistaJet's growth story and a major vote of confidence in the company's strategy and business model, valuing VistaJet's equity on a post-money basis in excess of $2.5 billion. VistaJet was founded by Thomas Flohr in 2004 and is now the second largest private aviation company in the world after NetJets. In 2019, VistaJet acquired JetSmarter, regarded as the Uber of private aviation, also acquiring XOJET the year prior in order to consolidate its purchase of competitors and lead consolidation in the private jet industry.
WeWork
In 2016, Rhône Group partnered with WeWork to raise several hundred million dollars for a real estate investment fund. The partners have already approached New York City landlords about buying properties where the coworking company is a tenant. Fundraising for the vehicle, dubbed WeWork Property Investors, is still ongoing. Buying into its properties would allow the co-working company to benefit from property appreciation it says it creates as a tenant. On March 9, the company filed offering documents for four private equity funds. WeWork Property Investors and WeWork Property Investors Funds A, B and B1 with the U.S. Securities and Exchange Commission. The filings list several WeWork and Rhone Group executives as fund directors. In March 2017, Rhône together with WeWork launched a $400 million real estate investment fund. In November, that fund paid $850 million for WeWork's new global headquarters at Lord & Taylor’s flagship on Fifth Avenue in Manhattan.
Zodiac Pool Solutions
In October 2016, Rhône Group entered into an agreement to acquire Zodiac Pool Solutions from the Carlyle Group including its global pool business and family of premium brands. Financial terms of the agreement were not disclosed. Carlyle was advised on the transaction by Credit Suisse and Allen & Overy LLP. Rhône was advised on the transaction by Morgan Stanley and Sullivan & Cromwell LLP.
Garda World Corporation
In February 2016, Rhône Capital agreed to acquire 45% of the outstanding shares of the parent company of Garda World Security Corp., from Apax Partners and certain management stockholders of the business. Garda World Security Corp. a security and cash services provider, was founded in 1995 by Stéphan Crétier and is now the world's largest privately owned security company employing over 85,000 people worldwide. In May 2017 Rhone increased its equity holding to 61% completing the purchase of all of Apax's remaining participation in GardaWorld.
Scandinavian Tobacco Group
In November 2014, Scandinavian Tobacco Group, the world's largest manufacturer of cigars and pipe tobacco began talks with firm Rhône Capital about a potential sale of the company for around $2 billion. CVC Capital and Pamplona Capital were also listed as potential bidders. STG is owned by Skandinavisk Holding and Swedish Match and have hired JPMorgan Chase to look at options for the business and explored an initial public offering before deciding on a sale. STG has 10,000 employees in 20 countries and EBITDA of SEK1.2 billion ($201 million) on revenue of SEK5.9 billion for 2013.
GK Holdings, Inc.
In 2014, Rhône Group acquired Global Knowledge from MidOcean Partners. In October 2021 it was announced that Global Knowledge will be bought by Churchill Capital Corp II and will be merged with Skillsoft.
Elizabeth Arden, Inc.
In 2014, Rhône Group entered into an agreement with Elizabeth Arden, Inc. (RDEN.O) for a tender offer to acquire up to 30% of the company. In June 2016, Elizabeth Arden was acquired by Revlon.
Ranpak Corp.
In October 2014, Rhône Group acquired Ranpak, for around $1 billion from Odyssey Investment Partners LLC. Harris Williams & Co. advised Ranpak Corp. on the sale. Ranpak is headquartered in Ohio, USA and was established in 1972, it manufactures paper-based packaging for more than 25,000 companies in the electronics, food and beverage, and pharmaceutical industries worldwide. In June 2018, Rhône began discussion with Goldman Sachs regarding the sale of Ranpak Inc., which could fetch up to $1.5 billion and has about $100 million in annual earnings before interest, taxes, depreciation and amortization.
Neovia Logistics
In September 2014, Rhône Group together with Goldman Sachs acquired logistics services provider Neovia Logistics for more than $1 billion. Goldman Sachs' and Rhone Capital's consortium prevailed over a rival bid from Blackstone Group. The sale of Neovia comes just two years after private equity firm Platinum Equity acquired a 65% stake in the company from Caterpillar Inc., leaving the industrial conglomerate with a 35% interest.
TWE Global
In August 2014, Rhône Capital together with joint partner Kohlberg Kravis Roberts began talks for a takeover bid of the world's second largest wine producer, Treasury Wine Estates for a total deal value of $3.4 billion. TWE Global has revenue of over $2 billion and employs more than 4,000 people worldwide, encompassing 80 label brands including Penfolds, Wolf Blass, Beringer, Lindemans, Wynns and Rosemount. Rhone Group's partnership with KKR allowed for an 11% increase in offering from A$4.70 per share offered initially by KKR in April 2014 to A$5.20 cash per share in August 2014.
Coty, Inc.
In June 2013, Rhône along with Berkshire Partners and the Reimann family launched Coty, Inc. (COTY) into an IPO on the New York Stock Exchange raising over $1 billion valuing the company at around $6.7 billion. In 2012, Coty bid $10.7 billion for Avon Products Inc, (AVP.N) however due to a delayed response the offer was withdrawn. Coty's top 3 competitors are Estee Lauder Cos Inc. (EL.N), L'Oreal SA (OREP.PA) and Elizabeth Arden Inc (RDEN.O). Coty's brands in fragrances, color cosmetics including nail, skin and body care products support net revenues of $4.6 billion for the fiscal year ending June 30, 2012. Coty's top 10 brands are; Adidas, Calvin Klien, Chloe, Davidoff, Marc Jacobs, OPI, Philosophy, Playboy, Rimmel and Sally Hansen. Coty includes beauty brands ranging from ultra-premium luxury to entertainment, which include Balenciaga, Beyonce, Bottega Veneta, Chopard, Guess, Jennifer Lopez, JOOP!, Karl Lagerfeld, Kate Moss, Lady Gaga, Madonna, Roberto Cavalli, Vera Wang, Vivienne Westwood and others. Coty repurchased all shares from Rhone Capital and Berkshire partners in June 2014.
Eden Springs
In June 2013, Rhône acquired Mayanot Eden best known for its Eden Springs office water-cooler brand for $93.5 million. Eden is one of Europe's largest suppliers of watercoolers and the UK's market leader. In June 2016, Eden was acquired by Cott for $525 million.
ASK Chemicals
In April 2014, Rhône Group acquired ASK Chemicals from German Ashland Inc. and Swiss based Clariant. The deal was valued at about $350 million. ASK Chemicals is a leading foundry chemicals manufacturer with nearly 2,000 employees in 25 countries. It encompasses a range of foundry resources such as binders, coatings, feeders, filters and release agents, as well as metallurgical products including inoculants, inoculation wires and master alloys for iron casting. In 2013, ASK Chemicals generated annual revenues of €513 million.
CSM Global
In March 2013, Rhône Capital purchased CSM Bakery Product for $1.4 billion. The business is made up of the European Bakery Supplies and North American Bakery Products businesses, as well as the international Bakery Supplies activities. Rhône Capital will also acquire the CSM brand name. In 2012 these businesses had aggregate sales of $3.3 Billion and aggregate EBITA of $140 million. Total staff comprised 8,220 employees at the end of 2012. CSM shares rose nearly 8% following the announcement. Morgan Stanley and Price Waterhouse Coopers were joint advisers to Rhone. Rothschild and Rabobank acted for CSM.
Utex Industries
In March 2013, Rhône Capital sold one of its companies, Utex Industries, to Riverstone Holdings for approximately $800 million. KKR, First Reserve, and Ares Management were some of the companies considering bids. Rhone had previously acquired UTEX Industries in 2010 from the Audax Group, where they were advised by Lazard.
Orion Engineered Carbons
In April 2011, Rhône Capital purchased the Carbon Black unit from Evonik Industries AG for in-excess of $1.3 billion. At the time, Evonik described Carbon Black as the third largest in the world, including 16 production facilities in 11 countries with over 1,650 employees including 500 in Germany. Evonik was advised by Barclays Capital and Rhône was advised by Morgan Stanley. In July 2014, Rhone Capital filled for an IPO valuing the company at $1.36 billion.
Euromar LLC
In 2010, Rhone Capital made their first direct investment in the shipping industry. Euromar LLC, formed on March 25, 2010, is a joint venture of the Greek ship owner and operator Euroseas with Rhone Capital and Eton Park Capital Management, two recognized private investment firms. The partnership formed Euromar LLC, a Marshall Islands limited liability company. Pursuant to the terms of the joint venture, Rhone and Eton Park would each invest up to $75 million, equating to having a 42.86% interest each in the joint venture, whereas Euroseas would invest up to $25 million for a 14.28% interest in the joint venture, equating to a total investment of $175 million. Euroseas operates small and medium-sized container ships as well as dry bulk ships.
Liverpool F.C.
In March 2010, English Premier League football club Liverpool F.C. revealed that Rhône were in exclusive negotiations to potentially buy the football club. Rhône made a bid of £118.5 million for a controlling 40 percent stake in the Anfield club with an additional £25 million infusion of funds for transfers. Liverpool F.C's managing director Christian Purslow and manager Rafael Benitez both gave Tom Hicks and George N. Gillett, Jr. their recommendations to go ahead with the deal however Hicks and Gillett failed to meet the April 6th 2010 deadline set by Rhône. As a result, Liverpool F.C's £237 million debt to the Royal Bank of Scotland is still outstanding and lack of fresh investment has meant plans for work to begin on a new £350 million stadium have stalled.
In August 2010, Rhône re-emerged as a rival bidder in the takeover of Liverpool. Among other involved parties were Chinese businessman Kenny Huang, Yahya Kirdi's Syrian consortium, the Kuwaiti Al Kharafi family and Subrata Roy's Indian Sahara conglomerate. Liverpool's chairman, Martin Broughton, appointed by Barclays Capital, had hoped to identify a preferred bidder before the end of the transfer window, September 1, 2010. As a result of not having achieved this investment, George N. Gillett, Jr. and Tom Hicks were obliged to pay a £20 million penalty to the Royal Bank of Scotland.
Quiksilver Inc.
In 2009, Rhône loaned Quiksilver $150 million over five years to help the company refinance a U.S. line of credit and consolidate its European debt. The deal included $25.6 million in warrants which allowed Rhône to buy 30% of Quiksilver's shares making Rhône own over half the company. Rhône also assigned two new directors for Quiksilver's board. The deal was described by the Orange County Business Journal as a potential "lifesaver" for Quiksilver, which was initially struggling under the weight of their $560 million acquisition of French ski maker Rossignol. As a result, Quiksilver announced it no longer planned to sell its DC Shoes unit or any other brands it owned. Surfer Kelly Slater also signed a five-year extension of his endorsement deal with Quiksilver, and accepted a significant portion of his compensation in the form of the company's stock. In August 2010, Quiksilver completed an exchange of 31.1 million shares worth about $140 million for the debt, held by Rhone. At the time, Moody's stated that it could raise the debt rating on Quiksilver if the deal went through. Rhone has since exited their position making a return in excess of 22% on their investment.
Almatis
In 2007, Rhône sold Almatis, a producer of specialty alumina, to Dubai International Capital (DIC), the international investment arm of Dubai Holding, for $1.2 billion. DIC retained the existing management team and further supported the global growth strategy pursued by Almatis.
LWB Refractories
In 2007, Rhône bought LWB Refractories, described by the magazine Industrial Minerals as "the worlds leading refractory dolomite producer", from Lhoist Group S.A. for an undisclosed amount. In 2008, Rhône then sold LWB Refractories for $938 million. to Brazilian manufacturer Magnesita Refratarios S.A. The deal created what is now one of the world largest refractory manufacturers. Clifford Chance advised Rhône in connection with the combination of RHI AG and Magnesita to create a leading refractory company named RHI Magnesita, established in the Netherlands and listed on the London Stock Exchange, Rhone would remain the controlling shareholder.
InfOTE
In 2007, Rhône won the auction for the Greek Yellow Pages directories business InfOTE. Rhône acquired the business in partnership with buyout group Zarkona Trading for $450 million giving Rhône an 85% holding of the company and Zarkona with 15%. Rhône outbid rival US media-focused buyout group Veronis Suhler Stevenson, UK-based private equity house Bridgepoint, and DLJ Merchant Banking, the buyout arm of Credit Suisse, as well as Greek media group Antenna.
Fraikin
In 2007, Rhône together with Eurazeo sold truck rental company Fraikin to CVC Capital Partners for €1.35 billion. Eurazeo owned 55%, and Rhône owned 20%. The remaining percentage is owned by other minority shareholders and management.
Arizona Chemical
In 2006, Rhône bought Arizona Chemical for $485 million. The deal officially closed in the first quarter of 2007. Arizona Chemical is the world's largest producer of oleochemicals and specialty resins based on crude tall oil, a by-product of wood pulping. Arizona Chemical manufactures pine tree-based chemicals, such as fatty acids, rosin esters, and terpenes. These chemicals are used to manufacture products including adhesives, household cleaners, hydraulic fluids, inks, paints, personal care products, and plastics. Arizona Chemical was formed in 1930 by paper products maker International Paper and American Cyanamid and is now owned by Rhône. Arizona Chemical filed for an IPO in 2010. Arizona Chemical has been a leader in pine chemistry for more than 75 years.
UniEuro
In 2001, the UK's largest electronics retailer, Dixons bought Italy's most profitable chain of domestic appliance stores, UniEuro, from Rhône and JP Morgan for €368 million to take controlling interest of nearly 96% of the company with an option to buy the remaining 4% for €30 million. UniEuro employs over 3,000 people and as of 2006 had a turnover of €1 billion.
Lummus Technology
In June 2020 in partnership with Haldia Petrochemical Rhone Capital bought Lummus Technology from McDermott Inc. McDermott was in bankruptcy and in need of capital to pay off debt but retained an option for a minority stake. After their plan of reorganization was accepted McDermott exercised the option in March 2021.
Other investments
Coty, Inc.
Dufour Yachts ISB
Early Learning Centre
Go-Ahead Group
Rexair LLC
WTVX
Wahoo Fitness
Disclosure
Rhône is authorised and regulated by the Financial Conduct Authority (FCA) and the U.S Securities Exchange Commission (SEC). Rhône is a 'Selected Client' and 'Sponsor' to Sullivan & Cromwell LLP.
References
Private equity firms of the United States
Companies based in New York City
Financial services companies established in 1995
|
This is a round-up of the 1967 Sligo Senior Football Championship. The combined forces of Collooney and Ballisodare claimed the title in this year, having already claimed five of the previous seven titles in the decade as separate clubs. They defeated holders Easkey, after a replay, in the final.
First round
Quarter-finals
Semi-finals
Sligo Senior Football Championship Final
Sligo Senior Football Championship Final Replay
References
Sligo Champion (Summer-Autumn 1967)
Sligo Senior Football Championship
Sligo
|
Ngaihak Lambida (English: Along The Way) is a 2006 non-feature Indian Meitei language film directed by Haobam Paban Kumar. It is produced by Satyajit Ray Film and Television Institute. The film was selected in the non-feature section of the Indian Panorama at the 38th International Film Festival of India 2007.
The film participated in the competition section of Short Fiction Films in the Third Eye 6th Asian Film Festival, Mumbai, 2007.
Cast
Huirem Seema as Manileima
Kangabam Tomba as Stranger
Tarkovsky Haobam as Bungo
R.K. Surchandra as Geet
References
2006 films
Meitei-language films
|
Abuzariyeh (, also Romanized as Abūz̄arīyeh) is a village in Eslamabad Rural District, in the Central District of Jiroft County, Kerman Province, Iran. At the 2006 census, its population was 630, in 142 families.
References
Populated places in Jiroft County
|
```python
import demistomock as demisto
from CommonServerPython import *
import urllib3
from typing import Any
# Disable insecure warnings
urllib3.disable_warnings()
''' CONSTANTS '''
ISO_8601_FORMAT = "%Y-%m-%dT%H:%M:%S.000Z"
VENDOR = 'cisco'
PRODUCT = 'secure endpoint'
INTEGRATION_NAME = 'Cisco AMP Event Collector'
FIRST_FETCH = 'one hour'
''' CLIENT CLASS '''
class Client(BaseClient):
"""
Client for Cisco AMP
Args:
client_id (str): The Cisco AMP client_id for API access.
api_key (str): The Cisco AMP api_key for API access.
server_url (str): The Cisco AMP API server URL.
"""
API_VERSION = "v1"
def __init__(self, proxy: bool, verify: bool, server_url: str, client_id: str, api_key: str):
super().__init__(
base_url=urljoin(server_url, self.API_VERSION),
verify=verify,
proxy=proxy,
auth=(client_id, api_key),
)
def get_events(self, start_date: str = None, limit: int = None, offset: int = None) -> dict[str, Any]:
"""
Get a list of events.
Args:
start_date (str, optional): Fetch events that are newer than given time.
Defaults to None.
limit (int, optional): Maximum number of events to return.
Defaults to None.
offset (int, optional): Item number to start looking from.
Defaults to None.
Returns:
Dict[str, Any]: A list of events.
"""
params = remove_empty_elements({
"start_date": start_date,
"limit": limit,
"offset": offset,
})
return self._http_request(
method="GET",
url_suffix="/events",
params=params,
)
def test_module(client: Client, params) -> str:
"""
Tests API connectivity and authentication'
When 'ok' is returned it indicates the integration works like it is supposed to and connection to the service is
successful.
Raises exceptions if something goes wrong.
Args:
client (Client): CiscoAMP client to use.
Returns:
str: 'ok' if test passed, anything else will raise an exception and will fail the test.
"""
try:
fetch_events(client, params, {})
except Exception as e:
if 'Unauthorized' in str(e):
return 'Authorization Error: make sure the Client ID and API Key are correctly set'
else:
raise e
return 'ok'
def get_events(client, args):
"""
Gets events from Guardicore API.
"""
_, events = fetch_events(client=client, params=args, last_run={'last_fetch': args.get('from_date', FIRST_FETCH)})
hr = tableToMarkdown(name='Events', t=events)
return events, CommandResults(readable_output=hr)
def get_earliest_events(client, start_date, offset=0):
# A loop of fetching earliest events,
while True:
response = client.get_events(start_date=start_date, limit=500, offset=offset)
# Check if there are more pages to fetch
if "next" not in response["metadata"]["links"]:
break
total_results = response.get('metadata', {}).get('results', {}).get('total')
if not total_results:
raise Exception('wrong response returned')
offset = total_results - 500
# Reverses the list of events so that the list is in ascending order
# so that the earliest event will be the first in the list
events = response.get("data")
events.reverse()
return events
def iterate_events(events, max_events_per_fetch, previous_ids, last_fetch_timestamp):
# Copy the previous_ids list to manage the events list suspected of being duplicates for the next fetch
new_previous_ids = previous_ids.copy()
filtered_events: list[dict[str, Any]] = []
for event in events:
# Break once the maximum number of filtered_events has been achieved.
if len(filtered_events) >= max_events_per_fetch:
demisto.debug('We reached the "max_events_per_fetch" requested by the user')
break
# Skip if the event ID has been fetched already.
if (event_id := str(event.get("id"))) in previous_ids:
demisto.debug(f'skipping {event_id} as it was appear in previous_ids, which means it was already fetched')
continue
event_timestamp = arg_to_number(event.get('timestamp') * 1000, required=True, arg_name='event.timestamp')
event.update({'_time': timestamp_to_datestring(event_timestamp, is_utc=True)})
filtered_events.append(event)
# Update the latest event time that was fetched.
# And accordingly initializing the list of `previous_ids`
# to the ids that belong to the time of the last event received
if event_timestamp > last_fetch_timestamp:
demisto.debug('updating the last run')
new_previous_ids = {event_id}
last_fetch_timestamp = event_timestamp
# Adding the event ID when the event time is equal to the last received event
elif event_timestamp == last_fetch_timestamp:
demisto.debug('adding id to the "new_previous_ids"')
new_previous_ids.add(event_id)
last_run = {
"last_fetch": timestamp_to_datestring(last_fetch_timestamp, is_utc=True),
"previous_ids": list(new_previous_ids),
}
return last_run, filtered_events
def fetch_events(client: Client, params: dict, last_run: dict):
"""
Fetches events from CiscoAMP API.
"""
max_events_per_fetch = arg_to_number(params.get('max_events_per_fetch')) or 1000
filtered_events = []
while max_events_per_fetch:
demisto.debug(f'{last_run=}')
start_date = last_run.get("last_fetch")
if start_date:
start_date = dateparser.parse(start_date).strftime(ISO_8601_FORMAT) # type: ignore[union-attr]
else:
start_date = dateparser.parse(FIRST_FETCH).strftime(ISO_8601_FORMAT) # type: ignore[union-attr]
last_fetch_timestamp = date_to_timestamp(start_date, ISO_8601_FORMAT)
demisto.debug(f'Getting events from: {start_date}')
# The list of event ids that are suspected of being duplicates
previous_ids = set(last_run.get("previous_ids", []))
events = get_earliest_events(client, start_date)
demisto.debug(f'Received {len(events)} events from request')
last_run, events = iterate_events(events, max_events_per_fetch, previous_ids, last_fetch_timestamp)
demisto.debug(f'Remained {len(events)} after filtering')
filtered_events += events
if not events:
break
max_events_per_fetch -= len(filtered_events)
demisto.debug(f'Fetched {len(filtered_events)} events.')
return last_run, filtered_events
''' MAIN FUNCTION '''
def main() -> None:
"""
main function, parses params and runs command functions
"""
params = demisto.params()
args = demisto.args()
command = demisto.command()
client_id = params.get('credentials').get('identifier')
api_key = params.get('credentials').get('password')
server_url = urljoin(params.get('url'))
verify_certificate = not argToBoolean(params.get('insecure', False))
proxy = params.get("proxy", False)
should_push_events = argToBoolean(args.get('should_push_events', False))
demisto.debug(f'Command being called is {command}')
try:
client = Client(client_id=client_id, api_key=api_key,
server_url=server_url, proxy=proxy, verify=verify_certificate)
if command == 'test-module':
# This is the call made when pressing the integration Test button.
return_results(test_module(client, params))
elif command == 'cisco-amp-get-events':
events, results = get_events(client, args) # type: ignore
return_results(results)
if should_push_events:
send_events_to_xsiam(events, vendor=VENDOR, product=PRODUCT)
elif command == 'fetch-events':
last_run = demisto.getLastRun() or {}
next_run, events = fetch_events(client, params, last_run)
demisto.setLastRun(next_run)
send_events_to_xsiam(events, vendor=VENDOR, product=PRODUCT)
# Log exceptions and return errors
except Exception as e:
return_error(f'Failed to execute {command} command.\nError:\n{str(e)}')
''' ENTRY POINT '''
if __name__ in ('__main__', '__builtin__', 'builtins'):
main()
```
|
```c++
#include <c10/util/irange.h>
#include <pybind11/pytypes.h>
#include <torch/csrc/Size.h>
#include <torch/csrc/utils/pybind.h>
#include <torch/csrc/utils/object_ptr.h>
#include <torch/csrc/utils/python_arg_parser.h>
#include <torch/csrc/utils/python_numbers.h>
#include <torch/csrc/utils/python_strings.h>
#include <torch/csrc/utils/python_tuples.h>
#include <string>
#include <torch/csrc/autograd/python_variable.h>
#include <torch/csrc/jit/frontend/tracer.h>
struct THPSize {
PyTupleObject tuple;
};
PyObject* THPSize_New(const torch::autograd::Variable& var) {
if (!torch::jit::tracer::isTracing()) {
auto sizes = var.sizes();
return THPSize_NewFromSizes(var.dim(), sizes.data());
}
auto self = THPObjectPtr(THPSizeType.tp_alloc(&THPSizeType, var.dim()));
if (!self)
throw python_error();
for (const auto i : c10::irange(var.dim())) {
PyObject* py_size_tensor =
THPVariable_Wrap(torch::jit::tracer::getSizeOf(var, i));
if (!py_size_tensor)
throw python_error();
PyTuple_SET_ITEM(self.get(), i, py_size_tensor);
}
return self.release();
}
PyObject* THPSize_NewFromSizes(int64_t dim, const int64_t* sizes) {
auto self = THPObjectPtr(THPSizeType.tp_alloc(&THPSizeType, dim));
if (!self)
throw python_error();
THPUtils_packInt64Array(self, dim, sizes);
return self.release();
}
PyObject* THPSize_NewFromSymSizes(const at::Tensor& self_) {
auto sym_sizes = self_.sym_sizes();
auto ret = THPObjectPtr(THPSizeType.tp_alloc(
&THPSizeType, static_cast<Py_ssize_t>(sym_sizes.size())));
if (!ret)
throw python_error();
for (auto i : c10::irange(sym_sizes.size())) {
auto si = sym_sizes[i];
if (si.is_symbolic()) {
// First check for actual symbolic values.
// Reason: so that we don't replace it by its integer replacement
// implicitly.
TORCH_CHECK(
!torch::jit::tracer::isTracing(),
"JIT Tracing of SymInts isn't supported");
auto py_symint = py::cast(si).release().ptr();
if (!py_symint)
throw python_error();
PyTuple_SET_ITEM(ret.get(), i, py_symint);
} else {
// Otherwise, we know that it is an actual integer value.
auto m = si.maybe_as_int();
if (torch::jit::tracer::isTracing()) {
PyObject* py_size_tensor = THPVariable_Wrap(
torch::jit::tracer::getSizeOf(self_, static_cast<int64_t>(i)));
if (!py_size_tensor)
throw python_error();
PyTuple_SET_ITEM(ret.get(), i, py_size_tensor);
} else {
// NOLINTNEXTLINE(bugprone-unchecked-optional-access)
PyTuple_SET_ITEM(ret.get(), i, THPUtils_packInt64(*m));
}
}
}
return ret.release();
}
static bool isTracedZeroDimVar(PyObject* item) {
if (!THPVariable_Check(item))
return false;
auto& var = THPVariable_Unpack(item);
return var.dim() == 0 && torch::jit::tracer::getValueTrace(var);
}
static PyObject* THPSize_pynew(
PyTypeObject* type,
PyObject* args,
PyObject* kwargs) {
HANDLE_TH_ERRORS
THPObjectPtr self(PyTuple_Type.tp_new(type, args, kwargs));
if (self) {
for (Py_ssize_t i = 0; i < PyTuple_Size(self); ++i) {
PyObject* item = PyTuple_GET_ITEM(self.get(), i);
if (THPUtils_checkLong(item)) {
continue;
}
if (torch::is_symint(item)) {
continue;
}
if (torch::jit::tracer::isTracing() && isTracedZeroDimVar(item)) {
continue;
}
// item.__index__() works with 0-dim tensors and tensors with one element
THPObjectPtr number(PyNumber_Index(item));
if (number && THPUtils_checkLong(number.get())) {
Py_INCREF(number.get());
auto status = PyTuple_SetItem(self, i, number.get());
if (status != 0) {
throw python_error();
}
continue;
}
return PyErr_Format(
PyExc_TypeError,
"torch.Size() takes an iterable of 'int' (item %zd is '%s')",
i,
Py_TYPE(item)->tp_name);
}
}
return self.release();
END_HANDLE_TH_ERRORS
}
static PyObject* THPSize_repr(THPSize* self) {
HANDLE_TH_ERRORS
std::string repr("torch.Size([");
for (Py_ssize_t i = 0; i < PyTuple_Size((PyObject*)self); ++i) {
if (i != 0) {
repr += ", ";
}
auto item = PyTuple_GET_ITEM(self, i);
auto ih = py::handle(item);
repr += torch::is_symint(ih)
? std::string(py::str(ih))
: std::to_string(THPUtils_unpackLong(PyTuple_GET_ITEM(self, i)));
}
repr += "])";
return THPUtils_packString(repr);
END_HANDLE_TH_ERRORS
}
extern PyTypeObject THPSizeType;
template <typename FnType, FnType fn, typename... Args>
static PyObject* wrap_tuple_fn(Args... args) {
THPObjectPtr result((*fn)(std::forward<Args>(args)...));
if (!result)
return nullptr;
if (PyTuple_Check(result.get())) {
return PyObject_CallFunctionObjArgs(
(PyObject*)&THPSizeType, result.get(), nullptr);
}
return result.release();
}
// We use an anonymous namespace instead of static to work around
// (what @peterjc123 think is) a bug in Visual Studio
namespace {
auto sq_concat = PyTuple_Type.tp_as_sequence->sq_concat;
auto sq_repeat = PyTuple_Type.tp_as_sequence->sq_repeat;
binaryfunc mp_subscript = PyTuple_Type.tp_as_mapping->mp_subscript;
} // namespace
static PySequenceMethods THPSize_as_sequence = {
nullptr, /* sq_length */
wrap_tuple_fn<decltype(&sq_concat), &sq_concat>,
wrap_tuple_fn<decltype(&sq_repeat), &sq_repeat>,
nullptr, /* sq_item */
nullptr, /* sq_slice */
nullptr, /* sq_ass_item */
nullptr, /* sq_ass_slice */
nullptr /* sq_contains */
};
static PyMappingMethods THPSize_as_mapping = {
nullptr, /* mp_length */
wrap_tuple_fn<decltype(&mp_subscript), &mp_subscript>,
nullptr};
static PyObject* THPSize_numel(PyObject* _self, PyObject* noargs) {
HANDLE_TH_ERRORS
auto self = (THPSize*)_self;
int64_t numel = 1;
for (Py_ssize_t i = 0; i < PyTuple_Size((PyObject*)self); ++i) {
numel *= THPUtils_unpackLong(PyTuple_GET_ITEM(self, i));
}
return THPUtils_packInt64(numel);
END_HANDLE_TH_ERRORS
}
static PyObject* THPSize_reduce(PyObject* _self, PyObject* noargs) {
HANDLE_TH_ERRORS
auto self = (THPSize*)_self;
auto ret = THPObjectPtr{PyTuple_New(2)};
if (!ret)
throw python_error();
auto obj = (PyObject*)(&THPSizeType);
Py_INCREF(&THPSizeType);
PyTuple_SET_ITEM(ret.get(), 0, obj);
THPObjectPtr t(PyTuple_New(PyTuple_Size((PyObject*)self)));
if (!t)
throw python_error();
for (Py_ssize_t i = 0; i < PyTuple_Size((PyObject*)self); ++i) {
auto d = PyTuple_GET_ITEM(self, i);
Py_INCREF(d);
PyTuple_SET_ITEM(t.get(), i, d);
}
THPObjectPtr dims(Py_BuildValue("(O)", t.get()));
if (!dims)
throw python_error();
PyTuple_SET_ITEM(ret.get(), 1, dims.release());
return ret.release();
END_HANDLE_TH_ERRORS
}
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables,modernize-avoid-c-arrays,cppcoreguidelines-avoid-c-arrays)
static PyMethodDef THPSize_methods[] = {
{"numel", THPSize_numel, METH_NOARGS, nullptr},
{"__reduce__", THPSize_reduce, METH_NOARGS, nullptr},
{nullptr}};
PyTypeObject THPSizeType = {
PyVarObject_HEAD_INIT(nullptr, 0) "torch.Size", /* tp_name */
sizeof(THPSize), /* tp_basicsize */
0, /* tp_itemsize */
nullptr, /* tp_dealloc */
0, /* tp_vectorcall_offset */
nullptr, /* tp_getattr */
nullptr, /* tp_setattr */
nullptr, /* tp_reserved */
(reprfunc)THPSize_repr, /* tp_repr */
nullptr, /* tp_as_number */
&THPSize_as_sequence, /* tp_as_sequence */
&THPSize_as_mapping, /* tp_as_mapping */
nullptr, /* tp_hash */
nullptr, /* tp_call */
nullptr, /* tp_str */
nullptr, /* tp_getattro */
nullptr, /* tp_setattro */
nullptr, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */
nullptr, /* tp_doc */
nullptr, /* tp_traverse */
nullptr, /* tp_clear */
nullptr, /* tp_richcompare */
0, /* tp_weaklistoffset */
nullptr, /* tp_iter */
nullptr, /* tp_iternext */
THPSize_methods, /* tp_methods */
nullptr, /* tp_members */
nullptr, /* tp_getset */
&PyTuple_Type, /* tp_base */
nullptr, /* tp_dict */
nullptr, /* tp_descr_get */
nullptr, /* tp_descr_set */
0, /* tp_dictoffset */
nullptr, /* tp_init */
nullptr, /* tp_alloc */
THPSize_pynew, /* tp_new */
};
void THPSize_init(PyObject* module) {
if (PyType_Ready(&THPSizeType) < 0) {
throw python_error();
}
Py_INCREF(&THPSizeType);
if (PyModule_AddObject(module, "Size", (PyObject*)&THPSizeType) < 0) {
throw python_error();
}
}
```
|
```java
Java naming conventions
Ternary operator
Using Inheritance to reduce code repetition
Use `DecimalFormat` class to format numbers
How range operations work
```
|
The Val di Crati was an administrative region in the Kingdom of Sicily. It was the territory originally conquered by Robert Guiscard in the 1050s. At that time, its population was a mix of Greek and Lombard (Latin) Christians. Under the Hohenstaufen and Angevin kings, the Val di Crati became closely associated with the terra iordanis, the land of Jordan (died 1092), son of Roger I. The terra iordanis retained its distinct identity into the 13th century.
In 1145, the first Cistercian monastery in southern Italy, Santa Maria della Sambucina, was founded in the Val di Crati. In 1150, Roger II issued a new law (novella) for Calabria and the Val di Crati, instructing judges on how to divide property among heirs. It had its own justiciar in 1150 and its own chamberlain (camerarius).
Notes
Sources
Matthew, Donald. The Norman Kingdom of Sicily. Cambridge, 1992.
Loud, G. A. The Latin Church in Norman Italy. Cambridge, 2007.
Kingdom of Sicily
|
```c++
/*=============================================================================
Use modification and distribution are subject to the Boost Software
path_to_url
==============================================================================*/
#if !defined(BOOST_FUSION_SUPPORT_DEDUCE_HPP_INCLUDED)
#define BOOST_FUSION_SUPPORT_DEDUCE_HPP_INCLUDED
#include <boost/ref.hpp>
namespace boost { namespace fusion { namespace traits
{
template <typename T> struct deduce;
//----- ---- --- -- - - - -
// Non-references pass unchanged
template <typename T>
struct deduce
{
typedef T type;
};
template <typename T>
struct deduce<T const>
{
typedef T type;
};
template <typename T>
struct deduce<T volatile>
{
typedef T type;
};
template <typename T>
struct deduce<T const volatile>
{
typedef T type;
};
// Keep references on mutable LValues
template <typename T>
struct deduce<T &>
{
typedef T & type;
};
template <typename T>
struct deduce<T volatile&>
{
typedef T volatile& type;
};
// Store away potential RValues
template <typename T>
struct deduce<T const&>
{
typedef T type;
};
template <typename T>
struct deduce<T const volatile&>
{
typedef T type;
};
// Unwrap Boost.RefS (referencee cv is deduced)
template <typename T>
struct deduce<reference_wrapper<T> & >
{
typedef T& type;
};
template <typename T>
struct deduce<reference_wrapper<T> const & >
{
typedef T& type;
};
// Keep references on arrays, even if const
template <typename T, int N>
struct deduce<T(&)[N]>
{
typedef T(&type)[N];
};
template <typename T, int N>
struct deduce<volatile T(&)[N]>
{
typedef volatile T(&type)[N];
};
template <typename T, int N>
struct deduce<const T(&)[N]>
{
typedef const T(&type)[N];
};
template <typename T, int N>
struct deduce<const volatile T(&)[N]>
{
typedef const volatile T(&type)[N];
};
}}}
#endif
```
|
```python
# class Logger(object):
# def __init__(self):
# """
# Initialize your data structure here.
# """
# self.timestamps = {}
# def shouldPrintMessage(self, timestamp, message):
# """
# Returns true if the message should be printed in the given timestamp, otherwise returns false.
# If this method returns false, the message will not be printed.
# The timestamp is in seconds granularity.
# :type timestamp: int
# :type message: str
# :rtype: bool
# """
# if timestamp < self.timestamps.get(message, 0):
# return False
# self.timestamps[message] = timestamp + 10
# return True
import heapq
class Logger(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.heap = []
self.cache = {}
def shouldPrintMessage(self, timestamp, message):
"""
Returns true if the message should be printed in the given timestamp, otherwise returns false.
If this method returns false, the message will not be printed.
The timestamp is in seconds granularity.
:type timestamp: int
:type message: str
:rtype: bool
"""
while len(self.heap):
if self.heap[0][0] <= timestamp:
temp = heapq.heappop(self.heap)
self.cache.pop(temp[1])
else:
break
if timestamp < self.cache.get(message, 0):
return False
self.cache[message] = timestamp + 10
heapq.heappush(self.heap, (timestamp + 10, message))
return True
# Your Logger object will be instantiated and called as such:
# obj = Logger()
# param_1 = obj.shouldPrintMessage(timestamp,message)
```
|
```xml
<!--
***********************************************************************************************
Xamarin.TVOS.AppExtension.CSharp.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
This file imports the version- and platform-specific targets for the project importing
this file. This file also defines targets to produce an error if the specified targets
file does not exist, but the project is built anyway (command-line or IDE build).
***********************************************************************************************
-->
<Project DefaultTargets="Build" xmlns="path_to_url">
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets"
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets')"/>
<PropertyGroup>
<!-- Version/fx properties -->
<TargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == ''">Xamarin.TVOS</TargetFrameworkIdentifier>
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v1.0</TargetFrameworkVersion>
<!-- This must be set before importing Microsoft.CSharp.targets -->
<!-- See Xamarin.iOS.AppExtension.CSharp.targets for a detailed explanation of this variable -->
<CopyNuGetImplementations Condition="'$(CopyNuGetImplementations)' == ''">true</CopyNuGetImplementations>
<!-- Enable nuget package conflict resolution -->
<!-- This must be set before importing Microsoft.CSharp.targets -->
<ResolveAssemblyConflicts>true</ResolveAssemblyConflicts>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" Condition="'$(UsingAppleNETSdk)' != 'true'" />
<Import Project="Xamarin.TVOS.AppExtension.Common.targets" />
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets"
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets')"/>
</Project>
```
|
Thomas Cecil Griscom (born 1949) served as Director of White House Communications under President Ronald Reagan, was a top aide and adviser for a decade to U.S. Senator Howard Baker of Tennessee, and was the executive editor and publisher of the Chattanooga Times Free Press from October 1999 to June 30, 2010.
Griscom served in the 1990s as the executive vice president for external relations for the RJ Reynolds Tobacco company, as an employee of Rupert Murdoch's News Ltd; and as a public relations consultant with Powell-Tate.
In December 1998, Fortune magazine's "The Power of 25: the influence merchants" named Griscom, along with other ex-White House staff, ex-politicians and sons-of-politicians, as a key lobbyist in Washington.
Griscom is a graduate of Brainerd High School and the University of Tennessee at Chattanooga.
Life and career
Politics
In 1978 Griscom joined the staff of Senator Baker and served as press secretary. In 1985-86, after Baker's retirement from the Senate, Griscom served as the executive director of the National Republican Senatorial Committee (NRSC), and was charged with the task of overseeing the re-election efforts of the Republican majority in the Senate. He later became part of the Reagan administration in 1987, while Baker was chief of staff. As Baker's senior staff person, he essentially ran day-to-day operations at the White House, and he maintained the strong links between the administration and the Republican Party.
His most notable claim during this period was that, in 1987, as communications director at the White House, he approved and promoted (against diplomatic advice) Peter Robinson's draft speech made at the Berlin Wall, where President Reagan demanded that Soviet leader Mikhail Gorbachev "tear down this wall".
Reynolds Tobacco
In 1990, he joined Reynolds Tobacco as head of its external relations program, and over the next 10 years he was responsible for the company's strategic operations against the growing anti-smoking forces. He also administered and organized the company's involvement in the many cooperative campaigns conducted with Philip Morris and the Tobacco Institute in lobbying the United States Congress to block anti-smoking legislation. RJR also took a lead role at this time in conducting misinformation campaigns for media and public consumption—especially in the promotion of the idea that health regulations were largely the product of junk science.
Not long after joining RJR, Griscom became a key director on the management committee of the Tobacco Institute, responsible for secretly funding friendly think tanks and other organizations, and for organizing scientists, lawyers and other business allies to attack regulatory measures that blocked cigarette advertising, or those that introduced environmental and health regulations.
Steve Milloy, who ran the fake "scientific grassroots" organisation known as the Advancement of Sound Science Coalition (TASSC) and its junk science website for Philip Morris on behalf of the tobacco industry, was transferred in mid-1996 to the control of Reynolds under Griscom when TASSC and the junkscience.com links with Philip Morris were exposed.
Griscom subcontracted the administration of this "sound-science" operation to Jody Powell (ex-press secretary to President Jimmy Carter) and Sheila Tate (First Lady Nancy Reagan's adviser) at Powell-Tate. RJR and Powell-Tate also handled the distribution of Milloy's book, Science without Sense, supposedly published by the Cato Institute (which was itself funded by tobacco interests). Similar books were commissioned and payment laundered through think tanks for academic authors.
One other "successful" program run at this time was to characterise relatively harmless substances as "potentially cancerous" as part of the industry's "sound-science" campaign. Griscom's PR staff attempted to both promote and ridicule the idea that coffee could cause cancer via Milloy's junk-science web pages and op-ed articles planted in newspapers. This created the straw-man idea that everything enjoyable could be classed as potentially dangerous (to counter fears about passive smoking) and no one could live without taking the normal risks associated with living.
Griscom's communications and media division of RJR also hired state and federal lobbyists, planted ghost-written articles and letters to the editor in major newspapers and magazines and promoted seemingly normal tours by comedians, musicians, artists, etc. who were all carefully trained and contracted to promote the pro-smoking message.
In 1997-98, Griscom represented R.J. Reynolds on a long series of tobacco industry negotiations with the State Attorneys-General, the Justices Department, the White House and its agencies. This led to a February 1998 Master Settlement Agreement, in which the tobacco industry agreed to pay hundreds of millions of dollars in compensation for Medicaid costs associated with smoking to avoid charges under the Racketeer Influenced and Corrupt Organizations Act (RICO).
He left R.J. Reynolds in the later half of 1999 and returned to Chattanooga "to help shape the overall identity" of the city's now single daily print newspaper, formed after WEHCO Media bought and merged the fiercely competitive afternoon Free Press and the morning The Chattanooga Times to create the Chattanooga Times Free Press. On May 26, 2010, Griscom announced he would resign from the newspaper June 30, 2010.
Personal life
Griscom is married to the former Marion Dobbins.
References
External links
1950 births
American lobbyists
American newspaper editors
American newspaper publishers (people)
Living people
People from Chattanooga, Tennessee
Reagan administration personnel
Tennessee Republicans
University of Tennessee at Chattanooga alumni
White House Communications Directors
|
```xml
<?xml version="1.0"?>
<Mission xmlns="path_to_url" xmlns:xsi="path_to_url">
<About>
<Summary>Healthy diet. Eating right and wrong objects</Summary>
</About>
<ModSettings>
<MsPerTick>50</MsPerTick>
</ModSettings>
<ServerSection>
<ServerInitialConditions>
<Time>
<StartTime>6000</StartTime>
<AllowPassageOfTime>false</AllowPassageOfTime>
</Time>
<Weather>clear</Weather>
<AllowSpawning>false</AllowSpawning>
</ServerInitialConditions>
<ServerHandlers>
<FlatWorldGenerator generatorString="3;7,220*1,5*3,2;3;,biome_1"/>
<DrawingDecorator>
<DrawCuboid colour="RED" face="UP" type="carpet" x1="-50" x2="50" y1="226" y2="226" z1="-50" z2="50"/>
<DrawItem type="egg" x="-41" y="250" z="-46"/>
<DrawItem type="egg" x="-33" y="250" z="-18"/>
<DrawItem type="egg" x="2" y="250" z="-19"/>
<DrawItem type="carrot" x="-28" y="250" z="-44"/>
<DrawItem type="apple" x="41" y="250" z="30"/>
<DrawItem type="apple" x="-23" y="250" z="18"/>
<DrawItem type="potato" x="-28" y="250" z="25"/>
<DrawItem type="pumpkin_pie" x="-12" y="250" z="3"/>
<DrawItem type="sugar" x="-9" y="250" z="10"/>
<DrawItem type="sugar" x="2" y="250" z="46"/>
<DrawItem type="chicken" x="-3" y="250" z="29"/>
<DrawItem type="egg" x="33" y="250" z="13"/>
<DrawItem type="carrot" x="0" y="250" z="-1"/>
<DrawItem type="cake" x="-26" y="250" z="-14"/>
<DrawItem type="potato" x="49" y="250" z="-5"/>
<DrawItem type="potato" x="-48" y="250" z="41"/>
<DrawItem type="potato" x="-48" y="250" z="-12"/>
<DrawItem type="potato" x="-7" y="250" z="-42"/>
<DrawItem type="beef" x="26" y="250" z="9"/>
<DrawItem type="pumpkin_pie" x="-7" y="250" z="-40"/>
<DrawItem type="sugar" x="-2" y="250" z="-48"/>
<DrawItem type="egg" x="7" y="250" z="-27"/>
<DrawItem type="pumpkin_pie" x="17" y="250" z="38"/>
<DrawItem type="porkchop" x="-8" y="250" z="-6"/>
<DrawItem type="egg" x="4" y="250" z="31"/>
<DrawItem type="chicken" x="-49" y="250" z="-11"/>
<DrawItem type="pumpkin_pie" x="-1" y="250" z="11"/>
<DrawItem type="apple" x="-6" y="250" z="-35"/>
<DrawItem type="fish" x="-38" y="250" z="18"/>
<DrawItem type="cookie" x="34" y="250" z="5"/>
<DrawItem type="fish" x="46" y="250" z="-11"/>
<DrawItem type="fish" x="-21" y="250" z="-29"/>
<DrawItem type="carrot" x="-10" y="250" z="-47"/>
<DrawItem type="cake" x="-26" y="250" z="26"/>
<DrawItem type="pumpkin_pie" x="-25" y="250" z="-13"/>
<DrawItem type="fish" x="43" y="250" z="2"/>
<DrawItem type="apple" x="46" y="250" z="47"/>
<DrawItem type="mutton" x="15" y="250" z="-48"/>
<DrawItem type="beef" x="46" y="250" z="-1"/>
<DrawItem type="carrot" x="16" y="250" z="6"/>
<DrawItem type="mutton" x="-27" y="250" z="26"/>
<DrawItem type="beef" x="35" y="250" z="-13"/>
<DrawItem type="chicken" x="44" y="250" z="3"/>
<DrawItem type="rabbit" x="-44" y="250" z="42"/>
<DrawItem type="egg" x="43" y="250" z="15"/>
<DrawItem type="rabbit" x="33" y="250" z="-37"/>
<DrawItem type="fish" x="-9" y="250" z="-25"/>
<DrawItem type="melon" x="-45" y="250" z="-21"/>
<DrawItem type="mutton" x="-13" y="250" z="-40"/>
<DrawItem type="cookie" x="-7" y="250" z="-31"/>
<DrawItem type="cookie" x="32" y="250" z="-22"/>
<DrawItem type="rabbit" x="15" y="250" z="16"/>
<DrawItem type="mutton" x="-37" y="250" z="26"/>
<DrawItem type="cookie" x="19" y="250" z="47"/>
<DrawItem type="beef" x="33" y="250" z="-22"/>
<DrawItem type="melon" x="19" y="250" z="-25"/>
<DrawItem type="sugar" x="8" y="250" z="10"/>
<DrawItem type="egg" x="-41" y="250" z="32"/>
<DrawItem type="beef" x="49" y="250" z="-18"/>
<DrawItem type="beef" x="-26" y="250" z="8"/>
<DrawItem type="porkchop" x="-49" y="250" z="19"/>
<DrawItem type="beef" x="-34" y="250" z="39"/>
<DrawItem type="potato" x="-26" y="250" z="-24"/>
<DrawItem type="melon" x="37" y="250" z="-17"/>
<DrawItem type="melon" x="-49" y="250" z="-49"/>
<DrawItem type="potato" x="-45" y="250" z="23"/>
<DrawItem type="potato" x="40" y="250" z="-18"/>
<DrawItem type="cake" x="-5" y="250" z="-49"/>
<DrawItem type="chicken" x="34" y="250" z="-9"/>
<DrawItem type="sugar" x="-8" y="250" z="44"/>
<DrawItem type="egg" x="-7" y="250" z="-22"/>
<DrawItem type="carrot" x="20" y="250" z="36"/>
<DrawItem type="egg" x="-21" y="250" z="-9"/>
<DrawItem type="sugar" x="50" y="250" z="22"/>
<DrawItem type="apple" x="31" y="250" z="-13"/>
<DrawItem type="mutton" x="-46" y="250" z="-23"/>
<DrawItem type="cake" x="19" y="250" z="-8"/>
<DrawItem type="beef" x="29" y="250" z="-43"/>
<DrawItem type="pumpkin_pie" x="-43" y="250" z="37"/>
<DrawItem type="chicken" x="-12" y="250" z="45"/>
<DrawItem type="beef" x="-19" y="250" z="2"/>
<DrawItem type="egg" x="-32" y="250" z="-13"/>
<DrawItem type="egg" x="41" y="250" z="13"/>
<DrawItem type="apple" x="34" y="250" z="-13"/>
<DrawItem type="carrot" x="25" y="250" z="49"/>
<DrawItem type="rabbit" x="-10" y="250" z="24"/>
<DrawItem type="chicken" x="45" y="250" z="-27"/>
<DrawItem type="egg" x="-22" y="250" z="44"/>
<DrawItem type="melon" x="44" y="250" z="39"/>
<DrawItem type="beef" x="48" y="250" z="-8"/>
<DrawItem type="cake" x="-45" y="250" z="18"/>
<DrawItem type="fish" x="-27" y="250" z="34"/>
<DrawItem type="potato" x="24" y="250" z="-18"/>
<DrawItem type="melon" x="50" y="250" z="43"/>
<DrawItem type="egg" x="-23" y="250" z="34"/>
<DrawItem type="carrot" x="-11" y="250" z="27"/>
<DrawItem type="mutton" x="28" y="250" z="-44"/>
<DrawItem type="rabbit" x="-47" y="250" z="-29"/>
<DrawItem type="fish" x="17" y="250" z="-5"/>
<DrawItem type="porkchop" x="-42" y="250" z="25"/>
<DrawItem type="sugar" x="26" y="250" z="48"/>
<DrawItem type="melon" x="44" y="250" z="-26"/>
<DrawItem type="chicken" x="-14" y="250" z="-33"/>
<DrawItem type="egg" x="17" y="250" z="7"/>
<DrawItem type="cookie" x="-36" y="250" z="40"/>
<DrawItem type="cookie" x="-32" y="250" z="28"/>
<DrawItem type="rabbit" x="48" y="250" z="-18"/>
<DrawItem type="porkchop" x="24" y="250" z="-24"/>
<DrawItem type="melon" x="-13" y="250" z="-17"/>
<DrawItem type="rabbit" x="-25" y="250" z="38"/>
<DrawItem type="porkchop" x="18" y="250" z="47"/>
<DrawItem type="porkchop" x="-47" y="250" z="34"/>
<DrawItem type="mutton" x="-11" y="250" z="10"/>
<DrawItem type="potato" x="-17" y="250" z="-38"/>
<DrawItem type="mutton" x="-42" y="250" z="34"/>
<DrawItem type="potato" x="-4" y="250" z="-33"/>
<DrawItem type="mutton" x="-10" y="250" z="39"/>
<DrawItem type="fish" x="44" y="250" z="-38"/>
<DrawItem type="apple" x="-11" y="250" z="34"/>
<DrawItem type="porkchop" x="-30" y="250" z="-4"/>
<DrawItem type="melon" x="11" y="250" z="19"/>
<DrawItem type="melon" x="36" y="250" z="2"/>
<DrawItem type="carrot" x="32" y="250" z="-41"/>
<DrawItem type="cookie" x="32" y="250" z="-39"/>
<DrawItem type="melon" x="26" y="250" z="-27"/>
<DrawItem type="mutton" x="46" y="250" z="-12"/>
<DrawItem type="porkchop" x="32" y="250" z="-41"/>
<DrawItem type="potato" x="-40" y="250" z="11"/>
<DrawItem type="egg" x="-1" y="250" z="-13"/>
<DrawItem type="fish" x="4" y="250" z="2"/>
<DrawItem type="chicken" x="-9" y="250" z="22"/>
<DrawItem type="pumpkin_pie" x="31" y="250" z="5"/>
<DrawItem type="apple" x="-13" y="250" z="-38"/>
<DrawItem type="rabbit" x="4" y="250" z="38"/>
<DrawItem type="potato" x="-2" y="250" z="45"/>
<DrawItem type="potato" x="7" y="250" z="-18"/>
<DrawItem type="sugar" x="-34" y="250" z="45"/>
<DrawItem type="sugar" x="31" y="250" z="-30"/>
<DrawItem type="egg" x="-26" y="250" z="29"/>
<DrawItem type="potato" x="13" y="250" z="37"/>
<DrawItem type="beef" x="-45" y="250" z="-33"/>
<DrawItem type="carrot" x="20" y="250" z="29"/>
<DrawItem type="potato" x="-48" y="250" z="-41"/>
<DrawItem type="sugar" x="-11" y="250" z="-22"/>
<DrawItem type="melon" x="-48" y="250" z="25"/>
<DrawItem type="egg" x="-32" y="250" z="-24"/>
<DrawItem type="chicken" x="-46" y="250" z="-12"/>
<DrawItem type="sugar" x="17" y="250" z="34"/>
<DrawItem type="mutton" x="-37" y="250" z="-44"/>
<DrawItem type="carrot" x="-15" y="250" z="26"/>
<DrawItem type="egg" x="-48" y="250" z="40"/>
<DrawItem type="melon" x="-22" y="250" z="-6"/>
<DrawItem type="sugar" x="-4" y="250" z="33"/>
<DrawItem type="pumpkin_pie" x="24" y="250" z="29"/>
<DrawItem type="beef" x="-16" y="250" z="22"/>
<DrawItem type="beef" x="-50" y="250" z="6"/>
<DrawItem type="porkchop" x="19" y="250" z="30"/>
<DrawItem type="carrot" x="-49" y="250" z="-32"/>
<DrawItem type="cookie" x="3" y="250" z="-27"/>
<DrawItem type="melon" x="46" y="250" z="13"/>
<DrawItem type="porkchop" x="-32" y="250" z="-3"/>
<DrawItem type="mutton" x="-33" y="250" z="-40"/>
<DrawItem type="cookie" x="43" y="250" z="7"/>
<DrawItem type="carrot" x="32" y="250" z="-13"/>
<DrawItem type="chicken" x="-50" y="250" z="-50"/>
<DrawItem type="cookie" x="32" y="250" z="-15"/>
<DrawItem type="sugar" x="30" y="250" z="34"/>
<DrawItem type="mutton" x="-7" y="250" z="8"/>
<DrawItem type="chicken" x="31" y="250" z="-42"/>
<DrawItem type="chicken" x="-36" y="250" z="31"/>
<DrawItem type="egg" x="-5" y="250" z="49"/>
<DrawItem type="cookie" x="-31" y="250" z="-45"/>
<DrawItem type="carrot" x="38" y="250" z="50"/>
<DrawItem type="chicken" x="0" y="250" z="26"/>
<DrawItem type="apple" x="43" y="250" z="1"/>
<DrawItem type="beef" x="-46" y="250" z="30"/>
<DrawItem type="sugar" x="16" y="250" z="24"/>
<DrawItem type="beef" x="-50" y="250" z="21"/>
<DrawItem type="sugar" x="-14" y="250" z="20"/>
<DrawItem type="mutton" x="-29" y="250" z="24"/>
<DrawItem type="melon" x="-26" y="250" z="24"/>
<DrawItem type="beef" x="-2" y="250" z="-16"/>
<DrawItem type="melon" x="-30" y="250" z="42"/>
<DrawItem type="rabbit" x="38" y="250" z="-48"/>
<DrawItem type="rabbit" x="35" y="250" z="5"/>
<DrawItem type="carrot" x="-11" y="250" z="-25"/>
<DrawItem type="porkchop" x="30" y="250" z="-27"/>
<DrawItem type="carrot" x="-6" y="250" z="-37"/>
<DrawItem type="carrot" x="-42" y="250" z="22"/>
<DrawItem type="egg" x="50" y="250" z="-5"/>
<DrawItem type="carrot" x="20" y="250" z="-5"/>
<DrawItem type="beef" x="19" y="250" z="33"/>
<DrawItem type="cookie" x="-28" y="250" z="17"/>
<DrawItem type="mutton" x="25" y="250" z="16"/>
<DrawItem type="cake" x="-23" y="250" z="-26"/>
<DrawItem type="rabbit" x="49" y="250" z="11"/>
<DrawItem type="potato" x="-36" y="250" z="-13"/>
<DrawItem type="egg" x="5" y="250" z="18"/>
<DrawItem type="cake" x="30" y="250" z="21"/>
<DrawItem type="porkchop" x="46" y="250" z="-49"/>
<DrawItem type="potato" x="-1" y="250" z="6"/>
<DrawItem type="sugar" x="-4" y="250" z="20"/>
<DrawItem type="cookie" x="-22" y="250" z="-44"/>
<DrawItem type="cookie" x="-43" y="250" z="-20"/>
<DrawItem type="rabbit" x="27" y="250" z="23"/>
<DrawItem type="porkchop" x="12" y="250" z="32"/>
<DrawItem type="melon" x="10" y="250" z="-22"/>
<DrawItem type="potato" x="6" y="250" z="-38"/>
<DrawItem type="cookie" x="-1" y="250" z="17"/>
<DrawItem type="mutton" x="-36" y="250" z="-21"/>
<DrawItem type="cake" x="5" y="250" z="37"/>
<DrawItem type="beef" x="26" y="250" z="-49"/>
<DrawItem type="fish" x="25" y="250" z="-34"/>
<DrawItem type="melon" x="30" y="250" z="23"/>
<DrawItem type="sugar" x="-33" y="250" z="35"/>
<DrawItem type="carrot" x="-34" y="250" z="-11"/>
<DrawItem type="beef" x="32" y="250" z="-38"/>
<DrawItem type="egg" x="40" y="250" z="20"/>
<DrawItem type="pumpkin_pie" x="26" y="250" z="-27"/>
<DrawItem type="mutton" x="23" y="250" z="-35"/>
<DrawItem type="cookie" x="26" y="250" z="15"/>
<DrawItem type="rabbit" x="-43" y="250" z="33"/>
<DrawItem type="cake" x="8" y="250" z="-46"/>
<DrawItem type="fish" x="12" y="250" z="34"/>
<DrawItem type="beef" x="-26" y="250" z="-23"/>
<DrawItem type="chicken" x="-9" y="250" z="-3"/>
<DrawItem type="porkchop" x="-5" y="250" z="42"/>
<DrawItem type="rabbit" x="-18" y="250" z="-48"/>
<DrawItem type="apple" x="16" y="250" z="50"/>
<DrawItem type="cake" x="-37" y="250" z="-40"/>
<DrawItem type="carrot" x="-42" y="250" z="18"/>
<DrawItem type="cake" x="-13" y="250" z="26"/>
<DrawItem type="beef" x="-17" y="250" z="3"/>
<DrawItem type="potato" x="50" y="250" z="-20"/>
<DrawItem type="beef" x="20" y="250" z="-26"/>
<DrawItem type="cake" x="50" y="250" z="-28"/>
<DrawItem type="porkchop" x="-49" y="250" z="-24"/>
<DrawItem type="pumpkin_pie" x="9" y="250" z="-33"/>
<DrawItem type="potato" x="0" y="250" z="1"/>
<DrawItem type="carrot" x="-7" y="250" z="-47"/>
<DrawItem type="mutton" x="21" y="250" z="37"/>
<DrawItem type="cake" x="25" y="250" z="-32"/>
<DrawItem type="chicken" x="6" y="250" z="23"/>
<DrawItem type="fish" x="-28" y="250" z="-17"/>
<DrawItem type="potato" x="-45" y="250" z="-46"/>
<DrawItem type="beef" x="-28" y="250" z="1"/>
<DrawItem type="cookie" x="-11" y="250" z="-14"/>
<DrawItem type="pumpkin_pie" x="-28" y="250" z="21"/>
<DrawItem type="mutton" x="11" y="250" z="14"/>
<DrawItem type="carrot" x="12" y="250" z="41"/>
<DrawItem type="cookie" x="13" y="250" z="-31"/>
<DrawItem type="pumpkin_pie" x="-29" y="250" z="47"/>
<DrawItem type="melon" x="-4" y="250" z="45"/>
<DrawItem type="beef" x="-41" y="250" z="-37"/>
<DrawItem type="potato" x="50" y="250" z="33"/>
<DrawItem type="porkchop" x="-33" y="250" z="-31"/>
<DrawItem type="pumpkin_pie" x="19" y="250" z="3"/>
<DrawItem type="mutton" x="-10" y="250" z="-35"/>
<DrawItem type="cookie" x="46" y="250" z="2"/>
<DrawItem type="carrot" x="2" y="250" z="40"/>
<DrawItem type="chicken" x="0" y="250" z="2"/>
<DrawItem type="pumpkin_pie" x="13" y="250" z="-5"/>
<DrawItem type="beef" x="15" y="250" z="41"/>
<DrawItem type="rabbit" x="-24" y="250" z="-9"/>
<DrawItem type="melon" x="-14" y="250" z="-33"/>
<DrawItem type="beef" x="10" y="250" z="-11"/>
<DrawItem type="pumpkin_pie" x="25" y="250" z="8"/>
<DrawItem type="porkchop" x="-30" y="250" z="11"/>
<DrawItem type="fish" x="23" y="250" z="6"/>
<DrawItem type="pumpkin_pie" x="-13" y="250" z="41"/>
<DrawItem type="fish" x="40" y="250" z="-43"/>
<DrawItem type="egg" x="-20" y="250" z="31"/>
<DrawItem type="apple" x="-38" y="250" z="-47"/>
<DrawItem type="rabbit" x="-5" y="250" z="-28"/>
<DrawItem type="pumpkin_pie" x="18" y="250" z="23"/>
<DrawItem type="melon" x="-29" y="250" z="-19"/>
<DrawItem type="beef" x="-35" y="250" z="0"/>
<DrawItem type="cookie" x="-12" y="250" z="10"/>
<DrawItem type="potato" x="28" y="250" z="36"/>
<DrawItem type="mutton" x="31" y="250" z="9"/>
<DrawItem type="pumpkin_pie" x="-39" y="250" z="-23"/>
<DrawItem type="rabbit" x="-21" y="250" z="-27"/>
<DrawItem type="potato" x="8" y="250" z="34"/>
<DrawItem type="mutton" x="1" y="250" z="12"/>
<DrawItem type="melon" x="1" y="250" z="-27"/>
<DrawItem type="egg" x="22" y="250" z="28"/>
<DrawItem type="cookie" x="-47" y="250" z="-25"/>
<DrawItem type="mutton" x="-11" y="250" z="14"/>
<DrawItem type="apple" x="20" y="250" z="4"/>
<DrawItem type="pumpkin_pie" x="-31" y="250" z="44"/>
<DrawItem type="sugar" x="-14" y="250" z="-45"/>
<DrawItem type="porkchop" x="24" y="250" z="19"/>
<DrawItem type="beef" x="40" y="250" z="-1"/>
<DrawItem type="mutton" x="37" y="250" z="0"/>
<DrawItem type="cookie" x="-48" y="250" z="-23"/>
<DrawItem type="rabbit" x="-15" y="250" z="23"/>
<DrawItem type="carrot" x="13" y="250" z="-11"/>
<DrawItem type="potato" x="4" y="250" z="31"/>
<DrawItem type="fish" x="29" y="250" z="-18"/>
<DrawItem type="rabbit" x="-41" y="250" z="41"/>
<DrawItem type="egg" x="16" y="250" z="13"/>
<DrawItem type="melon" x="-41" y="250" z="-40"/>
<DrawItem type="chicken" x="7" y="250" z="20"/>
<DrawItem type="apple" x="17" y="250" z="-43"/>
<DrawItem type="carrot" x="34" y="250" z="23"/>
<DrawItem type="melon" x="-49" y="250" z="-5"/>
<DrawItem type="potato" x="-39" y="250" z="18"/>
<DrawItem type="porkchop" x="-39" y="250" z="-15"/>
<DrawItem type="rabbit" x="44" y="250" z="34"/>
<DrawItem type="fish" x="-35" y="250" z="34"/>
<DrawItem type="sugar" x="43" y="250" z="46"/>
<DrawItem type="apple" x="-6" y="250" z="31"/>
<DrawItem type="rabbit" x="13" y="250" z="5"/>
<DrawItem type="egg" x="-17" y="250" z="-33"/>
<DrawItem type="porkchop" x="-2" y="250" z="14"/>
<DrawItem type="porkchop" x="31" y="250" z="-22"/>
<DrawItem type="melon" x="46" y="250" z="-35"/>
<DrawItem type="porkchop" x="-42" y="250" z="-23"/>
<DrawItem type="cake" x="-45" y="250" z="-42"/>
<DrawItem type="cookie" x="5" y="250" z="-2"/>
<DrawItem type="fish" x="47" y="250" z="29"/>
<DrawItem type="fish" x="39" y="250" z="-20"/>
<DrawItem type="cake" x="-29" y="250" z="16"/>
<DrawItem type="carrot" x="33" y="250" z="8"/>
<DrawItem type="fish" x="-47" y="250" z="6"/>
<DrawItem type="cookie" x="-2" y="250" z="13"/>
<DrawItem type="pumpkin_pie" x="25" y="250" z="-2"/>
<DrawItem type="apple" x="-39" y="250" z="23"/>
<DrawItem type="fish" x="37" y="250" z="4"/>
<DrawItem type="fish" x="8" y="250" z="37"/>
<DrawItem type="cookie" x="-29" y="250" z="38"/>
<DrawItem type="cookie" x="-39" y="250" z="-5"/>
<DrawItem type="pumpkin_pie" x="17" y="250" z="-38"/>
<DrawItem type="carrot" x="-38" y="250" z="-34"/>
<DrawItem type="porkchop" x="-17" y="250" z="2"/>
<DrawItem type="pumpkin_pie" x="6" y="250" z="0"/>
<DrawItem type="beef" x="43" y="250" z="-36"/>
<DrawItem type="carrot" x="1" y="250" z="3"/>
<DrawItem type="apple" x="-23" y="250" z="-14"/>
<DrawItem type="mutton" x="-19" y="250" z="30"/>
<DrawItem type="fish" x="12" y="250" z="-3"/>
<DrawItem type="porkchop" x="38" y="250" z="14"/>
<DrawItem type="apple" x="7" y="250" z="28"/>
<DrawItem type="cake" x="9" y="250" z="-5"/>
<DrawItem type="melon" x="-49" y="250" z="22"/>
<DrawItem type="fish" x="-39" y="250" z="-42"/>
<DrawItem type="rabbit" x="23" y="250" z="22"/>
<DrawItem type="rabbit" x="8" y="250" z="-14"/>
<DrawItem type="chicken" x="-10" y="250" z="-19"/>
<DrawItem type="porkchop" x="-1" y="250" z="8"/>
<DrawItem type="pumpkin_pie" x="8" y="250" z="23"/>
<DrawItem type="cookie" x="34" y="250" z="-1"/>
<DrawItem type="carrot" x="32" y="250" z="-5"/>
<DrawItem type="egg" x="50" y="250" z="-29"/>
<DrawItem type="cake" x="40" y="250" z="31"/>
<DrawItem type="pumpkin_pie" x="48" y="250" z="23"/>
<DrawItem type="rabbit" x="36" y="250" z="17"/>
<DrawItem type="sugar" x="-10" y="250" z="-31"/>
<DrawItem type="mutton" x="-25" y="250" z="-31"/>
<DrawItem type="egg" x="33" y="250" z="42"/>
<DrawItem type="fish" x="-23" y="250" z="-8"/>
<DrawItem type="rabbit" x="27" y="250" z="32"/>
<DrawItem type="apple" x="-41" y="250" z="-37"/>
<DrawItem type="egg" x="40" y="250" z="-17"/>
<DrawItem type="apple" x="-41" y="250" z="-32"/>
<DrawItem type="carrot" x="-16" y="250" z="42"/>
<DrawItem type="cake" x="-16" y="250" z="45"/>
<DrawItem type="mutton" x="-35" y="250" z="38"/>
<DrawItem type="fish" x="-45" y="250" z="38"/>
<DrawItem type="apple" x="-7" y="250" z="31"/>
<DrawItem type="apple" x="0" y="250" z="-36"/>
<DrawItem type="mutton" x="-46" y="250" z="2"/>
<DrawItem type="cake" x="28" y="250" z="46"/>
<DrawItem type="melon" x="33" y="250" z="-38"/>
<DrawItem type="fish" x="37" y="250" z="-23"/>
<DrawItem type="chicken" x="-32" y="250" z="-46"/>
<DrawItem type="potato" x="26" y="250" z="-44"/>
<DrawItem type="melon" x="-16" y="250" z="-48"/>
<DrawItem type="porkchop" x="50" y="250" z="44"/>
<DrawItem type="mutton" x="-34" y="250" z="-50"/>
<DrawItem type="pumpkin_pie" x="38" y="250" z="24"/>
<DrawItem type="mutton" x="-10" y="250" z="-1"/>
<DrawItem type="pumpkin_pie" x="41" y="250" z="-10"/>
<DrawItem type="beef" x="2" y="250" z="-50"/>
<DrawItem type="sugar" x="42" y="250" z="-50"/>
<DrawItem type="beef" x="-47" y="250" z="20"/>
<DrawItem type="mutton" x="-22" y="250" z="46"/>
<DrawItem type="cookie" x="28" y="250" z="-48"/>
<DrawItem type="mutton" x="-7" y="250" z="20"/>
<DrawItem type="egg" x="48" y="250" z="41"/>
<DrawItem type="egg" x="49" y="250" z="27"/>
<DrawItem type="apple" x="-20" y="250" z="14"/>
<DrawItem type="fish" x="-13" y="250" z="-21"/>
<DrawItem type="carrot" x="-12" y="250" z="-24"/>
<DrawItem type="rabbit" x="-7" y="250" z="9"/>
<DrawItem type="pumpkin_pie" x="15" y="250" z="48"/>
<DrawItem type="beef" x="30" y="250" z="-23"/>
<DrawItem type="cookie" x="50" y="250" z="5"/>
<DrawItem type="chicken" x="-33" y="250" z="-25"/>
<DrawItem type="cake" x="18" y="250" z="-13"/>
</DrawingDecorator>
<ServerQuitFromTimeUp description="" timeLimitMs="60000"/>
<ServerQuitWhenAnyAgentFinishes description=""/>
</ServerHandlers>
</ServerSection>
<AgentSection mode="Survival">
<Name>Agent0</Name>
<AgentStart>
<Placement pitch="0" x="0.5" y="227.0" yaw="0" z="0.5"/>
<Inventory/>
</AgentStart>
<AgentHandlers>
<VideoProducer want_depth="false">
<Width>480</Width>
<Height>320</Height>
</VideoProducer>
<ObservationFromFullStats />
<RewardForCollectingItem>
<Item reward="2" type="fish porkchop beef chicken rabbit mutton"/>
<Item reward="1" type="potato egg carrot"/>
<Item reward="-1" type="apple melon"/>
<Item reward="-2" type="sugar cake cookie pumpkin_pie"/>
</RewardForCollectingItem>
<ContinuousMovementCommands turnSpeedDegs="240">
<ModifierList type="deny-list">
<command>attack</command>
</ModifierList>
</ContinuousMovementCommands>
<MissionQuitCommands/>
</AgentHandlers>
</AgentSection>
</Mission>
```
|
```php
<?php
/**
*/
namespace OC\Preview;
//.sgi
class SGI extends Bitmap {
/**
* {@inheritDoc}
*/
public function getMimeType(): string {
return '/image\/(x-)?sgi/';
}
/**
* {@inheritDoc}
*/
protected function getAllowedMimeTypes(): string {
return '/image\/(x-)?sgi/';
}
}
```
|
```xml
import React from 'react';
import { connect, MapStateToPropsFactory } from 'react-redux';
import './style/index.less';
import { Icon, Badge, notification, Dropdown, Menu, Modal, Upload, TreeSelect, message } from 'antd';
import { State } from '../../state/index';
import { RequestState } from '../../state/request';
import { actionCreator, ResetSyncMsgType } from '../../action/index';
import { LogoutType, ChangePasswordType } from '../../action/user';
import ChangePasswordDialog from './change_password_dialog';
import { Password } from '../../common/interfaces/password';
import { getProjectsIdNameStateSelector } from '../../components/collection_tree/selector';
import { ImportDataType } from '../../action/collection';
import Msg from '../../locales';
import LocalesString from '../../locales/string';
const Dragger = Upload.Dragger;
interface HeaderPanelStateProps {
syncCount: number;
message?: string;
userName: string;
userId: string;
changePasswordState: RequestState;
projects: { id: string, name: string }[];
}
interface HeaderPanelDispatchProps {
onChangePassword(password: Password);
logout(userId: string, needClearCache: boolean);
importPostman(projectId: string, data: any);
resetSyncMsg();
}
type HeaderPanelProps = HeaderPanelStateProps & HeaderPanelDispatchProps;
interface HeaderPanelState {
isChangePwdDlgOpen: boolean;
isImportDlgOpen: boolean;
selectedProjectInDlg: string;
}
class HeaderPanel extends React.Component<HeaderPanelProps, HeaderPanelState> {
constructor(props: HeaderPanelProps) {
super(props);
this.state = {
isChangePwdDlgOpen: false,
isImportDlgOpen: false,
selectedProjectInDlg: ''
};
}
public componentDidUpdate(_prevProps: HeaderPanelProps, _prevState: HeaderPanelState) {
const { message } = this.props;
if (!!message && notification.warning) {
notification.warning({
message: LocalesString.get('Common.WarningMsg'),
description: message,
});
this.props.resetSyncMsg();
}
}
private onUserMenuClick = (e) => {
switch (e.key) {
case 'logout': {
this.props.logout(this.props.userId, false);
break;
}
case 'logoutAndClear': {
this.props.logout(this.props.userId, true);
break;
}
case 'changePwd': {
this.setState({ ...this.state, isChangePwdDlgOpen: true });
break;
}
default:
break;
}
}
private onCancelChangePwd = () => {
this.setState({ ...this.state, isChangePwdDlgOpen: false });
}
private onChangePwd = (data: Password) => {
this.props.onChangePassword(data);
}
private importPostman = (file: File) => {
if (!this.state.selectedProjectInDlg) {
message.warning(LocalesString.get('Header.SelectProjectFirst'), 3);
return;
}
const fr = new FileReader();
const projectId = this.state.selectedProjectInDlg;
fr.onload = (e) => {
var data = JSON.parse((e.target as any).result);
this.props.importPostman(projectId, data);
};
fr.readAsText(file);
this.setState({ ...this.state, isImportDlgOpen: false, selectedProjectInDlg: '' });
}
private userMenu = (
<Menu onClick={this.onUserMenuClick} style={{ width: 200 }}>
<Menu.Item key="changePwd">
<Icon type="key" /> {Msg('Header.ChangePassword')}
</Menu.Item>
<Menu.Item key="logout">
<Icon type="logout" /> {Msg('Header.Logout')}
</Menu.Item>
<Menu.Item key="logoutAndClear">
<Icon type="close-circle-o" /> {Msg('Header.Logout&Clear')}
</Menu.Item>
</Menu>
);
public render() {
const { syncCount, userName, changePasswordState } = this.props;
return (
<div className="header">
<img className="header-logo" src="./hitchhiker.svg" />
<img className="header-title" src="./hitchhiker-title.svg" />
<div className="header-right">
<Badge style={{ fontFamily: 'SourceCodePro', boxShadow: '0 0 0 0 #fff' }} count={syncCount}>
<Icon className={`${syncCount > 0 ? 'header-sync-anim' : ''} header-sync`} type="sync" />
</Badge>
<span className="header-sync-title">
{syncCount > 0 ? Msg('Header.Syncing') : Msg('Header.Insync')}
</span>
<span className="header-user">
<a className="ant-dropdown-link" href="#" onClick={() => this.setState({ ...this.state, isImportDlgOpen: true })}>
<Icon type="upload" /> {Msg('Header.Import')}
</a>
</span>
<span className="header-user">
<Dropdown overlay={this.userMenu}>
<a className="ant-dropdown-link" href="#">
{userName} <Icon type="down" />
</a>
</Dropdown>
</span>
</div>
<ChangePasswordDialog
isDlgOpen={this.state.isChangePwdDlgOpen}
changePasswordState={changePasswordState}
onCancel={this.onCancelChangePwd}
onOk={this.onChangePwd}
/>
<Modal
visible={this.state.isImportDlgOpen}
title={Msg('Header.ImportJson')}
width={500}
closable={true}
onCancel={() => this.setState({ ...this.state, isImportDlgOpen: false })}
footer={[]}
>
<div>{Msg('Header.SelectProject')}</div>
<TreeSelect
allowClear={true}
style={{ marginTop: 8, width: '100%' }}
dropdownStyle={{ maxHeight: 500, overflow: 'auto' }}
placeholder={LocalesString.get('Collection.SelectProject')}
treeDefaultExpandAll={true}
value={this.state.selectedProjectInDlg}
onChange={(e) => this.setState({ ...this.state, selectedProjectInDlg: e })}
treeData={this.props.projects.map(t => ({ key: t.id, value: t.id, label: t.name }))}
/>
<div style={{ marginTop: 8, height: 180 }}>
<Dragger
showUploadList={false}
accept=".json"
customRequest={obj => { this.importPostman(obj.file); }}
action=""
>
<p className="ant-upload-drag-icon">
<Icon type="inbox" />
</p>
<p className="ant-upload-text">{Msg('Header.DragFile')}</p>
</Dragger>
</div>
</Modal>
</div >
);
}
}
const makeMapStateToProps: MapStateToPropsFactory<any, any, any> = () => {
const getProjects = getProjectsIdNameStateSelector();
const mapStateToProps: (state: State) => HeaderPanelStateProps = state => {
const { syncCount, message } = state.uiState.syncState;
const { name } = state.userState.userInfo;
return {
syncCount,
message,
userName: name,
changePasswordState: state.userState.changePasswordState,
userId: state.userState.userInfo.id,
projects: getProjects(state),
};
};
return mapStateToProps;
};
const mapDispatchToProps = (dispatch: any): HeaderPanelDispatchProps => {
return {
logout: (userId, needClearCache) => dispatch(actionCreator(LogoutType, { userId, needClearCache })),
onChangePassword: (password) => dispatch(actionCreator(ChangePasswordType, password)),
importPostman: (projectId, data) => dispatch(actionCreator(ImportDataType, { projectId, data })),
resetSyncMsg: () => dispatch(actionCreator(ResetSyncMsgType))
};
};
export default connect(
makeMapStateToProps,
mapDispatchToProps,
)(HeaderPanel);
```
|
```xml
/*
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// TypeScript Version: 4.1
/// <reference types="@stdlib/types"/>
import { Collection } from '@stdlib/types/array';
/**
* Interface describing `imuldw`.
*/
interface Imuldw {
/**
* Performs multiplication of two signed 32-bit integers and returns an array of two signed 32-bit integers which represents the signed 64-bit integer product.
*
* ## Notes
*
* - When computing the product of 32-bit integer values in double-precision floating-point format (the default JavaScript numeric data type), computing the double word product is necessary in order to avoid exceeding the maximum safe double-precision floating-point integer value.
*
* @param a - integer
* @param b - integer
* @returns output array
*
* @example
* var v = imuldw( 0xAAAAAAAA, 0x55555555 );
* // returns [ -477218589, 1908874354 ]
*/
( a: number, b: number ): Array<number>;
/**
* Performs multiplication of two signed 32-bit integers and returns an array of two signed 32-bit integers which represents the signed 64-bit integer product.
*
* ## Notes
*
* - When computing the product of 32-bit integer values in double-precision floating-point format (the default JavaScript numeric data type), computing the double word product is necessary in order to avoid exceeding the maximum safe double-precision floating-point integer value.
*
* @param a - integer
* @param b - integer
* @param out - output array
* @param stride - output array stride
* @param offset - output array index offset
* @returns output array
*
* @example
* var v = imuldw( 0xAAAAAAAA, 0x55555555 );
* // returns [ -477218589, 1908874354 ]
*/
assign<T = unknown>( a: number, b: number, out: Collection<T>, stride: number, offset: number ): Collection<T | number>;
}
/**
* Performs multiplication of two signed 32-bit integers and returns an array of two signed 32-bit integers which represents the signed 64-bit integer product.
*
* ## Notes
*
* - When computing the product of 32-bit integer values in double-precision floating-point format (the default JavaScript numeric data type), computing the double word product is necessary in order to avoid exceeding the maximum safe double-precision floating-point integer value.
*
* @param a - integer
* @param b - integer
* @returns output array
*
* @example
* var v = imuldw( 0xAAAAAAAA, 0x55555555 );
* // returns [ -477218589, 1908874354 ]
*/
declare var imuldw: Imuldw;
// EXPORTS //
export = imuldw;
```
|
Dzbanki is a village in the administrative district of Gmina Szczerców, within Bełchatów County, Łódź Voivodeship, in central Poland. It lies approximately west of Szczerców, west of Bełchatów, and south-west of the regional capital Łódź.
References
Dzbanki
Piotrków Governorate
Łódź Voivodeship (1919–1939)
|
```javascript
/**
* TinyMCE version 6.5.1 (2023-06-19)
*/
(function () {
'use strict';
var global$4 = tinymce.util.Tools.resolve('tinymce.PluginManager');
const getPrototypeOf = Object.getPrototypeOf;
const hasProto = (v, constructor, predicate) => {
var _a;
if (predicate(v, constructor.prototype)) {
return true;
} else {
return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
}
};
const typeOf = x => {
const t = typeof x;
if (x === null) {
return 'null';
} else if (t === 'object' && Array.isArray(x)) {
return 'array';
} else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
return 'string';
} else {
return t;
}
};
const isType = type => value => typeOf(value) === type;
const isSimpleType = type => value => typeof value === type;
const eq = t => a => t === a;
const is = (value, constructor) => isObject(value) && hasProto(value, constructor, (o, proto) => getPrototypeOf(o) === proto);
const isString = isType('string');
const isObject = isType('object');
const isPlainObject = value => is(value, Object);
const isArray = isType('array');
const isNull = eq(null);
const isBoolean = isSimpleType('boolean');
const isNullable = a => a === null || a === undefined;
const isNonNullable = a => !isNullable(a);
const isFunction = isSimpleType('function');
const isNumber = isSimpleType('number');
const isArrayOf = (value, pred) => {
if (isArray(value)) {
for (let i = 0, len = value.length; i < len; ++i) {
if (!pred(value[i])) {
return false;
}
}
return true;
}
return false;
};
const noop = () => {
};
class Optional {
constructor(tag, value) {
this.tag = tag;
this.value = value;
}
static some(value) {
return new Optional(true, value);
}
static none() {
return Optional.singletonNone;
}
fold(onNone, onSome) {
if (this.tag) {
return onSome(this.value);
} else {
return onNone();
}
}
isSome() {
return this.tag;
}
isNone() {
return !this.tag;
}
map(mapper) {
if (this.tag) {
return Optional.some(mapper(this.value));
} else {
return Optional.none();
}
}
bind(binder) {
if (this.tag) {
return binder(this.value);
} else {
return Optional.none();
}
}
exists(predicate) {
return this.tag && predicate(this.value);
}
forall(predicate) {
return !this.tag || predicate(this.value);
}
filter(predicate) {
if (!this.tag || predicate(this.value)) {
return this;
} else {
return Optional.none();
}
}
getOr(replacement) {
return this.tag ? this.value : replacement;
}
or(replacement) {
return this.tag ? this : replacement;
}
getOrThunk(thunk) {
return this.tag ? this.value : thunk();
}
orThunk(thunk) {
return this.tag ? this : thunk();
}
getOrDie(message) {
if (!this.tag) {
throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
} else {
return this.value;
}
}
static from(value) {
return isNonNullable(value) ? Optional.some(value) : Optional.none();
}
getOrNull() {
return this.tag ? this.value : null;
}
getOrUndefined() {
return this.value;
}
each(worker) {
if (this.tag) {
worker(this.value);
}
}
toArray() {
return this.tag ? [this.value] : [];
}
toString() {
return this.tag ? `some(${ this.value })` : 'none()';
}
}
Optional.singletonNone = new Optional(false);
const keys = Object.keys;
const hasOwnProperty = Object.hasOwnProperty;
const each = (obj, f) => {
const props = keys(obj);
for (let k = 0, len = props.length; k < len; k++) {
const i = props[k];
const x = obj[i];
f(x, i);
}
};
const objAcc = r => (x, i) => {
r[i] = x;
};
const internalFilter = (obj, pred, onTrue, onFalse) => {
each(obj, (x, i) => {
(pred(x, i) ? onTrue : onFalse)(x, i);
});
};
const filter = (obj, pred) => {
const t = {};
internalFilter(obj, pred, objAcc(t), noop);
return t;
};
const has = (obj, key) => hasOwnProperty.call(obj, key);
const hasNonNullableKey = (obj, key) => has(obj, key) && obj[key] !== undefined && obj[key] !== null;
const nativePush = Array.prototype.push;
const flatten = xs => {
const r = [];
for (let i = 0, len = xs.length; i < len; ++i) {
if (!isArray(xs[i])) {
throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
}
nativePush.apply(r, xs[i]);
}
return r;
};
const get = (xs, i) => i >= 0 && i < xs.length ? Optional.some(xs[i]) : Optional.none();
const head = xs => get(xs, 0);
const findMap = (arr, f) => {
for (let i = 0; i < arr.length; i++) {
const r = f(arr[i], i);
if (r.isSome()) {
return r;
}
}
return Optional.none();
};
typeof window !== 'undefined' ? window : Function('return this;')();
const rawSet = (dom, key, value) => {
if (isString(value) || isBoolean(value) || isNumber(value)) {
dom.setAttribute(key, value + '');
} else {
console.error('Invalid call to Attribute.set. Key ', key, ':: Value ', value, ':: Element ', dom);
throw new Error('Attribute value was not simple');
}
};
const set = (element, key, value) => {
rawSet(element.dom, key, value);
};
const remove = (element, key) => {
element.dom.removeAttribute(key);
};
const fromHtml = (html, scope) => {
const doc = scope || document;
const div = doc.createElement('div');
div.innerHTML = html;
if (!div.hasChildNodes() || div.childNodes.length > 1) {
const message = 'HTML does not have a single root node';
console.error(message, html);
throw new Error(message);
}
return fromDom(div.childNodes[0]);
};
const fromTag = (tag, scope) => {
const doc = scope || document;
const node = doc.createElement(tag);
return fromDom(node);
};
const fromText = (text, scope) => {
const doc = scope || document;
const node = doc.createTextNode(text);
return fromDom(node);
};
const fromDom = node => {
if (node === null || node === undefined) {
throw new Error('Node cannot be null or undefined');
}
return { dom: node };
};
const fromPoint = (docElm, x, y) => Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom);
const SugarElement = {
fromHtml,
fromTag,
fromText,
fromDom,
fromPoint
};
var global$3 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
var global$2 = tinymce.util.Tools.resolve('tinymce.util.URI');
const isNotEmpty = s => s.length > 0;
const option = name => editor => editor.options.get(name);
const register$2 = editor => {
const registerOption = editor.options.register;
registerOption('image_dimensions', {
processor: 'boolean',
default: true
});
registerOption('image_advtab', {
processor: 'boolean',
default: false
});
registerOption('image_uploadtab', {
processor: 'boolean',
default: true
});
registerOption('image_prepend_url', {
processor: 'string',
default: ''
});
registerOption('image_class_list', { processor: 'object[]' });
registerOption('image_description', {
processor: 'boolean',
default: true
});
registerOption('image_title', {
processor: 'boolean',
default: false
});
registerOption('image_caption', {
processor: 'boolean',
default: false
});
registerOption('image_list', {
processor: value => {
const valid = value === false || isString(value) || isArrayOf(value, isObject) || isFunction(value);
return valid ? {
value,
valid
} : {
valid: false,
message: 'Must be false, a string, an array or a function.'
};
},
default: false
});
};
const hasDimensions = option('image_dimensions');
const hasAdvTab = option('image_advtab');
const hasUploadTab = option('image_uploadtab');
const getPrependUrl = option('image_prepend_url');
const getClassList = option('image_class_list');
const hasDescription = option('image_description');
const hasImageTitle = option('image_title');
const hasImageCaption = option('image_caption');
const getImageList = option('image_list');
const showAccessibilityOptions = option('a11y_advanced_options');
const isAutomaticUploadsEnabled = option('automatic_uploads');
const hasUploadUrl = editor => isNotEmpty(editor.options.get('images_upload_url'));
const hasUploadHandler = editor => isNonNullable(editor.options.get('images_upload_handler'));
const parseIntAndGetMax = (val1, val2) => Math.max(parseInt(val1, 10), parseInt(val2, 10));
const getImageSize = url => new Promise(callback => {
const img = document.createElement('img');
const done = dimensions => {
img.onload = img.onerror = null;
if (img.parentNode) {
img.parentNode.removeChild(img);
}
callback(dimensions);
};
img.onload = () => {
const width = parseIntAndGetMax(img.width, img.clientWidth);
const height = parseIntAndGetMax(img.height, img.clientHeight);
const dimensions = {
width,
height
};
done(Promise.resolve(dimensions));
};
img.onerror = () => {
done(Promise.reject(`Failed to get image dimensions for: ${ url }`));
};
const style = img.style;
style.visibility = 'hidden';
style.position = 'fixed';
style.bottom = style.left = '0px';
style.width = style.height = 'auto';
document.body.appendChild(img);
img.src = url;
});
const removePixelSuffix = value => {
if (value) {
value = value.replace(/px$/, '');
}
return value;
};
const addPixelSuffix = value => {
if (value.length > 0 && /^[0-9]+$/.test(value)) {
value += 'px';
}
return value;
};
const mergeMargins = css => {
if (css.margin) {
const splitMargin = String(css.margin).split(' ');
switch (splitMargin.length) {
case 1:
css['margin-top'] = css['margin-top'] || splitMargin[0];
css['margin-right'] = css['margin-right'] || splitMargin[0];
css['margin-bottom'] = css['margin-bottom'] || splitMargin[0];
css['margin-left'] = css['margin-left'] || splitMargin[0];
break;
case 2:
css['margin-top'] = css['margin-top'] || splitMargin[0];
css['margin-right'] = css['margin-right'] || splitMargin[1];
css['margin-bottom'] = css['margin-bottom'] || splitMargin[0];
css['margin-left'] = css['margin-left'] || splitMargin[1];
break;
case 3:
css['margin-top'] = css['margin-top'] || splitMargin[0];
css['margin-right'] = css['margin-right'] || splitMargin[1];
css['margin-bottom'] = css['margin-bottom'] || splitMargin[2];
css['margin-left'] = css['margin-left'] || splitMargin[1];
break;
case 4:
css['margin-top'] = css['margin-top'] || splitMargin[0];
css['margin-right'] = css['margin-right'] || splitMargin[1];
css['margin-bottom'] = css['margin-bottom'] || splitMargin[2];
css['margin-left'] = css['margin-left'] || splitMargin[3];
}
delete css.margin;
}
return css;
};
const createImageList = (editor, callback) => {
const imageList = getImageList(editor);
if (isString(imageList)) {
fetch(imageList).then(res => {
if (res.ok) {
res.json().then(callback);
}
});
} else if (isFunction(imageList)) {
imageList(callback);
} else {
callback(imageList);
}
};
const waitLoadImage = (editor, data, imgElm) => {
const selectImage = () => {
imgElm.onload = imgElm.onerror = null;
if (editor.selection) {
editor.selection.select(imgElm);
editor.nodeChanged();
}
};
imgElm.onload = () => {
if (!data.width && !data.height && hasDimensions(editor)) {
editor.dom.setAttribs(imgElm, {
width: String(imgElm.clientWidth),
height: String(imgElm.clientHeight)
});
}
selectImage();
};
imgElm.onerror = selectImage;
};
const blobToDataUri = blob => new Promise((resolve, reject) => {
const reader = new FileReader();
reader.onload = () => {
resolve(reader.result);
};
reader.onerror = () => {
var _a;
reject((_a = reader.error) === null || _a === void 0 ? void 0 : _a.message);
};
reader.readAsDataURL(blob);
});
const isPlaceholderImage = imgElm => imgElm.nodeName === 'IMG' && (imgElm.hasAttribute('data-mce-object') || imgElm.hasAttribute('data-mce-placeholder'));
const isSafeImageUrl = (editor, src) => {
const getOption = editor.options.get;
return global$2.isDomSafe(src, 'img', {
allow_html_data_urls: getOption('allow_html_data_urls'),
allow_script_urls: getOption('allow_script_urls'),
allow_svg_data_urls: getOption('allow_svg_data_urls')
});
};
const DOM = global$3.DOM;
const getHspace = image => {
if (image.style.marginLeft && image.style.marginRight && image.style.marginLeft === image.style.marginRight) {
return removePixelSuffix(image.style.marginLeft);
} else {
return '';
}
};
const getVspace = image => {
if (image.style.marginTop && image.style.marginBottom && image.style.marginTop === image.style.marginBottom) {
return removePixelSuffix(image.style.marginTop);
} else {
return '';
}
};
const getBorder = image => {
if (image.style.borderWidth) {
return removePixelSuffix(image.style.borderWidth);
} else {
return '';
}
};
const getAttrib = (image, name) => {
var _a;
if (image.hasAttribute(name)) {
return (_a = image.getAttribute(name)) !== null && _a !== void 0 ? _a : '';
} else {
return '';
}
};
const hasCaption = image => image.parentNode !== null && image.parentNode.nodeName === 'FIGURE';
const updateAttrib = (image, name, value) => {
if (value === '' || value === null) {
image.removeAttribute(name);
} else {
image.setAttribute(name, value);
}
};
const wrapInFigure = image => {
const figureElm = DOM.create('figure', { class: 'image' });
DOM.insertAfter(figureElm, image);
figureElm.appendChild(image);
figureElm.appendChild(DOM.create('figcaption', { contentEditable: 'true' }, 'Caption'));
figureElm.contentEditable = 'false';
};
const removeFigure = image => {
const figureElm = image.parentNode;
if (isNonNullable(figureElm)) {
DOM.insertAfter(image, figureElm);
DOM.remove(figureElm);
}
};
const toggleCaption = image => {
if (hasCaption(image)) {
removeFigure(image);
} else {
wrapInFigure(image);
}
};
const normalizeStyle = (image, normalizeCss) => {
const attrValue = image.getAttribute('style');
const value = normalizeCss(attrValue !== null ? attrValue : '');
if (value.length > 0) {
image.setAttribute('style', value);
image.setAttribute('data-mce-style', value);
} else {
image.removeAttribute('style');
}
};
const setSize = (name, normalizeCss) => (image, name, value) => {
const styles = image.style;
if (styles[name]) {
styles[name] = addPixelSuffix(value);
normalizeStyle(image, normalizeCss);
} else {
updateAttrib(image, name, value);
}
};
const getSize = (image, name) => {
if (image.style[name]) {
return removePixelSuffix(image.style[name]);
} else {
return getAttrib(image, name);
}
};
const setHspace = (image, value) => {
const pxValue = addPixelSuffix(value);
image.style.marginLeft = pxValue;
image.style.marginRight = pxValue;
};
const setVspace = (image, value) => {
const pxValue = addPixelSuffix(value);
image.style.marginTop = pxValue;
image.style.marginBottom = pxValue;
};
const setBorder = (image, value) => {
const pxValue = addPixelSuffix(value);
image.style.borderWidth = pxValue;
};
const setBorderStyle = (image, value) => {
image.style.borderStyle = value;
};
const getBorderStyle = image => {
var _a;
return (_a = image.style.borderStyle) !== null && _a !== void 0 ? _a : '';
};
const isFigure = elm => isNonNullable(elm) && elm.nodeName === 'FIGURE';
const isImage = elm => elm.nodeName === 'IMG';
const getIsDecorative = image => DOM.getAttrib(image, 'alt').length === 0 && DOM.getAttrib(image, 'role') === 'presentation';
const getAlt = image => {
if (getIsDecorative(image)) {
return '';
} else {
return getAttrib(image, 'alt');
}
};
const defaultData = () => ({
src: '',
alt: '',
title: '',
width: '',
height: '',
class: '',
style: '',
caption: false,
hspace: '',
vspace: '',
border: '',
borderStyle: '',
isDecorative: false
});
const getStyleValue = (normalizeCss, data) => {
var _a;
const image = document.createElement('img');
updateAttrib(image, 'style', data.style);
if (getHspace(image) || data.hspace !== '') {
setHspace(image, data.hspace);
}
if (getVspace(image) || data.vspace !== '') {
setVspace(image, data.vspace);
}
if (getBorder(image) || data.border !== '') {
setBorder(image, data.border);
}
if (getBorderStyle(image) || data.borderStyle !== '') {
setBorderStyle(image, data.borderStyle);
}
return normalizeCss((_a = image.getAttribute('style')) !== null && _a !== void 0 ? _a : '');
};
const create = (normalizeCss, data) => {
const image = document.createElement('img');
write(normalizeCss, {
...data,
caption: false
}, image);
setAlt(image, data.alt, data.isDecorative);
if (data.caption) {
const figure = DOM.create('figure', { class: 'image' });
figure.appendChild(image);
figure.appendChild(DOM.create('figcaption', { contentEditable: 'true' }, 'Caption'));
figure.contentEditable = 'false';
return figure;
} else {
return image;
}
};
const read = (normalizeCss, image) => ({
src: getAttrib(image, 'src'),
alt: getAlt(image),
title: getAttrib(image, 'title'),
width: getSize(image, 'width'),
height: getSize(image, 'height'),
class: getAttrib(image, 'class'),
style: normalizeCss(getAttrib(image, 'style')),
caption: hasCaption(image),
hspace: getHspace(image),
vspace: getVspace(image),
border: getBorder(image),
borderStyle: getBorderStyle(image),
isDecorative: getIsDecorative(image)
});
const updateProp = (image, oldData, newData, name, set) => {
if (newData[name] !== oldData[name]) {
set(image, name, String(newData[name]));
}
};
const setAlt = (image, alt, isDecorative) => {
if (isDecorative) {
DOM.setAttrib(image, 'role', 'presentation');
const sugarImage = SugarElement.fromDom(image);
set(sugarImage, 'alt', '');
} else {
if (isNull(alt)) {
const sugarImage = SugarElement.fromDom(image);
remove(sugarImage, 'alt');
} else {
const sugarImage = SugarElement.fromDom(image);
set(sugarImage, 'alt', alt);
}
if (DOM.getAttrib(image, 'role') === 'presentation') {
DOM.setAttrib(image, 'role', '');
}
}
};
const updateAlt = (image, oldData, newData) => {
if (newData.alt !== oldData.alt || newData.isDecorative !== oldData.isDecorative) {
setAlt(image, newData.alt, newData.isDecorative);
}
};
const normalized = (set, normalizeCss) => (image, name, value) => {
set(image, value);
normalizeStyle(image, normalizeCss);
};
const write = (normalizeCss, newData, image) => {
const oldData = read(normalizeCss, image);
updateProp(image, oldData, newData, 'caption', (image, _name, _value) => toggleCaption(image));
updateProp(image, oldData, newData, 'src', updateAttrib);
updateProp(image, oldData, newData, 'title', updateAttrib);
updateProp(image, oldData, newData, 'width', setSize('width', normalizeCss));
updateProp(image, oldData, newData, 'height', setSize('height', normalizeCss));
updateProp(image, oldData, newData, 'class', updateAttrib);
updateProp(image, oldData, newData, 'style', normalized((image, value) => updateAttrib(image, 'style', value), normalizeCss));
updateProp(image, oldData, newData, 'hspace', normalized(setHspace, normalizeCss));
updateProp(image, oldData, newData, 'vspace', normalized(setVspace, normalizeCss));
updateProp(image, oldData, newData, 'border', normalized(setBorder, normalizeCss));
updateProp(image, oldData, newData, 'borderStyle', normalized(setBorderStyle, normalizeCss));
updateAlt(image, oldData, newData);
};
const normalizeCss$1 = (editor, cssText) => {
const css = editor.dom.styles.parse(cssText);
const mergedCss = mergeMargins(css);
const compressed = editor.dom.styles.parse(editor.dom.styles.serialize(mergedCss));
return editor.dom.styles.serialize(compressed);
};
const getSelectedImage = editor => {
const imgElm = editor.selection.getNode();
const figureElm = editor.dom.getParent(imgElm, 'figure.image');
if (figureElm) {
return editor.dom.select('img', figureElm)[0];
}
if (imgElm && (imgElm.nodeName !== 'IMG' || isPlaceholderImage(imgElm))) {
return null;
}
return imgElm;
};
const splitTextBlock = (editor, figure) => {
var _a;
const dom = editor.dom;
const textBlockElements = filter(editor.schema.getTextBlockElements(), (_, parentElm) => !editor.schema.isValidChild(parentElm, 'figure'));
const textBlock = dom.getParent(figure.parentNode, node => hasNonNullableKey(textBlockElements, node.nodeName), editor.getBody());
if (textBlock) {
return (_a = dom.split(textBlock, figure)) !== null && _a !== void 0 ? _a : figure;
} else {
return figure;
}
};
const readImageDataFromSelection = editor => {
const image = getSelectedImage(editor);
return image ? read(css => normalizeCss$1(editor, css), image) : defaultData();
};
const insertImageAtCaret = (editor, data) => {
const elm = create(css => normalizeCss$1(editor, css), data);
editor.dom.setAttrib(elm, 'data-mce-id', '__mcenew');
editor.focus();
editor.selection.setContent(elm.outerHTML);
const insertedElm = editor.dom.select('*[data-mce-id="__mcenew"]')[0];
editor.dom.setAttrib(insertedElm, 'data-mce-id', null);
if (isFigure(insertedElm)) {
const figure = splitTextBlock(editor, insertedElm);
editor.selection.select(figure);
} else {
editor.selection.select(insertedElm);
}
};
const syncSrcAttr = (editor, image) => {
editor.dom.setAttrib(image, 'src', image.getAttribute('src'));
};
const deleteImage = (editor, image) => {
if (image) {
const elm = editor.dom.is(image.parentNode, 'figure.image') ? image.parentNode : image;
editor.dom.remove(elm);
editor.focus();
editor.nodeChanged();
if (editor.dom.isEmpty(editor.getBody())) {
editor.setContent('');
editor.selection.setCursorLocation();
}
}
};
const writeImageDataToSelection = (editor, data) => {
const image = getSelectedImage(editor);
if (image) {
write(css => normalizeCss$1(editor, css), data, image);
syncSrcAttr(editor, image);
if (isFigure(image.parentNode)) {
const figure = image.parentNode;
splitTextBlock(editor, figure);
editor.selection.select(image.parentNode);
} else {
editor.selection.select(image);
waitLoadImage(editor, data, image);
}
}
};
const sanitizeImageData = (editor, data) => {
const src = data.src;
return {
...data,
src: isSafeImageUrl(editor, src) ? src : ''
};
};
const insertOrUpdateImage = (editor, partialData) => {
const image = getSelectedImage(editor);
if (image) {
const selectedImageData = read(css => normalizeCss$1(editor, css), image);
const data = {
...selectedImageData,
...partialData
};
const sanitizedData = sanitizeImageData(editor, data);
if (data.src) {
writeImageDataToSelection(editor, sanitizedData);
} else {
deleteImage(editor, image);
}
} else if (partialData.src) {
insertImageAtCaret(editor, {
...defaultData(),
...partialData
});
}
};
const deep = (old, nu) => {
const bothObjects = isPlainObject(old) && isPlainObject(nu);
return bothObjects ? deepMerge(old, nu) : nu;
};
const baseMerge = merger => {
return (...objects) => {
if (objects.length === 0) {
throw new Error(`Can't merge zero objects`);
}
const ret = {};
for (let j = 0; j < objects.length; j++) {
const curObject = objects[j];
for (const key in curObject) {
if (has(curObject, key)) {
ret[key] = merger(ret[key], curObject[key]);
}
}
}
return ret;
};
};
const deepMerge = baseMerge(deep);
var global$1 = tinymce.util.Tools.resolve('tinymce.util.ImageUploader');
var global = tinymce.util.Tools.resolve('tinymce.util.Tools');
const getValue = item => isString(item.value) ? item.value : '';
const getText = item => {
if (isString(item.text)) {
return item.text;
} else if (isString(item.title)) {
return item.title;
} else {
return '';
}
};
const sanitizeList = (list, extractValue) => {
const out = [];
global.each(list, item => {
const text = getText(item);
if (item.menu !== undefined) {
const items = sanitizeList(item.menu, extractValue);
out.push({
text,
items
});
} else {
const value = extractValue(item);
out.push({
text,
value
});
}
});
return out;
};
const sanitizer = (extractor = getValue) => list => {
if (list) {
return Optional.from(list).map(list => sanitizeList(list, extractor));
} else {
return Optional.none();
}
};
const sanitize = list => sanitizer(getValue)(list);
const isGroup = item => has(item, 'items');
const findEntryDelegate = (list, value) => findMap(list, item => {
if (isGroup(item)) {
return findEntryDelegate(item.items, value);
} else if (item.value === value) {
return Optional.some(item);
} else {
return Optional.none();
}
});
const findEntry = (optList, value) => optList.bind(list => findEntryDelegate(list, value));
const ListUtils = {
sanitizer,
sanitize,
findEntry
};
const makeTab$2 = _info => ({
title: 'Advanced',
name: 'advanced',
items: [{
type: 'grid',
columns: 2,
items: [
{
type: 'input',
label: 'Vertical space',
name: 'vspace',
inputMode: 'numeric'
},
{
type: 'input',
label: 'Horizontal space',
name: 'hspace',
inputMode: 'numeric'
},
{
type: 'input',
label: 'Border width',
name: 'border',
inputMode: 'numeric'
},
{
type: 'listbox',
name: 'borderstyle',
label: 'Border style',
items: [
{
text: 'Select...',
value: ''
},
{
text: 'Solid',
value: 'solid'
},
{
text: 'Dotted',
value: 'dotted'
},
{
text: 'Dashed',
value: 'dashed'
},
{
text: 'Double',
value: 'double'
},
{
text: 'Groove',
value: 'groove'
},
{
text: 'Ridge',
value: 'ridge'
},
{
text: 'Inset',
value: 'inset'
},
{
text: 'Outset',
value: 'outset'
},
{
text: 'None',
value: 'none'
},
{
text: 'Hidden',
value: 'hidden'
}
]
}
]
}]
});
const AdvTab = { makeTab: makeTab$2 };
const collect = editor => {
const urlListSanitizer = ListUtils.sanitizer(item => editor.convertURL(item.value || item.url || '', 'src'));
const futureImageList = new Promise(completer => {
createImageList(editor, imageList => {
completer(urlListSanitizer(imageList).map(items => flatten([
[{
text: 'None',
value: ''
}],
items
])));
});
});
const classList = ListUtils.sanitize(getClassList(editor));
const hasAdvTab$1 = hasAdvTab(editor);
const hasUploadTab$1 = hasUploadTab(editor);
const hasUploadUrl$1 = hasUploadUrl(editor);
const hasUploadHandler$1 = hasUploadHandler(editor);
const image = readImageDataFromSelection(editor);
const hasDescription$1 = hasDescription(editor);
const hasImageTitle$1 = hasImageTitle(editor);
const hasDimensions$1 = hasDimensions(editor);
const hasImageCaption$1 = hasImageCaption(editor);
const hasAccessibilityOptions = showAccessibilityOptions(editor);
const automaticUploads = isAutomaticUploadsEnabled(editor);
const prependURL = Optional.some(getPrependUrl(editor)).filter(preUrl => isString(preUrl) && preUrl.length > 0);
return futureImageList.then(imageList => ({
image,
imageList,
classList,
hasAdvTab: hasAdvTab$1,
hasUploadTab: hasUploadTab$1,
hasUploadUrl: hasUploadUrl$1,
hasUploadHandler: hasUploadHandler$1,
hasDescription: hasDescription$1,
hasImageTitle: hasImageTitle$1,
hasDimensions: hasDimensions$1,
hasImageCaption: hasImageCaption$1,
prependURL,
hasAccessibilityOptions,
automaticUploads
}));
};
const makeItems = info => {
const imageUrl = {
name: 'src',
type: 'urlinput',
filetype: 'image',
label: 'Source'
};
const imageList = info.imageList.map(items => ({
name: 'images',
type: 'listbox',
label: 'Image list',
items
}));
const imageDescription = {
name: 'alt',
type: 'input',
label: 'Alternative description',
enabled: !(info.hasAccessibilityOptions && info.image.isDecorative)
};
const imageTitle = {
name: 'title',
type: 'input',
label: 'Image title'
};
const imageDimensions = {
name: 'dimensions',
type: 'sizeinput'
};
const isDecorative = {
type: 'label',
label: 'Accessibility',
items: [{
name: 'isDecorative',
type: 'checkbox',
label: 'Image is decorative'
}]
};
const classList = info.classList.map(items => ({
name: 'classes',
type: 'listbox',
label: 'Class',
items
}));
const caption = {
type: 'label',
label: 'Caption',
items: [{
type: 'checkbox',
name: 'caption',
label: 'Show caption'
}]
};
const getDialogContainerType = useColumns => useColumns ? {
type: 'grid',
columns: 2
} : { type: 'panel' };
return flatten([
[imageUrl],
imageList.toArray(),
info.hasAccessibilityOptions && info.hasDescription ? [isDecorative] : [],
info.hasDescription ? [imageDescription] : [],
info.hasImageTitle ? [imageTitle] : [],
info.hasDimensions ? [imageDimensions] : [],
[{
...getDialogContainerType(info.classList.isSome() && info.hasImageCaption),
items: flatten([
classList.toArray(),
info.hasImageCaption ? [caption] : []
])
}]
]);
};
const makeTab$1 = info => ({
title: 'General',
name: 'general',
items: makeItems(info)
});
const MainTab = {
makeTab: makeTab$1,
makeItems
};
const makeTab = _info => {
const items = [{
type: 'dropzone',
name: 'fileinput'
}];
return {
title: 'Upload',
name: 'upload',
items
};
};
const UploadTab = { makeTab };
const createState = info => ({
prevImage: ListUtils.findEntry(info.imageList, info.image.src),
prevAlt: info.image.alt,
open: true
});
const fromImageData = image => ({
src: {
value: image.src,
meta: {}
},
images: image.src,
alt: image.alt,
title: image.title,
dimensions: {
width: image.width,
height: image.height
},
classes: image.class,
caption: image.caption,
style: image.style,
vspace: image.vspace,
border: image.border,
hspace: image.hspace,
borderstyle: image.borderStyle,
fileinput: [],
isDecorative: image.isDecorative
});
const toImageData = (data, removeEmptyAlt) => ({
src: data.src.value,
alt: (data.alt === null || data.alt.length === 0) && removeEmptyAlt ? null : data.alt,
title: data.title,
width: data.dimensions.width,
height: data.dimensions.height,
class: data.classes,
style: data.style,
caption: data.caption,
hspace: data.hspace,
vspace: data.vspace,
border: data.border,
borderStyle: data.borderstyle,
isDecorative: data.isDecorative
});
const addPrependUrl2 = (info, srcURL) => {
if (!/^(?:[a-zA-Z]+:)?\/\//.test(srcURL)) {
return info.prependURL.bind(prependUrl => {
if (srcURL.substring(0, prependUrl.length) !== prependUrl) {
return Optional.some(prependUrl + srcURL);
}
return Optional.none();
});
}
return Optional.none();
};
const addPrependUrl = (info, api) => {
const data = api.getData();
addPrependUrl2(info, data.src.value).each(srcURL => {
api.setData({
src: {
value: srcURL,
meta: data.src.meta
}
});
});
};
const formFillFromMeta2 = (info, data, meta) => {
if (info.hasDescription && isString(meta.alt)) {
data.alt = meta.alt;
}
if (info.hasAccessibilityOptions) {
data.isDecorative = meta.isDecorative || data.isDecorative || false;
}
if (info.hasImageTitle && isString(meta.title)) {
data.title = meta.title;
}
if (info.hasDimensions) {
if (isString(meta.width)) {
data.dimensions.width = meta.width;
}
if (isString(meta.height)) {
data.dimensions.height = meta.height;
}
}
if (isString(meta.class)) {
ListUtils.findEntry(info.classList, meta.class).each(entry => {
data.classes = entry.value;
});
}
if (info.hasImageCaption) {
if (isBoolean(meta.caption)) {
data.caption = meta.caption;
}
}
if (info.hasAdvTab) {
if (isString(meta.style)) {
data.style = meta.style;
}
if (isString(meta.vspace)) {
data.vspace = meta.vspace;
}
if (isString(meta.border)) {
data.border = meta.border;
}
if (isString(meta.hspace)) {
data.hspace = meta.hspace;
}
if (isString(meta.borderstyle)) {
data.borderstyle = meta.borderstyle;
}
}
};
const formFillFromMeta = (info, api) => {
const data = api.getData();
const meta = data.src.meta;
if (meta !== undefined) {
const newData = deepMerge({}, data);
formFillFromMeta2(info, newData, meta);
api.setData(newData);
}
};
const calculateImageSize = (helpers, info, state, api) => {
const data = api.getData();
const url = data.src.value;
const meta = data.src.meta || {};
if (!meta.width && !meta.height && info.hasDimensions) {
if (isNotEmpty(url)) {
helpers.imageSize(url).then(size => {
if (state.open) {
api.setData({ dimensions: size });
}
}).catch(e => console.error(e));
} else {
api.setData({
dimensions: {
width: '',
height: ''
}
});
}
}
};
const updateImagesDropdown = (info, state, api) => {
const data = api.getData();
const image = ListUtils.findEntry(info.imageList, data.src.value);
state.prevImage = image;
api.setData({ images: image.map(entry => entry.value).getOr('') });
};
const changeSrc = (helpers, info, state, api) => {
addPrependUrl(info, api);
formFillFromMeta(info, api);
calculateImageSize(helpers, info, state, api);
updateImagesDropdown(info, state, api);
};
const changeImages = (helpers, info, state, api) => {
const data = api.getData();
const image = ListUtils.findEntry(info.imageList, data.images);
image.each(img => {
const updateAlt = data.alt === '' || state.prevImage.map(image => image.text === data.alt).getOr(false);
if (updateAlt) {
if (img.value === '') {
api.setData({
src: img,
alt: state.prevAlt
});
} else {
api.setData({
src: img,
alt: img.text
});
}
} else {
api.setData({ src: img });
}
});
state.prevImage = image;
changeSrc(helpers, info, state, api);
};
const changeFileInput = (helpers, info, state, api) => {
const data = api.getData();
api.block('Uploading image');
head(data.fileinput).fold(() => {
api.unblock();
}, file => {
const blobUri = URL.createObjectURL(file);
const finalize = () => {
api.unblock();
URL.revokeObjectURL(blobUri);
};
const updateSrcAndSwitchTab = url => {
api.setData({
src: {
value: url,
meta: {}
}
});
api.showTab('general');
changeSrc(helpers, info, state, api);
};
blobToDataUri(file).then(dataUrl => {
const blobInfo = helpers.createBlobCache(file, blobUri, dataUrl);
if (info.automaticUploads) {
helpers.uploadImage(blobInfo).then(result => {
updateSrcAndSwitchTab(result.url);
finalize();
}).catch(err => {
finalize();
helpers.alertErr(err);
});
} else {
helpers.addToBlobCache(blobInfo);
updateSrcAndSwitchTab(blobInfo.blobUri());
api.unblock();
}
});
});
};
const changeHandler = (helpers, info, state) => (api, evt) => {
if (evt.name === 'src') {
changeSrc(helpers, info, state, api);
} else if (evt.name === 'images') {
changeImages(helpers, info, state, api);
} else if (evt.name === 'alt') {
state.prevAlt = api.getData().alt;
} else if (evt.name === 'fileinput') {
changeFileInput(helpers, info, state, api);
} else if (evt.name === 'isDecorative') {
api.setEnabled('alt', !api.getData().isDecorative);
}
};
const closeHandler = state => () => {
state.open = false;
};
const makeDialogBody = info => {
if (info.hasAdvTab || info.hasUploadUrl || info.hasUploadHandler) {
const tabPanel = {
type: 'tabpanel',
tabs: flatten([
[MainTab.makeTab(info)],
info.hasAdvTab ? [AdvTab.makeTab(info)] : [],
info.hasUploadTab && (info.hasUploadUrl || info.hasUploadHandler) ? [UploadTab.makeTab(info)] : []
])
};
return tabPanel;
} else {
const panel = {
type: 'panel',
items: MainTab.makeItems(info)
};
return panel;
}
};
const submitHandler = (editor, info, helpers) => api => {
const data = deepMerge(fromImageData(info.image), api.getData());
const finalData = {
...data,
style: getStyleValue(helpers.normalizeCss, toImageData(data, false))
};
editor.execCommand('mceUpdateImage', false, toImageData(finalData, info.hasAccessibilityOptions));
editor.editorUpload.uploadImagesAuto();
api.close();
};
const imageSize = editor => url => {
if (!isSafeImageUrl(editor, url)) {
return Promise.resolve({
width: '',
height: ''
});
} else {
return getImageSize(editor.documentBaseURI.toAbsolute(url)).then(dimensions => ({
width: String(dimensions.width),
height: String(dimensions.height)
}));
}
};
const createBlobCache = editor => (file, blobUri, dataUrl) => {
var _a;
return editor.editorUpload.blobCache.create({
blob: file,
blobUri,
name: (_a = file.name) === null || _a === void 0 ? void 0 : _a.replace(/\.[^\.]+$/, ''),
filename: file.name,
base64: dataUrl.split(',')[1]
});
};
const addToBlobCache = editor => blobInfo => {
editor.editorUpload.blobCache.add(blobInfo);
};
const alertErr = editor => message => {
editor.windowManager.alert(message);
};
const normalizeCss = editor => cssText => normalizeCss$1(editor, cssText);
const parseStyle = editor => cssText => editor.dom.parseStyle(cssText);
const serializeStyle = editor => (stylesArg, name) => editor.dom.serializeStyle(stylesArg, name);
const uploadImage = editor => blobInfo => global$1(editor).upload([blobInfo], false).then(results => {
var _a;
if (results.length === 0) {
return Promise.reject('Failed to upload image');
} else if (results[0].status === false) {
return Promise.reject((_a = results[0].error) === null || _a === void 0 ? void 0 : _a.message);
} else {
return results[0];
}
});
const Dialog = editor => {
const helpers = {
imageSize: imageSize(editor),
addToBlobCache: addToBlobCache(editor),
createBlobCache: createBlobCache(editor),
alertErr: alertErr(editor),
normalizeCss: normalizeCss(editor),
parseStyle: parseStyle(editor),
serializeStyle: serializeStyle(editor),
uploadImage: uploadImage(editor)
};
const open = () => {
collect(editor).then(info => {
const state = createState(info);
return {
title: 'Insert/Edit Image',
size: 'normal',
body: makeDialogBody(info),
buttons: [
{
type: 'cancel',
name: 'cancel',
text: 'Cancel'
},
{
type: 'submit',
name: 'save',
text: 'Save',
primary: true
}
],
initialData: fromImageData(info.image),
onSubmit: submitHandler(editor, info, helpers),
onChange: changeHandler(helpers, info, state),
onClose: closeHandler(state)
};
}).then(editor.windowManager.open);
};
return { open };
};
const register$1 = editor => {
editor.addCommand('mceImage', Dialog(editor).open);
editor.addCommand('mceUpdateImage', (_ui, data) => {
editor.undoManager.transact(() => insertOrUpdateImage(editor, data));
});
};
const hasImageClass = node => {
const className = node.attr('class');
return isNonNullable(className) && /\bimage\b/.test(className);
};
const toggleContentEditableState = state => nodes => {
let i = nodes.length;
const toggleContentEditable = node => {
node.attr('contenteditable', state ? 'true' : null);
};
while (i--) {
const node = nodes[i];
if (hasImageClass(node)) {
node.attr('contenteditable', state ? 'false' : null);
global.each(node.getAll('figcaption'), toggleContentEditable);
}
}
};
const setup = editor => {
editor.on('PreInit', () => {
editor.parser.addNodeFilter('figure', toggleContentEditableState(true));
editor.serializer.addNodeFilter('figure', toggleContentEditableState(false));
});
};
const onSetupEditable = editor => api => {
const nodeChanged = () => {
api.setEnabled(editor.selection.isEditable());
};
editor.on('NodeChange', nodeChanged);
nodeChanged();
return () => {
editor.off('NodeChange', nodeChanged);
};
};
const register = editor => {
editor.ui.registry.addToggleButton('image', {
icon: 'image',
tooltip: 'Insert/edit image',
onAction: Dialog(editor).open,
onSetup: buttonApi => {
buttonApi.setActive(isNonNullable(getSelectedImage(editor)));
const unbindSelectorChanged = editor.selection.selectorChangedWithUnbind('img:not([data-mce-object]):not([data-mce-placeholder]),figure.image', buttonApi.setActive).unbind;
const unbindEditable = onSetupEditable(editor)(buttonApi);
return () => {
unbindSelectorChanged();
unbindEditable();
};
}
});
editor.ui.registry.addMenuItem('image', {
icon: 'image',
text: 'Image...',
onAction: Dialog(editor).open,
onSetup: onSetupEditable(editor)
});
editor.ui.registry.addContextMenu('image', { update: element => isFigure(element) || isImage(element) && !isPlaceholderImage(element) ? ['image'] : [] });
};
var Plugin = () => {
global$4.add('image', editor => {
register$2(editor);
setup(editor);
register(editor);
register$1(editor);
});
};
Plugin();
})();
```
|
```swift
// Created by Cal Stephens on 8/14/23.
// MARK: - LayerStyleType
enum LayerStyleType: Int, Codable, Sendable {
case dropShadow = 1
case unknown = 9999
init(from decoder: Decoder) throws {
self = try LayerStyleType(rawValue: decoder.singleValueContainer().decode(RawValue.self)) ?? .unknown
}
}
// MARK: ClassFamily
extension LayerStyleType: ClassFamily {
static var discriminator: Discriminator = .type
func getType() -> AnyObject.Type {
switch self {
case .dropShadow:
DropShadowStyle.self
case .unknown:
// Unsupported
LayerStyle.self
}
}
}
// MARK: - LayerStyle
class LayerStyle: Codable, DictionaryInitializable {
// MARK: Lifecycle
required init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: LayerStyle.CodingKeys.self)
name = try container.decodeIfPresent(String.self, forKey: .name) ?? "Style"
type = try container.decode(LayerStyleType.self, forKey: .type)
}
required init(dictionary: [String: Any]) throws {
name = (try? dictionary.value(for: CodingKeys.name)) ?? "Layer"
type = LayerStyleType(rawValue: try dictionary.value(for: CodingKeys.type)) ?? .unknown
}
// MARK: Internal
/// The name of the style
let name: String
/// The type of style
let type: LayerStyleType
// MARK: Fileprivate
fileprivate enum CodingKeys: String, CodingKey {
case name = "nm"
case type = "ty"
}
}
extension [LayerStyle] {
static func fromDictionaries(_ dictionaries: [[String: Any]]) throws -> [LayerStyle] {
try dictionaries.compactMap { dictionary in
let shapeType = dictionary[LayerStyle.CodingKeys.type.rawValue] as? Int
switch LayerStyleType(rawValue: shapeType ?? LayerStyleType.unknown.rawValue) {
case .dropShadow:
return try DropShadowStyle(dictionary: dictionary)
case .unknown, nil:
// Unsupported
return try LayerStyle(dictionary: dictionary)
}
}
}
}
// MARK: - LayerStyle + Sendable
/// Since `LayerStyle` isn't `final`, we have to use `@unchecked Sendable` instead of `Sendable.`
/// All `LayerStyle` subclasses are immutable `Sendable` values.
// swiftlint:disable:next no_unchecked_sendable
extension LayerStyle: @unchecked Sendable { }
```
|
```batchfile
cmd_/mnt/hgfs/windows/src/3memory/3-2mmap/mmap/demo.mod.o := arm-linux-gcc -Wp,-MD,/mnt/hgfs/windows/src/3memory/3-2mmap/mmap/.demo.mod.o.d -nostdinc -isystem /usr/local/arm/4.2.2-eabi/usr/bin-ccache/../lib/gcc/arm-unknown-linux-gnueabi/4.2.2/include -D__KERNEL__ -Iinclude -I/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include -include include/linux/autoconf.h -mlittle-endian -Iarch/arm/mach-s3c6400/include -Iarch/arm/mach-s3c6410/include -Iarch/arm/plat-s3c64xx/include -Iarch/arm/plat-s3c/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -marm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=6 -march=armv6k -mtune=arm1136j-s -msoft-float -Uarm -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -Wdeclaration-after-statement -Wno-pointer-sign -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(demo.mod)" -D"KBUILD_MODNAME=KBUILD_STR(demo)" -DMODULE -c -o /mnt/hgfs/windows/src/3memory/3-2mmap/mmap/demo.mod.o /mnt/hgfs/windows/src/3memory/3-2mmap/mmap/demo.mod.c
deps_/mnt/hgfs/windows/src/3memory/3-2mmap/mmap/demo.mod.o := \
/mnt/hgfs/windows/src/3memory/3-2mmap/mmap/demo.mod.c \
$(wildcard include/config/module/unload.h) \
include/linux/module.h \
$(wildcard include/config/modules.h) \
$(wildcard include/config/modversions.h) \
$(wildcard include/config/unused/symbols.h) \
$(wildcard include/config/generic/bug.h) \
$(wildcard include/config/kallsyms.h) \
$(wildcard include/config/markers.h) \
$(wildcard include/config/tracepoints.h) \
$(wildcard include/config/sysfs.h) \
include/linux/list.h \
$(wildcard include/config/debug/list.h) \
include/linux/stddef.h \
include/linux/compiler.h \
$(wildcard include/config/enable/must/check.h) \
$(wildcard include/config/enable/warn/deprecated.h) \
include/linux/compiler-gcc4.h \
include/linux/compiler-gcc.h \
$(wildcard include/config/arch/supports/optimized/inlining.h) \
$(wildcard include/config/optimize/inlining.h) \
include/linux/poison.h \
include/linux/prefetch.h \
include/linux/types.h \
$(wildcard include/config/uid16.h) \
$(wildcard include/config/lbd.h) \
$(wildcard include/config/lsf.h) \
$(wildcard include/config/phys/addr/t/64bit.h) \
include/linux/posix_types.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/posix_types.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/types.h \
include/asm-generic/int-ll64.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/processor.h \
$(wildcard include/config/mmu.h) \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/ptrace.h \
$(wildcard include/config/arm/thumb.h) \
$(wildcard include/config/smp.h) \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/hwcap.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/cache.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/system.h \
$(wildcard include/config/cpu/xsc3.h) \
$(wildcard include/config/cpu/sa1100.h) \
$(wildcard include/config/cpu/sa110.h) \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/memory.h \
$(wildcard include/config/page/offset.h) \
$(wildcard include/config/dram/size.h) \
$(wildcard include/config/dram/base.h) \
$(wildcard include/config/zone/dma.h) \
$(wildcard include/config/discontigmem.h) \
$(wildcard include/config/sparsemem.h) \
include/linux/const.h \
arch/arm/mach-s3c6400/include/mach/memory.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/sizes.h \
include/asm-generic/memory_model.h \
$(wildcard include/config/flatmem.h) \
$(wildcard include/config/sparsemem/vmemmap.h) \
$(wildcard include/config/out/of/line/pfn/to/page.h) \
include/linux/linkage.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/linkage.h \
include/linux/irqflags.h \
$(wildcard include/config/trace/irqflags.h) \
$(wildcard include/config/irqsoff/tracer.h) \
$(wildcard include/config/preempt/tracer.h) \
$(wildcard include/config/trace/irqflags/support.h) \
$(wildcard include/config/x86.h) \
include/linux/typecheck.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/irqflags.h \
include/asm-generic/cmpxchg-local.h \
include/asm-generic/cmpxchg.h \
include/linux/stat.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/stat.h \
include/linux/time.h \
include/linux/cache.h \
$(wildcard include/config/arch/has/cache/line/size.h) \
include/linux/kernel.h \
$(wildcard include/config/preempt/voluntary.h) \
$(wildcard include/config/debug/spinlock/sleep.h) \
$(wildcard include/config/printk.h) \
$(wildcard include/config/dynamic/printk/debug.h) \
$(wildcard include/config/numa.h) \
$(wildcard include/config/ftrace/mcount/record.h) \
/usr/local/arm/4.2.2-eabi/usr/bin-ccache/../lib/gcc/arm-unknown-linux-gnueabi/4.2.2/include/stdarg.h \
include/linux/bitops.h \
$(wildcard include/config/generic/find/first/bit.h) \
$(wildcard include/config/generic/find/next/bit.h) \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/bitops.h \
include/asm-generic/bitops/non-atomic.h \
include/asm-generic/bitops/fls64.h \
include/asm-generic/bitops/sched.h \
include/asm-generic/bitops/hweight.h \
include/asm-generic/bitops/lock.h \
include/linux/log2.h \
$(wildcard include/config/arch/has/ilog2/u32.h) \
$(wildcard include/config/arch/has/ilog2/u64.h) \
include/linux/ratelimit.h \
include/linux/param.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/param.h \
$(wildcard include/config/hz.h) \
include/linux/dynamic_printk.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/byteorder.h \
include/linux/byteorder/little_endian.h \
include/linux/byteorder/swab.h \
include/linux/byteorder/swabb.h \
include/linux/byteorder/generic.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/bug.h \
$(wildcard include/config/bug.h) \
$(wildcard include/config/debug/bugverbose.h) \
include/asm-generic/bug.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/div64.h \
include/linux/seqlock.h \
include/linux/spinlock.h \
$(wildcard include/config/debug/spinlock.h) \
$(wildcard include/config/generic/lockbreak.h) \
$(wildcard include/config/preempt.h) \
$(wildcard include/config/debug/lock/alloc.h) \
include/linux/preempt.h \
$(wildcard include/config/debug/preempt.h) \
$(wildcard include/config/preempt/notifiers.h) \
include/linux/thread_info.h \
$(wildcard include/config/compat.h) \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/thread_info.h \
$(wildcard include/config/arm/thumbee.h) \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/fpstate.h \
$(wildcard include/config/vfpv3.h) \
$(wildcard include/config/iwmmxt.h) \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/domain.h \
$(wildcard include/config/io/36.h) \
include/linux/stringify.h \
include/linux/bottom_half.h \
include/linux/spinlock_types.h \
include/linux/spinlock_types_up.h \
include/linux/lockdep.h \
$(wildcard include/config/lockdep.h) \
$(wildcard include/config/lock/stat.h) \
$(wildcard include/config/generic/hardirqs.h) \
$(wildcard include/config/prove/locking.h) \
include/linux/spinlock_up.h \
include/linux/spinlock_api_smp.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/atomic.h \
include/asm-generic/atomic.h \
include/linux/math64.h \
include/linux/kmod.h \
include/linux/gfp.h \
$(wildcard include/config/zone/dma32.h) \
$(wildcard include/config/highmem.h) \
include/linux/mmzone.h \
$(wildcard include/config/force/max/zoneorder.h) \
$(wildcard include/config/unevictable/lru.h) \
$(wildcard include/config/memory/hotplug.h) \
$(wildcard include/config/arch/populates/node/map.h) \
$(wildcard include/config/flat/node/mem/map.h) \
$(wildcard include/config/cgroup/mem/res/ctlr.h) \
$(wildcard include/config/have/memory/present.h) \
$(wildcard include/config/need/node/memmap/size.h) \
$(wildcard include/config/need/multiple/nodes.h) \
$(wildcard include/config/have/arch/early/pfn/to/nid.h) \
$(wildcard include/config/sparsemem/extreme.h) \
$(wildcard include/config/nodes/span/other/nodes.h) \
$(wildcard include/config/holes/in/zone.h) \
include/linux/wait.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/current.h \
include/linux/threads.h \
$(wildcard include/config/nr/cpus.h) \
$(wildcard include/config/base/small.h) \
include/linux/numa.h \
$(wildcard include/config/nodes/shift.h) \
include/linux/init.h \
$(wildcard include/config/hotplug.h) \
include/linux/nodemask.h \
include/linux/bitmap.h \
include/linux/string.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/string.h \
include/linux/pageblock-flags.h \
$(wildcard include/config/hugetlb/page.h) \
$(wildcard include/config/hugetlb/page/size/variable.h) \
include/linux/bounds.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/page.h \
$(wildcard include/config/cpu/copy/v3.h) \
$(wildcard include/config/cpu/copy/v4wt.h) \
$(wildcard include/config/cpu/copy/v4wb.h) \
$(wildcard include/config/cpu/copy/feroceon.h) \
$(wildcard include/config/cpu/xscale.h) \
$(wildcard include/config/cpu/copy/v6.h) \
$(wildcard include/config/aeabi.h) \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/glue.h \
$(wildcard include/config/cpu/arm610.h) \
$(wildcard include/config/cpu/arm710.h) \
$(wildcard include/config/cpu/abrt/lv4t.h) \
$(wildcard include/config/cpu/abrt/ev4.h) \
$(wildcard include/config/cpu/abrt/ev4t.h) \
$(wildcard include/config/cpu/abrt/ev5tj.h) \
$(wildcard include/config/cpu/abrt/ev5t.h) \
$(wildcard include/config/cpu/abrt/ev6.h) \
$(wildcard include/config/cpu/abrt/ev7.h) \
$(wildcard include/config/cpu/pabrt/ifar.h) \
$(wildcard include/config/cpu/pabrt/noifar.h) \
include/asm-generic/page.h \
include/linux/memory_hotplug.h \
$(wildcard include/config/have/arch/nodedata/extension.h) \
$(wildcard include/config/memory/hotremove.h) \
include/linux/notifier.h \
include/linux/errno.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/errno.h \
include/asm-generic/errno.h \
include/asm-generic/errno-base.h \
include/linux/mutex.h \
$(wildcard include/config/debug/mutexes.h) \
include/linux/mutex-debug.h \
include/linux/rwsem.h \
$(wildcard include/config/rwsem/generic/spinlock.h) \
include/linux/rwsem-spinlock.h \
include/linux/srcu.h \
include/linux/topology.h \
$(wildcard include/config/sched/smt.h) \
$(wildcard include/config/sched/mc.h) \
include/linux/cpumask.h \
$(wildcard include/config/hotplug/cpu.h) \
$(wildcard include/config/debug/per/cpu/maps.h) \
$(wildcard include/config/cpumask/offstack.h) \
include/linux/smp.h \
$(wildcard include/config/use/generic/smp/helpers.h) \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/topology.h \
include/asm-generic/topology.h \
include/linux/elf.h \
include/linux/elf-em.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/elf.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/user.h \
include/linux/kobject.h \
include/linux/sysfs.h \
include/linux/kref.h \
include/linux/moduleparam.h \
$(wildcard include/config/alpha.h) \
$(wildcard include/config/ia64.h) \
$(wildcard include/config/ppc64.h) \
include/linux/marker.h \
include/linux/tracepoint.h \
include/linux/rcupdate.h \
$(wildcard include/config/classic/rcu.h) \
include/linux/percpu.h \
include/linux/slab.h \
$(wildcard include/config/slab/debug.h) \
$(wildcard include/config/debug/objects.h) \
$(wildcard include/config/slub.h) \
$(wildcard include/config/slob.h) \
$(wildcard include/config/debug/slab.h) \
include/linux/slub_def.h \
$(wildcard include/config/slub/stats.h) \
$(wildcard include/config/slub/debug.h) \
include/linux/workqueue.h \
include/linux/timer.h \
$(wildcard include/config/timer/stats.h) \
$(wildcard include/config/debug/objects/timers.h) \
include/linux/ktime.h \
$(wildcard include/config/ktime/scalar.h) \
include/linux/jiffies.h \
include/linux/timex.h \
$(wildcard include/config/no/hz.h) \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/timex.h \
arch/arm/plat-s3c/include/mach/timex.h \
include/linux/debugobjects.h \
$(wildcard include/config/debug/objects/free.h) \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/percpu.h \
include/asm-generic/percpu.h \
$(wildcard include/config/have/setup/per/cpu/area.h) \
include/linux/completion.h \
include/linux/rcuclassic.h \
$(wildcard include/config/rcu/cpu/stall/detector.h) \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/local.h \
include/asm-generic/local.h \
include/linux/hardirq.h \
$(wildcard include/config/virt/cpu/accounting.h) \
$(wildcard include/config/preempt/rcu.h) \
include/linux/smp_lock.h \
$(wildcard include/config/lock/kernel.h) \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/hardirq.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/irq.h \
arch/arm/mach-s3c6400/include/mach/irqs.h \
arch/arm/plat-s3c64xx/include/plat/irqs.h \
include/linux/irq_cpustat.h \
/mnt/v/urbetter-linux2.6.28-v1.0/arch/arm/include/asm/module.h \
include/linux/vermagic.h \
include/linux/utsrelease.h \
/mnt/hgfs/windows/src/3memory/3-2mmap/mmap/demo.mod.o: $(deps_/mnt/hgfs/windows/src/3memory/3-2mmap/mmap/demo.mod.o)
$(deps_/mnt/hgfs/windows/src/3memory/3-2mmap/mmap/demo.mod.o):
```
|
The 40th Parliament of British Columbia was in session from June 26, 2013, to April 11, 2017. It consisted of the Legislative Assembly of British Columbia, as elected by the general election of May 14, 2013, and the Queen represented by the Lieutenant-Governor Judith Guichon. That election unexpectedly returned the BC Liberal Party to another absolute majority government, their fourth consecutive government since 2001, this time with Christy Clark who had been premier since 2011. The BC New Democratic Party formed the official opposition under Adrian Dix and John Horgan who replaced Dix in the 2014 leadership election. The first member of the Legislative Assembly (MLA) from the Green Party of BC, Andrew J. Weaver served in this parliament, along with independent Vicki Huntington. Three MLAs resigned: Jenny Kwan and Douglas Horne who resigned to stand in a federal election, as well as Ben Stewart who resigned for the purpose of providing the Premier, who had lost her seat in the general election, with another opportunity to gain a seat. The by-elections to replace the resigned members Clark won Stewart's Kelowna riding, while Melanie Mark and Jodie Wickens replaced Kwan and Horne, respectively. The only members to leave their party, Marc Dalton briefly left the BC Liberals as he unsuccessfully sought the Conservative Party nomination in the federal election, and Pat Pimm left the BC Liberal Party just prior to being arrested.
Legislative initiatives which were part of 2013 BC Liberal election platform included major amendments to liquor laws, local government elections, and holding a plebiscite on TransLink funding. The BC Liberal election priority of fostering a liquefied natural gas (LNG) industry involved the creation of the Liquefied Natural Gas Income Tax Act, the Greenhouse Gas Industrial Reporting and Control Act which provides exemptions for LNG facilities and replaces the existing cap and trade regime, amendments to the Protected Areas of British Columbia Act to make way for pipelines through parks and other protected areas, and various amendments to the Natural Gas Development Statutes Act (formerly the Petroleum and Natural Gas Act). Other major legislation included the adoption of the Water Sustainability Act, creation of a licensing system for all-terrain vehicle and snowmobiles in the Off-Road Vehicle Act, adding electronic cigarette to the Tobacco and Vapour Products Control Act, modernizing the Societies Act, amendments to the Motor Dealer Act to prohibit online sales of vehicles, creation of a new provincial park called the Ancient Forest/Chun T'oh Whudujut Park, and adoption of the Great Bear Rainforest (Forest Management) Act that limited commercial logging in the Great Bear Rainforest. Other new legislation included making discrimination based on gender identity or expression illegal, and creating a 15% property transfer tax that only applies to foreign nationals in Metro Vancouver.
In preparation for the next general election, legislation was adopted to increase the number of MLAs to 87, delete pre-campaign expense limits, allow constituency associations to incur election expenses, require dissemination of the identity of those who voted in the last election, and limited the update to voter registration information. The 40th parliament of British Columbia was formally dissolved on April 11, 2017, by request of the premier to the lieutenant governor making way for the 41st British Columbia general election set for May 9, 2017.
Elections and appointments
The members of the legislative assembly were elected in the 40th general election, held on May 14, 2013. The BC Liberal Party unexpectedly elected an expanded majority, their fourth consecutive absolute majority. To accommodate party leader Christy Clark who lost her seat, Ben Stewart resigned his Westside-Kelowna seat. Clark won the Westside-Kelowna by-election on July 10. Regardless of not having a seat in the legislative assembly, Clark, as leader of the party with the most seats, was Premier. She named Rich Coleman as Deputy Premier and Minister of Natural Gas Development. In her cabinet, she kept Mike de Jong as Minister of Finance (as well as government house leader), Steve Thomson as Minister of Forests, Lands and Natural Resource Operations, and Stephanie Cadieux as Minister of Children and Family Development. Clark shuffled Bill Bennett, Mary Polak, Shirley Bond, Don McRae, Terry Lake, and Naomi Yamamoto to different ministries while Norm Letnick, Ralph Sultan and Moira Stilwell were removed from cabinet. New members who Clark immediately appointed to her cabinet included Peter Fassbender as Minister of Education, Amrik Virk as Minister of Advanced Education, Suzanne Anton as Minister of Justice, Todd Stone as Minister of Transportation and Infrastructure, Teresa Wat as Minister of International Trade, Coralee Oakes as Minister of Community, Sport and Cultural Development, and Andrew Wilkinson as Minister of Technology, Innovation and Citizen Services. Veteran members John Rustad and Pat Pimm were also added to cabinet. Premier Clark issued mandate letters to each minister outlining priorities and expectations.
The Constitution Act states that the next general election had to occur no later than the second Tuesday in May, four years after the last general election. Accordingly, the 40th parliament was dissolved on April 11, 2017, by request of the premier to the lieutenant governor making way for the 41st British Columbia general election which was then scheduled for May 9, 2017.
First session
The first session of the 40th Parliament began on June 26, 2013, with the Speech from the Throne delivered by Lieutenant-Governor Judith Guichon. This brief session was held only to pass a budget for the remainder of the fiscal year. The budget was largely the same as the BC Liberals had introduced in February as a pre-election budget. It increased the general corporate income tax rate from 10% to 11%, inserted a new top tax bracket applicable for the 2014 and 2015 years only, increased tax on cigarettes and tobacco, and exempted coloured fuel from the carbon tax.
Second session
The second session opened on February 11, 2014, following a six-month recess. During the session 26 bills were given royal assent, all on or before May 29. Following through on campaign promises, a plebiscite on TransLink funding was set up with the South Coast British Columbia Transportation Authority Funding Referenda Act, the first of several new liquor laws were passed with the Liquor Control and Licensing Amendment Act and its accompanying regulations, which among other items allowed for sales of liquor at grocery stores and farmers' markets, and recommendations of the Missing Women Commission of Inquiry were implemented with the Missing Persons Act. To facilitate natural gas industry, the budget committed $29 million to the government's LNG strategy program, the Park Act and the Park Boundary Adjustment Policy were amended to allow more industrial activities within provincial parks, and the Natural Gas Development Statutes Amendment Act modernized the Petroleum and Natural Gas Act and revised the ability of land owners to appeal decisions concerning placement of wells, pipelines and facilities on their property.
The Minister of Agriculture Pat Pimm introduced the Animal Health Act updating the laws concerning agricultural biosecurity and amendments to the Agricultural Land Commission Act which controversially divided the ALR into two zones, each with different regulations and application decision-making criteria. Citing health issues, Pimm resigned from cabinet in April and was replaced by Norm Letnick who had served previously as agriculture minister in 2012-13. Michelle Stilwell was promoted to cabinet to replace Letnick's position of Minister of Social Development and Social Innovation.
The long-anticipated Water Sustainability Act modernized the laws regarding water management. The Off-Road Vehicle Act created the requirement that all-terrain vehicles and snowmobiles be registered and licensed. The Provincial Capital Commission Dissolution Act closed the Provincial Capital Commission. The Local Elections Campaign Financing Act and the Local Elections Statutes Amendment Act placed new regulations on local elections, like extending the terms of mayor and councils to four years from three, establishing spending limits, and requiring registration of third-party advertisers. The Protected Areas of British Columbia Amendment Act, 2014, removed 11 ha from Indian Arm Provincial Park and 10 ha from Elk Falls Provincial Park and added 47,873 ha to four existing conservancies. The government tabled back-to-work legislation regarding a strike action at the Port of Vancouver but did not pass it as the strike ended.
Third session
A short third session was held in October–November 2014 responding to requests by proponents of the liquefied natural gas industry to fast-track legislation. The Liquefied Natural Gas Income Tax Act established the taxation regime at 1.5% of net income until capital costs have been paid, then 3.5% afterwards, significantly less than the original 7% that the government had been planning. The Greenhouse Gas Industrial Reporting and Control Act repealed the Greenhouse Gas Reduction (Cap and Trade) Act in favour of intensity level emission limits, instead total emission measures, and the act set the emission limit at 0.16 carbon dioxide equivalent tonnes for each tonne of LNG produced. The Protected Areas of British Columbia Amendment Act (No. 2), 2014, removed 63 hectares from the Nisga'a Memorial Lava Bed Park to accommodate a pipeline to one of the proposed LNG facilities.
Also, the Container Trucking Act, which created the office of the British Columbia Container Trucking Commissioner, was adopted as a result of the negotiations in the previous session's response to the Port of Vancouver strike. The Canadian Pacific Railway (Stone and Timber) Settlement Act extinguished all of Canadian Pacific Limited's stone and timber reservations in exchange for $19 million.
Fourth session
Prior to the fourth session, the Premier added Mike Bernier to cabinet as Minister of Education. The former Minister of Education Peter Fassbender took over Coralee Oakes's position as Minister of Community, Sport and Cultural Development, as well as taking over responsibility for TransLink from Todd Stone's Ministry of Transportation and Infrastructure. Oakes was assigned to be Minister of Small Business, Red Tape Reduction and responsible for the liquor distribution branch. Naomi Yamamoto was moved from Minister of State for Tourism and Small Business was moved over to the newly created Minister of State for Emergency Preparedness. Both Jenny Kwan and Douglas Horne resigned as MLAs in order to pursue election in the federal general election.
The fourth session ran between February and November 2015 and saw 42 bills become law. The previous session's legislation concerning LNG taxation was furthered with the Liquefied Natural Gas Income Tax Amendment Act, 2015, and the Liquefied Natural Gas Project Agreements Act exempted for 25 years LNG facilities from increases in tax and greenhouse gas regulatory changes. The Federal Port Development Act implemented a recently added provision of the Canada Marine Act that enables provincial regulations to be administered on federal port lands. In addition to allowing residential tenants to cancel a rental agreement in instances of domestic violence, the Natural Gas Development Statutes Amendment Act, 2015, expanded the list of activities that are defined as an "oil and gas activity", with the Miscellaneous Statutes Amendment Act, 2015, further expanding the list and extended the maximum duration of royalty agreements for extracting natural gas. The miscellaneous statutes act also created the Medal of Good Citizenship, repealed the Shelter Aid for Elderly Renters Act, and allowed the Queen's Printer to contract out its printing duties and further implemented aspects of the Liquor Policy Review. Additionally, in response to the Liquor Policy Review, there was a major update to the Liquor Control and Licensing Act.
The Red Tape Reduction Day Act recognized the second Wednesday of March as Red Tape Reduction Day. The Amendments to the Finance Statutes Act allowed ICBC to withhold issuance or renewal of driver's license to those with delinquent student loan repayments or child support payments or unpaid court fines. The Motor Vehicle Amendment Act, 2015, made driving in the left lane of a highway a ticketable offense if not using it to pass another vehicle or turning off the highway. This amendment act also now requires winter tires be stamped with a specialized (e.g. snowflake or mountain) symbol. The Guide Dog and Service Dog Act created a Registrar of guide dogs and service dogs requiring that such dogs be certified; those with certified dogs have the right, despite any 'no pet policy', to housing and to enter places where the public is invited (e.g. stores, transit). Two amendments to the Workers Compensation Act implemented the recommendations made by WorkSafeBC and the BC Coroner's Office following the 2012 sawmill explosions that killed four people.
The Tobacco Control Act was expanded to include vapour products and renamed to Tobacco and Vapour Products Control Act. The Fish and Seafood Act replaced and modernized the Fisheries Act and the Fish Inspection Act. The Societies Act updated and replaced the Society Act. The Franchises Act was created based on recommendations from the BC Law Institute and the Canadian Bar Association of BC to imposes a duty of fair dealing for franchise agreements, allowing franchises to associate with other franchises, and allowing franchisees to sue for damages in event of misrepresentation by a parent company.
The Information Management Act created the position of Chief Records Officer to oversee digitizing government archives. The Provincial Immigration Programs Act created the position of Director of Provincial Immigration Programs for administering immigration agreements with the federal government. The Auditor General for Local Government Amendment Act, 2015, required the appointment of a deputy auditor general and expanded upon the provisions for suspending or removing an individual from the position of auditor general.
Revisions to the Electoral Districts Act and the Election Act increased the number of electoral districts and MLAs to 87 and deleted expense limits that applied to the pre-campaign period, now allows constituency associations to incur election expenses, only permits updates to voter registration information in conjunction with voting and only with a family member present to vouch, and requires the Chief Electoral Officer to provide each political party the list of voters in the last election with identification of who voted.
Fifth session
The fifth session took place between February and July 2016. Prior to the session beginning, Mike Morris was added to the cabinet under a new position titled Minister of Public Safety and Solicitor General. The 2016 budget created the Prosperity Fund and required any increase in general funds either be used to reduce operating debt or held in the Prosperity Fund. The budget increased the property transfer tax increase (from 2% to 3%) on homes over $2 million but increased the exemption threshold for new houses to $750,000. The budget also exempted children from paying Medical Services Premium, created a farmers' food donation tax credit, extended both the mining tax credit and the tax credit for home renovations by seniors of persons with disabilities, expanded of the film tax credit to include animation productions, mandated lower assessment values be placed on rural tourist accommodations, and made funds available to compensate property owners impacted by wildfire control.
Affecting an LNG industry, the Greenhouse Gas Industrial Reporting and Control Amendment Act, 2016, exempted new facilities from reporting emissions for the first 18 months of operations and expanded eligibility to participate in the BC carbon registry; and the Safety Standards Act was amended to move administration of safety standards in the oil and gas sector from the BC Safety Authority to the Oil and Gas Commission. Affecting pipelines, land was removed from Finn Creek Provincial Park to accommodate the Kinder Morgan Trans Mountain Pipeline System and an amendment to the Environmental Management Act created a requirement for regulated industries, like oil pipelines, to have spill contingency plans.
New legislation included the Great Bear Rainforest (Forest Management) Act which limits commercial logging in the Great Bear Rainforest. the Profits of Criminal Notoriety Act prevents people from being paid to recount crime or profiting from crime memorabilia. The Sexual Violence and Misconduct Policy Act, originally introduced by Andrew J. Weaver of the Green Party as the Post-Secondary Sexual Violence Policies Act, was adopted by the government and requires post-secondary institutions to put in place a sexual misconduct policy.
Legislative amendments included an amendment to the Motor Dealer Act which prohibits selling new vehicles using the Internet, prohibits motor dealers from employing unlicensed salespeople, and creates the Motor Dealer Consumer Advancement Fund; the Pharmacy Operations and Drug Scheduling Amendment Act, 2016, expands the jurisdiction of the College of Pharmacists of BC to include licensing of pharmacy owners; an amendment to the Forests, Lands and Natural Resource Operations Statutes Act adds unintended actions to the definition of interference; the Community Care and Assisted Living Amendment Act, 2016, enacted some recommendations from the Office of the Seniors Advocate to allows partners not legally married but having lived together for 2 years to qualify as spouses and removes the upper limit of how many services a residence can provide to a client before the client must be referred to a complex care home; the Local Elections Campaign Financing (Election Expenses) Amendment Act, 2016, enacted the recommendations of the Special Committee on Local Elections Expense Limits to shorten the election period from 46 to 28 days and create a regulatory system for limiting and reporting campaign expenses during elections for mayor, councils, school boards, and electoral area directors; the Protected Areas of British Columbia Amendment Act, 2016 created a new 11,190-hectare park called Ancient Forest/Chun T'oh Whudujut Park; and the Miscellaneous Statutes (General) Amendment Act, 2016, created a requirement that the Agricultural Land Commission could not remove land from the ALR without property owner consent, amended the Income Tax Act to reduce film tax credits, amended the Environmental Management Act to allow the Minister of Environment to order a director to issue or amend a permit to allow for the discharging of waste into the environment within an area-based management plan (for a mining operation).
Two additional laws were introduced and passed in late July. The Human Rights Code Amendment Act, 2016 made discrimination based on gender identity or expression illegal. The Bill_28_(British_Columbia), 2016 (Bill 28) created a 15% property transfer tax that applies only to foreign nationals buying real estate in Metro Vancouver, authorized the City of Vancouver to tax vacant residential properties and amended the Real Estate Services Act
Sixth session
Prior to the beginning of the session, Pat Pimm left the BC Liberal caucus following his arrest in a domestic dispute and sat as an independent for the remainder of the parliament. With the general election set for May, the governing BC Liberals introduced, but did not adopt, a [pre-election budget (Bill 8) in February that proposed to reduce Medical Services Plan fees by 50%, reduce the small business corporate tax rate from 2.5% to 2%, create a 'BC back-to-school tax credit' and a 'volunteer firefighter or search and rescue volunteer tax credit', extend the tax credits provided for book publishing, scientific research and experimental development, increase the first time home buyer tax exemption threshold from $475,000 to $500,000, and increase the tobacco tax rate from 23.9 to 24.7¢ per cigarette.
The Minister Responsible for Asia Pacific Strategy and Multiculturalism Teresa Wat introduced the Discriminatory Provisions (Historical Wrongs) Repeal Act that repealed sections from 19 acts, adopted between 1881 and 1930, that discriminated against some ethnic groups. An amendment to the Prevention of Cruelty to Animals Act creates licensing and standards of care requirements for pet breeders. The Information Management (Documenting Government Decisions) Amendment Act, 2017'' legislated a duty for provincial public agencies to document information.
Members of the 40th Parliament
Party standings of the 40th Parliament
Seating plan
Standings changes
References
Political history of British Columbia
Terms of British Columbia Parliaments
2013 establishments in British Columbia
21st century in British Columbia
2017 disestablishments in British Columbia
|
```smalltalk
Class {
#name : 'MOPTestClassD',
#superclass : 'Object',
#traits : 'Trait2 @ {#c3->#c2}',
#classTraits : 'Trait2 classTrait',
#category : 'Traits-Tests-MOP',
#package : 'Traits-Tests',
#tag : 'MOP'
}
```
|
```xml
import { GetStaticProps, InferGetStaticPropsType } from 'next'
import ContributorsList from 'src/components/ContributorsList'
import CarbonAd from 'src/components/CarbonAd'
import SEO from 'src/components/SEO'
type Contributor = {
avatar: string
id: string
url: string
}
const Contributors = (
props: InferGetStaticPropsType<typeof getStaticProps>,
) => (
<>
<SEO pageTitle="Contributors" pageUrl="/contributors" />
<main>
<CarbonAd />
<section>
<h1>Contributors</h1>
<ContributorsList contributors={props.contributors} />
</section>
</main>
</>
)
export const getStaticProps: GetStaticProps<{
contributors: Contributor[]
}> = async () => {
type GitHubContributor = {
avatar_url: string
id: string
html_url: string
login: string
}
const response = await fetch(
'path_to_url
)
const contributors: GitHubContributor[] = await response.json()
return {
props: {
contributors: contributors
.filter((contributor) => !contributor.login.includes('bot'))
.map((contributor) => ({
avatar: contributor.avatar_url,
id: contributor.id,
url: contributor.html_url,
})),
},
revalidate: 3600 * 3,
}
}
export default Contributors
```
|
```c++
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
#include "CommonToken.h"
#include "Parser.h"
#include "ParserRuleContext.h"
#include "Token.h"
#include "atn/ATN.h"
#include "misc/Interval.h"
#include "misc/Predicate.h"
#include "support/CPPUtils.h"
#include "tree/ErrorNode.h"
#include "tree/TerminalNodeImpl.h"
#include "tree/Trees.h"
using namespace antlr4;
using namespace antlr4::misc;
using namespace antlr4::tree;
using namespace antlrcpp;
Trees::Trees() {}
std::string Trees::toStringTree(ParseTree* t) {
return toStringTree(t, nullptr);
}
std::string Trees::toStringTree(ParseTree* t, Parser* recog) {
if (recog == nullptr) return toStringTree(t, std::vector<std::string>());
return toStringTree(t, recog->getRuleNames());
}
std::string Trees::toStringTree(ParseTree* t,
const std::vector<std::string>& ruleNames) {
std::string temp =
antlrcpp::escapeWhitespace(Trees::getNodeText(t, ruleNames), false);
if (t->children.empty()) {
return temp;
}
std::stringstream ss;
ss << "(" << temp << ' ';
// Implement the recursive walk as iteration to avoid trouble with deep
// nesting.
std::stack<size_t> stack;
size_t childIndex = 0;
ParseTree* run = t;
while (childIndex < run->children.size()) {
if (childIndex > 0) {
ss << ' ';
}
ParseTree* child = run->children[childIndex];
temp =
antlrcpp::escapeWhitespace(Trees::getNodeText(child, ruleNames), false);
if (!child->children.empty()) {
// Go deeper one level.
stack.push(childIndex);
run = child;
childIndex = 0;
ss << "(" << temp << " ";
} else {
ss << temp;
while (++childIndex == run->children.size()) {
if (stack.size() > 0) {
// Reached the end of the current level. See if we can step up from
// here.
childIndex = stack.top();
stack.pop();
run = run->parent;
ss << ")";
} else {
break;
}
}
}
}
ss << ")";
return ss.str();
}
std::string Trees::getNodeText(ParseTree* t, Parser* recog) {
return getNodeText(t, recog->getRuleNames());
}
std::string Trees::getNodeText(ParseTree* t,
const std::vector<std::string>& ruleNames) {
if (ruleNames.size() > 0) {
if (is<RuleContext*>(t)) {
size_t ruleIndex = dynamic_cast<RuleContext*>(t)->getRuleIndex();
std::string ruleName = ruleNames[ruleIndex];
size_t altNumber = dynamic_cast<RuleContext*>(t)->getAltNumber();
if (altNumber != atn::ATN::INVALID_ALT_NUMBER) {
return ruleName + ":" + std::to_string(altNumber);
}
return ruleName;
} else if (is<ErrorNode*>(t)) {
return t->toString();
} else if (is<TerminalNode*>(t)) {
Token* symbol = dynamic_cast<TerminalNode*>(t)->getSymbol();
if (symbol != nullptr) {
std::string s = symbol->getText();
return s;
}
}
}
// no recog for rule names
if (is<RuleContext*>(t)) {
return dynamic_cast<RuleContext*>(t)->getText();
}
if (is<TerminalNodeImpl*>(t)) {
return dynamic_cast<TerminalNodeImpl*>(t)->getSymbol()->getText();
}
return "";
}
std::vector<ParseTree*> Trees::getAncestors(ParseTree* t) {
std::vector<ParseTree*> ancestors;
ParseTree* parent = t->parent;
while (parent != nullptr) {
ancestors.insert(ancestors.begin(), parent); // insert at start
parent = parent->parent;
}
return ancestors;
}
template <typename T>
static void _findAllNodes(ParseTree* t, size_t index, bool findTokens,
std::vector<T>& nodes) {
// check this node (the root) first
if (findTokens && is<TerminalNode*>(t)) {
TerminalNode* tnode = dynamic_cast<TerminalNode*>(t);
if (tnode->getSymbol()->getType() == index) {
nodes.push_back(t);
}
} else if (!findTokens && is<ParserRuleContext*>(t)) {
ParserRuleContext* ctx = dynamic_cast<ParserRuleContext*>(t);
if (ctx->getRuleIndex() == index) {
nodes.push_back(t);
}
}
// check children
for (size_t i = 0; i < t->children.size(); i++) {
_findAllNodes(t->children[i], index, findTokens, nodes);
}
}
bool Trees::isAncestorOf(ParseTree* t, ParseTree* u) {
if (t == nullptr || u == nullptr || t->parent == nullptr) {
return false;
}
ParseTree* p = u->parent;
while (p != nullptr) {
if (t == p) {
return true;
}
p = p->parent;
}
return false;
}
std::vector<ParseTree*> Trees::findAllTokenNodes(ParseTree* t, size_t ttype) {
return findAllNodes(t, ttype, true);
}
std::vector<ParseTree*> Trees::findAllRuleNodes(ParseTree* t,
size_t ruleIndex) {
return findAllNodes(t, ruleIndex, false);
}
std::vector<ParseTree*> Trees::findAllNodes(ParseTree* t, size_t index,
bool findTokens) {
std::vector<ParseTree*> nodes;
_findAllNodes<ParseTree*>(t, index, findTokens, nodes);
return nodes;
}
std::vector<ParseTree*> Trees::getDescendants(ParseTree* t) {
std::vector<ParseTree*> nodes;
nodes.push_back(t);
std::size_t n = t->children.size();
for (size_t i = 0; i < n; i++) {
auto descentants = getDescendants(t->children[i]);
for (auto entry : descentants) {
nodes.push_back(entry);
}
}
return nodes;
}
std::vector<ParseTree*> Trees::descendants(ParseTree* t) {
return getDescendants(t);
}
ParserRuleContext* Trees::getRootOfSubtreeEnclosingRegion(
ParseTree* t, size_t startTokenIndex, size_t stopTokenIndex) {
size_t n = t->children.size();
for (size_t i = 0; i < n; i++) {
ParserRuleContext* r = getRootOfSubtreeEnclosingRegion(
t->children[i], startTokenIndex, stopTokenIndex);
if (r != nullptr) {
return r;
}
}
if (is<ParserRuleContext*>(t)) {
ParserRuleContext* r = dynamic_cast<ParserRuleContext*>(t);
if (startTokenIndex >=
r->getStart()->getTokenIndex() && // is range fully contained in t?
(r->getStop() == nullptr ||
stopTokenIndex <= r->getStop()->getTokenIndex())) {
// note: r.getStop()==null likely implies that we bailed out of parser and
// there's nothing to the right
return r;
}
}
return nullptr;
}
ParseTree* Trees::findNodeSuchThat(ParseTree* t, Ref<Predicate> const& pred) {
if (pred->test(t)) {
return t;
}
size_t n = t->children.size();
for (size_t i = 0; i < n; ++i) {
ParseTree* u = findNodeSuchThat(t->children[i], pred);
if (u != nullptr) {
return u;
}
}
return nullptr;
}
```
|
Brookfield Community School is a large state-funded secondary school located in the Locks Heath ward of the Borough of Fareham. Brookfield serves 5 feeder schools in the local area. Brookfield is one of the largest co-educational, comprehensive secondary schools in Hampshire; the school currently has approximately 1800 students on-roll and there are approximately 120 teachers employed at the school. The school teaches years 7 to 11.
Status
Specialist Status as Language College was awarded to the school in 2002. In 2010, all specialist status school funding was withdrawn by the government. Brookfield School is now solely a secondary school and not a language college.
In May 2005 the Ofsted Inspection report described the school as "good with some outstanding features".
In 2008 Brookfield was inspected by Ofsted and received a grade 3 (Satisfactory).
The school was again inspected by Ofsted in October 2010, with the outcome being an improved grade of 2 ('Good').
In January 2016, Ofsted, after a short inspection, reported that the school continued to be Good.
Subjects taught include English, Maths, Science, Geography, History, RE, Drama, Art, Dance, PE, Technology and ICT.
School buildings
There are 12 computer suites around the School, and specialist rooms for catering, science and wood tech. The performing arts centre, completed in 2003, was named after former head teacher Mark Roe.
References
External links
Official site
Secondary schools in Hampshire
Community schools in Hampshire
|
```c
#include <math.h>
long double nanl(const char *s)
{
return NAN;
}
```
|
Jenna Clark (born 29 September 2001) is a Scottish footballer who plays as a defender for English Women's Super League club Liverpool and the Scotland women's national team. She has previously played for Rangers and Glasgow City.
Club career
Clark started her career with Scottish Women's Premier League club Rangers, being promoted from their youth team to the senior squad in February 2017. She moved to Glasgow City in July 2018, and two months later was named in a UEFA Women's Champions League squad for a match in Cyprus when she was aged 16 and still at school. During her time with City, Clark won four Scottish league championships and the Scottish Women's Cup once.
She signed a two-year contract with Liverpool on 10 July 2023. She made her Reds debut on 1 October 2023 in a 1–0 Women's Super League win over Arsenal at the Emirates Stadium.
International career
Clark represented Scotland at various youth levels before making her full international debut in September 2021. She scored a goal during that first appearance for Scotland, a 7–1 win against the Faroe Islands at Hampden Park.
References
External links
Jenna Clark at Liverpool F.C. Women
Living people
2001 births
Scottish women's footballers
Rangers W.F.C. players
Glasgow City F.C. players
Liverpool F.C. Women players
Scotland women's youth international footballers
Scotland women's international footballers
Scottish Women's Premier League players
Women's association football defenders
Women's Super League players
People educated at Balfron High School
|
Henry Steps Out is a 1940 British comedy film directed by Widgey R. Newman and starring George Turner, Margaret Yarde and Wally Patch. On the outbreak of the Second World War an idler is forced to join the army by his domineering wife.
Main cast
George Turner as Henry Smith
Margaret Yarde as Cynthia Smith
Wally Patch as Wally
References
Bibliography
Chibnall, Steve & McFarlane, Brian. The British 'B' Film. Palgrave MacMillan, 2009.
External links
1940 films
British comedy films
1940 comedy films
Films directed by Widgey R. Newman
Films set in England
British black-and-white films
Quota quickies
1940s English-language films
1940s British films
|
```php
<?php
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
*/
namespace Google\Service\GoogleAnalyticsAdmin;
class GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails extends \Google\Model
{
/**
* @var string
*/
public $linkProposalInitiatingProduct;
/**
* @var string
*/
public $linkProposalState;
/**
* @var string
*/
public $requestorEmail;
/**
* @param string
*/
public function setLinkProposalInitiatingProduct($linkProposalInitiatingProduct)
{
$this->linkProposalInitiatingProduct = $linkProposalInitiatingProduct;
}
/**
* @return string
*/
public function getLinkProposalInitiatingProduct()
{
return $this->linkProposalInitiatingProduct;
}
/**
* @param string
*/
public function setLinkProposalState($linkProposalState)
{
$this->linkProposalState = $linkProposalState;
}
/**
* @return string
*/
public function getLinkProposalState()
{
return $this->linkProposalState;
}
/**
* @param string
*/
public function setRequestorEmail($requestorEmail)
{
$this->requestorEmail = $requestorEmail;
}
/**
* @return string
*/
public function getRequestorEmail()
{
return $this->requestorEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails::class, your_sha256_hashinkProposalStatusDetails');
```
|
```go
// +build integration
//Package dynamodb provides gucumber integration tests support.
package dynamodb
import (
"github.com/aws/aws-sdk-go/awstesting/integration/smoke"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/gucumber/gucumber"
)
func init() {
gucumber.Before("@dynamodb", func() {
gucumber.World["client"] = dynamodb.New(smoke.Session)
})
}
```
|
```python
import json
import logging
import os
from faunadb.client import FaunaClient
from faunadb.objects import Ref
from faunadb import query
client = FaunaClient(secret=os.environ['FAUNADB_SECRET'])
TODOS = Ref('classes/todos')
ALL_TODOS = query.index('all_todos')
```
|
Antolín Luis de Santiago y Juárez (born 9 October 1918) is a Spanish former politician, lawyer, professor and journalist He was a member of the FET y de las JONS party, and was the Mayor of Valladolid from 12 August 1971 to 12 February 1974. He was worked as a representative in the city of information and tourism in Valladolid. He served as the civil governor of the Province of Cádiz from February 1974 to August 1977, who was also re-elected to the civil governor of the Province of Burgos, in office from August 1977 to July 1980. He retired from politics after 1980. He was the procurator in the francoist courts from 1971 to 1974. After his son came into politics, he moved away from politics after that.
Biography
Antolín was born in Salamanca, Castile and León on October 9, 1918. He is married, and has a son named José Antonio de Santiago-Juárez, who is also a politician. He graduated from the University of Valladolid. He celebrated his 100th birthday in 2018. He joined the university as a professor for some time. He was advocated in the court of Valladolid and was engaged in the profession of journalism.
References
1918 births
Living people
People from Salamanca
20th-century Spanish politicians
FET y de las JONS politicians
Spanish centenarians
Men centenarians
|
United Nations Security Council Resolution 306 was adopted on December 21, 1971. After considering the recommendation of the appointment of the Secretary-General of the United Nations, the Council recommended to the General Assembly that Kurt Waldheim be appointed for a five-year term.
The resolution was adopted unanimously at a private meeting.
See also
List of United Nations Security Council Resolutions 301 to 400 (1971–1976)
References
External links
Text of the Resolution at undocs.org
0306
0306
December 1971 events
|
Franco Mata (born 12 July 1979) is a Mozambican former professional tennis player.
Born in Maputo, Mata made an ATP Tour main draw appearance at the 2000 Estoril Open, partnering Angola's Nélson Almeida in the doubles. He played collegiate tennis in the United States for Florida Gulf Coast University and has represented Mozambique at the African Games. Since 2014 he has been a member of the Mozambique Davis Cup team, holding national records for most ties played and most wins.
References
External links
1979 births
Living people
Mozambican male tennis players
Sportspeople from Maputo
Florida Gulf Coast University alumni
College men's tennis players in the United States
African Games competitors for Mozambique
Florida Gulf Coast Eagles athletes
|
```objective-c
//
// URIStreamFactory.h
//
// Library: Foundation
// Package: URI
// Module: URIStreamFactory
//
// Definition of the URIStreamFactory class.
//
// and Contributors.
//
//
#ifndef Foundation_URIStreamFactory_INCLUDED
#define Foundation_URIStreamFactory_INCLUDED
#include <istream>
#include "Poco/Foundation.h"
namespace Poco
{
class URI;
class Foundation_API URIStreamFactory
/// This class defines the interface that all
/// URI stream factories must implement.
///
/// Subclasses must implement the open() method.
{
public:
URIStreamFactory();
/// Creates the URIStreamFactory.
virtual std::istream * open(const URI & uri) = 0;
/// Tries to create and open an input stream for the
/// resource specified by the given URI.
///
/// If the stream cannot be opened for whatever reason,
/// an appropriate IOException must be thrown.
///
/// If opening the stream results in a redirect, a
/// URIRedirection exception should be thrown.
protected:
virtual ~URIStreamFactory();
/// Destroys the URIStreamFactory.
private:
URIStreamFactory(const URIStreamFactory &);
URIStreamFactory & operator=(const URIStreamFactory &);
friend class URIStreamOpener;
};
class Foundation_API URIRedirection
/// An instance of URIRedirection is thrown by a URIStreamFactory::open()
/// if opening the original URI resulted in a redirection response
/// (such as a MOVED PERMANENTLY in HTTP).
{
public:
URIRedirection(const std::string & uri);
URIRedirection(const URIRedirection & redir);
URIRedirection & operator=(const URIRedirection & redir);
void swap(URIRedirection & redir);
const std::string & uri() const;
/// Returns the new URI.
private:
URIRedirection();
std::string _uri;
};
//
// inlines
//
inline const std::string & URIRedirection::uri() const
{
return _uri;
}
} // namespace Poco
#endif // Foundation_URIStreamFactory_INCLUDED
```
|
Agency worker law refers to a body of law which regulates the conduct of employment agencies and the labour law rights of people who get jobs through them. The typical situation involves the person going to an employment agency and then the employment agency sending the person to an actual employer for proper work.
Such arrangements are referred to by different terminology across jurisdictions. Some examples of terms used are labour hire, labour brokering, labor contracting, permatemping, or 'agency worker' arrangements.
History
The International Labour Organization called for the establishment of public employment agencies in their place. To prevent the abusive practices of private agencies, they were to be fully abolished or at least tightly regulated. In most countries, they are legal but regulated.
Probably inspired by the dissenting judgments in a United States Supreme Court case called Adams v. Tanner, the International Labour Organization's first ever Recommendation was targeted at fee-charging agencies. The Unemployment Recommendation, 1919 (No.1), Art. 1 called for each member to
"take measures to prohibit the establishment of employment agencies which charge fees or which carry on their business for profit. Where such agencies already exist, it is further recommended that they be permitted to operate only under government licenses, and that all practicable measures be taken to abolish such agencies as soon as possible."
The Unemployment Convention, 1919, Art. 2 required instead the alternative of
"a system of free public employment agencies under the control of a central authority. Committees, which shall include representatives of employers and workers, shall be appointed to advise on matters concerning the carrying on of these agencies."
In 1933, the Fee-Charging Employment Agencies Convention (No.34) formally called for abolition. The exception was if the agencies were licensed and a fee scale was agreed in advance. In 1949, a new revised Convention (No.96) was produced. That kept the same scheme but secured an ‘opt out’ (Art. 2) for members that did not wish to sign up. Agencies were an increasingly entrenched part of the labor market. The United States did not sign up to the Conventions. The latest Convention, the Private Employment Agencies Convention, 1997 (No.181) takes a much softer stance and calls merely for regulation.
Particular jurisdictions
Australia
Enterprise bargaining agreements (EBAs) applicable to a workplace do not legally cover labour hire employees and their employers, unless there is a clause written into the agreement expressing that to be the case. Instead, EBAs are formed between employees of the labour hire company, and the labour hire company itself. This can result in a pay difference between actual employees of a worksite, and those working there through labour hire; a aspect that has been criticized by the Australian Labor Party.
European Union
The problem related to the Temporary agency work in Europe has formally achieved its maturity through the implementation of the Council Directive 2008/104/ECafter nearly three decades of debate. In this way, the directive as being the third part of the European Union's employment law package to protect atypical working ( which includes part-time workers and fixed-term workers), aims both to establish a suitable framework for the use of temporary agency work and to develop a flexible form of working.
Germany
In Germany the Arbeitnehmerüberlassungsgesetz (Employee Hiring Law of 1972) regulates the agency relationship. It Following the provisions in the Burgerliches Gesetzbuch (Civil Code) on the law of leasing goods or finance, the agency relationship is seen as a triangular arrangement, with different obligations on each side. The worker is an employee of the agency only. The contract between the agency and the end-employer is termed as a hire of labour. Between the worker and the end-employer there is no contract. There is only a statutory obligation to give equal treatment in terms and conditions of work.
United Kingdom
The UK's main piece of legislation falls under the Employment Agencies Act 1973, which required licensing until 1994. There is an exception, for employment agencies working in the agricultural, shellfishing and food packing sectors, under the Gangmasters (Licensing) Act 2004.
United States
Adams v. Tanner
In Ribnik v. McBride, 277 US 350 (1928) the Court struck down a similar New Jersey law attempting to regulate agencies, Justices Stone, Brandeis and Holmes dissenting. This is probably no longer good law.
Doubt was placed on the leading dicta of Adams v. Tanner in Olsen v. State of Nebraska 313 US 236 (1941) and Lincoln Union v. Northwestern Co., 335 US 525 (1949) 535. In the latter, Mr Justice Black, said that Adams v. Tanner was part of the "constitutional philosophy" which struck down minimum wages and maximum working hours.
See also
At-will employment
Precarious work
Amir Paz-Fuchs "It Ain't Necessarily So: A Legal Realist Perspective on the Law of Agency Work" Modern Law Review (2020)
Notes
Temporary employment agencies
Labour law
|
Thornton's was a restaurant that was housed, in the period 2002–2016, in the Fitzwilliam Hotel, St. Stephen's Green, County Dublin, Ireland. It was previously located on Portobello Road since 1989. It became a fine dining restaurant, that held a one-star Michelin rating in the periods 1996-2000 and 2006–2015. In the period 2001-2005 it held a two-star rating. The restaurant closed on 29 October 2016. The space is now occupied by Glovers Alley.
Head chef Kevin Thornton was the first Irish chef to achieve two Michelin stars. Patrick Guilbaud received his second star first but was born in France.
Origin
Thornton's Restaurant was opened in the Fitzwilliam Hotel on St Stephen's Green in 2002.
Controversy
Thornton's Restaurant was embroiled in a controversy in 2007 surrounding Thornton's alleged refusal to sell chips to his restaurant customers, sparking comparisons to British chef Gordon Ramsay. A customer requested the food but, upon receiving it, he changed his mind and sent them back to the kitchen. Thornton then allegedly emerged from the kitchen with the chips and slammed them down on the man's table, with the remark: “They were cooked specially for you, so you eat them, you dickhead”. He later is alleged to have called them "wankers" before removing them from his restaurant.
Asked about the incident by broadcaster Joe Duffy on his RTÉ Radio 1 Liveline programme, Thornton stressed that he had not so much been infuriated by the request of chips (he supposedly provides them for younger customers on a regular basis) but that he had been aggravated by the attitude of this particular customer. The incident has since seen Thornton become associated with a dislike of chips and, as recently as 2009, has been crafted as a pun by the Irish media for any other outlet which does not serve the food. Thornton has also spoken out against serving food such as pizza in his restaurant.
Awards
Thornton was named Food & Wine Magazine'''s Chef of the Year for Ireland in 2007. His restaurant had two Michelin stars but it lost one of them; one newspaper at the time portrayed a cartoon of Thornton setting the Michelin Guide'' alight.
Trivia
Kevin Thornton bought the former Michelin starred restaurant Peacock Alley in 2002 after the Fitzwilliam Hotel had cancelled the lease with Conrad Gallagher.
References
Michelin Guide starred restaurants in Ireland
Restaurants in Dublin (city)
St Stephen's Green
|
Tommy Denison (born October 7, 1978) is the offensive coordinator for York University's football team, the York Lions of U Sports. As a former quarterback in Canadian Interuniversity Sport, he is a two-time All-Canadian and two-time winner of the Hec Crighton Trophy in 2002 and 2003. He played professionally for the Winnipeg Blue Bombers, Calgary Stampeders, and Toronto Argonauts of the Canadian Football League (CFL).
High school
Denison played his high school football at Beamsville District Secondary School, where he was a part of two Zone 4 championship football teams.
Great Lakes Football League
Denison played for the Niagara Colts of the GLFL and set numerous records including an 836-yard passing performance against the Brantford Bisons that was recognized in Sports Illustrated's Faces in the Crowd. He threw for 6,700 yards and 68 touchdowns in the 1998 season.
University career
Denison first attended Graceland College in 1998 where he was a member of the Graceland Yellowjackets. He then transferred to the Mansfield University of Pennsylvania in 1999, where he won the starting quarterback job midway through his redshirt freshman season. There he completed 68 of his 144 pass attempts for 735 yards with six touchdowns and ten interceptions.
Queen's University
In 2001, Dension returned to Canada and became a member of the Queen's Golden Gaels football team. In his first year, he initially split quarterbacking duties before starting the last four games of the regular season where he finished 6th nationally in passing yards with 1684 yards.
In 2002, Denison set new standards for quarterback play and aerial offense. He became the first CIS football quarterback to pass for more than 3,000 yards in a single season. His 3,001 passing yards surpassed the old record set by Greg Vavra of the Calgary Dinos in 1983. The Gaels finished the 2002 season with a 7–1 record where Denison had 183 completions out of 312 attempts with 22 passing touchdowns. He recorded the most yards passing in a single OUA game on November 2, 2002 against the Western Mustangs in the OUA semifinal with 561 yards, which remains a U Sports playoff record as of 2019. He took the team to the Yates Cup where the Golden Gaels lost to the McMaster Marauders. For his record-setting season, Denison was awarded the Hec Crighton Trophy, becoming the second Golden Gael to win the award.
Denison continued his dominant play in 2003 as he completed 203 of his 313 passing attempts for 2,907 yards with a then-OUA-record 24 passing touchdowns. The Golden Gaels once again finished second in the OUA with a 7–1 record, but lost to the Wilfrid Laurier Golden Hawks in the semi-final playoff game. Nonetheless, based on another outstanding season, Denison was awarded his second consecutive Hec Crighton MVP award, becoming the second CIS quarterback to ever win the award more than once (Chris Flynn won the award three times). He finished his three-year CIS career with 7,592 passing yards, which was eighth all-time in CIS history, despite all seven players ahead of him having played five seasons. Denison was the central figure in the revival of Queen’s football program, helping to return a once proud program to the national scene.
Professional career
Since he began his collegiate career in 1998, Denison was eligible four year later for the 2002 CFL Draft, prior to his back-to-back Hec Crighton Trophy wins. As a result, he was undrafted and was able to sign with any professional team. On December 10, 2003, it was announced that he had signed with the Winnipeg Blue Bombers. He attended training camp with the Blue Bombers in 2004 and played in the first pre-season game against the Calgary Stampeders where he had four completions on six pass attempts for 46 yards. However, he was released by the team shortly thereafter.
On August 31, 2004, Denison was signed by the Calgary Stampeders. He dressed in one regular season game with the team in 2004 but spent the remainder of his term with the team on the practice roster. He was eventually released by the Stampeders and signed with the Toronto Argonauts, but did not play in a game and was released.
Denison was a member of the Albany Conquest in their 2005 season.
Northern Football Conference
Denison played for the Toronto Titans of the Northern Football Conference (a senior amateur league) from 2011 to 2012, and did not play in 2013. The club was re-named the GTA All-Stars and he re-joined to play for the team from 2014 to 2016.
Coaching career
While playing for the GTA All-Stars, Denison served as the team's offensive coordinator for four years and the team's head coach in his final year. With the experience, he was hired as the associate head coach (offense) and quarterbacks coach for the Saint Mary's Huskies in 2017. He then moved back to Ontario where he joined the Toronto Varsity Blues as the team's quarterbacks coach for the 2019 season.
On April 6, 2020, it was announced that Denison had joined the York Lions to serve as the team's offensive coordinator.
References
External links
York Lions bio
1978 births
Living people
Players of Canadian football from Ontario
Canadian football quarterbacks
Calgary Stampeders players
Queen's Golden Gaels football players
Mansfield Mounties football players
Toronto Varsity Blues football coaches
Saint Mary's Huskies football coaches
York Lions football coaches
|
Saar Gogné is a sub-prefecture of Logone Occidental Region in Chad.
References
Populated places in Chad
|
```scala
/*
*/
package akka.stream.alpakka.cassandra.scaladsl
import java.util.concurrent.CompletionStage
import java.util.concurrent.atomic.AtomicInteger
import akka.Done
import akka.testkit.TestKitBase
import com.datastax.oss.driver.api.core.cql._
import org.scalatest._
import org.scalatest.concurrent.{PatienceConfiguration, ScalaFutures}
import scala.collection.JavaConverters._
import scala.collection.immutable
import scala.concurrent.duration._
import scala.concurrent.{Await, ExecutionContext, Future}
import scala.util.control.NonFatal
import scala.compat.java8.FutureConverters._
trait CassandraLifecycleBase {
def lifecycleSession: CassandraSession
def execute(session: CassandraSession, statements: immutable.Seq[BatchableStatement[_]]): Future[Done] = {
val batch = new BatchStatementBuilder(BatchType.LOGGED)
statements.foreach { stmt =>
batch.addStatement(stmt)
}
session.executeWriteBatch(batch.build())
}
def executeCql(session: CassandraSession, statements: immutable.Seq[String]): Future[Done] = {
execute(session, statements.map(stmt => SimpleStatement.newInstance(stmt)))
}
private val keyspaceTimeout = java.time.Duration.ofSeconds(10)
def createKeyspace(session: CassandraSession, name: String): Future[Done] = {
session.executeWrite(
new SimpleStatementBuilder(
s"""CREATE KEYSPACE $name WITH replication = { 'class': 'SimpleStrategy', 'replication_factor': '1'};"""
).setTimeout(keyspaceTimeout)
.build()
)
}
def dropKeyspace(session: CassandraSession, name: String): Future[Done] =
session.executeWrite(
new SimpleStatementBuilder(s"""DROP KEYSPACE IF EXISTS $name;""").setTimeout(keyspaceTimeout).build()
)
def createKeyspace(name: String): Future[Done] = withSchemaMetadataDisabled(createKeyspace(lifecycleSession, name))
def dropKeyspace(name: String): Future[Done] = withSchemaMetadataDisabled(dropKeyspace(lifecycleSession, name))
def execute(statements: immutable.Seq[BatchableStatement[_]]): Future[Done] = execute(lifecycleSession, statements)
def executeCql(statements: immutable.Seq[String]): Future[Done] = executeCql(lifecycleSession, statements)
def executeCqlList(statements: java.util.List[String]): CompletionStage[Done] =
executeCql(lifecycleSession, statements.asScala.toList).toJava
def withSchemaMetadataDisabled(block: => Future[Done]): Future[Done] = {
implicit val ec: ExecutionContext = lifecycleSession.ec
lifecycleSession.underlying().flatMap { cqlSession =>
cqlSession.setSchemaMetadataEnabled(false)
val blockResult =
block.map { res =>
cqlSession.setSchemaMetadataEnabled(null)
res
}
blockResult.failed.foreach(_ => cqlSession.setSchemaMetadataEnabled(null))
blockResult
}
}
}
trait CassandraLifecycle extends BeforeAndAfterAll with TestKitBase with CassandraLifecycleBase with ScalaFutures {
this: Suite =>
def port(): Int = 9042
def lifecycleSession: CassandraSession
def keyspaceNamePrefix: String = getClass.getSimpleName
final lazy val keyspaceName: String = s"$keyspaceNamePrefix${System.nanoTime()}"
private val tableNumber = new AtomicInteger()
def createTableName() = s"$keyspaceName.test${tableNumber.incrementAndGet()}"
implicit val defaultPatience: PatienceConfig =
PatienceConfig(timeout = 4.seconds, interval = 50.millis)
override protected def beforeAll(): Unit = {
createKeyspace(keyspaceName).futureValue
super.beforeAll()
}
override protected def afterAll(): Unit = {
// `dropKeyspace` uses the system dispatcher through `cassandraSession`,
// so needs to run before the actor system is shut down
dropKeyspace(keyspaceName).futureValue(PatienceConfiguration.Timeout(15.seconds))
shutdown(system, verifySystemShutdown = true)
try {
Await.result(lifecycleSession.close(scala.concurrent.ExecutionContext.global), 20.seconds)
} catch {
case NonFatal(e) =>
e.printStackTrace(System.err)
}
super.afterAll()
}
}
class CassandraAccess(val lifecycleSession: CassandraSession) extends CassandraLifecycleBase
```
|
Following is a list of notable Marietta College alumni
Art
Business
Clergy
Education
Entertainment
Law
Literature and journalism
Military
Politics
Science and medicine
Sports
Other
References
External links
Marietta College website
Marietta College
|
Rory Ogle (1954 – 2013) was an American politician who served as a member of the New Mexico House of Representatives from 2003 to 2005. A member of the Republican Party, Ogle represented the 28th district.
Early life and education
Ogle was born in 1954, the son of John D. Ogle, a member of the United States Armed Forces. He graduated from Heidelberg High School in Heidelberg, Germany. He attended The Citadel and graduated from the University of Northern Colorado. He then served as a captain in the United States Army. Ogle was also an Eagle Scout.
Career
After leaving the Army, Ogle worked as a defense contractor and analyst for the Science Applications International Corporation in Virginia.
Ogle was elected to the New Mexico House of Representatives in 2002 and served for one term. During his tenure, Ogle was arrested on charges of domestic violence and aggravated battery against his wife, Anita. After his arrest, Ogle resigned from office and was succeeded by Jimmie Hall.
Death
Ogle died of pneumonia in February 9, 2013 at the age of 58.
References
1955 births
2013 deaths
University of Northern Colorado alumni
The Citadel, The Military College of South Carolina alumni
Republican Party members of the New Mexico House of Representatives
Politicians from Albuquerque, New Mexico
21st-century American politicians
|
```javascript
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
'use strict';
// MODULES //
var tape = require( 'tape' );
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
var FLOAT32_FOURTH_PI = require( './../lib' );
// TESTS //
tape( 'main export is a number', function test( t ) {
t.ok( true, __filename );
t.strictEqual( typeof FLOAT32_FOURTH_PI, 'number', 'main export is a number' );
t.end();
});
tape( 'export is a single-precision floating-point number equal to 7.853981852531433e-1', function test( t ) {
t.equal( FLOAT32_FOURTH_PI, float64ToFloat32( 7.85398163397448309616e-1 ), 'returns expected value' );
t.end();
});
```
|
```smalltalk
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Pchp.Core;
namespace Pchp.Library.Streams
{
#region PhpUserStream class
/// <summary>
/// An implementation of <see cref="PhpStream"/> as a simple
/// encapsulation of a .NET <see cref="System.IO.Stream"/> class
/// which is directly accessible via the RawStream property.
/// </summary>
public class PhpUserStream : PhpStream
{
#region names of user wrapper methods
public const string USERSTREAM_OPEN = "stream_open";
public const string USERSTREAM_CLOSE = "stream_close";
public const string USERSTREAM_READ = "stream_read";
public const string USERSTREAM_WRITE = "stream_write";
public const string USERSTREAM_FLUSH = "stream_flush";
public const string USERSTREAM_SEEK = "stream_seek";
public const string USERSTREAM_TELL = "stream_tell";
public const string USERSTREAM_EOF = "stream_eof";
public const string USERSTREAM_STAT = "stream_stat";
public const string USERSTREAM_STATURL = "url_stat";
public const string USERSTREAM_UNLINK = "unlink";
public const string USERSTREAM_RENAME = "rename";
public const string USERSTREAM_MKDIR = "mkdir";
public const string USERSTREAM_RMDIR = "rmdir";
public const string USERSTREAM_DIR_OPEN = "dir_opendir";
public const string USERSTREAM_DIR_READ = "dir_readdir";
public const string USERSTREAM_DIR_REWIND = "dir_rewinddir";
public const string USERSTREAM_DIR_CLOSE = "dir_closedir";
public const string USERSTREAM_LOCK = "stream_lock";
public const string USERSTREAM_CAST = "stream_cast";
public const string USERSTREAM_SET_OPTION = "stream_set_option";
public const string USERSTREAM_TRUNCATE = "stream_truncate";
public const string USERSTREAM_METADATA = "stream_metadata";
#endregion
#region PhpStream overrides
public PhpUserStream(Context ctx, UserStreamWrapper/*!*/openingWrapper, StreamAccessOptions accessOptions, string openedPath, StreamContext context)
: base(ctx, openingWrapper, accessOptions, openedPath, context)
{
}
/// <summary>
/// PhpResource.FreeManaged overridden to get rid of the contained context on Dispose.
/// </summary>
protected override void FreeManaged()
{
// stream_close
if (UserWrapper != null)
UserWrapper.OnClose(this);
// free
base.FreeManaged();
if (Wrapper != null) //Can be php://output
Wrapper.Dispose();
}
#endregion
#region Raw byte access (mandatory)
protected override int RawRead(byte[] buffer, int offset, int count)
{
// stream_read:
var result = UserWrapper.InvokeWrapperMethod(USERSTREAM_READ, (PhpValue)count);
if (result.IsEmpty == false)
{
var bytes = result.ToBytes(RuntimeContext);
int readbytes = bytes.Length;
if (readbytes > count)
{
//php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s::" USERSTREAM_READ " - read %ld bytes more data than requested (%ld read, %ld max) - excess data will be lost",
// us->wrapper->classname, (long)(didread - count), (long)didread, (long)count);
readbytes = count;
}
if (readbytes > 0)
{
Array.Copy(bytes, 0, buffer, offset, readbytes);
}
return readbytes;
}
//
return 0;
}
protected override int RawWrite(byte[] buffer, int offset, int count)
{
PhpValue bytes;
if (count == 0)
{
bytes = PhpValue.Create(string.Empty);
}
if (offset == 0 && count == buffer.Length)
{
bytes = PhpValue.Create(new PhpString(buffer));
}
else
{
var data = new byte[count];
Array.Copy(buffer, offset, data, 0, count);
bytes = PhpValue.Create(new PhpString(data));
}
var result = UserWrapper.InvokeWrapperMethod(USERSTREAM_WRITE, bytes);
var byteswrote = result.ToLong();
if (byteswrote > count)
{
//php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s::" USERSTREAM_WRITE " wrote %ld bytes more data than requested (%ld written, %ld max)",
//us->wrapper->classname, (long)(didwrite - count), (long)didwrite, (long)count);
byteswrote = count;
}
return (int)byteswrote;
}
protected override bool RawFlush()
{
return UserWrapper.InvokeWrapperMethod(USERSTREAM_FLUSH).ToBoolean();
}
protected override bool RawEof
{
get
{
// stream_eof:
if (UserWrapper.InvokeWrapperMethod(USERSTREAM_EOF).ToBoolean())
{
return true;
}
// TODO: if USERSTREAM_EOF not implemented, assume EOF too
return false;
}
}
#endregion
#region Raw Seeking (optional)
public override bool CanSeek { get { return true; } }
protected override int RawTell()
{
return (int)UserWrapper.InvokeWrapperMethod(USERSTREAM_TELL).ToLong();
}
protected override bool RawSeek(int offset, SeekOrigin whence)
{
// stream_seek:
return UserWrapper.InvokeWrapperMethod(USERSTREAM_SEEK, (PhpValue)offset, (PhpValue)(int)whence).ToBoolean();
}
/// <summary>
/// Returns the Length property of the underlying stream.
/// </summary>
/// <returns></returns>
protected override int RawLength()
{
try
{
return -1;
}
catch (Exception)
{
PhpException.Throw(PhpError.Warning, Core.Resources.ErrResources.wrapper_op_unsupported, "Seek");
return -1;
}
}
#endregion
#region PhpUserStream properties
/// <summary><see cref="UserStreamWrapper"/>.</summary>
protected UserStreamWrapper/*!*/UserWrapper => (UserStreamWrapper)Wrapper;
/// <summary>
/// Gets current context.
/// </summary>
protected Context/*!*/RuntimeContext => (Context)_encoding; // _encoding is Context, see .ctor
#endregion
}
#endregion
}
```
|
```xml
import {
ComponentArea,
ComponentInterface,
UIFeature,
ContentType,
NativeFeatureIdentifier,
PreferencesServiceEvent,
ThemeFeatureDescription,
} from '@standardnotes/snjs'
import { observer } from 'mobx-react-lite'
import { FunctionComponent, useCallback, useEffect, useRef, useState } from 'react'
import Icon from '@/Components/Icon/Icon'
import FocusModeSwitch from './FocusModeSwitch'
import ThemesMenuButton from './ThemesMenuButton'
import { sortThemes } from '@/Utils/SortThemes'
import PanelSettingsSection from './PanelSettingsSection'
import Menu from '../Menu/Menu'
import MenuSwitchButtonItem from '../Menu/MenuSwitchButtonItem'
import MenuRadioButtonItem from '../Menu/MenuRadioButtonItem'
import { useApplication } from '../ApplicationProvider'
import { GetAllThemesUseCase } from '@standardnotes/ui-services'
import MenuSection from '../Menu/MenuSection'
type MenuProps = {
closeMenu: () => void
}
const QuickSettingsMenu: FunctionComponent<MenuProps> = ({ closeMenu }) => {
const application = useApplication()
const { focusModeEnabled, setFocusModeEnabled } = application.paneController
const [themes, setThemes] = useState<UIFeature<ThemeFeatureDescription>[]>([])
const [editorStackComponents, setEditorStackComponents] = useState<ComponentInterface[]>([])
const activeThemes = application.componentManager.getActiveThemes()
const hasNonLayerableActiveTheme = activeThemes.find((theme) => !theme.layerable)
const defaultThemeOn = !hasNonLayerableActiveTheme
const prefsButtonRef = useRef<HTMLButtonElement>(null)
const defaultThemeButtonRef = useRef<HTMLButtonElement>(null)
const reloadThemes = useCallback(() => {
const usecase = new GetAllThemesUseCase(application.items)
const { thirdParty, native } = usecase.execute({ excludeLayerable: false })
setThemes([...thirdParty, ...native].sort(sortThemes))
}, [application])
const reloadEditorStackComponents = useCallback(() => {
const toggleableComponents = application.items
.getDisplayableComponents()
.filter(
(component) =>
!component.isTheme() &&
[ComponentArea.EditorStack].includes(component.area) &&
component.identifier !== NativeFeatureIdentifier.TYPES.DeprecatedFoldersComponent,
)
setEditorStackComponents(toggleableComponents)
}, [application])
useEffect(() => {
if (!themes.length) {
reloadThemes()
}
}, [reloadThemes, themes.length])
useEffect(() => {
const cleanupItemStream = application.items.streamItems(ContentType.TYPES.Theme, () => {
reloadThemes()
})
return () => {
cleanupItemStream()
}
}, [application, reloadThemes])
useEffect(() => {
return application.preferences.addEventObserver((event) => {
if (event === PreferencesServiceEvent.LocalPreferencesChanged) {
reloadThemes()
}
})
}, [application, reloadThemes])
useEffect(() => {
const cleanupItemStream = application.items.streamItems(ContentType.TYPES.Component, () => {
reloadEditorStackComponents()
})
return () => {
cleanupItemStream()
}
}, [application, reloadEditorStackComponents])
useEffect(() => {
prefsButtonRef.current?.focus()
}, [])
const toggleEditorStackComponent = useCallback(
(component: ComponentInterface) => {
void application.componentManager.toggleComponent(component)
},
[application],
)
const deactivateAnyNonLayerableTheme = useCallback(() => {
const nonLayerableActiveTheme = application.componentManager.getActiveThemes().find((theme) => !theme.layerable)
if (nonLayerableActiveTheme) {
void application.componentManager.toggleTheme(nonLayerableActiveTheme)
}
}, [application])
const toggleDefaultTheme = useCallback(() => {
deactivateAnyNonLayerableTheme()
}, [deactivateAnyNonLayerableTheme])
return (
<Menu a11yLabel="Quick settings menu">
{editorStackComponents.length > 0 && (
<MenuSection title="Tools">
{editorStackComponents.map((component) => (
<MenuSwitchButtonItem
onChange={() => {
toggleEditorStackComponent(component)
}}
checked={application.componentManager.isComponentActive(component)}
key={component.uuid}
>
<Icon type="window" className="mr-2 text-neutral" />
{component.displayName}
</MenuSwitchButtonItem>
))}
</MenuSection>
)}
<MenuSection title="Appearance">
<MenuRadioButtonItem checked={defaultThemeOn} onClick={toggleDefaultTheme} ref={defaultThemeButtonRef}>
Default
</MenuRadioButtonItem>
{themes.map((theme) => (
<ThemesMenuButton uiFeature={theme} key={theme.uniqueIdentifier.value} />
))}
</MenuSection>
<FocusModeSwitch
application={application}
onToggle={setFocusModeEnabled}
onClose={closeMenu}
isEnabled={focusModeEnabled}
/>
<PanelSettingsSection />
</Menu>
)
}
export default observer(QuickSettingsMenu)
```
|
Lydia Murdock is an American pop singer. She is best known for her answer song to Michael Jackson's "Billie Jean", known as "Superstar", where she portrayed Billie Jean saying that she's "mad as hell" in the song's lyrics. The song was a hit, peaking at #14 in the UK in October 1983.
References
Year of birth missing (living people)
Living people
American women singers
21st-century American women
|
D. Frank Wilkins (April 25, 1924 – January 2, 2006) was a justice of the Utah Supreme Court from 1976 to 1980.
He was born in Tooele, Utah on April 25, 1924. He attended West High School and the University of Utah in Salt Lake City, then went to George Washington University Law School. After law school, Wilkins was a Salt Lake County Deputy County Attorney, and then in private law practice. In 1961, Wilkins was elected chair of the Utah Democratic Party.
In 1967, Governor Cal Rampton appointed Wilkins as a 3rd District Court Judge, where he served until 1974. Rampton elevated Wilkins to the Supreme Court in 1976. One notable decision Wilkins wrote while on the supreme court upheld the death sentence of Pierre Selby, one of the convicted 'Hi-Fi' murderers. He resigned from the court in 1980 and returned to private practice.
In his private practice he was one of the defense lawyers in the murder trial of avowed racist Joseph Paul Franklin. He was still working at the time of his death in 2006.
References
George Washington University Law School alumni
University of Utah alumni
1924 births
Utah lawyers
Justices of the Utah Supreme Court
2006 deaths
20th-century American judges
People from Tooele, Utah
|
Idia diminuendis, the orange-spotted idia, is a litter moth of the family Erebidae. The species was first described by William Barnes and James Halliday McDunnough in 1918. It is found in North America from Wisconsin to Nova Scotia, south to Florida and Texas.
The wingspan is about 16 mm. There are two generations in most of the range.
Larvae feed on detritus, including dead leaves.
References
Herminiinae
Moths of North America
Taxa named by William Barnes (entomologist)
Taxa named by James Halliday McDunnough
Moths described in 1918
|
Abrahim Simmonds is the current National Coordinator for the Governor-General’s Programme for Excellence in Jamaica and a recipient of The Queen's Young Leader Award for Jamaica in 2017. Abrahim is also a youth leader and advocate. Abrahim is a co-founder of the youth advocacy group JAYECAN, and previously served as its Executive Director.
References
External links
http://www.jamaicaobserver.com/magazines/career/Abrahim-Simmonds-named-Queen-s-Young-Leader-2017_82476
http://soshinemedia.com/articles/view/229-Abrahim#sthash.gAMbRegY.dpbs
http://jamaica-gleaner.com/article/entertainment/20171020/music-analysis-crucial-media-literacy
https://web.archive.org/web/20170316212747/http://www.kingshouse.gov.jm/index.php/news/977-gg-s-scholarship-competition-awards-9-8m
1994 births
Living people
Jamaican activists
|
Martin Laamers (born 2 August 1967) is a Dutch former international footballer who played as a midfielder. Laamers played for professional clubs in the Netherlands and Belgium, making over 400 career appearances.
Career
Born in Arnhem, Laamers played for FC Wageningen, Vitesse, KRC Harelbeke and Gent.
Laamers made two appearances for the Netherlands between 1989 and 1990.
References
1967 births
Living people
Footballers from Arnhem
Dutch men's footballers
Netherlands men's international footballers
FC Wageningen players
SBV Vitesse players
K.R.C. Zuid-West-Vlaanderen players
K.A.A. Gent players
Eerste Divisie players
Eredivisie players
Belgian Pro League players
Men's association football midfielders
Dutch expatriate men's footballers
Dutch expatriate sportspeople in Belgium
Expatriate men's footballers in Belgium
|
```go
package gcp // import "github.com/docker/infrakit/pkg/plugin/instance/image/gcp"
import (
"crypto/rand"
"crypto/rsa"
"fmt"
"net/http"
"time"
logutil "github.com/docker/infrakit/pkg/log"
"github.com/docker/infrakit/pkg/types"
"golang.org/x/net/context"
"golang.org/x/oauth2/google"
"google.golang.org/api/compute/v1"
"google.golang.org/api/googleapi"
"google.golang.org/api/storage/v1"
)
var log = logutil.New("module", "instance/image/gcp")
const pollingInterval = 500 * time.Millisecond
const timeout = 300
// Client contains state required for communication with GCP
type Client struct {
client *http.Client
compute *compute.Service
projectName string
privKey *rsa.PrivateKey
}
// NewClient creates a new GCP client
func NewClient(projectName string, serviceAccountKey *types.Any) (*Client, error) {
log.Debug("connecting", "project", projectName)
ctx := context.Background()
var client *Client
if serviceAccountKey != nil {
log.Info("Using ServiceAccount key")
config, err := google.JWTConfigFromJSON(serviceAccountKey.Bytes(),
storage.DevstorageReadWriteScope,
compute.ComputeScope,
)
if err != nil {
return nil, err
}
client = &Client{
client: config.Client(ctx),
projectName: projectName,
}
} else {
log.Info("Using Application Default credentials")
gc, err := google.DefaultClient(
ctx,
storage.DevstorageReadWriteScope,
compute.ComputeScope,
)
if err != nil {
return nil, err
}
client = &Client{
client: gc,
projectName: projectName,
}
}
var err error
client.compute, err = compute.New(client.client)
if err != nil {
return nil, err
}
log.Debug("Generating SSH Keypair")
client.privKey, err = rsa.GenerateKey(rand.Reader, 2048)
if err != nil {
return nil, err
}
return client, nil
}
// CreateImage creates a GCP image using the a source from Google Storage
func (g Client) CreateImage(name, storageURL, family string, replace bool) error {
if replace {
if err := g.DeleteImage(name); err != nil {
return err
}
}
log.Info("Creating image", "name", name)
imgObj := &compute.Image{
RawDisk: &compute.ImageRawDisk{
Source: storageURL,
},
Name: name,
}
if family != "" {
imgObj.Family = family
}
op, err := g.compute.Images.Insert(g.projectName, imgObj).Do()
if err != nil {
return err
}
if err := g.pollOperationStatus(op.Name); err != nil {
return err
}
log.Info("created", "image", name)
return nil
}
// DeleteImage deletes and image
func (g Client) DeleteImage(name string) error {
var notFound bool
op, err := g.compute.Images.Delete(g.projectName, name).Do()
if err != nil {
if _, ok := err.(*googleapi.Error); !ok {
return err
}
if err.(*googleapi.Error).Code != 404 {
return err
}
notFound = true
}
if !notFound {
log.Info("deleting existing", "image", name)
if err := g.pollOperationStatus(op.Name); err != nil {
return err
}
log.Info("deleted", "image", name)
}
return nil
}
func (g *Client) pollOperationStatus(operationName string) error {
for i := 0; i < timeout; i++ {
operation, err := g.compute.GlobalOperations.Get(g.projectName, operationName).Do()
if err != nil {
return fmt.Errorf("error fetching operation status: %v", err)
}
if operation.Error != nil {
return fmt.Errorf("error running operation: %v", operation.Error)
}
if operation.Status == "DONE" {
return nil
}
time.Sleep(pollingInterval)
}
return fmt.Errorf("timeout waiting for operation to finish")
}
```
|
```go
package gcplogs // import "github.com/docker/docker/daemon/logger/gcplogs"
import (
"os"
"github.com/docker/docker/dockerversion"
"github.com/docker/docker/pkg/homedir"
"github.com/sirupsen/logrus"
)
// ensureHomeIfIAmStatic ensure $HOME to be set if dockerversion.IAmStatic is "true".
// See issue #29344: gcplogs segfaults (static binary)
// If HOME is not set, logging.NewClient() will call os/user.Current() via oauth2/google.
// However, in static binary, os/user.Current() leads to segfault due to a glibc issue that won't be fixed
// in a short term. (golang/go#13470, path_to_url
// So we forcibly set HOME so as to avoid call to os/user/Current()
func ensureHomeIfIAmStatic() error {
// Note: dockerversion.IAmStatic and homedir.GetStatic() is only available for linux.
// So we need to use them in this gcplogging_linux.go rather than in gcplogging.go
if dockerversion.IAmStatic == "true" && os.Getenv("HOME") == "" {
home, err := homedir.GetStatic()
if err != nil {
return err
}
logrus.Warnf("gcplogs requires HOME to be set for static daemon binary. Forcibly setting HOME to %s.", home)
os.Setenv("HOME", home)
}
return nil
}
```
|
"Accident Prone" is a single released by the British Rock band Status Quo in 1978. It was included on the album If You Can't Stand the Heat. The title was rather prophetic, for it was their only official single of the 1970s in Britain to fail to reach the Top 30.
Track listing
"Accident Prone" (Williams/Hutchins) (4.08)
"Let Me Fly" (Rossi/Frost) (4.20)
Charts
References
Status Quo (band) songs
1978 singles
Songs written by Pip Williams
Song recordings produced by Pip Williams
1978 songs
Vertigo Records singles
|
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of this software, associated documentation and/or
* data (collectively the "Software"), free of charge and under any and all
* copyright rights in the Software, and any and all patent rights owned or
* freely licensable by each licensor hereunder covering either (i) the
* unmodified Software as contributed to or provided by such licensor, or (ii)
* the Larger Works (as defined below), to deal in both
*
* (a) the Software, and
*
* (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
* one is included with the Software each a "Larger Work" to which the Software
* is contributed by such licensors),
*
* without restriction, including without limitation the rights to copy, create
* derivative works of, display, perform, and distribute the Software and make,
* use, sell, offer for sale, import, export, have made, and have sold the
* Software and the Larger Work(s), and to sublicense the foregoing rights on
* either these or other terms.
*
* This license is subject to the following condition:
*
* The above copyright notice and either this complete permission notice or at a
* minimum a reference to the UPL must be included in all copies or substantial
* portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.oracle.truffle.api.profiles;
import java.util.Objects;
import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
import com.oracle.truffle.api.dsl.InlineSupport.InlineTarget;
import com.oracle.truffle.api.dsl.NeverDefault;
/**
* <p>
* Specialized value profile to capture certain properties of <code>Object</code> runtime values.
* Value profiles require a runtime check in their initialized state to verify their profiled
* assumption. Value profiles are limited to capture monomorphic profiles only. This means that if
* two or more identities or classes are profiles within a single profile then the profile has no
* effect and no overhead after compilation. There are specialized versions of this profile with
* less interpreter footprint for {@link ConditionProfile boolean}, {@link ByteValueProfile byte},
* {@link IntValueProfile int}, {@link LongValueProfile long}, {@link FloatValueProfile float} and
* {@link DoubleValueProfile double} values.
* </p>
*
* <p>
* <b> Usage example: </b>
*
* <pre>
* class SampleNode extends Node {
*
* final ValueProfile profile = ValueProfile.create{Identity,Class}Profile();
*
* Object execute(Object input) {
* Object profiledValue = profile.profile(input);
* // compiler may know now more about profiledValue
* return profieldValue;
* }
* }
* </pre>
*
* @see #createIdentityProfile()
* @see #createClassProfile()
* @since 0.10
*/
public abstract class ValueProfile extends Profile {
ValueProfile() {
}
/** @since 0.10 */
public abstract <T> T profile(T value);
/**
* <p>
* Returns a value profile that profiles the exact class of a value. It will check the class of
* the profiled value and provide additional information to the compiler if only non-null values
* of exactly one concrete Java class are passed as a parameter to the
* {@link ValueProfile#profile} method. This can be beneficial if subsequent code can take
* advantage of knowing the concrete class of the value. The profile will degrade to the generic
* case if a null value or if at least two instances of two different Java classes are
* registered.
* </p>
*
* <p>
* <b>Compilation notes:</b> Value profiles require a runtime check in their initialized state
* to verify their profiled class. If two classes have been seen on a single profile instance
* then this profile will transition to a generic state with no overhead.
* </P>
*
* @see ValueProfile usage example
* @since 0.10
*/
@NeverDefault
public static ValueProfile createClassProfile() {
if (Profile.isProfilingEnabled()) {
return ExactClass.create();
} else {
return Disabled.INSTANCE;
}
}
/**
* <p>
* Returns a value profile that profiles the exact class of a value. It will check the class of
* the profiled value and provide additional information to the compiler if only non-null values
* of exactly one concrete Java class are passed as a parameter to the
* {@link ValueProfile#profile} method. This can be beneficial if subsequent code can take
* advantage of knowing the concrete class of the value. The profile will degrade to the generic
* case if a null value or if at least two instances of two different Java classes are
* registered.
* </p>
*
* <p>
* <b>Compilation notes:</b> Value profiles require a runtime check in their initialized state
* to verify their profiled class. If two classes have been seen on a single profile instance
* then this profile will transition to a generic state with no overhead.
* </P>
*
* @see ValueProfile usage example
* @since 23.0
*/
@NeverDefault
public static ValueProfile create() {
return createClassProfile();
}
/**
* <p>
* Returns a value profile that profiles the object identity of a value. A single instance can
* only profile one particular instance.
* </p>
*
* <p>
* <b>Compilation notes:</b> Identity profiles require a runtime check to verify their profiled
* object identity. If two identities have been seen on a single profile instance then this
* profile will transition to a generic state with no overhead.
* </p>
*
* @since 0.10
*/
@NeverDefault
public static ValueProfile createIdentityProfile() {
if (Profile.isProfilingEnabled()) {
return Identity.create0();
} else {
return Disabled.INSTANCE;
}
}
/**
* Returns the uncached version of the profile. The uncached version of a profile does nothing.
*
* @since 19.0
*/
public static ValueProfile getUncached() {
return Disabled.INSTANCE;
}
/**
* Returns an inlined version of the profile. This version is automatically used by Truffle DSL
* node inlining.
*
* @since 23.0
*/
public static InlinedExactClassProfile inline(InlineTarget target) {
return InlinedExactClassProfile.inline(target);
}
static final class Disabled extends ValueProfile {
static final ValueProfile INSTANCE = new Disabled();
@Override
protected Object clone() {
return INSTANCE;
}
@Override
public <T> T profile(T value) {
return value;
}
@Override
public String toString() {
return toStringDisabled();
}
}
static final class Identity extends ValueProfile {
private static final Object UNINITIALIZED = new Object();
private static final Object GENERIC = new Object();
@CompilationFinal protected Object cachedValue = UNINITIALIZED;
Identity() {
}
@Override
@SuppressWarnings("unchecked")
public <T> T profile(T newValue) {
// Field needs to be cached in local variable for thread safety and startup speed.
Object cached = this.cachedValue;
if (cached != GENERIC) {
if (cached == newValue) {
return (T) cached;
} else {
CompilerDirectives.transferToInterpreterAndInvalidate();
if (cachedValue == UNINITIALIZED) {
cachedValue = newValue;
} else {
cachedValue = GENERIC;
}
}
}
return newValue;
}
public boolean isGeneric() {
return getCachedValue() == GENERIC;
}
public boolean isUninitialized() {
return getCachedValue() == UNINITIALIZED;
}
public Object getCachedValue() {
return cachedValue;
}
@Override
public void disable() {
cachedValue = GENERIC;
}
@Override
public void reset() {
cachedValue = UNINITIALIZED;
}
@Override
public String toString() {
return toString(ValueProfile.class, isUninitialized(), isGeneric(),
String.format("value == %s@%x", cachedValue != null ? cachedValue.getClass().getSimpleName() : "null", Objects.hash(cachedValue)));
}
/* Needed for lazy class loading. */
static ValueProfile create0() {
return new Identity();
}
}
static final class ExactClass extends ValueProfile {
@CompilationFinal protected Class<?> cachedClass;
ExactClass() {
}
public static ValueProfile create() {
return new ExactClass();
}
@SuppressWarnings("unchecked")
@Override
public <T> T profile(T value) {
// Field needs to be cached in local variable for thread safety and startup speed.
Class<?> clazz = cachedClass;
if (clazz != Object.class) {
if (clazz != null && CompilerDirectives.isExact(value, clazz)) {
if (CompilerDirectives.inInterpreter()) {
return value;
} else {
return (T) CompilerDirectives.castExact(value, clazz);
}
} else {
CompilerDirectives.transferToInterpreterAndInvalidate();
if (clazz == null && value != null) {
cachedClass = value.getClass();
} else {
cachedClass = Object.class;
}
}
}
return value;
}
boolean isGeneric() {
return cachedClass == Object.class;
}
boolean isUninitialized() {
return cachedClass == null;
}
@Override
public void disable() {
cachedClass = Object.class;
}
@Override
public void reset() {
cachedClass = null;
}
Class<?> getCachedValue() {
return cachedClass;
}
@Override
public String toString() {
return toString(ValueProfile.class, cachedClass == null, cachedClass == Object.class,
String.format("value.getClass() == %s.class", cachedClass != null ? cachedClass.getSimpleName() : "null"));
}
}
}
```
|
Mait Lepik (born 23 September 1968 in Tallinn) is an Estonian actor.
Besides theatre roles he has played also in several Estonian and Finnish films, television series and advertisements.
Filmography
1991: Rahu tänav (feature film)
1991: Rist (feature film)
2000: Me saame hakkama (television series)
2006: Hundi agoonia (feature film)
2011: Surnuaiavahi tütar (feature film)
2017: Sangarid (feature film)
References
Living people
1968 births
Estonian male film actors
Estonian male stage actors
Estonian male television actors
20th-century Estonian male actors
21st-century Estonian male actors
Male actors from Tallinn
|
Mambrino was a grey Thoroughbred racehorse, foaled in 1768, by Engineer, and out of an unnamed mare by Cade.
Life
Mambrino was a grey by Engineer and out of an unnamed mare by Cade. He was bred by John Atkinson of Scholes, Yorkshire. Mambrino was said to look more like a carriage horse rather than a racehorse.
He was sold to and raced for Lord Grosvenor winning the King's Plate and Jockey Club Plate when he was just seven years old. On top of that, he had 11 wins, beating some of the finest horses of his time, including Florizel, Trentham and Comus. He was also noted as a fine trotter and speed in harness racing. Later, Mambrino was retired to Oxford Stud, where he sired hunters, coach horses, road horses, and a couple of runners and broodmares. His most notable is Messenger, who was exported to North America, becoming a foundation sire of the Standardbred harness racing breed. Messenger was also important in the foundation of English Coach horses.
References
External links
Detailed information on the racehorse
1768 racehorse births
Thoroughbred family 20
Racehorses bred in the Kingdom of Great Britain
Racehorses trained in the Kingdom of Great Britain
|
Helen Jennifer Denman (born 4 September 1976) is an Australian breaststroke swimmer of the 1990s, who won a silver medal in the 4×100-metre medley relay at the 1996 Summer Olympics. She won an individual silver medal in the 100-metre breaststroke at the 1998 World Aquatics Championships.
Denman qualified for her first international team at the Australian Championships in 1996, after winning the 100-metre breaststroke.
At the 1996 Summer Olympics in Atlanta, Denman placed 11th in the 100-metre breaststroke, but fellow Australian Samantha Riley won the bronze medal. This meant that Denman swum the breaststroke leg in the heats of the 4×100-metre medley relay, before being replaced by Riley in the team that trailed the United States team home in the final.
Competing in front of a partisan home crowd at the 1998 World Championships in Perth, Denman set a personal best in winning silver in the 100-metre breaststroke, pushing American Kristy Kowal to within an arm's length. She also combined with Meredith Smith, Petria Thomas and Susie O'Neill in the final of the 4×100-metre medley relay to claim silver behind the Americans.
At the 1998 Commonwealth Games in Kuala Lumpur, Malaysia, Denman claimed gold in the 100 m breaststroke and the 4×100-metre medley relay. In 1999 she was omitted from the Australian national team, and in 2000 she made an unsuccessful attempt to qualify for the 2000 Summer Olympics in Sydney.
See also
List of Olympic medalists in swimming (women)
List of Commonwealth Games medallists in swimming (women)
References
1976 births
Australian female breaststroke swimmers
Living people
Olympic swimmers for Australia
Swimmers from Perth, Western Australia
Swimmers at the 1996 Summer Olympics
Olympic silver medalists for Australia
Commonwealth Games gold medallists for Australia
World Aquatics Championships medalists in swimming
Medalists at the 1996 Summer Olympics
Olympic silver medalists in swimming
Commonwealth Games medallists in swimming
Universiade medalists in swimming
Swimmers at the 1998 Commonwealth Games
Universiade silver medalists for Australia
Medalists at the 1995 Summer Universiade
20th-century Australian women
Medallists at the 1998 Commonwealth Games
Sportswomen from Western Australia
|
The Portrait of Cardinal Bibbiena is a portrait of Cardinal Bernardo Dovizi da Bibbiena (pope Leo X's private secretary) by Raphael, painted around 1516 and now in the Palazzo Pitti in Florence. Its rendering appears more rigid than is usual for Raphael, leading some critics to attribute it to one of his pupils or to feel it is possibly a copy from a lost autograph original.
See also
List of paintings by Raphael
Notes
References
External links
http://www.wga.hu/frames-e.html?/html/r/raphael/5roma/3/04bibbie.html
Bibbiena
1516 paintings
|
```go
package deployments
import (
"context"
"crypto/tls"
"errors"
"net/http"
"strconv"
"strings"
"testing"
portainer "github.com/portainer/portainer/api"
"github.com/portainer/portainer/api/datastore"
gittypes "github.com/portainer/portainer/api/git/types"
"github.com/portainer/portainer/api/internal/testhelpers"
"github.com/portainer/portainer/pkg/libhttp/response"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
const localhostCert = `-----BEGIN CERTIFICATE-----
MIIEOjCCAiKgAwIBAgIRALg8rJET2/9LjKSxHj0dQhYwDQYJKoZIhvcNAQELBQAw
your_sha256_hash
your_sha256_hash
your_sha256_hash
YqOIYGaW3CqzlRn6vBHu9bMHXef4+XfS0igKBn76MAKn5IcTccIWIal+5jq48pI3
c2FzQ3qNujX2zqZPjAjhJnVeVCP3kJu4wUtuubswLPBVLdktGa6EkL+8nu6o0Phw
6scV6s3gUmQk5/lpH4FIff8M7NAdTOxiFImQ1M0vplKtaEeiCnskpgyI8CbZl7X0
38Pu178W3+LqB7N4iMy2gKnBwjsXzw/+1dfUGkKjYdDBD+kNEKrQ4dwkjkrkQVdt
Z+GN26NvXHoeeyX/MLnVgdLbiIjvsf0DDIhabKqTcwIDAQABo4GDMIGAMA4GA1Ud
DwEB/wQEAwIDuDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwHQYDVR0O
BBYEFPCefmK5Szzlfs8FRCa5+kRCIEWuMB8GA1UdIwQYMBaAFKZZ074SR/ajD3zE
your_sha256_hash
/WPSUpuQvrcVBsmIlOMz74cDZYuIDls/mAcB/yP3mm+oWlO0qvH/F/BMs1P/bkgj
fByQZq8Zmi6/TEZNlGvW7KGx077VxDKi8jd1jL3gLDPmkFjYuGeIWQusgxBu1y3m
0WoTTqnkoism1mzV/dgNwrm3YQIV4H/fi9EEdQSm0UFRTKSAGBkwS7N2pmNb5yQO
U8glFpyznCv4evDJbs/JUUXKYExgFFhWUd25P7iBRLXg/BFfqdSTiUGUj/Msz0pO
Evqmq78eIiXjyyKSxzve6/mEIeq6AE3AC9zH+fwTd6Mhp+T2P/S/iO4EU19IMR4m
sbNBd6h/3GvRekO1KbqQ42awuMnxvWT0NVclSxiU1lMpAmRmk/w9z7wB3r4n7oh4
iiOTl5VSw1UBkcLDOJw+HB/FU2PdVFfIJKRfjLCZOGrcJX9vEcz7dYGpB5HrdqOc
/8q5j1g6f/pGE+20HITrtz6ChguETzqw5dLNeKeolC6bVH8yEtmpnP2n8VPnT9Di
V+hnONcJ+wd/dkBqabGr7LPG24Kj1F2Zp3CDDvJA94FaEsgaLfSg3JD+43uRCOWM
RuqU8bGuhQRqilR2dSIOrFaW2+MeUHsb24cUn/pkHqKpSg+RBEnf6QfGDlIgqYEl
19f/HFVBc/a8lM/D81lMyDbjQ9zH4LDYj4ipBbkL
-----END CERTIFICATE-----`
const localhostKey = `-----BEGIN RSA PRIVATE KEY-----
your_sha256_hash
YGaW3CqzlRn6vBHu9bMHXef4+XfS0igKBn76MAKn5IcTccIWIal+5jq48pI3c2Fz
Q3qNujX2zqZPjAjhJnVeVCP3kJu4wUtuubswLPBVLdktGa6EkL+8nu6o0Phw6scV
6s3gUmQk5/lpH4FIff8M7NAdTOxiFImQ1M0vplKtaEeiCnskpgyI8CbZl7X038Pu
178W3+LqB7N4iMy2gKnBwjsXzw/+1dfUGkKjYdDBD+kNEKrQ4dwkjkrkQVdtZ+GN
26NvXHoeeyX/MLnVgdLbiIjvsf0DDIhabKqTcwIDAQABAoIBAQCqSP6BPG195A52
iEeCISksw9ERsou+fflKNvIcQvV7swP0xOyooERUhhiVwQMKpx9QDUXXLRV8CHch
JExR+OEYQdv4GhJM/b6XYafLYQfe80thKyQLzTXQWSdUeffe4OEMShODKOKoRUyp
oO9Qj9/wKfX3V6S2iwnU4dxdofztv+YP9rYQyjnhKbv/9OfeCp2Pb9eFKKRsA+QQ
xneDz1+wr8ToTuiTn8HBPNSeSAKvhzXuzyluI7VAetRloNgCtumrA9kpVbW2cDgE
Gk0q3RY125ejFELQO/cOJFuBsqoJlvPxzg8/vHyfyF9hFMqbqvcUw2e1eqHpnJd5
dP4+ZGYZAoGBAOOFuPXMLBts0rN9mfNbVfx36H+aOCL77SafZvWm0D+rH69QN3/q
/ZSWQEjwH5Tzn1e+NVcl/Um2vL/dIyEGBklXQ7yAyJo25gpEOD/rt1U94HKzMOwy
yKtsKghRAOx0piie7ORS6MGbEOQxU3/1Eg1uvd0qoSnALqJ/le75QpFXAoGBAOCD
your_sha256_hash
ZAAU0klsLX0lEe8f4A12FnHNylKoxmTWdE3wWPptejdA1KUgzt/2kNljgOMFuY0Q
rlCEW/Jabrg5aFMwVVG8bHLZR0xalfniDvXLvnFFAoGACdztJLKiIto31BIYz2Th
your_sha256_hash
HpHK3OwURiMlG8LTUWoNe4OALFi6QTL+YfgBZnTkflucLFyfVlKFxobLV6kPvpdI
Hg7z6heD/wRWwTKYtFBX42cCgYBIeoQJ9rYlRqB0eEm0AEzYweLBfFRJVgD0/j0E
your_sha256_hash
I8VFyzPqRHahfE7sxGeMlm/UWlPFc34ipigcvA8EUBwaxv60LVUBWp2Gy7OhANZ9
iTHI1QKBgQCdHFj9dnbpaEHA426CoaPsyj5cv2nBLRf8p1cs71sq+qQOGlGJfajm
your_sha256_hash
vJUUCFYm8+9p6gTVOcoMit+eGSwa81PCPEs1TnU1PV/PaDFeUhn/mg==
-----END RSA PRIVATE KEY-----`
type noopDeployer struct{}
// without unpacker
func (s *noopDeployer) DeploySwarmStack(stack *portainer.Stack, endpoint *portainer.Endpoint, registries []portainer.Registry, prune bool, pullImage bool) error {
return nil
}
func (s *noopDeployer) DeployComposeStack(stack *portainer.Stack, endpoint *portainer.Endpoint, registries []portainer.Registry, forcePullImage bool, forceRecreate bool) error {
return nil
}
func (s *noopDeployer) DeployKubernetesStack(stack *portainer.Stack, endpoint *portainer.Endpoint, user *portainer.User) error {
return nil
}
// with unpacker
func (s *noopDeployer) DeployRemoteComposeStack(stack *portainer.Stack, endpoint *portainer.Endpoint, registries []portainer.Registry, forcePullImage bool, forceRecreate bool) error {
return nil
}
func (s *noopDeployer) UndeployRemoteComposeStack(stack *portainer.Stack, endpoint *portainer.Endpoint) error {
return nil
}
func (s *noopDeployer) StartRemoteComposeStack(stack *portainer.Stack, endpoint *portainer.Endpoint, registries []portainer.Registry) error {
return nil
}
func (s *noopDeployer) StopRemoteComposeStack(stack *portainer.Stack, endpoint *portainer.Endpoint) error {
return nil
}
func (s *noopDeployer) DeployRemoteSwarmStack(stack *portainer.Stack, endpoint *portainer.Endpoint, registries []portainer.Registry, prune bool, pullImage bool) error {
return nil
}
func (s *noopDeployer) UndeployRemoteSwarmStack(stack *portainer.Stack, endpoint *portainer.Endpoint) error {
return nil
}
func (s *noopDeployer) StartRemoteSwarmStack(stack *portainer.Stack, endpoint *portainer.Endpoint, registries []portainer.Registry) error {
return nil
}
func (s *noopDeployer) StopRemoteSwarmStack(stack *portainer.Stack, endpoint *portainer.Endpoint) error {
return nil
}
func agentServer(t *testing.T) string {
h := http.NewServeMux()
h.HandleFunc("/ping", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set(portainer.PortainerAgentHeader, "v2.19.0")
w.Header().Set(portainer.HTTPResponseAgentPlatform, strconv.Itoa(int(portainer.AgentPlatformDocker)))
response.Empty(w)
})
cert, err := tls.X509KeyPair([]byte(localhostCert), []byte(localhostKey))
require.NoError(t, err)
tlsConfig := &tls.Config{
Certificates: []tls.Certificate{cert},
}
l, err := tls.Listen("tcp", "127.0.0.1:0", tlsConfig)
require.NoError(t, err)
s := &http.Server{
Handler: h,
}
errCh := make(chan error)
go func() {
errCh <- s.Serve(l)
}()
t.Cleanup(func() {
require.NoError(t, s.Shutdown(context.Background()))
require.ErrorIs(t, <-errCh, http.ErrServerClosed)
})
return "http://" + l.Addr().String()
}
func Test_redeployWhenChanged_FailsWhenCannotFindStack(t *testing.T) {
_, store := datastore.MustNewTestStore(t, true, true)
err := RedeployWhenChanged(1, nil, store, nil)
assert.Error(t, err)
assert.Truef(t, strings.HasPrefix(err.Error(), "failed to get the stack"), "it isn't an error we expected: %v", err.Error())
}
func Test_redeployWhenChanged_DoesNothingWhenNotAGitBasedStack(t *testing.T) {
_, store := datastore.MustNewTestStore(t, true, true)
admin := &portainer.User{ID: 1, Username: "admin"}
err := store.User().Create(admin)
assert.NoError(t, err, "error creating an admin")
err = store.Stack().Create(&portainer.Stack{ID: 1, CreatedBy: "admin"})
assert.NoError(t, err, "failed to create a test stack")
err = RedeployWhenChanged(1, nil, store, testhelpers.NewGitService(nil, ""))
assert.NoError(t, err)
}
func Test_redeployWhenChanged_DoesNothingWhenNoGitChanges(t *testing.T) {
_, store := datastore.MustNewTestStore(t, true, true)
tmpDir := t.TempDir()
admin := &portainer.User{ID: 1, Username: "admin"}
err := store.User().Create(admin)
assert.NoError(t, err, "error creating an admin")
err = store.Endpoint().Create(&portainer.Endpoint{
ID: 0,
})
assert.NoError(t, err, "error creating environment")
err = store.Stack().Create(&portainer.Stack{
ID: 1,
CreatedBy: "admin",
ProjectPath: tmpDir,
GitConfig: &gittypes.RepoConfig{
URL: "url",
ReferenceName: "ref",
ConfigHash: "oldHash",
}})
assert.NoError(t, err, "failed to create a test stack")
err = RedeployWhenChanged(1, nil, store, testhelpers.NewGitService(nil, "oldHash"))
assert.NoError(t, err)
}
func Test_redeployWhenChanged_FailsWhenCannotClone(t *testing.T) {
cloneErr := errors.New("failed to clone")
_, store := datastore.MustNewTestStore(t, true, true)
admin := &portainer.User{ID: 1, Username: "admin"}
err := store.User().Create(admin)
assert.NoError(t, err, "error creating an admin")
err = store.Endpoint().Create(&portainer.Endpoint{
ID: 0,
URL: agentServer(t),
TLSConfig: portainer.TLSConfiguration{
TLS: true,
TLSSkipVerify: true,
},
})
assert.NoError(t, err, "error creating environment")
err = store.Stack().Create(&portainer.Stack{
ID: 1,
CreatedBy: "admin",
GitConfig: &gittypes.RepoConfig{
URL: "url",
ReferenceName: "ref",
ConfigHash: "oldHash",
}})
assert.NoError(t, err, "failed to create a test stack")
err = RedeployWhenChanged(1, nil, store, testhelpers.NewGitService(cloneErr, "newHash"))
assert.Error(t, err)
assert.ErrorIs(t, err, cloneErr, "should failed to clone but didn't, check test setup")
}
func Test_redeployWhenChanged(t *testing.T) {
_, store := datastore.MustNewTestStore(t, true, true)
tmpDir := t.TempDir()
err := store.Endpoint().Create(&portainer.Endpoint{ID: 1})
assert.NoError(t, err, "error creating environment")
username := "user"
err = store.User().Create(&portainer.User{Username: username, Role: portainer.AdministratorRole})
assert.NoError(t, err, "error creating a user")
stack := portainer.Stack{
ID: 1,
EndpointID: 1,
ProjectPath: tmpDir,
UpdatedBy: username,
GitConfig: &gittypes.RepoConfig{
URL: "url",
ReferenceName: "ref",
ConfigHash: "oldHash",
},
}
err = store.Stack().Create(&stack)
assert.NoError(t, err, "failed to create a test stack")
t.Run("can deploy docker compose stack", func(t *testing.T) {
stack.Type = portainer.DockerComposeStack
store.Stack().Update(stack.ID, &stack)
err = RedeployWhenChanged(1, &noopDeployer{}, store, testhelpers.NewGitService(nil, "newHash"))
assert.NoError(t, err)
})
t.Run("can deploy docker swarm stack", func(t *testing.T) {
stack.Type = portainer.DockerSwarmStack
store.Stack().Update(stack.ID, &stack)
err = RedeployWhenChanged(1, &noopDeployer{}, store, testhelpers.NewGitService(nil, "newHash"))
assert.NoError(t, err)
})
t.Run("can deploy kube app", func(t *testing.T) {
stack.Type = portainer.KubernetesStack
store.Stack().Update(stack.ID, &stack)
err = RedeployWhenChanged(1, &noopDeployer{}, store, testhelpers.NewGitService(nil, "newHash"))
assert.NoError(t, err)
})
}
func Test_getUserRegistries(t *testing.T) {
_, store := datastore.MustNewTestStore(t, true, true)
endpointID := 123
admin := &portainer.User{ID: 1, Username: "admin", Role: portainer.AdministratorRole}
err := store.User().Create(admin)
assert.NoError(t, err, "error creating an admin")
user := &portainer.User{ID: 2, Username: "user", Role: portainer.StandardUserRole}
err = store.User().Create(user)
assert.NoError(t, err, "error creating a user")
team := portainer.Team{ID: 1, Name: "team"}
store.TeamMembership().Create(&portainer.TeamMembership{
ID: 1,
UserID: user.ID,
TeamID: team.ID,
Role: portainer.TeamMember,
})
registryReachableByUser := portainer.Registry{
ID: 1,
Name: "registryReachableByUser",
RegistryAccesses: portainer.RegistryAccesses{
portainer.EndpointID(endpointID): {
UserAccessPolicies: map[portainer.UserID]portainer.AccessPolicy{
user.ID: {RoleID: portainer.RoleID(portainer.StandardUserRole)},
},
},
},
}
err = store.Registry().Create(®istryReachableByUser)
assert.NoError(t, err, "couldn't create a registry")
registryReachableByTeam := portainer.Registry{
ID: 2,
Name: "registryReachableByTeam",
RegistryAccesses: portainer.RegistryAccesses{
portainer.EndpointID(endpointID): {
TeamAccessPolicies: map[portainer.TeamID]portainer.AccessPolicy{
team.ID: {RoleID: portainer.RoleID(portainer.StandardUserRole)},
},
},
},
}
err = store.Registry().Create(®istryReachableByTeam)
assert.NoError(t, err, "couldn't create a registry")
registryRestricted := portainer.Registry{
ID: 3,
Name: "registryRestricted",
RegistryAccesses: portainer.RegistryAccesses{
portainer.EndpointID(endpointID): {
UserAccessPolicies: map[portainer.UserID]portainer.AccessPolicy{
user.ID + 100: {RoleID: portainer.RoleID(portainer.StandardUserRole)},
},
},
},
}
err = store.Registry().Create(®istryRestricted)
assert.NoError(t, err, "couldn't create a registry")
t.Run("admin should has access to all registries", func(t *testing.T) {
registries, err := getUserRegistries(store, admin, portainer.EndpointID(endpointID))
assert.NoError(t, err)
assert.ElementsMatch(t, []portainer.Registry{registryReachableByUser, registryReachableByTeam, registryRestricted}, registries)
})
t.Run("regular user has access to registries allowed to him and/or his team", func(t *testing.T) {
registries, err := getUserRegistries(store, user, portainer.EndpointID(endpointID))
assert.NoError(t, err)
assert.ElementsMatch(t, []portainer.Registry{registryReachableByUser, registryReachableByTeam}, registries)
})
}
```
|
Antonijs Černomordijs (born 26 September 1996) is a Latvian professional footballer who plays as a defender for and captains both Virslīga club Riga and the Latvia national team.
Club career
He made his Cypriot First Division debut for Pafos on 26 August 2017 in a game against Ethnikos Achna.
International career
He made his debut for Latvia national football team on 6 September 2019 in a 2020 Euro qualifier against Austria, as a starter.
International goals
Scores and results list Latvia's goal tally first.
References
External links
1996 births
Sportspeople from Daugavpils
Living people
Latvian men's footballers
Latvia men's youth international footballers
Latvia men's under-21 international footballers
Latvia men's international footballers
BFC Daugavpils players
Lech Poznań II players
Riga FC players
Pafos FC players
Latvian Higher League players
III liga players
Cypriot First Division players
Latvian expatriate men's footballers
Expatriate men's footballers in Poland
Expatriate men's footballers in Cyprus
Men's association football defenders
Latvian expatriate sportspeople in Cyprus
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.