answer
stringlengths 15
1.25M
|
|---|
<?php
/**
*
*
* @author Garbin
* @usage none
*/
class TenpayPayment extends BasePayment
{
var $_gateway = 'https:
var $_code = 'tenpay';
/**
*
*
* @author Garbin
* @param array $order_info
* @return array
*/
function get_payform($order_info)
{
$version = '2';
$cmdno = '12';
if (!defined('CHARSET'))
{
$encode_type = 2;
}
else
{
if (CHARSET == 'utf-8')
{
$encode_type = 2;
}
else
{
$encode_type = 1;
}
}
$chnid = $this->_config['tenpay_account'];
$seller = $this->_config['tenpay_account'];
$mch_name = $this->_get_subject($order_info);
$mch_price = floatval($order_info['order_amount']) * 100;
$transport_desc = '';
$transport_fee = '';
$mch_desc = $this->_get_subject($order_info);
$need_buyerinfo = '2' ;
$mch_type = $this->_config['tenpay_type'];
$rand_num = rand(1,9);
for ($i = 1; $i < 10; $i++)
{
$rand_num .= rand(0,9);
}
$mch_vno = $this->_get_trade_sn($order_info);
$mch_returl = $this->_create_notify_url($order_info['order_id']);
$show_url = $this->_create_return_url($order_info['order_id']);
$attach = $rand_num;
$sign_text = "attach=" . $attach . "&chnid=" . $chnid . "&cmdno=" . $cmdno . "&encode_type=" . $encode_type . "&mch_desc=" . $mch_desc . "&mch_name=" . $mch_name . "&mch_price=" . $mch_price ."&mch_returl=" . $mch_returl . "&mch_type=" . $mch_type . "&mch_vno=" . $mch_vno . "&need_buyerinfo=" . $need_buyerinfo ."&seller=" . $seller . "&show_url=" . $show_url . "&version=" . $version . "&key=" . $this->_config['tenpay_key'];
$sign =md5($sign_text);
$parameter = array(
'attach' => $attach,
'chnid' => $chnid,
'cmdno' => $cmdno,
'encode_type' => $encode_type,
'mch_desc' => $mch_desc,
'mch_name' => $mch_name,
'mch_price' => $mch_price,
'mch_returl' => $mch_returl, // URL
'mch_type' => $mch_type,
'mch_vno' => $mch_vno,
'need_buyerinfo' => $need_buyerinfo,
'seller' => $seller,
'show_url' => $show_url,
'transport_desc' => $transport_desc,
'transport_fee' => $transport_fee,
'version' => $version,
'key' => $this->_config['tenpay_key'],
'sign' => $sign, // MD5
'sys_id' => '542554970' //ECMall C
);
return $this->_create_payform('GET', $parameter);
}
/**
*
*
* @author Garbin
* @param array $order_info
* @param bool $strict
* @return array
* false
*/
function verify_notify($order_info, $strict = false)
{
$cmd_no = $_GET['cmdno'];
$retcode = $_GET['retcode'];
$status = $_GET['status'];
$seller = $_GET['seller'];
$total_fee = $_GET['total_fee'];
$trade_price = $_GET['trade_price'];
$transport_fee = $_GET['transport_fee'];
$buyer_id = $_GET['buyer_id'];
$chnid = $_GET['chnid'];
$cft_tid = $_GET['cft_tid'];
$mch_vno = $_GET['mch_vno'];
$attach = !empty($_GET['attach']) ? $_GET['attach'] : '';
$version = $_GET['version'];
$sign = $_GET['sign'];
$log_id = $mch_vno; //log_id
/* $retcode0 */
if ($retcode > 0)
{
//echo '';
return false;
}
$order_amount = $total_fee / 100;
if ($order_info['order_amount'] != $order_amount)
{
$this->_error('price_inconsistent');
return false;
}
if ($order_info['out_trade_sn'] != $log_id)
{
$this->_error('order_inconsistent');
return false;
}
$sign_text = "attach=" . $attach . "&buyer_id=" . $buyer_id . "&cft_tid=" . $cft_tid . "&chnid=" . $chnid . "&cmdno=" . $cmd_no . "&mch_vno=" . $mch_vno . "&retcode=" . $retcode . "&seller=" .$seller . "&status=" . $status . "&total_fee=" . $total_fee . "&trade_price=" . $trade_price . "&transport_fee=" . $transport_fee . "&version=" . $version . "&key=" . $this->_config['tenpay_key'];
$sign_md5 = strtoupper(md5($sign_text));
if ($sign_md5 != $sign)
{
$this->_error('sign_inconsistent');
return false;
}
if ($status != 3)
{
return false;
}
return array(
'target' => ORDER_ACCEPTED,
);
}
/**
*
*
* @author huibiaoli
* @param array $order_info
* @return string
*/
function _get_trade_sn($order_info)
{
if (!$order_info['out_trade_sn'] || $order_info['pay_alter'])
{
$out_trade_sn = $this->_gen_trade_sn();
}
else
{
$out_trade_sn = $order_info['out_trade_sn'];
}
$model_order =& m('order');
$model_order->edit(intval($order_info['order_id']), array('out_trade_sn' => $out_trade_sn, 'pay_alter' => 0));
return $out_trade_sn;
}
/**
*
*
* @author huibiaoli
* @return string
*/
function _gen_trade_sn()
{
mt_srand((double) microtime() * 1000000);
$timestamp = gmtime();
$y = date('y', $timestamp);
$z = date('z', $timestamp);
$out_trade_sn = $y . str_pad($z, 3, '0', STR_PAD_LEFT) . str_pad(mt_rand(1, 99999), 5, '0', STR_PAD_LEFT);
$model_order =& m('order');
$orders = $model_order->find('out_trade_sn=' . $out_trade_sn);
if (empty($orders))
{
return $out_trade_sn;
}
return $this->_gen_trade_sn();
}
}
?>
|
// <auto-generated>
// This code was generated from a template.
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
namespace Database.Entity
{
using System;
using System.Collections.Generic;
[Serializable]
public partial class ButtonSpaces
{
public long Id { get; set; }
public long Reminders { get; set; }
public long Timer { get; set; }
public long BackupImport { get; set; }
public long Settings { get; set; }
public long SoundEffects { get; set; }
public long ResizePopup { get; set; }
public long MessageCenter { get; set; }
public long DebugMode { get; set; }
}
}
|
import Event = require('./Event');
import SignalAbstract = require('./SignalAbstract');
/**
* @namespace createts.events
* @module createts
* @class Signal1
*/
class Signal1<T> extends SignalAbstract
{
/**
* Emit the signal, notifying each connected listener.
*
* @method emit
*/
public emit(arg1:T)
{
if(this.dispatching())
{
this.defer(() => this.emitImpl(arg1));
}
else
{
this.emitImpl(arg1);
}
}
private emitImpl(arg1:T)
{
var head = this.willEmit();
var p = head;
while(p != null)
{
p._listener(arg1);
if(!p.stayInList)
{
p.dispose();
}
p = p._next;
}
this.didEmit(head);
}
}
export = Signal1;
|
package cassandra
// read statements
var selectIntStmt = `
SELECT metric_timestamp, value FROM metrics_int WHERE metric_name = ? AND tags = ?
`
var <API key> = `
SELECT metric_timestamp, value FROM metrics_int WHERE metric_name = ? AND tags = ? AND metric_timestamp >= ? AND metric_timestamp <= ?
`
// write statements
var insertIntStmt = `
INSERT INTO metrics_int (metric_name, metric_timestamp, tags, value) VALUES (?, ?, ?, ?)
`
var insertDoubleStmt = `
INSERT INTO metrics_double (metric_name, metric_timestamp, tags, value) VALUES (?, ?, ?, ?)
`
|
## mjml-spacer
Displays a blank space.
xml
<mjml>
<mj-body>
<mj-container>
<mj-section>
<mj-column>
<mj-spacer height="50px" />
<mj-column>
</mj-section>
</mj-container>
</mj-body>
</mjml>
<p align="center">
<a href="https://mjml.io/try-it-live/components/social">
<img width="100px" src="http://imgh.us/TRYITLIVE.svg" alt="sexy" />
</a>
</p>
attribute | unit | description | default value
height | px | spacer height | 20px
|
using Xunit;
using Shouldly;
using System.Linq;
using System;
using System.Text.RegularExpressions;
namespace AutoMapper.UnitTests
{
public class <API key> : AutoMapperSpecBase
{
public class Source
{
public int Total { get; set; }
}
public class Destination
{
public int Total { get; set; }
}
protected override MapperConfiguration Configuration => new MapperConfiguration(c =>
{
c.CreateMap<Destination, Source>()
.ForMember(dest => dest.Total, opt => opt.MapFrom(x => x.Total))
.ReverseMap()
.ForMember(dest => dest.Total, opt => opt.ResolveUsing<CustomResolver>());
});
public class CustomResolver : IValueResolver<Source, Destination, int>
{
public int Resolve(Source source, Destination destination, int member, ResolutionContext context)
{
return Int32.MaxValue;
}
}
[Fact]
public void <API key>()
{
Mapper.Map<Destination>(new Source()).Total.ShouldBe(int.MaxValue);
}
}
public class MethodsWithReverse : AutoMapperSpecBase
{
class Order
{
public OrderItem[] OrderItems { get; set; }
}
class OrderItem
{
public string Product { get; set; }
}
class OrderDto
{
public int OrderItemsCount { get; set; }
}
protected override MapperConfiguration Configuration => new MapperConfiguration(c=>
{
c.CreateMap<Order, OrderDto>().ReverseMap();
});
[Fact]
public void ShouldMapOk()
{
Mapper.Map<Order>(new OrderDto());
}
}
public class ReverseForPath : AutoMapperSpecBase
{
public class Order
{
public CustomerHolder CustomerHolder { get; set; }
}
public class CustomerHolder
{
public Customer Customer { get; set; }
}
public class Customer
{
public string Name { get; set; }
public decimal Total { get; set; }
}
public class OrderDto
{
public string CustomerName { get; set; }
public decimal Total { get; set; }
}
protected override MapperConfiguration Configuration => new MapperConfiguration(cfg =>
{
cfg.CreateMap<OrderDto, Order>()
.ForPath(o => o.CustomerHolder.Customer.Name, o => o.MapFrom(s => s.CustomerName))
.ForPath(o => o.CustomerHolder.Customer.Total, o => o.MapFrom(s => s.Total))
.ReverseMap();
});
[Fact]
public void Should_flatten()
{
var model = new Order {
CustomerHolder = new CustomerHolder {
Customer = new Customer { Name = "George Costanza", Total = 74.85m }
}
};
var dto = Mapper.Map<OrderDto>(model);
dto.CustomerName.ShouldBe("George Costanza");
dto.Total.ShouldBe(74.85m);
}
}
public class ReverseMapFrom : AutoMapperSpecBase
{
public class Order
{
public CustomerHolder CustomerHolder { get; set; }
}
public class CustomerHolder
{
public Customer Customer { get; set; }
}
public class Customer
{
public string Name { get; set; }
public decimal Total { get; set; }
}
public class OrderDto
{
public string CustomerName { get; set; }
public decimal Total { get; set; }
}
protected override MapperConfiguration Configuration => new MapperConfiguration(cfg =>
{
cfg.CreateMap<Order, OrderDto>()
.ForMember(d => d.CustomerName, o => o.MapFrom(s => s.CustomerHolder.Customer.Name))
.ForMember(d => d.Total, o => o.MapFrom(s => s.CustomerHolder.Customer.Total))
.ReverseMap();
});
[Fact]
public void Should_unflatten()
{
var dto = new OrderDto { CustomerName = "George Costanza", Total = 74.85m };
var model = Mapper.Map<Order>(dto);
model.CustomerHolder.Customer.Name.ShouldBe("George Costanza");
model.CustomerHolder.Customer.Total.ShouldBe(74.85m);
}
}
public class <API key> : AutoMapperSpecBase
{
public class Order
{
public CustomerHolder Customerholder { get; set; }
}
public class CustomerHolder
{
public Customer Customer { get; set; }
}
public class Customer
{
public string Name { get; set; }
public decimal Total { get; set; }
}
public class OrderDto
{
public string <API key> { get; set; }
public decimal <API key> { get; set; }
}
protected override MapperConfiguration Configuration => new MapperConfiguration(cfg =>
{
cfg.CreateMap<Order, OrderDto>()
.ReverseMap()
.ForMember(d=>d.Customerholder, o=>o.Ignore())
.ForPath(d=>d.Customerholder.Customer.Total, o=>o.MapFrom(s=>s.<API key>));
});
[Fact]
public void Should_unflatten()
{
var dto = new OrderDto { <API key> = "George Costanza", <API key> = 74.85m };
var model = Mapper.Map<Order>(dto);
model.Customerholder.Customer.Name.ShouldBeNull();
model.Customerholder.Customer.Total.ShouldBe(74.85m);
}
}
public class <API key> : AutoMapperSpecBase
{
public class Order
{
public CustomerHolder Customerholder { get; set; }
}
public class CustomerHolder
{
public Customer Customer { get; set; }
}
public class Customer
{
public string Name { get; set; }
public decimal Total { get; set; }
}
public class OrderDto
{
public string <API key> { get; set; }
public decimal <API key> { get; set; }
}
protected override MapperConfiguration Configuration => new MapperConfiguration(cfg =>
{
cfg.CreateMap<Order, OrderDto>()
.ReverseMap();
});
[Fact]
public void Should_unflatten()
{
var dto = new OrderDto { <API key> = "George Costanza", <API key> = 74.85m };
var model = Mapper.Map<Order>(dto);
model.Customerholder.Customer.Name.ShouldBe("George Costanza");
model.Customerholder.Customer.Total.ShouldBe(74.85m);
}
}
public class <API key> : AutoMapperSpecBase
{
Rotator_Ad_Run _destination;
DateTime _startDate = DateTime.Now, _endDate = DateTime.Now.AddHours(2);
public class Rotator_Ad_Run
{
public DateTime Start_Date { get; set; }
public DateTime End_Date { get; set; }
public bool Enabled { get; set; }
}
public class <API key>
{
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public bool Enabled { get; set; }
}
public class <API key> : INamingConvention
{
public Regex SplittingExpression { get; } = new Regex(@"\p{Lu}[a-z0-9]*(?=_?)");
public string SeparatorCharacter => "_";
public string ReplaceValue(Match match)
{
return match.Value;
}
}
protected override MapperConfiguration Configuration { get; } = new MapperConfiguration(cfg =>
{
cfg.CreateProfile("MyMapperProfile", prf =>
{
prf.<API key> = new <API key>();
prf.CreateMap<Rotator_Ad_Run, <API key>>();
});
cfg.CreateProfile("MyMapperProfile2", prf =>
{
prf.<API key> = new <API key>();
prf.CreateMap<<API key>, Rotator_Ad_Run>();
});
});
protected override void Because_of()
{
_destination = Mapper.Map<<API key>, Rotator_Ad_Run>(new <API key> { Enabled = true, EndDate = _endDate, StartDate = _startDate });
}
[Fact]
public void <API key>()
{
_destination.Enabled.ShouldBeTrue();
_destination.End_Date.ShouldBe(_endDate);
_destination.Start_Date.ShouldBe(_startDate);
}
}
public class <API key> : AutoMapperSpecBase
{
private Source _source;
public class Source
{
public int Value { get; set; }
}
public class Destination
{
public int Value { get; set; }
}
protected override MapperConfiguration Configuration { get; } = new MapperConfiguration(cfg =>
{
cfg.CreateMap<Source, Destination>()
.ReverseMap();
});
protected override void Because_of()
{
var dest = new Destination
{
Value = 10
};
_source = Mapper.Map<Destination, Source>(dest);
}
[Fact]
public void <API key>()
{
_source.Value.ShouldBe(10);
}
}
public class <API key> : <API key>
{
public class Source
{
public int Value { get; set; }
}
public class Destination
{
public int Value { get; set; }
public int Value2 { get; set; }
}
protected override MapperConfiguration Configuration { get; } = new MapperConfiguration(cfg =>
{
cfg.CreateMap<Source, Destination>(MemberList.Source);
});
[Fact]
public void <API key>()
{
var typeMap = ConfigProvider.FindTypeMapFor<Source, Destination>();
typeMap.GetPropertyMaps().Count().ShouldBe(1);
}
[Fact]
public void <API key>()
{
typeof(<API key>).ShouldNotBeThrownBy(Configuration.<API key>);
}
}
public class <API key> : <API key>
{
public class Source
{
public int Value { get; set; }
public int Value2 { get; set; }
}
public class Destination
{
public int Value { get; set; }
}
protected override MapperConfiguration Configuration { get; } = new MapperConfiguration(cfg =>
{
cfg.CreateMap<Source, Destination>(MemberList.Source);
});
[Fact]
public void <API key>()
{
typeof(<API key>).ShouldBeThrownBy(Configuration.<API key>);
}
}
public class When_validating_only_against_source_members_and_unmatching_source_members_are_manually_mapped : <API key>
{
public class Source
{
public int Value { get; set; }
public int Value2 { get; set; }
}
public class Destination
{
public int Value { get; set; }
public int Value3 { get; set; }
}
protected override MapperConfiguration Configuration { get; } = new MapperConfiguration(cfg =>
{
cfg.CreateMap<Source, Destination>(MemberList.Source)
.ForMember(dest => dest.Value3, opt => opt.MapFrom(src => src.Value2));
});
[Fact]
public void <API key>()
{
typeof(<API key>).ShouldNotBeThrownBy(Configuration.<API key>);
}
}
public class When_validating_only_against_source_members_and_unmatching_source_members_are_manually_mapped_with_resolvers : <API key>
{
public class Source
{
public int Value { get; set; }
public int Value2 { get; set; }
}
public class Destination
{
public int Value { get; set; }
public int Value3 { get; set; }
}
protected override MapperConfiguration Configuration { get; } = new MapperConfiguration(cfg =>
{
cfg.CreateMap<Source, Destination>(MemberList.Source)
.ForMember(dest => dest.Value3, opt => opt.ResolveUsing(src => src.Value2))
.ForSourceMember(src => src.Value2, opt => opt.Ignore());
});
[Fact]
public void <API key>()
{
typeof(<API key>).ShouldNotBeThrownBy(Configuration.<API key>);
}
}
public class <API key> : <API key>
{
public class Source
{
public int Value { get; set; }
}
public class Dest
{
public int Value { get; set; }
public int Ignored { get; set; }
}
protected override MapperConfiguration Configuration { get; } = new MapperConfiguration(cfg =>
{
cfg.CreateMap<Source, Dest>()
.ForMember(d => d.Ignored, opt => opt.Ignore())
.ReverseMap();
});
[Fact]
public void Should_show_valid()
{
typeof(<API key>).ShouldNotBeThrownBy(() => Configuration.<API key>());
}
}
public class <API key> : SpecBase
{
public class Foo
{
public string Bar { get; set; }
public string Baz { get; set; }
}
public class Foo2
{
public string Bar { get; set; }
public string Boo { get; set; }
}
[Fact]
public void <API key>()
{
//Arrange
var config = new MapperConfiguration(cfg =>
{
cfg.CreateMap<Foo, Foo2>();
});
var typeMap = config.GetAllTypeMaps()
.First(x => x.SourceType == typeof(Foo) && x.DestinationType == typeof(Foo2));
//Act
var <API key> = typeMap.<API key>();
//Assert
<API key>[0].ShouldBe("Boo");
}
[Fact]
public void <API key>()
{
//Arrange
var config = new MapperConfiguration(cfg =>
{
cfg.CreateMap<Foo, Foo2>().ReverseMap();
});
var typeMap = config.GetAllTypeMaps()
.First(x => x.SourceType == typeof(Foo2) && x.DestinationType == typeof(Foo));
//Act
var <API key> = typeMap.<API key>();
//Assert
<API key>[0].ShouldBe("Boo");
}
}
public class <API key> : AutoMapperSpecBase
{
private Source<int> _source;
public class Source<T>
{
public T Value { get; set; }
}
public class Destination<T>
{
public T Value { get; set; }
}
protected override MapperConfiguration Configuration { get; } = new MapperConfiguration(cfg =>
{
cfg.CreateMap(typeof(Source<>), typeof(Destination<>))
.ReverseMap();
});
protected override void Because_of()
{
var dest = new Destination<int>
{
Value = 10
};
_source = Mapper.Map<Destination<int>, Source<int>>(dest);
}
[Fact]
public void <API key>()
{
_source.Value.ShouldBe(10);
}
}
}
|
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_14) on Sun Nov 04 20:19:10 CET 2012 -->
<TITLE>
Uses of Class org.lwjgl.opencl.CL10GL (LWJGL API)
</TITLE>
<META NAME="date" CONTENT="2012-11-04">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.lwjgl.opencl.CL10GL (LWJGL API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<A NAME="navbar_top"></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../org/lwjgl/opencl/CL10GL.html" title="class in org.lwjgl.opencl"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/lwjgl/opencl/\class-useCL10GL.html" target="_top"><B>FRAMES</B></A>
<A HREF="CL10GL.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<HR>
<CENTER>
<H2>
<B>Uses of Class<br>org.lwjgl.opencl.CL10GL</B></H2>
</CENTER>
No usage of org.lwjgl.opencl.CL10GL
<P>
<HR>
<A NAME="navbar_bottom"></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="<API key>"></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../org/lwjgl/opencl/CL10GL.html" title="class in org.lwjgl.opencl"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/lwjgl/opencl/\class-useCL10GL.html" target="_top"><B>FRAMES</B></A>
<A HREF="CL10GL.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<HR>
<i>Copyright &
</BODY>
</HTML>
|
import * as fs from "fs";
import * as path from "path";
import * as commander from "commander";
import { ConsoleLogger } from "@akashic/akashic-cli-commons";
import { promiseExportHTML } from "./exportHTML";
import { <API key> } from "./exportAtsumaru";
interface <API key> {
cwd?: string;
source?: string;
force?: boolean;
quiet?: boolean;
output?: string;
exclude?: string[];
strip?: boolean;
hashFilename?: number | boolean;
minify?: boolean;
bundle?: boolean;
magnify?: boolean;
injects?: string[];
atsumaru?: boolean;
}
function cli(param: <API key>): void {
const logger = new ConsoleLogger({ quiet: param.quiet });
const exportParam = {
cwd: !param.cwd ? process.cwd() : path.resolve(param.cwd),
source: param.source,
force: param.force,
quiet: param.quiet,
output: param.output,
exclude: param.exclude,
logger: logger,
strip: (param.strip != null) ? param.strip : true,
hashLength: !param.hashFilename && !param.atsumaru ? 0 :
(param.hashFilename === true || param.hashFilename === undefined) ? 20 : Number(param.hashFilename),
minify: param.minify,
bundle: param.bundle || param.atsumaru,
magnify: param.magnify || param.atsumaru,
injects: param.injects,
unbundleText: !param.bundle || param.atsumaru,
lint: !param.atsumaru
};
Promise.resolve()
.then(() => {
if (param.output === undefined) {
throw new Error("--output option must be specified.");
}
if (param.atsumaru) {
return <API key>(exportParam);
} else {
return promiseExportHTML(exportParam);
}
})
.then(() => logger.info("Done!"))
.catch((err: any) => {
logger.error(err);
process.exit(1);
});
}
const ver = JSON.parse(fs.readFileSync(path.resolve(__dirname, "..", "package.json"), "utf8")).version;
commander
.version(ver);
commander
.description("convert your Akashic game runnable standalone.")
.option("-C, --cwd <dir>", "The directory to export from")
.option("-s, --source <dir>", "Source directory to export from cwd/current directory")
.option("-f, --force", "Overwrites existing files")
.option("-q, --quiet", "Suppress output")
.option("-o, --output <fileName>", "Name of output file or directory")
.option("-S, --no-strip", "output fileset without strip")
.option("-H, --hash-filename [length]", "Rename asset files with their hash values")
.option("-M, --minify", "minify JavaScript files")
.option("-b, --bundle", "bundle assets and scripts in index.html (to reduce the number of files)")
.option("-m, --magnify", "fit game area to outer element size")
.option("-i, --inject [fileName]", "specify injected file content into index.html", inject, [])
.option("-a, --atsumaru", "generate files that can be posted to RPG-atsumaru");
export function run(argv: string[]): void {
// Commander --strip --no-strip Commander argv
const argvCopy = dropDeprecatedArgs(argv);
commander.parse(argvCopy);
cli({
cwd: commander["cwd"],
force: commander["force"],
quiet: commander["quiet"],
output: commander["output"],
source: commander["source"],
strip: commander["strip"],
minify: commander["minify"],
bundle: commander["bundle"],
magnify: commander["magnify"],
hashFilename: commander["hashFilename"],
injects: commander["inject"],
atsumaru: commander["atsumaru"]
});
}
function dropDeprecatedArgs(argv: string[]): string[] {
const filteredArgv = argv.filter(v => !/^(-s|--strip)$/.test(v));
if (argv.length !== filteredArgv.length) {
console.log("WARN: --strip option is deprecated. strip is applied by default.");
console.log("WARN: If you do not need to apply it, use --no-strip option.");
}
return filteredArgv;
}
function inject(val: string, injects: string[]): string[] {
injects.push(val);
return injects;
}
|
import * as types from 'constants/ActionTypes'
import jsCookie from 'js-cookie'
import history from 'history'
export const setUser = (user) => (dispatch) => {
dispatch({
type: types.SET_USER,
payload: { ...user }
})
}
|
(function( window, angular, undefined ){
"use strict";
/**
* @ngdoc module
* @name material.components.bottomSheet
* @description
* BottomSheet
*/
<API key>['$inject'] = ["$mdBottomSheet"];
<API key>['$inject'] = ["$$<API key>"];
angular
.module('material.components.bottomSheet', [
'material.core',
'material.components.backdrop'
])
.directive('mdBottomSheet', <API key>)
.provider('$mdBottomSheet', <API key>);
/* ngInject */
function <API key>($mdBottomSheet) {
return {
restrict: 'E',
link : function postLink(scope, element) {
element.addClass('_md'); // private md component indicator for styling
// When navigation force destroys an interimElement, then
// listen and $destroy() that interim instance...
scope.$on('$destroy', function() {
$mdBottomSheet.destroy();
});
}
};
}
/**
* @ngdoc service
* @name $mdBottomSheet
* @module material.components.bottomSheet
*
* @description
* `$mdBottomSheet` opens a bottom sheet over the app and provides a simple promise API.
*
* ## Restrictions
*
* - The bottom sheet's template must have an outer `<md-bottom-sheet>` element.
* - Add the `md-grid` class to the bottom sheet for a grid layout.
* - Add the `md-list` class to the bottom sheet for a list layout.
*
* @usage
* <hljs lang="html">
* <div ng-controller="MyController">
* <md-button ng-click="openBottomSheet()">
* Open a Bottom Sheet!
* </md-button>
* </div>
* </hljs>
* <hljs lang="js">
* var app = angular.module('app', ['ngMaterial']);
* app.controller('MyController', function($scope, $mdBottomSheet) {
* $scope.openBottomSheet = function() {
* $mdBottomSheet.show({
* template: '<md-bottom-sheet>Hello!</md-bottom-sheet>'
* });
* };
* });
* </hljs>
*/
/**
* @ngdoc method
* @name $mdBottomSheet#show
*
* @description
* Show a bottom sheet with the specified options.
*
* @param {object} options An options object, with the following properties:
*
* - `templateUrl` - `{string=}`: The url of an html template file that will
* be used as the content of the bottom sheet. Restrictions: the template must
* have an outer `md-bottom-sheet` element.
* - `template` - `{string=}`: Same as templateUrl, except this is an actual
* template string.
* - `scope` - `{object=}`: the scope to link the template / controller to. If none is specified, it will create a new child scope.
* This scope will be destroyed when the bottom sheet is removed unless `preserveScope` is set to true.
* - `preserveScope` - `{boolean=}`: whether to preserve the scope when the element is removed. Default is false
* - `controller` - `{string=}`: The controller to associate with this bottom sheet.
* - `locals` - `{string=}`: An object containing key/value pairs. The keys will
* be used as names of values to inject into the controller. For example,
* `locals: {three: 3}` would inject `three` into the controller with the value
* of 3.
* - `clickOutsideToClose` - `{boolean=}`: Whether the user can click outside the bottom sheet to
* close it. Default true.
* - `bindToController` - `{boolean=}`: When set to true, the locals will be bound to the controller instance.
* - `disableBackdrop` - `{boolean=}`: When set to true, the bottomsheet will not show a backdrop.
* - `escapeToClose` - `{boolean=}`: Whether the user can press escape to close the bottom sheet.
* Default true.
* - `resolve` - `{object=}`: Similar to locals, except it takes promises as values
* and the bottom sheet will not open until the promises resolve.
* - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope.
* - `parent` - `{element=}`: The element to append the bottom sheet to. The `parent` may be a `function`, `string`,
* `object`, or null. Defaults to appending to the body of the root element (or the root element) of the application.
* e.g. angular.element(document.getElementById('content')) or "#content"
* - `disableParentScroll` - `{boolean=}`: Whether to disable scrolling while the bottom sheet is open.
* Default true.
*
* @returns {promise} A promise that can be resolved with `$mdBottomSheet.hide()` or
* rejected with `$mdBottomSheet.cancel()`.
*/
/**
* @ngdoc method
* @name $mdBottomSheet#hide
*
* @description
* Hide the existing bottom sheet and resolve the promise returned from
* `$mdBottomSheet.show()`. This call will close the most recently opened/current bottomsheet (if any).
*
* @param {*=} response An argument for the resolved promise.
*
*/
/**
* @ngdoc method
* @name $mdBottomSheet#cancel
*
* @description
* Hide the existing bottom sheet and reject the promise returned from
* `$mdBottomSheet.show()`.
*
* @param {*=} response An argument for the rejected promise.
*
*/
function <API key>($$<API key>) {
// how fast we need to flick down to close the sheet, pixels/ms
bottomSheetDefaults['$inject'] = ["$animate", "$mdConstant", "$mdUtil", "$mdTheming", "$mdBottomSheet", "$rootElement", "$mdGesture", "$log"];
var CLOSING_VELOCITY = 0.5;
var PADDING = 80; // same as css
return $$<API key>('$mdBottomSheet')
.setDefaults({
methods: ['disableParentScroll', 'escapeToClose', 'clickOutsideToClose'],
options: bottomSheetDefaults
});
/* ngInject */
function bottomSheetDefaults($animate, $mdConstant, $mdUtil, $mdTheming, $mdBottomSheet, $rootElement,
$mdGesture, $log) {
var backdrop;
return {
themable: true,
onShow: onShow,
onRemove: onRemove,
disableBackdrop: false,
escapeToClose: true,
clickOutsideToClose: true,
disableParentScroll: true
};
function onShow(scope, element, options, controller) {
element = $mdUtil.<API key>(element, 'md-bottom-sheet');
// prevent tab focus or click focus on the bottom-sheet container
element.attr('tabindex',"-1");
// Once the md-bottom-sheet has `ng-cloak` applied on his template the opening animation will not work properly.
// This is a very common problem, so we have to notify the developer about this.
if (element.hasClass('ng-cloak')) {
var message = '$mdBottomSheet: using `<md-bottom-sheet ng-cloak >` will affect the bottom-sheet opening animations.';
$log.warn( message, element[0] );
}
if (!options.disableBackdrop) {
// Add a backdrop that will close on click
backdrop = $mdUtil.createBackdrop(scope, "<API key> md-opaque");
// Prevent mouse focus on backdrop; ONLY programatic focus allowed.
// This allows clicks on backdrop to propogate to the $rootElement and
// ESC key events to be detected properly.
backdrop[0].tabIndex = -1;
if (options.clickOutsideToClose) {
backdrop.on('click', function() {
$mdUtil.nextTick($mdBottomSheet.cancel,true);
});
}
$mdTheming.inherit(backdrop, options.parent);
$animate.enter(backdrop, options.parent, null);
}
var bottomSheet = new BottomSheet(element, options.parent);
options.bottomSheet = bottomSheet;
$mdTheming.inherit(bottomSheet.element, options.parent);
if (options.disableParentScroll) {
options.restoreScroll = $mdUtil.disableScrollAround(bottomSheet.element, options.parent);
}
return $animate.enter(bottomSheet.element, options.parent, backdrop)
.then(function() {
var focusable = $mdUtil.findFocusTarget(element) || angular.element(
element[0].querySelector('button') ||
element[0].querySelector('a') ||
element[0].querySelector($mdUtil.prefixer('ng-click', true))
) || backdrop;
if (options.escapeToClose) {
options.<API key> = function(e) {
if (e.keyCode === $mdConstant.KEY_CODE.ESCAPE) {
$mdUtil.nextTick($mdBottomSheet.cancel,true);
}
};
$rootElement.on('keyup', options.<API key>);
focusable && focusable.focus();
}
});
}
function onRemove(scope, element, options) {
var bottomSheet = options.bottomSheet;
if (!options.disableBackdrop) $animate.leave(backdrop);
return $animate.leave(bottomSheet.element).then(function() {
if (options.disableParentScroll) {
options.restoreScroll();
delete options.restoreScroll;
}
bottomSheet.cleanup();
});
}
/**
* BottomSheet class to apply bottom-sheet behavior to an element
*/
function BottomSheet(element, parent) {
var deregister = $mdGesture.register(parent, 'drag', { horizontal: false });
parent.on('$md.dragstart', onDragStart)
.on('$md.drag', onDrag)
.on('$md.dragend', onDragEnd);
return {
element: element,
cleanup: function cleanup() {
deregister();
parent.off('$md.dragstart', onDragStart);
parent.off('$md.drag', onDrag);
parent.off('$md.dragend', onDragEnd);
}
};
function onDragStart(ev) {
// Disable transitions on transform so that it feels fast
element.css($mdConstant.CSS.TRANSITION_DURATION, '0ms');
}
function onDrag(ev) {
var transform = ev.pointer.distanceY;
if (transform < 5) {
// Slow down drag when trying to drag up, and stop after PADDING
transform = Math.max(-PADDING, transform / 2);
}
element.css($mdConstant.CSS.TRANSFORM, 'translate3d(0,' + (PADDING + transform) + 'px,0)');
}
function onDragEnd(ev) {
if (ev.pointer.distanceY > 0 &&
(ev.pointer.distanceY > 20 || Math.abs(ev.pointer.velocityY) > CLOSING_VELOCITY)) {
var distanceRemaining = element.prop('offsetHeight') - ev.pointer.distanceY;
var transitionDuration = Math.min(distanceRemaining / ev.pointer.velocityY * 0.75, 500);
element.css($mdConstant.CSS.TRANSITION_DURATION, transitionDuration + 'ms');
$mdUtil.nextTick($mdBottomSheet.cancel,true);
} else {
element.css($mdConstant.CSS.TRANSITION_DURATION, '');
element.css($mdConstant.CSS.TRANSFORM, '');
}
}
}
}
}
})(window, window.angular);
|
the_count = [1, 2, 3, 4, 5]
fruits = ['apple', 'oranges', 'pears', 'apricots',]
change = [1, 'pennies', 2, 'dimes', 3, 'quarters',]
#this first kind of for-loop goes through a list
for number in the_count:
print("This is count %d" % number)
# same as above
for fruit in fruits:
print("A fruit of type: %s" % fruit)
# also we can go through mixed lists too
# notice we have to use %r since we don't know what's in it
for i in change:
print("I got %r " % i)
# we can alse build lists, first start with an empty one
elements = []
# then use the range function to do 0 to 5 counts
for i in range(0,6):
print("Adding %d to the list." % i)
# append is a function that lists understand
elements.append(i)
# now we can print them out too
for i in elements:
print("Element was: %d" % i)
|
# <API key>: true
require 'test_helper'
class ScraperTest < Minitest::Test
def test_parse
template = '
<html>
<body>
<div id="people-list">
<div class="person" hs-repeat="people">
<a href="{{ link }}">{{ surname }}</a>
<p>{{ name }}</p>
</div>
</div>
</body>
</html>
'
html = '
<html>
<body>
<div id="people-list">
<div class="person">
<a href="/clint-eastwood">Eastwood</a>
<p>Clint</p>
</div>
<div class="person">
<a href="/james-woods">Woods</a>
<p>James</p>
</div>
<div class="person">
<a href="/klaus-kinski">Kinski</a>
<p>Klaus</p>
</div>
</div>
</body>
</html>
'
result = HtmlScraper::Scraper.new(template: template).parse(html)
assert_equal 3, result[:people].size, 'Iterative patterns should have been parsed'
assert_equal 'Eastwood', result[:people].first[:surname], 'Array element details should have been parsed'
assert_equal 'Clint', result[:people].first[:name], 'Array element details should have been parsed'
assert_equal '/clint-eastwood', result[:people].first[:link], 'Node attributes should have been parsed'
end
def test_parse_regexp
template = '<div id="people-list">
<div class="person">
<h5>{{ surname }}</h5>
<p>{{ name }}</p>
<span>{{ birthday/\d+\.\d+\.\d+/ }}</span>
</div>
</div>
'
html = '
<html>
<body>
<div id="people-list">
<div class="person">
<h5>Eastwood</h5>
<p>Clint</p>
<span>Born on 31.05.1930</span>
</div>
</body>
</html>
'
json = HtmlScraper::Scraper.new(template: template).parse(html)
assert_equal '31.05.1930', json[:birthday], 'Attribute regexp should be parsed'
end
def test_text_parsing
template = '
<table id="list">
<tr hs-repeat="events">
<td class="date">{{ date=begin m=$.match(/([0-9]{2}\.[0-9]{2})([0-9]{4}).*(..:..)/) ; m.present? ? "#{m[1]}.#{m[2]} #{m[3]}" : "" end }}</td>
<td class="details">
<span class="name">{{ title }}</span>
<span class="description">{{ description }}</span>
</td>
</tr>
</table>
'
html = '
<table id="list" cellpadding="0" cellspacing="0">
<tbody>
<tr class="odd">
<td class="date"><span class="day-month">16.06</span><span class="year">2016</span><span class="dayname">Thu</span> <samp class="time">21:00</samp></td>
<td class="details">
<span class="name">20th Anniversary</span>
<span class="description">Party with free food and drinks</span>
</td>
</tr>
<tr class="even">
<td class="date"><span class="day-month">17.06</span><span class="year">2016</span><span class="dayname">Fri</span> <samp class="time">20:00</samp></td>
<td class="details">
<span class="name">Beer tasting</span>
<span class="description">The best craft beers</span>
</td>
</tr>
<tr class="odd">
<td class="date"><span class="day-month">18.06</span><span class="year">2016</span><span class="dayname">Sat</span> <samp class="time">19:00</samp></td>
<td class="details">
<span class="name">Weekly quiz</span>
<span class="description">Pub quiz about everything</span>
</td>
</tr>
</tbody>
</table>
'
result = HtmlScraper::Scraper.new(template: template).parse(html)
assert_equal 3, result[:events].size
event = result[:events].first
assert_equal '20th Anniversary', event[:title], 'Text should be stripped and in one line'
assert_equal 'Party with free food and drinks', event[:description], 'Text should be stripped and in one line'
assert_equal '16.06.2016 21:00', event[:date], 'Text assgination expressions should be evaluated'
end
end
|
//Problem 12. Parse URL
//Write a program that parses an URL address given in the format:
//[protocol]://[server]/[resource] and extracts from it the [protocol], [server] and [resource] elements.
using System;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace ParseURL
{
class ParsingURL
{
static void Main()
{
//input
string input = Console.ReadLine();
string protocolFormat = @"^\w*[TCPUDHOFIMAGRES]{3,5}://"; // letters to the most common protocols from wikipedia
//output
var protocol = string.Empty;
string server = string.Empty;
string resource = string.Empty;
Match protocolMatch = Regex.Match(input, protocolFormat, RegexOptions.IgnoreCase);
if (protocolMatch.Success)
{
protocol = input.Substring(protocolMatch.Index,protocolMatch.Length - 3).ToString();
input = input.Remove(protocolMatch.Index, protocolMatch.Length);
}
else
{
Console.WriteLine("Incorrect address");
System.Environment.Exit(0);
}
int breakIndex = input.IndexOf('/', 1);
server = input.Substring(0, breakIndex);
resource = input.Remove(0, breakIndex);
Console.Write("[protocol] = {0}\n[server] = {1}\n[resource] = {2}", protocol, server, resource);
Console.WriteLine();
}
}
}
|
<?php
$_LANG['payment'] = '';
$_LANG['payment_name'] = '';
$_LANG['version'] = '';
$_LANG['payment_desc'] = '';
$_LANG['short_pay_fee'] = '';
$_LANG['payment_author'] = '';
$_LANG['payment_is_cod'] = '';
$_LANG['payment_is_online'] = '';
$_LANG['name_is_null'] = '';
$_LANG['name_exists'] = '';
$_LANG['pay_fee'] = '';
$_LANG['back_list'] = '';
$_LANG['install_ok'] = '';
$_LANG['edit_ok'] = '';
$_LANG['uninstall_ok'] = '';
$_LANG['invalid_pay_fee'] = '';
$_LANG['decide_by_ship'] = '';
$_LANG['edit_after_install'] = '';
$_LANG['<API key>'] = '';
$_LANG['js_languages']['lang_removeconfirm'] = '';
$_LANG['ctenpay'] = '';
$_LANG['ctenpay_url'] = 'http://union.tenpay.com/mch/mch_register_b2c.shtml?sp_suggestuser=542554970';
$_LANG['ctenpayc2c_url'] = 'https:
$_LANG['tenpay'] = '';
$_LANG['tenpayc2c'] = '';
$_LANG['detail_account'] = '';
?>
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- algo.qdoc -->
<title><algo.h> - algo | Algo </title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li><algo.h> - algo</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title"><algo.h> - algo</h1>
<span class="subtitle"></span>
<!-- $$$<algo.h>-brief -->
<p>Includes all the Algo library <a href="#details">More...</a></p>
<!-- @@@<algo.h> -->
<ul>
</ul>
<!-- $$$<algo.h>-description -->
<div class="descr"> <a name="details"></a>
<p>This file includes all the content of this library.</p>
</div>
<!-- @@@<algo.h> -->
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var emblaCarousel_cjs=require("./embla-carousel.cjs.js"),react=require("react"),canUseDOM=!("undefined"==typeof window||!window.document);function useEmblaCarousel(e){var r=react.useState(),a=r[0],t=r[1],c=react.createRef();return react.useEffect(function(){canUseDOM&&null!=c&&c.current&&t(emblaCarousel_cjs(c.current,e))},[c,e]),react.useEffect(function(){return function(){return null==a?void 0:a.destroy()}},[]),[react.useCallback(function(e){var r=e.htmlTagName,a=void 0===r?"div":r,t=e.className,u=e.children;return react.createElement(a,{className:t,ref:c,style:{overflow:"hidden"}},u)},[]),a]}exports.useEmblaCarousel=useEmblaCarousel;
|
// CS_Cholinc.cpp
// 2007/10/16
#include "NDGLib_headers.h"
#include "CS_Type.h"
#define TRACE_CHOL 0
// Spa : buffer for storing sparse column info
class Spa
{
public:
Spa(int n) : length(0), m_status(0) { resize(n); }
bool ok() const { return (m_status != 0) ? false : true; }
bool resize(int n);
void set(CSd& A, int j);
void scale_add(int j, CSd& A, int k, double alpha);
public:
int length, m_status;
IVec indices, bitmap;
DVec values;
};
bool Spa::resize(int n)
{
length = 0;
indices.resize(n); bitmap.resize(n); values.resize(n);
if (indices.ok() && bitmap.ok() && values.ok())
{
bitmap.fill(-1); // initialize bitmap
m_status = 0; return true;
} else {
m_status = -1; return false;
}
}
void Spa::set(CSd& A, int j)
{
// initialize info for column L(:,j)
assert(j < A.n);
int next=0, i=0; double Aij=0.0;
for (int ip = A.P[j]; ip < A.P[j+1]; ++ip)
{
i = A.I[ip]; Aij = A.X[ip];
assert( i >= j ); // A must be lower triangular
indices[next] = i;
values [i ] = Aij;
bitmap [i ] = j;
next++;
}
length = next;
}
void Spa::scale_add(int j, CSd& A, int k, double alpha)
{
assert(k < A.n);
#if (TRACE_CHOL>=5)
umMSG(1, "spa::scale_add: updating column %d with column %d\n",j,k);
umMSG(1, "spa::scale_add: colptr %d to %d-1\n",A.P[k],A.P[k+1]);
#endif
int next=0, i=0, ip=0; double Aik=0.0;
for (int ip = A.P[k]; ip < A.P[k+1]; ++ip)
{
i = A.I[ip];
if (i < j) continue;
Aik = A.X[ip];
if ((this->bitmap)[i] < j)
{
#if (TRACE_CHOL>=3)
umMSG(1, "fill in (%d,%d)\n",i,j);
#endif
bitmap [ i ] = j;
values [ i ] = 0.0;
indices[length] = i;
length++;
}
values[i] += alpha*Aik;
#if (TRACE_CHOL>=5)
umMSG(1, "spa::scale_add: A(%d,%d) -= %lg * %lg ==> %lg\n", i,j, alpha, Aik, values[i]);
#endif
}
}
// RowList : linked lists for mapping row dependencies
class RowList
{
public:
RowList(int n);
~RowList() {}
int create(int n);
int add(int i, int j, double v);
bool ok() const { return (m_status != 0) ? false : true; }
int getfirst (int rl) { return rowlist [ rl ]; }
int getnext (int rl) { return next [ rl ]; }
int getcolind(int rl) { return colind[ rl ]; }
double getvalue (int rl) { return values[ rl ]; }
protected:
IVec rowlist, next, colind;
DVec values;
int rowlist_size, freelist, next_expansion;
int m_status;
};
RowList::RowList(int n)
: rowlist_size(0), freelist(0), next_expansion(0), m_status(0)
{
// allocate initial rowlist structure
m_status = create(n);
}
int RowList::create(int n)
{
freelist = 0;
rowlist_size = 1000; next_expansion = 1000;
rowlist.resize(n); // system is (n,n)
next.resize (rowlist_size); // rowlist_size will grow
colind.resize(rowlist_size);
values.resize(rowlist_size);
if (!rowlist.ok() || !next.ok() || !colind.ok() || !values.ok())
{ m_status = -1; return -1; }
rowlist.fill(-1); // -1 indicates: no list for row[i]
for (int i=0; i<rowlist_size-1; ++i) {
next[i] = i+1;
}
next[rowlist_size-1] = -1;
return 0;
}
int RowList::add(int i, int j, double v)
{
if ( -1 == freelist )
{
// expand storage for row info
int inc = next_expansion, ii=0;
next_expansion = (int) floor(1.25 * (double) next_expansion);
int nlen = rowlist_size+inc;
next.realloc(nlen); if (!next.ok()) { return -1; }
colind.realloc(nlen); if (!colind.ok()) { return -1; }
values.realloc(nlen); if (!values.ok()) { return -1; }
freelist = rowlist_size;
for (int ii=rowlist_size; ii<nlen-1; ++ii) {
next[ii] = ii+1; // initialize new entries
}
next[ nlen-1 ] = -1; // set end marker
rowlist_size = nlen; // update current size
}
int rl = freelist;
freelist = next[ freelist ];
next [ rl ] = rowlist[ i ];
colind[ rl ] = j;
values[ rl ] = v;
rowlist[ i ] = rl;
return 0;
}
// Incomplete Cholesky factorization
// This is a left-looking column-column code using
// row lists. Performs a drop-tolerance incomplete
// factorization with or without diagonal modification
// to maintain rowsums.
// FIXME: (2007/09/21) "modified" option not yet working
// based on <API key>
CSd& CS_Cholinc
(
CSd& A,
double droptol,
int modified
)
{
if (modified) {
umWARNING("CS_Cholinc", "\"modified\" option not yet working");
modified = 0;
}
CSd *pL = new CSd("L", OBJ_temp); CSd& L = *pL;
if (! (A.get_shape() & sp_SYMMETRIC)) { umWARNING("CS_Cholinc", "matrix must be symmetric"); return L; }
if (! (A.get_shape() & sp_LOWER )) { umWARNING("CS_Cholinc", "tril(A) must be represented\n"); return L; }
int n = A.num_cols();
umMSG(1, " ==> CS_Cholinc: n=%d droptol=%0.1e modified? %d\n", n, droptol, modified);
// Avoid frequent L.realloc() with large inital alloc
// TODO: tune initial allocation for incomplete factor:
int Lnnz = A.size();
if (droptol>=9.9e-3) { Lnnz = 1*Lnnz; } // L.nnz = 1.0*A.nnz
else if (droptol>=9.9e-4) { Lnnz = (3*Lnnz)/2; } // L.nnz = 1.5*A.nnz
else if (droptol>=9.9e-5) { Lnnz = (9*Lnnz)/5; } // L.nnz = 1.8*A.nnz
else if (droptol>=9.9e-6) { Lnnz = 2*Lnnz; } // L.nnz = 2.0*A.nnz
else { Lnnz = (5*Lnnz)/2; } // L.nnz = 2.5*A.nnz
int init_Lnnz = Lnnz;
L.resize(n,n,Lnnz, 1, 0);
if (!L.ok()) { return L; }
// factor is lower triangular
L.set_shape(sp_TRIANGULAR | sp_LOWER);
int next=0, Aj_nnz, i,j,k,ip; double Lkj,pivot,v,norm;
double flops = 0.0, Lj_nnz=0.0;
Spa spa(n); // allocate buffer for sparse columns
RowList rowlist(n); // allocate initial rowlist structure
DVec dropped(n); // allocate buffer for dropped values
if (!spa.ok() || !rowlist.ok() || !dropped.ok()) {
umWARNING("CS_Cholinc", "out of memory");
return L;
}
umLOG(1, " ==> CS_Cholinc: (n=%d) ", n);
for (j=0; j<n; ++j)
{
if (! (j%2000)) {umLOG(1, ".");}
spa.set(A,j); // load colum j into the accumulation buffer
for (int rl=rowlist.getfirst(j); rl != -1; rl=rowlist.getnext(rl)) {
k = rowlist.getcolind(rl);
Lkj = rowlist.getvalue(rl);
spa.scale_add(j,L,k, -(Lkj) ); // L_*j -= L_kj * L_*k
}
// insert the j'th column of L
if ( next+(spa.length) > Lnnz )
{
int inc = std::max((int)floor(1.25*(double)Lnnz), std::max(8192, spa.length));
Lnnz += inc;
if (!L.realloc(Lnnz)) {
return L;
}
}
L.P[j] = next;
norm = 0.0;
for (ip=0; ip < spa.length; ++ip) {
i = (spa.indices)[ip];
v = (spa.values)[i];
norm += v*v;
}
norm = sqrt(norm);
Aj_nnz = A.P[j+1] - A.P[j];
for (ip=0; ip < spa.length; ++ip) {
i = (spa.indices)[ip];
v = (spa.values )[i ];
//
// FIXME (a): test if L(i,j) is in pattern of A
//
//if (i==j || fabs(v) > droptol * norm)
if (i==j || fabs(v) > droptol * norm || ip < Aj_nnz)
{
// nothing
}
else {
dropped[i] -= v;
dropped[j] -= v;
}
}
if (modified) {
pivot = sqrt((spa.values)[j] - dropped[j]);
} else {
pivot = sqrt((spa.values)[j]);
}
#if (TRACE_CHOL>=2)
umMSG(1, "pivot=%.4e, sqrt=%.4e\n", (spa.values)[j], pivot);
#endif
if (0.0 == pivot) {
umLOG(1, " ==> CS_Cholinc: zero pivot in column %d\n",j);
umLOG(1, " ==> CS_Cholinc: Ajj in spa = %lg dropped[j] = %lg Aj_nnz=%d\n", (spa.values)[j],dropped[j],Aj_nnz);
} else if (fabs(pivot) < 1e-12) {
umLOG(1, " ==> CS_Cholinc: small pivot in column %d (%le)\n",j,pivot);
}
// 1st pass: find the diagonal entry for column j then
// store entry L(j,j) first in each compressed column:
for (ip=0; ip < spa.length; ++ip)
{
i = (spa.indices)[ip];
v = (spa.values )[i ];
if (i==j)
{
// must include diagonal entry in the droptol factor
if (modified) v = (spa.values)[j] - dropped[j];
v /= pivot;
L.I[next] = i;
L.X[next] = v;
next++;
if (rowlist.add(i,j,v) == -1) {
return L;
}
break;
}
}
// 2nd pass: build column L(:,j) applying droptol
// criteria to manage fill-in below the diagonal
for (ip=0; ip < spa.length; ++ip)
{
i = (spa.indices)[ip];
v = (spa.values )[i ];
if (i==j) continue; // diagonal was set above
//
// FIXME (b): test if L(i,j) is in pattern of A
//
//if (modified && i==j) v = (spa.values)[j] - dropped[j];
if (i==j || fabs(v) > droptol*norm || ip < Aj_nnz)
{
// include this entry in the droptol factor
v /= pivot;
L.I[next] = i;
L.X[next] = v;
next++;
if (rowlist.add(i,j,v) == -1) {
return L;
}
}
}
L.P[j+1] = next; // set column count
Lj_nnz = (double)(L.P[j+1]-L.P[j]); // accumulate flop count
flops += 2.0 * Lj_nnz * Lj_nnz;
}
L.P[n] = next; // finalize column counts
umLOG(1, "\n");
//umMSG(1, " ==> CS_Cholinc: nnz(L) = %d (init: %d), flops=%.1le\n", L.P[n],init_Lnnz,flops);
umMSG(1, " ==> CS_Cholinc: nnz(L) = %d (init: %d)\n", L.P[n],init_Lnnz);
// resize allocation
L.realloc(0);
return L;
}
|
# Windows Templates for Packer
Introduction
This repository contains Windows templates that can be used to create boxes for Vagrant using Packer ([Website](http:
This repo began by borrowing bits from the VeeWee Windows templates (https://github.com/jedi4ever/veewee/tree/master/templates). Modifications were made to work with Packer and the VMware Fusion / VirtualBox providers for Packer and Vagrant.
Packer Version
[Packer](https://github.com/mitchellh/packer/blob/master/CHANGELOG.md) `0.5.1` or greater is required.
Windows Versions
The following Windows versions are known to work (built with VMware Fusion 6.0.4 and VirtualBox 4.3.12):
* Windows 2012 R2
* Windows 2012 R2 Core
* Windows 2012
* Windows 2008 R2
* Windows 2008 R2 Core
* Windows 10
* Windows 8.1
* Windows 7
Windows Editions
All Windows Server versions are defaulted to the Server Standard edition. You can modify this by editing the Autounattend.xml file, changing the `ImageInstall`>`OSImage`>`InstallFrom`>`MetaData`>`Value` element (e.g. to Windows Server 2012 R2 SERVERDATACENTER).
Product Keys
The `Autounattend.xml` files are configured to work correctly with trial ISOs (which will be downloaded and cached for you the first time you perform a `packer build`). If you would like to use retail or volume license ISOs, you need to update the `UserData`>`ProductKey` element as follows:
* Uncomment the `<Key>...</Key>` element
* Insert your product key into the `Key` element
If you are going to configure your VM as a KMS client, you can use the product keys at http://technet.microsoft.com/en-us/library/jj612867.aspx. These are the default values used in the `Key` element.
Windows Updates
The scripts in this repo will install all Windows updates – by default – during Windows Setup. This is a _very_ time consuming process, depending on the age of the OS and the quantity of updates released since the last service pack. You might want to do yourself a favor during development and disable this functionality, by commenting out the `WITH WINDOWS UPDATES` section and uncommenting the `WITHOUT WINDOWS UPDATES` section in `Autounattend.xml`:
xml
<!-- WITHOUT WINDOWS UPDATES -->
<SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\openssh.ps1 -AutoStart</CommandLine>
<Description>Install OpenSSH</Description>
<Order>99</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<!-- END WITHOUT WINDOWS UPDATES -->
<!-- WITH WINDOWS UPDATES -->
<!
<SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c a:\microsoft-updates.bat</CommandLine>
<Order>98</Order>
<Description>Enable Microsoft Updates</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\openssh.ps1</CommandLine>
<Description>Install OpenSSH</Description>
<Order>99</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\win-updates.ps1</CommandLine>
<Description>Install Windows Updates</Description>
<Order>100</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<!-- END WITH WINDOWS UPDATES -->
Doing so will give you hours back in your day, which is a good thing.
OpenSSH / WinRM
Currently, [Packer](http://packer.io) has a single communicator that uses SSH. This means we need an SSH server installed on Windows - which is not optimal as we could use WinRM to communicate with the Windows VM. In the short term, everything works well with SSH; in the medium term, work is underway on a WinRM communicator for Packer.
If you have serious objections to OpenSSH being installed, you can always add another stage to your build pipeline:
* Build a base box using Packer
* Create a Vagrantfile, use the base box from Packer, connect to the VM via WinRM (using the [vagrant-windows](https://github.com/WinRb/vagrant-windows) plugin) and disable the 'sshd' service or uninstall OpenSSH completely
* Perform a Vagrant run and output a .box file
It's worth mentioning that many Chef cookbooks will not work properly through Cygwin's SSH environment on Windows. Specifically, packages that need access to <API key> configurations such as the `PATH` variable, will fail. This includes packages that use the Windows installer, `msiexec.exe`.
It's currently recommended that you add a second step to your pipeline and use Vagrant to install your packages through Chef.
Using .box Files With Vagrant
The generated box files include a Vagrantfile template that is suitable for
use with Vagrant 1.6.2+, which includes native support for Windows and uses
WinRM to communicate with the box.
Getting Started
Trial versions of Windows 2008 R2 / 2012 / 2012 R2 / 2016 are used by default. These images can be used for 180 days without activation.
Alternatively – if you have access to [MSDN](http:
1. Download the Windows Server 2008 R2 with Service Pack 1 (x64) - DVD (English) ISO (`<API key>.iso`)
2. Verify that `<API key>.iso` has an MD5 hash of `<API key>` (Microsoft lists a SHA1 hash of `<SHA1-like>`, which is equivalent)
3. Clone this repo to a local directory
4. Move `<API key>.iso` to the `iso` directory
5. Run:
packer build \
-var iso_url=./iso/<API key>.iso \
-var iso_checksum=<API key> windows_2008_r2.json
Variables
The Packer templates support the following variables:
| Name | Description |
|
| `iso_url` | Path or URL to ISO file |
| `iso_checksum` | Checksum (see also `iso_checksum_type`) of the ISO file |
| `iso_checksum_type` | The checksum algorithm to use (out of those supported by Packer) |
| `autounattend` | Path to the Autounattend.xml file |
Contributing
Pull requests welcomed.
Acknowledgements
[CloudBees](http:
<API key>:(id)arg1;
- (id)<API key>:(id)arg1;
- (void)encodeWithCoder:(id)arg1;
- (id)initWithCoder:(id)arg1;
@end
|
package org.cobraparser.html.renderer;
import java.awt.Color;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Insets;
import org.cobraparser.html.HtmlRendererContext;
import org.cobraparser.html.domimpl.NodeImpl;
import org.cobraparser.html.style.ListStyle;
import org.cobraparser.html.style.RenderState;
import org.cobraparser.ua.UserAgentContext;
import org.w3c.dom.html.HTMLElement;
class RListItem extends BaseRListElement {
private static final int BULLET_WIDTH = 5;
private static final int BULLET_HEIGHT = 5;
private static final int BULLET_RMARGIN = 5;
private static final int BULLET_SPACE_WIDTH = 36;
public RListItem(final NodeImpl modelNode, final int listNesting, final UserAgentContext pcontext, final HtmlRendererContext rcontext,
final FrameContext frameContext,
final RenderableContainer parentContainer, final RCollection parent) {
super(modelNode, listNesting, pcontext, rcontext, frameContext, parentContainer);
// this.defaultMarginInsets = new java.awt.Insets(0, BULLET_SPACE_WIDTH, 0,
}
@Override
public int <API key>(final int blockNesting) {
return blockNesting + 1;
}
@Override
public void <API key>() {
super.<API key>();
this.value = null;
}
private static final Integer UNSET = new Integer(Integer.MIN_VALUE);
private Integer value = null;
private Integer getValue() {
Integer value = this.value;
if (value == null) {
final HTMLElement node = (HTMLElement) this.modelNode;
final String valueText = node == null ? null : node.getAttribute("value");
if (valueText == null) {
value = UNSET;
} else {
try {
value = Integer.valueOf(valueText);
} catch (final <API key> nfe) {
value = UNSET;
}
}
this.value = value;
}
return value;
}
private int count;
@Override
public void doLayout(final int availWidth, final int availHeight, final boolean expandWidth, final boolean expandHeight,
final <API key> floatBoundsSource,
final int defaultOverflowX, final int defaultOverflowY, final boolean sizeOnly) {
super.doLayout(availWidth, availHeight, expandWidth, expandHeight, floatBoundsSource, defaultOverflowX, defaultOverflowY, sizeOnly);
// Note: Count must be calculated even if layout is valid.
final RenderState renderState = this.modelNode.getRenderState();
final Integer value = this.getValue();
if (value == UNSET) {
this.count = renderState.incrementCount(<API key>, this.listNesting);
} else {
final int newCount = value.intValue();
this.count = newCount;
renderState.resetCount(<API key>, this.listNesting, newCount + 1);
}
}
@Override
public void paintShifted(final Graphics g) {
super.paintShifted(g);
final RenderState rs = this.modelNode.getRenderState();
final Insets marginInsets = this.marginInsets;
final RBlockViewport layout = this.bodyLayout;
final ListStyle listStyle = this.listStyle;
int bulletType = listStyle == null ? ListStyle.TYPE_UNSET : listStyle.type;
if (bulletType != ListStyle.TYPE_NONE) {
if (bulletType == ListStyle.TYPE_UNSET) {
RCollection parent = this.<API key>();
if (!(parent instanceof RList)) {
parent = parent.<API key>();
}
if (parent instanceof RList) {
final ListStyle parentListStyle = ((RList) parent).listStyle;
bulletType = parentListStyle == null ? ListStyle.TYPE_DISC : parentListStyle.type;
} else {
bulletType = ListStyle.TYPE_DISC;
}
}
// Paint bullets
final Color prevColor = g.getColor();
g.setColor(rs.getColor());
try {
final Insets insets = this.getInsets(this.hasHScrollBar, this.hasVScrollBar);
final Insets paddingInsets = this.paddingInsets;
final int baselineOffset = layout.<API key>();
final int bulletRight = (marginInsets == null ? 0 : marginInsets.left) - BULLET_RMARGIN;
final int bulletBottom = insets.top + baselineOffset + (paddingInsets == null ? 0 : paddingInsets.top);
final int bulletTop = bulletBottom - BULLET_HEIGHT;
final int bulletLeft = bulletRight - BULLET_WIDTH;
final int bulletNumber = this.count;
String numberText = null;
switch (bulletType) {
case ListStyle.TYPE_DECIMAL:
numberText = bulletNumber + ".";
break;
case ListStyle.TYPE_LOWER_ALPHA:
numberText = ((char) ('a' + bulletNumber)) + ".";
break;
case ListStyle.TYPE_UPPER_ALPHA:
numberText = ((char) ('A' + bulletNumber)) + ".";
break;
case ListStyle.TYPE_DISC:
g.fillOval(bulletLeft, bulletTop, BULLET_WIDTH, BULLET_HEIGHT);
break;
case ListStyle.TYPE_CIRCLE:
g.drawOval(bulletLeft, bulletTop, BULLET_WIDTH, BULLET_HEIGHT);
break;
case ListStyle.TYPE_SQUARE:
g.fillRect(bulletLeft, bulletTop, BULLET_WIDTH, BULLET_HEIGHT);
break;
}
if (numberText != null) {
final FontMetrics fm = g.getFontMetrics();
final int numberLeft = bulletRight - fm.stringWidth(numberText);
final int numberY = bulletBottom;
g.drawString(numberText, numberLeft, numberY);
}
} finally {
g.setColor(prevColor);
}
}
}
}
|
<?php
/**
* Generate product link
* @param $id
* @param $innerHTML
* @return string
*/
function productToAnchor($id, $innerHTML){
$link = "/products/view/$id";
return "<a href='$link'>$innerHTML</a>";
}
/**
* Generate category anchor
* @param $id
* @param $innerHTML
* @return string
*/
function categoryToAnchor($id, $innerHTML){
$link = "/products/search?category_id=$id";
return "<a href='$link'>$innerHTML</a>";
}
|
var scp;
var cal_color;
$(document).ready(function(){
scp = angular.element('.main').scope();
$("#div_point").toggle();
//Set default values
cal_color = defaults.cal_color;
//Setup plugins
$("#cal_color").spectrum({
preferredFormat: "hex",
showInput: true,
color: cal_color,
change: setColor,
showButtons: false
});
//Show modal
$('.reveal-modal').css('max-height', $('html').height() - 110 + 'px');
$('#config_modal').reveal();
});
// Reset max-height after window resize
$(window).resize(function() {
$('.reveal-modal').css('max-height', $('html').height() - 110 + 'px');
});
function setColor(color){
//Color picker callback
if(this.id === "cal_color") cal_color = color;
}
function setup(){
//Setup environment before start
$('body').css("background-color", cal_color);
//Update model
$('#cal_color').trigger('input');
//Animate description and target
setTimeout(function() {
$("#div_text" ).fadeOut( "slow", function() {
$( "#div_point" ).fadeIn( "slow", startCalibration);
});
}, 2000);
}
function closeCallback(){
//Configuration modal close callback
$(".main").css("cursor","none");
setup();
}
function calibrationFinished(){
$(".main").css("cursor","pointer");
$("#text").html("Calibration completed");
$( "#div_point" ).fadeOut( "slow", function(){
$("#div_text" ).fadeIn( "slow", function() {
setTimeout(function() {
window.history.back();
}, 2500);
});
});
}
function startCalibration(){
scp.makeRequest();
}
|
use std::os;
use std::rand;
use std::rand::Rng;
use std::io::Timer;
use std::time::Duration;
use std::clone::Clone;
#[deriving(Clone)]
struct Field {
x: uint,
y: uint,
active: bool
}
fn next_round(field: &mut Vec<Vec<Field>>) {
let old_field = field.clone();
for row in field.iter_mut() {
for c in row.iter_mut() {
c.active = next_vitality(&old_field, c.x, c.y);
}
}
}
fn next_vitality(old_field: &Vec<Vec<Field>>, x: uint, y: uint) -> bool {
let height = old_field.len();
let width = old_field[0].len();
let mut allowed_x: Vec<uint> = vec![x];
let mut allowed_y: Vec<uint> = vec![y];
if x > 0 {
allowed_x.push(x-1);
}
if x < width-1 {
allowed_x.push(x+1);
}
if y > 0 {
allowed_y.push(y-1);
}
if y < height-1 {
allowed_y.push(y+1);
}
let mut total: int = 0;
for i in allowed_x.iter() {
for j in allowed_y.iter() {
if *i == x && *j == y {
continue;
}
if old_field[*j][*i].active == true {
total += 1;
}
}
}
match total {
2 => old_field[y][x].active,
3 => true,
_ => false
}
}
fn print_field(field: &Vec<Vec<Field>>) {
for row in field.iter() {
for c in row.iter() {
print!("{}", match c.active {false => " ", true => "
}
print!("\n");
}
print!("\n");
}
fn <API key>() -> Vec<Vec<Field>> {
let mut field: Vec<Vec<Field>> = Vec::new();
let args = os::args();
let mut width: uint = 50;
let mut height: uint = 50;
if args.len() > 1 {
match from_str::<uint>(args[1].as_slice()){
Some(x) => width = x,
None => fail!("Argument supplied is not a positive number")
};
} else {
print!("Use default value 50 as width")
}
if args.len() > 2 {
match from_str::<uint>(args[2].as_slice()){
Some(x) => height = x,
None => fail!("Argument supplied is not a positive number")
};
} else {
print!("Use default value 50 as height")
}
for y in range(0u, height) {
let mut row: Vec<Field> = Vec::new();
for x in range(0u, width) {
let mut v = false;
let mut rng = rand::task_rng();
if rng.gen::<u8>() < 32 {
v = true;
} else {
v = false;
}
row.push(Field{x:x, y:y, active:v});
}
field.push(row);
}
return field;
}
fn main() {
let mut field = <API key>();
let mut timer = Timer::new().unwrap();
loop {
timer.sleep(Duration::milliseconds(150));
print_field(&field);
next_round(&mut field);
}
}
|
package com.planmart;
import java.util.ArrayList;
import java.util.Date;
public class Order {
private Customer customer;
private String shippingRegion;
private PaymentMethod paymentMethod;
private Date placed;
private ArrayList<ProductOrder> items = new ArrayList<>();
private ArrayList<LineItem> lineItems = new ArrayList<>();
public Order(Customer customer, String shippingRegion, PaymentMethod paymentMethod, Date placed) {
this.customer = customer;
this.shippingRegion = shippingRegion;
this.paymentMethod = paymentMethod;
this.placed = placed;
}
/**
* Gets the customer who placed the order.
*/
public Customer getCustomer() {
return customer;
}
/**
* Sets the customer who placed the order.
*/
public void setCustomer(Customer customer) {
this.customer = customer;
}
/**
* Gets two-letter region where the order should be shipped to.
*/
public String getShippingRegion() {
return shippingRegion;
}
/**
* Sets two-letter region where the order should be shipped to.
*/
public void setShippingRegion(String shippingRegion) {
this.shippingRegion = shippingRegion;
}
/**
* Gets an enum describing the method of payment for the order.
*/
public PaymentMethod getPaymentMethod() {
return paymentMethod;
}
/**
* Sets an enum describing the method of payment for the order.
*/
public void setPaymentMethod(PaymentMethod paymentMethod) {
this.paymentMethod = paymentMethod;
}
/**
* Gets the date and time in UTC when the order was placed.
*/
public Date getPlaced() {
return placed;
}
/**
* Sets the date and time in UTC when the order was placed.
*/
public void setPlaced(Date placed) {
this.placed = placed;
}
/**
* Gets a list of items representing one or more products and the quantity of each.
*/
public ArrayList<ProductOrder> getItems() {
return items;
}
/**
* Gets a list of line items that represent adjustments to the order by the processor (tax, shipping, etc.)
*/
public ArrayList<LineItem> getLineItems() {
return lineItems;
}
}
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base data-ice="baseUrl" href="../../../../../">
<title data-ice="title">src/templates/bootstrap/modaldialog/index.js | formiojs</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
<script src="script/prettify/prettify.js"></script>
<script src="script/manual.js"></script>
<meta name="description" content="JavaScript powered Forms with JSON Form Builder"><meta property="twitter:card" content="summary"><meta property="twitter:title" content="formiojs"><meta property="<TwitterConsumerkey>" content="JavaScript powered Forms with JSON Form Builder"></head>
<body class="layout-container" data-ice="rootContainer">
<header>
<a href="./">Home</a>
<a href="identifiers.html">Reference</a>
<a href="source.html">Source</a>
<div class="search-box">
<span>
<img src="./image/search.png">
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
</span>
<ul class="search-result"></ul>
</div>
<a style="position:relative; top:3px;" href="https://github.com/formio/formio.js"><img width="20px" src="./image/github.png"></a></header>
<nav class="navigation" data-ice="nav"><div>
<ul>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/EventEmitter.js~EventEmitter.html">EventEmitter</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/Form.js~Form.html">Form</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/FormBuilder.js~FormBuilder.html">FormBuilder</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/Formio.js~Formio.html">Formio</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/PDFBuilder.js~PDFBuilder.html">PDFBuilder</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/WizardBuilder.js~WizardBuilder.html">WizardBuilder</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">embed</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#<API key>">GlobalFormio</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#addons">addons</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/addons/FormioAddon.js~FormioAddon.html">FormioAddon</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#<API key>">editForms</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#builders">builders</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/builders/Builders.js~Builders.html">Builders</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components">components</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/Components.js~Components.html">Components</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">components/_classes/component</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Component</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">components/_classes/component/editForm</a><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#<API key>">EditFormUtils</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">components/_classes/field</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/_classes/field/Field.js~Field.html">Field</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">components/_classes/nested</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">NestedComponent</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-address">components/address</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Address</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-button">components/button</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Button</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-checkbox">components/checkbox</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/checkbox/Checkbox.js~CheckBoxComponent.html">CheckBoxComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Checkbox</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-columns">components/columns</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Columns</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">components/container</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/container/Container.js~ContainerComponent.html">ContainerComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Container</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-content">components/content</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Content</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-currency">components/currency</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/currency/Currency.js~CurrencyComponent.html">CurrencyComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Currency</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-datagrid">components/datagrid</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">DataGrid</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-datamap">components/datamap</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">DataMap</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-datetime">components/datetime</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/datetime/DateTime.js~DateTimeComponent.html">DateTimeComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">DateTime</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-day">components/day</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Day">Day</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-editgrid">components/editgrid</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">EditGrid</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-email">components/email</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/email/Email.js~EmailComponent.html">EmailComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Email</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-fieldset">components/fieldset</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/fieldset/Fieldset.js~FieldsetComponent.html">FieldsetComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Fieldset</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-file">components/file</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">File</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-form">components/form</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Form</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-hidden">components/hidden</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/hidden/Hidden.js~HiddenComponent.html">HiddenComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Hidden</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-html">components/html</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/html/HTML.js~HTMLComponent.html">HTMLComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">HTML</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-number">components/number</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Number</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-panel">components/panel</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Panel</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-password">components/password</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/password/Password.js~PasswordComponent.html">PasswordComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Password</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">components/phonenumber</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/phonenumber/PhoneNumber.js~<API key>.html"><API key></a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">PhoneNumber</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-radio">components/radio</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Radio</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">components/recaptcha</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/recaptcha/ReCaptcha.js~ReCaptchaComponent.html">ReCaptchaComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">ReCaptcha</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-resource">components/resource</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/resource/Resource.js~ResourceComponent.html">ResourceComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Resource</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-select">components/select</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Select</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">components/select/fixtures</a><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#<API key>">multiSelect</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#<API key>">multiSelectOptions</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">components/selectboxes</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">SelectBoxes</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">components/signature</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Signature</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-survey">components/survey</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Survey</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-table">components/table</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/table/Table.js~TableComponent.html">TableComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Table</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-tabs">components/tabs</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/tabs/Tabs.js~TabsComponent.html">TabsComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Tabs</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-tags">components/tags</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/tags/Tags.js~TagsComponent.html">TagsComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Tags</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-textarea">components/textarea</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">TextArea</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">components/textfield</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">TextField</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-time">components/time</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/time/Time.js~TimeComponent.html">TimeComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Time</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-tree">components/tree</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/tree/Node.js~Node.html">Node</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Tree</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-unknown">components/unknown</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/unknown/Unknown.js~UnknownComponent.html">UnknownComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Unknown</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-url">components/url</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/url/Url.js~UrlComponent.html">UrlComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-Url">Url</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#components-well">components/well</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/components/well/Well.js~WellComponent.html">WellComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Well</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#contrib">contrib</a><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#<API key>">Contrib</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#contrib-edittable">contrib/edittable</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/contrib/edittable/EditTable.js~EditTableComponent.html">EditTableComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">EditTable</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#contrib-location">contrib/location</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/contrib/location/Location.js~LocationComponent.html">LocationComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">Location</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#contrib-modaledit">contrib/modaledit</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/contrib/modaledit/ModalEdit.js~ModalEditComponent.html">ModalEditComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">ModalEdit</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">contrib/stripe/checkout</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/contrib/stripe/checkout/StripeCheckout.js~<API key>.html"><API key></a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">contrib/stripe/stripe</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/contrib/stripe/stripe/Stripe.js~StripeComponent.html">StripeComponent</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#displays">displays</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/displays/Displays.js~Displays.html">Displays</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#providers">providers</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/providers/Providers.js~Providers.html">Providers</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#providers-address">providers/address</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/providers/address/AddressProvider.js~AddressProvider.html">AddressProvider</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/providers/address/<API key>.js~<API key>.html"><API key></a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/providers/address/<API key>.js~<API key>.html"><API key></a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/providers/address/<API key>.js~<API key>.html"><API key></a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#providers-processor">providers/processor</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">fileProcessor</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#providers-storage">providers/storage</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">azure</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">base64</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">dropbox</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">googledrive</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">indexeddb</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-s3">s3</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>"><API key></a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-url">url</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">setXhrHeaders</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-XHR">XHR</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#templates">templates</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/templates/Templates.js~Templates.html">Templates</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#templates-bootstrap">templates/bootstrap</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">iconClass</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#utils">utils</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/utils/ChoicesWrapper.js~ChoicesWrapper.html">ChoicesWrapper</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">checkInvalidDate</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">lessOrGreater</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">applyFormChanges</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">eachComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>"><API key></a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">findComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">findComponents</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">flattenComponents</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">formatAsCurrency</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">generateFormChange</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">getComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">getStrings</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">getValue</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">hasCondition</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">isLayoutComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">matchComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">parseFloatExt</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">removeComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#<API key>">searchComponents</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#<API key>">KEY_CODES</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#<API key>">Evaluator</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#<API key>"><API key></a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#utils-jsonlogic">utils/jsonlogic</a><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#<API key>">lodashOperators</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#validator">validator</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/validator/Rules.js~Rules.html">Rules</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">validator/conjunctions</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/validator/conjunctions/index.js~Conjunctions.html">Conjunctions</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#validator-operators">validator/operators</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/validator/operators/index.js~Operators.html">Operators</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">validator/quickRules</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/validator/quickRules/index.js~QuickRules.html">QuickRules</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">validator/transformers</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/validator/transformers/index.js~Transformers.html">Transformers</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#<API key>">validator/valueSources</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/validator/valueSources/index.js~ValueSources.html">ValueSources</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#widgets">widgets</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/widgets/InputWidget.js~InputWidget.html">InputWidget</a></span></span></li>
</ul>
</div>
</nav>
<div class="content" data-ice="content"><h1 data-ice="title">src/templates/bootstrap/modaldialog/index.js</h1>
<pre class="source-code line-number raw-source-code"><code class="prettyprint linenums" data-ice="content">import form from './form.ejs';
export default { form };
</code></pre>
</div>
<footer class="footer">
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(1.1.0)</span><img src="./image/<API key>.png"></a>
</footer>
<script src="script/search_index.js"></script>
<script src="script/search.js"></script>
<script src="script/pretty-print.js"></script>
<script src="script/inherited-summary.js"></script>
<script src="script/test-summary.js"></script>
<script src="script/inner-link.js"></script>
<script src="script/patch-for-local.js"></script>
</body>
</html>
|
/* Colors:
#AC3931 - red
#E5D352 - yellow
#D9E76C - yellow light
#537D8D - blue
#482C3D - purple
*/
body {
background: #537D8D;
font-family: 'Arvo', serif;
}
.container {
margin-top: 20px;
width: 500px;
background: #E5D352;
padding: 20px;
}
h1 {
text-align: center;
font-weight: 700;
color: #AC3931;
}
h2, h3, h4 {
text-align: center;
font-weight: 400;
color: #AC3931;
}
p {
color: #482C3D;
font-size: 16px;
margin-bottom: 10px;
margin-top: 10px;
}
.btn {
font-weight: 700;
}
.btn-default {
background: white;
border: none;
color: #AC3931;
}
.btn-default:hover {
background: #AC3931;
border: none;
color: white;
}
#status {
background: #D9E76C;
padding: 10px;
}
|
<!DOCTYPE html>
<html ng-app="meuApp">
<head>
<title></title>
<meta charset="utf-8">
<script
src="../bower_components/angular/angular.min.js"
type="text/javascript"></script>
</head>
<body ng-controller="MeuController">
<h1>Exemplo de AngularJS com Controller interno</h1>
<div>
Variável do controller contém: {{valor}}
</div>
<div>
E seu dobro é: {{valor * 2}}
</div>
<script>
angular.module('meuApp', [])
.controller('MeuController', ['$scope', function($scope) {
$scope.valor = 35;
}]);
</script>
</body>
</html>
|
using System;
using System.Windows.Input;
namespace AOLadderer.UI
{
public class <API key><T> : ICommand
{
private readonly Func<T, bool> _canExecute;
private readonly Action<T> _execute;
public <API key>(Action<T> execute)
: this(_ => true, execute)
{ }
public <API key>(Func<T, bool> canExecute, Action<T> execute)
{
_canExecute = canExecute;
_execute = execute;
}
public event EventHandler CanExecuteChanged
{
add { CommandManager.RequerySuggested += value; }
remove { CommandManager.RequerySuggested -= value; }
}
public bool CanExecute(object parameter)
=> _canExecute((T)parameter);
public void Execute(object parameter)
=> _execute((T)parameter);
}
}
|
.tabulator {
position: relative;
border: 1px solid #fff;
background-color: #fff;
overflow: hidden;
font-size: 16px;
text-align: left;
-ms-transform: translatez(0);
transform: translatez(0);
}
.tabulator[tabulator-layout="fitDataFill"] .<API key> .tabulator-table {
min-width: 100%;
}
.tabulator.<API key> {
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.tabulator .tabulator-header {
position: relative;
box-sizing: border-box;
width: 100%;
border-bottom: 3px solid #3759D7;
margin-bottom: 4px;
background-color: #fff;
color: #3759D7;
font-weight: bold;
white-space: nowrap;
overflow: hidden;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
padding-left: 10px;
font-size: 1.1em;
}
.tabulator .tabulator-header.<API key> {
display: none;
}
.tabulator .tabulator-header .tabulator-col {
display: inline-block;
position: relative;
box-sizing: border-box;
border-right: 2px solid #fff;
background-color: #fff;
text-align: left;
vertical-align: bottom;
overflow: hidden;
}
.tabulator .tabulator-header .tabulator-col.tabulator-moving {
position: absolute;
border: 1px solid #3759D7;
background: #e6e6e6;
pointer-events: none;
}
.tabulator .tabulator-header .tabulator-col .<API key> {
box-sizing: border-box;
position: relative;
padding: 4px;
}
.tabulator .tabulator-header .tabulator-col .<API key> .<API key> {
padding: 0 8px;
}
.tabulator .tabulator-header .tabulator-col .<API key> .<API key>:hover {
cursor: pointer;
opacity: .6;
}
.tabulator .tabulator-header .tabulator-col .<API key> .tabulator-col-title {
box-sizing: border-box;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: bottom;
}
.tabulator .tabulator-header .tabulator-col .<API key> .tabulator-col-title .<API key> {
box-sizing: border-box;
width: 100%;
border: 1px solid #3759D7;
padding: 1px;
background: #fff;
font-size: 1em;
color: #3759D7;
}
.tabulator .tabulator-header .tabulator-col .<API key> .tabulator-arrow {
display: inline-block;
position: absolute;
top: 9px;
right: 8px;
width: 0;
height: 0;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 6px solid #b7c3f1;
}
.tabulator .tabulator-header .tabulator-col.tabulator-col-group .<API key> {
position: relative;
display: -ms-flexbox;
display: flex;
border-top: 2px solid #3759D7;
overflow: hidden;
margin-right: -1px;
}
.tabulator .tabulator-header .tabulator-col:first-child .<API key>.prev {
display: none;
}
.tabulator .tabulator-header .tabulator-col .<API key> {
position: relative;
box-sizing: border-box;
margin-top: 2px;
width: 100%;
text-align: center;
}
.tabulator .tabulator-header .tabulator-col .<API key> textarea {
height: auto !important;
}
.tabulator .tabulator-header .tabulator-col .<API key> svg {
margin-top: 3px;
}
.tabulator .tabulator-header .tabulator-col .<API key> input::-ms-clear {
width: 0;
height: 0;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title {
padding-right: 25px;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover {
cursor: pointer;
background-color: #e6e6e6;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="none"] .<API key> .tabulator-arrow {
border-top: none;
border-bottom: 6px solid #b7c3f1;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="asc"] .<API key> .tabulator-arrow {
border-top: none;
border-bottom: 6px solid #3759D7;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="desc"] .<API key> .tabulator-arrow {
border-top: 6px solid #3759D7;
border-bottom: none;
}
.tabulator .tabulator-header .tabulator-col.<API key> .<API key> .tabulator-col-title {
-ms-writing-mode: tb-rl;
writing-mode: vertical-rl;
text-orientation: mixed;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
}
.tabulator .tabulator-header .tabulator-col.<API key>.<API key> .tabulator-col-title {
-ms-transform: rotate(180deg);
transform: rotate(180deg);
}
.tabulator .tabulator-header .tabulator-col.<API key>.tabulator-sortable .tabulator-col-title {
padding-right: 0;
padding-top: 20px;
}
.tabulator .tabulator-header .tabulator-col.<API key>.tabulator-sortable.<API key> .tabulator-col-title {
padding-right: 0;
padding-bottom: 20px;
}
.tabulator .tabulator-header .tabulator-col.<API key>.tabulator-sortable .tabulator-arrow {
right: calc(50% - 6px);
}
.tabulator .tabulator-header .tabulator-frozen {
display: inline-block;
position: absolute;
z-index: 10;
}
.tabulator .tabulator-header .tabulator-frozen.<API key> {
padding-left: 10px;
border-right: 2px solid #fff;
}
.tabulator .tabulator-header .tabulator-frozen.<API key> {
border-left: 2px solid #fff;
}
.tabulator .tabulator-header .<API key> {
box-sizing: border-box;
min-width: 600%;
border-top: 2px solid #3759D7 !important;
background: white !important;
border-top: 1px solid #fff;
border-bottom: 1px solid #fff;
overflow: hidden;
}
.tabulator .tabulator-header .<API key> .tabulator-row {
padding-left: 0 !important;
background: white !important;
}
.tabulator .tabulator-header .<API key> .tabulator-row .<API key> {
display: none;
}
.tabulator .tabulator-header .<API key> .tabulator-row .tabulator-cell {
background: none;
}
.tabulator .tabulator-header .<API key> {
min-width: 600%;
}
.tabulator .tabulator-header .<API key>:empty {
display: none;
}
.tabulator .<API key> {
position: relative;
width: 100%;
white-space: nowrap;
overflow: auto;
-<API key>: touch;
}
.tabulator .<API key>:focus {
outline: none;
}
.tabulator .<API key> .<API key> {
box-sizing: border-box;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
width: 100%;
}
.tabulator .<API key> .<API key>[<API key>="virtual"] {
min-height: 100%;
min-width: 100%;
}
.tabulator .<API key> .<API key> span {
display: inline-block;
margin: 0 auto;
padding: 10px;
color: #3759D7;
font-weight: bold;
font-size: 20px;
}
.tabulator .<API key> .tabulator-table {
position: relative;
display: inline-block;
background-color: #f3f3f3;
white-space: nowrap;
overflow: visible;
color: #333;
}
.tabulator .<API key> .tabulator-table .tabulator-row.tabulator-calcs {
font-weight: bold;
background: #f2f2f2 !important;
}
.tabulator .<API key> .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top {
border-bottom: 2px solid #3759D7;
}
.tabulator .<API key> .tabulator-table .tabulator-row.tabulator-calcs.<API key> {
border-top: 2px solid #3759D7;
}
.tabulator .<API key> {
position: absolute;
right: 0;
top: 0;
bottom: 0;
width: 5px;
}
.tabulator .<API key>.prev {
left: 0;
right: auto;
}
.tabulator .<API key>:hover {
cursor: ew-resize;
}
.tabulator .tabulator-footer {
padding: 5px 10px;
border-top: 1px solid #999;
background-color: #fff;
text-align: right;
color: #3759D7;
font-weight: bold;
white-space: nowrap;
-ms-user-select: none;
user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
}
.tabulator .tabulator-footer .<API key> {
box-sizing: border-box;
width: calc(100% + 20px);
margin: -5px -10px 5px -10px;
text-align: left;
background: white !important;
border-top: 3px solid #3759D7 !important;
border-bottom: 2px solid #3759D7 !important;
border-bottom: 1px solid #fff;
border-top: 1px solid #fff;
overflow: hidden;
}
.tabulator .tabulator-footer .<API key> .tabulator-row {
background: white !important;
}
.tabulator .tabulator-footer .<API key> .tabulator-row .<API key> {
display: none;
}
.tabulator .tabulator-footer .<API key> .tabulator-row .tabulator-cell {
background: none;
}
.tabulator .tabulator-footer .<API key> .tabulator-row .tabulator-cell:first-child {
border-left: 10px solid transparent;
}
.tabulator .tabulator-footer .<API key>:only-child {
margin-bottom: -5px;
border-bottom: none;
border-bottom: none !important;
}
.tabulator .tabulator-footer .tabulator-paginator {
color: #3759D7;
font-family: inherit;
font-weight: inherit;
font-size: inherit;
}
.tabulator .tabulator-footer .tabulator-page-size {
display: inline-block;
margin: 0 5px;
padding: 2px 5px;
border: 1px solid #aaa;
border-radius: 3px;
}
.tabulator .tabulator-footer .tabulator-pages {
margin: 0 7px;
}
.tabulator .tabulator-footer .tabulator-page {
display: inline-block;
margin: 0 2px;
padding: 2px 5px;
border: 1px solid #aaa;
border-radius: 3px;
background: rgba(255, 255, 255, 0.2);
}
.tabulator .tabulator-footer .tabulator-page.active {
color: #3759D7;
}
.tabulator .tabulator-footer .tabulator-page:disabled {
opacity: .5;
}
.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover {
cursor: pointer;
background: rgba(0, 0, 0, 0.2);
color: #fff;
}
.tabulator .tabulator-loader {
position: absolute;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
top: 0;
left: 0;
z-index: 100;
height: 100%;
width: 100%;
background: rgba(0, 0, 0, 0.4);
text-align: center;
}
.tabulator .tabulator-loader .<API key> {
display: inline-block;
margin: 0 auto;
padding: 10px 20px;
border-radius: 10px;
background: #fff;
font-weight: bold;
font-size: 16px;
}
.tabulator .tabulator-loader .<API key>.tabulator-loading {
border: 4px solid #333;
color: #000;
}
.tabulator .tabulator-loader .<API key>.tabulator-error {
border: 4px solid #D00;
color: #590000;
}
.tabulator-row {
position: relative;
box-sizing: border-box;
box-sizing: border-box;
min-height: 24px;
margin-bottom: 2px;
}
.tabulator-row .tabulator-cell:first-child {
border-left: 10px solid #3759D7;
}
.tabulator-row:nth-child(even) {
background-color: #627ce0;
}
.tabulator-row:nth-child(even) .tabulator-cell {
background-color: #fff;
}
.tabulator-row:nth-child(even) .tabulator-cell:first-child {
border-left: 10px solid #627ce0;
}
.tabulator-row.<API key>:hover {
cursor: pointer;
}
.tabulator-row.<API key>:hover .tabulator-cell {
background-color: #bbb;
}
.tabulator-row.tabulator-selected .tabulator-cell {
background-color: #9ABCEA;
}
.tabulator-row.tabulator-selected:hover .tabulator-cell {
background-color: #769BCC;
cursor: pointer;
}
.tabulator-row.tabulator-moving {
position: absolute;
border-top: 1px solid #fff;
border-bottom: 1px solid #fff;
pointer-events: none !important;
z-index: 15;
}
.tabulator-row .<API key> {
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: 5px;
}
.tabulator-row .<API key>.prev {
top: 0;
bottom: auto;
}
.tabulator-row .<API key>:hover {
cursor: ns-resize;
}
.tabulator-row .tabulator-frozen {
display: inline-block;
position: absolute;
background-color: inherit;
z-index: 10;
}
.tabulator-row .tabulator-frozen.<API key> {
border-right: 2px solid #fff;
}
.tabulator-row .tabulator-frozen.<API key> {
border-left: 2px solid #fff;
}
.tabulator-row .<API key> {
box-sizing: border-box;
padding: 5px;
border-top: 1px solid #fff;
border-bottom: 1px solid #fff;
}
.tabulator-row .<API key>:empty {
display: none;
}
.tabulator-row .<API key> table {
font-size: 16px;
}
.tabulator-row .<API key> table tr td {
position: relative;
}
.tabulator-row .<API key> table tr td:first-of-type {
padding-right: 10px;
}
.tabulator-row .tabulator-cell {
display: inline-block;
position: relative;
box-sizing: border-box;
padding: 6px 4px;
border-right: 2px solid #fff;
vertical-align: middle;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
background-color: #f3f3f3;
}
.tabulator-row .tabulator-cell.tabulator-editing {
border: 1px solid #1D68CD;
padding: 0;
}
.tabulator-row .tabulator-cell.tabulator-editing input, .tabulator-row .tabulator-cell.tabulator-editing select {
border: 1px;
background: transparent;
}
.tabulator-row .tabulator-cell.<API key> {
border: 1px solid #dd0000;
}
.tabulator-row .tabulator-cell.<API key> input, .tabulator-row .tabulator-cell.<API key> select {
border: 1px;
background: transparent;
color: #dd0000;
}
.tabulator-row .tabulator-cell:first-child .<API key>.prev {
display: none;
}
.tabulator-row .tabulator-cell.<API key> {
display: -ms-inline-flexbox;
display: inline-flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
}
.tabulator-row .tabulator-cell.<API key> .<API key> {
width: 80%;
}
.tabulator-row .tabulator-cell.<API key> .<API key> .<API key> {
width: 100%;
height: 3px;
margin-top: 2px;
background: #666;
}
.tabulator-row .tabulator-cell .<API key> {
display: inline-block;
vertical-align: middle;
height: 9px;
width: 7px;
margin-top: -9px;
margin-right: 5px;
<API key>: 1px;
border-left: 2px solid #fff;
border-bottom: 2px solid #fff;
}
.tabulator-row .tabulator-cell .<API key> {
display: -ms-inline-flexbox;
display: inline-flex;
-ms-flex-pack: center;
justify-content: center;
-ms-flex-align: center;
align-items: center;
vertical-align: middle;
height: 11px;
width: 11px;
margin-right: 5px;
border: 1px solid #333;
border-radius: 2px;
background: rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.tabulator-row .tabulator-cell .<API key>:hover {
cursor: pointer;
background: rgba(0, 0, 0, 0.2);
}
.tabulator-row .tabulator-cell .<API key> .<API key> {
display: inline-block;
position: relative;
height: 7px;
width: 1px;
background: transparent;
}
.tabulator-row .tabulator-cell .<API key> .<API key>:after {
position: absolute;
content: "";
left: -3px;
top: 3px;
height: 1px;
width: 7px;
background: #333;
}
.tabulator-row .tabulator-cell .<API key> .<API key> {
display: inline-block;
position: relative;
height: 7px;
width: 1px;
background: #333;
}
.tabulator-row .tabulator-cell .<API key> .<API key>:after {
position: absolute;
content: "";
left: -3px;
top: 3px;
height: 1px;
width: 7px;
background: #333;
}
.tabulator-row .tabulator-cell .<API key> {
display: -ms-inline-flexbox;
display: inline-flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
height: 15px;
width: 15px;
border-radius: 20px;
background: #666;
color: #f3f3f3;
font-weight: bold;
font-size: 1.1em;
}
.tabulator-row .tabulator-cell .<API key>:hover {
opacity: .7;
}
.tabulator-row .tabulator-cell .<API key>.open .<API key> {
display: initial;
}
.tabulator-row .tabulator-cell .<API key>.open .<API key> {
display: none;
}
.tabulator-row .tabulator-cell .<API key> .<API key> {
display: none;
}
.tabulator-row .tabulator-cell .<API key> {
display: inline-block;
height: 14px;
width: 14px;
border-radius: 14px;
}
.tabulator-row.tabulator-group {
box-sizing: border-box;
border-bottom: 2px solid #3759D7;
border-top: 2px solid #3759D7;
padding: 5px;
padding-left: 10px;
background: #8ca0e8;
font-weight: bold;
color: fff;
margin-bottom: 2px;
min-width: 100%;
}
.tabulator-row.tabulator-group:hover {
cursor: pointer;
background-color: rgba(0, 0, 0, 0.1);
}
.tabulator-row.tabulator-group.<API key> .tabulator-arrow {
margin-right: 10px;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 6px solid #3759D7;
border-bottom: 0;
}
.tabulator-row.tabulator-group.<API key> {
padding-left: 30px;
}
.tabulator-row.tabulator-group.<API key> {
padding-left: 50px;
}
.tabulator-row.tabulator-group.<API key> {
padding-left: 70px;
}
.tabulator-row.tabulator-group.<API key> {
padding-left: 90px;
}
.tabulator-row.tabulator-group.<API key> {
padding-left: 110px;
}
.tabulator-row.tabulator-group .<API key> {
display: inline-block;
}
.tabulator-row.tabulator-group .tabulator-arrow {
display: inline-block;
width: 0;
height: 0;
margin-right: 16px;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
border-right: 0;
border-left: 6px solid #3759D7;
vertical-align: middle;
}
.tabulator-row.tabulator-group span {
margin-left: 10px;
color: #3759D7;
}
.tabulator-menu {
position: absolute;
display: inline-block;
box-sizing: border-box;
background: #f3f3f3;
border: 1px solid #fff;
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
font-size: 16px;
overflow-y: auto;
-<API key>: touch;
z-index: 10000;
}
.tabulator-menu .tabulator-menu-item {
padding: 5px 10px;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.tabulator-menu .tabulator-menu-item.<API key> {
opacity: .5;
}
.tabulator-menu .tabulator-menu-item:not(.<API key>):hover {
cursor: pointer;
background: #fff;
}
.tabulator-menu .<API key> {
border-top: 1px solid #fff;
}
.<API key> {
position: absolute;
display: inline-block;
box-sizing: border-box;
max-height: 200px;
background: #f3f3f3;
border: 1px solid #1D68CD;
font-size: 16px;
overflow-y: auto;
-<API key>: touch;
z-index: 10000;
}
.<API key> .<API key> {
padding: 4px;
color: #333;
}
.<API key> .<API key>.active {
color: #f3f3f3;
background: #1D68CD;
}
.<API key> .<API key>:hover {
cursor: pointer;
color: #f3f3f3;
background: #1D68CD;
}
.<API key> .<API key> {
padding: 4px;
color: #333;
text-align: center;
}
.<API key> .<API key> {
border-bottom: 1px solid #fff;
padding: 4px;
padding-top: 6px;
color: #333;
font-weight: bold;
}
.<API key> {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 10000;
}
body.<API key> > *:not(.<API key>) {
display: none !important;
}
.<API key> {
border-collapse: collapse;
}
.<API key> .<API key> {
display: inline-block;
vertical-align: middle;
height: 9px;
width: 7px;
margin-top: -9px;
margin-right: 5px;
<API key>: 1px;
border-left: 2px solid #fff;
border-bottom: 2px solid #fff;
}
.<API key> .<API key> {
display: -ms-inline-flexbox;
display: inline-flex;
-ms-flex-pack: center;
justify-content: center;
-ms-flex-align: center;
align-items: center;
vertical-align: middle;
height: 11px;
width: 11px;
margin-right: 5px;
border: 1px solid #333;
border-radius: 2px;
background: rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.<API key> .<API key>:hover {
cursor: pointer;
background: rgba(0, 0, 0, 0.2);
}
.<API key> .<API key> .<API key> {
display: inline-block;
position: relative;
height: 7px;
width: 1px;
background: transparent;
}
.<API key> .<API key> .<API key>:after {
position: absolute;
content: "";
left: -3px;
top: 3px;
height: 1px;
width: 7px;
background: #333;
}
.<API key> .<API key> .<API key> {
display: inline-block;
position: relative;
height: 7px;
width: 1px;
background: #333;
}
.<API key> .<API key> .<API key>:after {
position: absolute;
content: "";
left: -3px;
top: 3px;
height: 1px;
width: 7px;
background: #333;
}
|
'use strict';
import '../../indicators/wma.src.js';
|
'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/dumbbell",["highcharts"],function(n){a(n);a.Highcharts=n;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function n(a,g,h,k){a.hasOwnProperty(g)||(a[g]=k.apply(null,h))}a=a?a._modules:{};n(a,"Series/AreaRange/AreaRangePoint.js",[a["Series/Area/AreaSeries.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],
function(a,g,h){var k=this&&this.__extends||function(){var a=function(e,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(e,d)};return function(e,d){function b(){this.constructor=e}a(e,d);e.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),m=g.prototype,r=h.defined,c=h.isNumber;return function(a){function e(){var d=null!==a&&a.apply(this,arguments)||this;d.high=void 0;
d.low=void 0;d.options=void 0;d.plotHigh=void 0;d.plotLow=void 0;d.plotHighX=void 0;d.plotLowX=void 0;d.plotX=void 0;d.series=void 0;return d}k(e,a);e.prototype.setState=function(){var a=this.state,b=this.series,e=b.chart.polar;r(this.plotHigh)||(this.plotHigh=b.yAxis.toPixels(this.high,!0));r(this.plotLow)||(this.plotLow=this.plotY=b.yAxis.toPixels(this.low,!0));b.stateMarkerGraphic&&(b.<API key>=b.stateMarkerGraphic,b.stateMarkerGraphic=b.<API key>);this.graphic=this.upperGraphic;
this.plotY=this.plotHigh;e&&(this.plotX=this.plotHighX);m.setState.apply(this,arguments);this.state=a;this.plotY=this.plotLow;this.graphic=this.lowerGraphic;e&&(this.plotX=this.plotLowX);b.stateMarkerGraphic&&(b.<API key>=b.stateMarkerGraphic,b.stateMarkerGraphic=b.<API key>,b.<API key>=void 0);m.setState.apply(this,arguments)};e.prototype.haloPath=function(){var a=this.series.chart.polar,b=[];this.plotY=this.plotLow;a&&(this.plotX=this.plotLowX);this.isInside&&
(b=m.haloPath.apply(this,arguments));this.plotY=this.plotHigh;a&&(this.plotX=this.plotHighX);this.isTopInside&&(b=b.concat(m.haloPath.apply(this,arguments)));return b};e.prototype.isValid=function(){return c(this.low)&&c(this.high)};return e}(a.prototype.pointClass)});n(a,"Series/Dumbbell/DumbbellPoint.js",[a["Series/AreaRange/AreaRangePoint.js"],a["Core/Utilities.js"]],function(a,g){var h=this&&this.__extends||function(){var a=function(c,l){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(c,l)};return function(c,l){function e(){this.constructor=c}a(c,l);c.prototype=null===l?Object.create(l):(e.prototype=l.prototype,new e)}}(),k=g.extend,m=g.pick;g=function(a){function c(){var c=null!==a&&a.apply(this,arguments)||this;c.series=void 0;c.options=void 0;c.connector=void 0;c.pointWidth=void 0;return c}h(c,a);c.prototype.setState=function(){var a=this.series,c=a.chart,d=a.options.marker,
b=this.options,g=m(b.lowColor,a.options.lowColor,b.color,this.zone&&this.zone.color,this.color,a.color),h="attr";this.pointSetState.apply(this,arguments);this.state||(h="animate",this.lowerGraphic&&!c.styledMode&&(this.lowerGraphic.attr({fill:g}),this.upperGraphic&&(c={y:this.y,zone:this.zone},this.y=this.high,this.zone=this.zone?this.getZone():void 0,d=m(this.marker?this.marker.fillColor:void 0,d?d.fillColor:void 0,b.color,this.zone?this.zone.color:void 0,this.color),this.upperGraphic.attr({fill:d}),
k(this,c))));this.connector[h](a.getConnectorAttribs(this))};c.prototype.destroy=function(){this.graphic||(this.graphic=this.connector,this.connector=void 0);return a.prototype.destroy.call(this)};return c}(a);k(g.prototype,{pointSetState:a.prototype.setState});return g});n(a,"Series/Dumbbell/DumbbellSeries.js",[a["Series/Column/ColumnSeries.js"],a["Series/Dumbbell/DumbbellPoint.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],
a["Core/Utilities.js"]],function(a,g,h,k,m,n,c){var l=this&&this.__extends||function(){var a=function(b,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var b in f)f.hasOwnProperty(b)&&(a[b]=f[b])};return a(b,f)};return function(b,f){function d(){this.constructor=b}a(b,f);b.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)}}(),e=a.prototype;h=h.noop;var d=k.prototype;k=m.seriesTypes;var b=k.arearange;k=k.columnrange.prototype;
var t=b.prototype,r=c.extend,u=c.merge,p=c.pick;c=function(a){function c(){var f=null!==a&&a.apply(this,arguments)||this;f.data=void 0;f.options=void 0;f.points=void 0;f.columnMetrics=void 0;return f}l(c,a);c.prototype.getConnectorAttribs=function(a){var b=this.chart,f=a.options,c=this.options,d=this.xAxis,e=this.yAxis,g=p(f.connectorWidth,c.connectorWidth),h=p(f.connectorColor,c.connectorColor,f.color,a.zone?a.zone.color:void 0,a.color),k=p(c.states&&c.states.hover&&c.states.hover.connectorWidthPlus,
1),m=p(f.dashStyle,c.dashStyle),l=p(a.plotLow,a.plotY),q=e.toPixels(c.threshold||0,!0);q=p(a.plotHigh,b.inverted?e.len-q:q);a.state&&(g+=k);0>l?l=0:l>=e.len&&(l=e.len);0>q?q=0:q>=e.len&&(q=e.len);if(0>a.plotX||a.plotX>d.len)g=0;a.upperGraphic&&(d={y:a.y,zone:a.zone},a.y=a.high,a.zone=a.zone?a.getZone():void 0,h=p(f.connectorColor,c.connectorColor,f.color,a.zone?a.zone.color:void 0,a.color),r(a,d));a={d:n.prototype.crispLine([["M",a.plotX,l],["L",a.plotX,q]],g,"ceil")};b.styledMode||(a.stroke=h,a["stroke-width"]=
g,m&&(a.dashstyle=m));return a};c.prototype.drawConnector=function(a){var b=p(this.options.animationLimit,250);b=a.connector&&this.chart.pointCount<b?"animate":"attr";a.connector||(a.connector=this.chart.renderer.path().addClass("<API key>").attr({zIndex:-1}).add(this.markerGroup));a.connector[b](this.getConnectorAttribs(a))};c.prototype.getColumnMetrics=function(){var a=e.getColumnMetrics.apply(this,arguments);a.offset+=a.width/2;return a};c.prototype.translate=function(){this.setShapeArgs.apply(this);
this.translatePoint.apply(this,arguments);this.points.forEach(function(a){var b=a.shapeArgs,c=a.pointWidth;a.plotX=b.x;b.x=a.plotX-c/2;a.tooltipPos=null});this.columnMetrics.offset-=this.columnMetrics.width/2};c.prototype.drawPoints=function(){var a=this.chart,b=this.points.length,c=this.lowColor=this.options.lowColor,d=0;for(this.seriesDrawPoints.apply(this,arguments);d<b;){var e=this.points[d];this.drawConnector(e);e.upperGraphic&&(e.upperGraphic.element.point=e,e.upperGraphic.addClass("<API key>"));
e.connector.element.point=e;if(e.lowerGraphic){var g=e.zone&&e.zone.color;g=p(e.options.lowColor,c,e.options.color,g,e.color,this.color);a.styledMode||e.lowerGraphic.attr({fill:g});e.lowerGraphic.addClass("<API key>")}d++}};c.prototype.markerAttribs=function(){var a=t.markerAttribs.apply(this,arguments);a.x=Math.floor(a.x||0);a.y=Math.floor(a.y||0);return a};c.prototype.pointAttribs=function(a,b){var c=d.pointAttribs.apply(this,arguments);"hover"===b&&delete c.fill;return c};c.defaultOptions=
u(b.defaultOptions,{trackByArea:!1,fillColor:"none",lineWidth:0,pointRange:1,connectorWidth:1,stickyTracking:!1,groupPadding:.2,crisp:!1,pointPadding:.1,lowColor:"#333333",states:{hover:{lineWidthPlus:0,connectorWidthPlus:1,halo:!1}}});return c}(b);r(c.prototype,{crispCol:e.crispCol,drawGraph:h,drawTracker:a.prototype.drawTracker,pointClass:g,setShapeArgs:k.translate,seriesDrawPoints:t.drawPoints,trackerGroups:["group","markerGroup","dataLabelsGroup"],translatePoint:t.translate});m.registerSeriesType("dumbbell",
c);"";return c});n(a,"masters/modules/dumbbell.src.js",[],function(){})});
//# sourceMappingURL=dumbbell.js.map
|
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.Navbar = {}));
}(this, function (exports) { 'use strict';
function _typeof(obj) {
"@babel/helpers - typeof";
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}
return _typeof(obj);
}
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
var script = {
name: 'NavbarBurger',
props: {
isOpened: {
type: Boolean,
default: false
}
}
};
function normalizeComponent(template, style, script, scopeId, <API key>, moduleIdentifier
/* server only */
, shadowMode, createInjector, createInjectorSSR, <API key>) {
if (typeof shadowMode !== 'boolean') {
createInjectorSSR = createInjector;
createInjector = shadowMode;
shadowMode = false;
} // Vue.extend constructor export interop.
var options = typeof script === 'function' ? script.options : script; // render functions
if (template && template.render) {
options.render = template.render;
options.staticRenderFns = template.staticRenderFns;
options._compiled = true; // functional template
if (<API key>) {
options.functional = true;
}
} // scopedId
if (scopeId) {
options._scopeId = scopeId;
}
var hook;
if (moduleIdentifier) {
// server build
hook = function hook(context) {
// 2.3 injection
context = context || // cached call
this.$vnode && this.$vnode.ssrContext || // stateful
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__;
} // inject component styles
if (style) {
style.call(this, createInjectorSSR(context));
} // register component module identifier for async chunk inference
if (context && context.<API key>) {
context.<API key>.add(moduleIdentifier);
}
}; // used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook;
} else if (style) {
hook = shadowMode ? function () {
style.call(this, <API key>(this.$root.$options.shadowRoot));
} : function (context) {
style.call(this, createInjector(context));
};
}
if (hook) {
if (options.functional) {
// register for functional component in vue file
var originalRender = options.render;
options.render = function <API key>(h, context) {
hook.call(context);
return originalRender(h, context);
};
} else {
// inject component registration as beforeCreate hook
var existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
return script;
}
var <API key> = normalizeComponent;
/* script */
const __vue_script__ = script;
/* template */
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',_vm._g({staticClass:"navbar-burger burger",class:{ 'is-active': _vm.isOpened },attrs:{"role":"button","aria-label":"menu","aria-expanded":_vm.isOpened}},_vm.$listeners),[_c('span',{attrs:{"aria-hidden":"true"}}),_vm._v(" "),_c('span',{attrs:{"aria-hidden":"true"}}),_vm._v(" "),_c('span',{attrs:{"aria-hidden":"true"}})])};
var <API key> = [];
/* style */
const <API key> = undefined;
/* scoped */
const __vue_scope_id__ = undefined;
/* module identifier */
const <API key> = undefined;
/* functional template */
const <API key> = false;
/* style inject */
/* style inject SSR */
var NavbarBurger = <API key>(
{ render: __vue_render__, staticRenderFns: <API key> },
<API key>,
__vue_script__,
__vue_scope_id__,
<API key>,
<API key>,
undefined,
undefined
);
var isTouch = typeof window !== 'undefined' && ('ontouchstart' in window || navigator.msMaxTouchPoints > 0);
var events = isTouch ? ['touchstart', 'click'] : ['click'];
var instances = [];
function processArgs(bindingValue) {
var isFunction = typeof bindingValue === 'function';
if (!isFunction && _typeof(bindingValue) !== 'object') {
throw new Error("v-click-outside: Binding value should be a function or an object, typeof ".concat(bindingValue, " given"));
}
return {
handler: isFunction ? bindingValue : bindingValue.handler,
middleware: bindingValue.middleware || function (isClickOutside) {
return isClickOutside;
},
events: bindingValue.events || events
};
}
function onEvent(_ref) {
var el = _ref.el,
event = _ref.event,
handler = _ref.handler,
middleware = _ref.middleware;
var isClickOutside = event.target !== el && !el.contains(event.target);
if (!isClickOutside) {
return;
}
if (middleware(event, el)) {
handler(event, el);
}
}
function bind(el, _ref2) {
var value = _ref2.value;
var _processArgs = processArgs(value),
_handler = _processArgs.handler,
middleware = _processArgs.middleware,
events = _processArgs.events;
var instance = {
el: el,
eventHandlers: events.map(function (eventName) {
return {
event: eventName,
handler: function handler(event) {
return onEvent({
event: event,
el: el,
handler: _handler,
middleware: middleware
});
}
};
})
};
instance.eventHandlers.forEach(function (_ref3) {
var event = _ref3.event,
handler = _ref3.handler;
return document.addEventListener(event, handler);
});
instances.push(instance);
}
function update(el, _ref4) {
var value = _ref4.value;
var _processArgs2 = processArgs(value),
_handler2 = _processArgs2.handler,
middleware = _processArgs2.middleware,
events = _processArgs2.events; // `filter` instead of `find` for compat with IE
var instance = instances.filter(function (instance) {
return instance.el === el;
})[0];
instance.eventHandlers.forEach(function (_ref5) {
var event = _ref5.event,
handler = _ref5.handler;
return document.removeEventListener(event, handler);
});
instance.eventHandlers = events.map(function (eventName) {
return {
event: eventName,
handler: function handler(event) {
return onEvent({
event: event,
el: el,
handler: _handler2,
middleware: middleware
});
}
};
});
instance.eventHandlers.forEach(function (_ref6) {
var event = _ref6.event,
handler = _ref6.handler;
return document.addEventListener(event, handler);
});
}
function unbind(el) {
// `filter` instead of `find` for compat with IE
var instance = instances.filter(function (instance) {
return instance.el === el;
})[0];
instance.eventHandlers.forEach(function (_ref7) {
var event = _ref7.event,
handler = _ref7.handler;
return document.removeEventListener(event, handler);
});
}
var directive = {
bind: bind,
update: update,
unbind: unbind,
instances: instances
};
var FIXED_TOP_CLASS = 'is-fixed-top';
var <API key> = '<API key>';
var <API key> = '<API key>';
var FIXED_BOTTOM_CLASS = 'is-fixed-bottom';
var <API key> = '<API key>';
var <API key> = '<API key>';
var isFilled = function isFilled(str) {
return !!str;
};
var script$1 = {
name: 'BNavbar',
components: {
NavbarBurger: NavbarBurger
},
directives: {
clickOutside: directive
},
props: {
type: [String, Object],
transparent: {
type: Boolean,
default: false
},
fixedTop: {
type: Boolean,
default: false
},
fixedBottom: {
type: Boolean,
default: false
},
isActive: {
type: Boolean,
default: false
},
wrapperClass: {
type: String
},
closeOnClick: {
type: Boolean,
default: true
},
mobileBurger: {
type: Boolean,
default: true
},
spaced: Boolean,
shadow: Boolean
},
data: function data() {
return {
internalIsActive: this.isActive,
_isNavBar: true // Used internally by NavbarItem
};
},
computed: {
isOpened: function isOpened() {
return this.internalIsActive;
},
computedClasses: function computedClasses() {
var _ref;
return [this.type, (_ref = {}, _defineProperty(_ref, FIXED_TOP_CLASS, this.fixedTop), _defineProperty(_ref, FIXED_BOTTOM_CLASS, this.fixedBottom), _defineProperty(_ref, 'is-spaced', this.spaced), _defineProperty(_ref, 'has-shadow', this.shadow), _defineProperty(_ref, 'is-transparent', this.transparent), _ref)];
}
},
watch: {
isActive: {
handler: function handler(isActive) {
this.internalIsActive = isActive;
},
immediate: true
},
fixedTop: {
handler: function handler(isSet) {
this.<API key>();
if (isSet) {
// TODO Apply only one of the classes once PR is merged in Bulma:
this.setBodyClass(<API key>);
this.spaced && this.setBodyClass(<API key>);
} else {
this.removeBodyClass(<API key>);
this.removeBodyClass(<API key>);
}
},
immediate: true
},
fixedBottom: {
handler: function handler(isSet) {
this.<API key>();
if (isSet) {
// TODO Apply only one of the classes once PR is merged in Bulma:
this.setBodyClass(<API key>);
this.spaced && this.setBodyClass(<API key>);
} else {
this.removeBodyClass(<API key>);
this.removeBodyClass(<API key>);
}
},
immediate: true
}
},
methods: {
toggleActive: function toggleActive() {
this.internalIsActive = !this.internalIsActive;
this.<API key>();
},
closeMenu: function closeMenu() {
if (this.closeOnClick) {
this.internalIsActive = false;
this.<API key>();
}
},
<API key>: function <API key>() {
this.$emit('update:isActive', this.internalIsActive);
},
setBodyClass: function setBodyClass(className) {
if (typeof window !== 'undefined') {
document.body.classList.add(className);
}
},
removeBodyClass: function removeBodyClass(className) {
if (typeof window !== 'undefined') {
document.body.classList.remove(className);
}
},
<API key>: function <API key>() {
var areColliding = this.fixedTop && this.fixedBottom;
if (areColliding) {
throw new Error('You should choose if the BNavbar is fixed bottom or fixed top, but not both');
}
},
genNavbar: function genNavbar(createElement) {
var navBarSlots = [this.genNavbarBrandNode(createElement), this.genNavbarSlotsNode(createElement)];
if (!isFilled(this.wrapperClass)) {
return this.genNavbarSlots(createElement, navBarSlots);
} // It wraps the slots into a div with the provided wrapperClass prop
var navWrapper = createElement('div', {
class: this.wrapperClass
}, navBarSlots);
return this.genNavbarSlots(createElement, [navWrapper]);
},
genNavbarSlots: function genNavbarSlots(createElement, slots) {
return createElement('nav', {
staticClass: 'navbar',
class: this.computedClasses,
attrs: {
role: 'navigation',
'aria-label': 'main navigation'
},
directives: [{
name: 'click-outside',
value: this.closeMenu
}]
}, slots);
},
genNavbarBrandNode: function genNavbarBrandNode(createElement) {
return createElement('div', {
class: 'navbar-brand'
}, [this.$slots.brand, this.genBurgerNode(createElement)]);
},
genBurgerNode: function genBurgerNode(createElement) {
if (this.mobileBurger) {
var defaultBurgerNode = createElement('navbar-burger', {
props: {
isOpened: this.isOpened
},
on: {
click: this.toggleActive
}
});
var hasBurgerSlot = !!this.$scopedSlots.burger;
return hasBurgerSlot ? this.$scopedSlots.burger({
isOpened: this.isOpened,
toggleActive: this.toggleActive
}) : defaultBurgerNode;
}
},
genNavbarSlotsNode: function genNavbarSlotsNode(createElement) {
return createElement('div', {
staticClass: 'navbar-menu',
class: {
'is-active': this.isOpened
}
}, [this.genMenuPosition(createElement, 'start'), this.genMenuPosition(createElement, 'end')]);
},
genMenuPosition: function genMenuPosition(createElement, positionName) {
return createElement('div', {
staticClass: "navbar-".concat(positionName)
}, this.$slots[positionName]);
}
},
beforeDestroy: function beforeDestroy() {
if (this.fixedTop) {
var className = this.spaced ? <API key> : <API key>;
this.removeBodyClass(className);
} else if (this.fixedBottom) {
var _className = this.spaced ? <API key> : <API key>;
this.removeBodyClass(_className);
}
},
render: function render(createElement, fn) {
return this.genNavbar(createElement);
}
};
/* script */
const __vue_script__$1 = script$1;
/* template */
/* style */
const <API key>$1 = undefined;
/* scoped */
const __vue_scope_id__$1 = undefined;
/* module identifier */
const <API key>$1 = undefined;
/* functional template */
const <API key>$1 = undefined;
/* style inject */
/* style inject SSR */
var Navbar = <API key>(
{},
<API key>$1,
__vue_script__$1,
__vue_scope_id__$1,
<API key>$1,
<API key>$1,
undefined,
undefined
);
var clickableWhiteList = ['div', 'span'];
var script$2 = {
name: 'BNavbarItem',
inheritAttrs: false,
props: {
tag: {
type: String,
default: 'a'
},
active: Boolean
},
methods: {
/**
* Keypress event that is bound to the document
*/
keyPress: function keyPress(event) {
// Esc key
// TODO: use code instead (because keyCode is actually deprecated)
if (event.keyCode === 27) {
this.closeMenuRecursive(this, ['NavBar']);
}
},
/**
* Close parent if clicked outside.
*/
handleClickEvent: function handleClickEvent(event) {
var isOnWhiteList = clickableWhiteList.some(function (item) {
return item === event.target.localName;
});
if (!isOnWhiteList) {
var parent = this.closeMenuRecursive(this, ['NavbarDropdown', 'NavBar']);
if (parent.$data._isNavbarDropdown) this.closeMenuRecursive(parent, ['NavBar']);
}
},
/**
* Close parent recursively
*/
closeMenuRecursive: function closeMenuRecursive(current, targetComponents) {
if (!current.$parent) return null;
var foundItem = targetComponents.reduce(function (acc, item) {
if (current.$parent.$data["_is".concat(item)]) {
current.$parent.closeMenu();
return current.$parent;
}
return acc;
}, null);
return foundItem || this.closeMenuRecursive(current.$parent, targetComponents);
}
},
mounted: function mounted() {
if (typeof window !== 'undefined') {
this.$el.addEventListener('click', this.handleClickEvent);
document.addEventListener('keyup', this.keyPress);
}
},
beforeDestroy: function beforeDestroy() {
if (typeof window !== 'undefined') {
this.$el.removeEventListener('click', this.handleClickEvent);
document.removeEventListener('keyup', this.keyPress);
}
}
};
/* script */
const __vue_script__$2 = script$2;
/* template */
var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,_vm._g(_vm._b({tag:"component",staticClass:"navbar-item",class:{
'is-active': _vm.active
}},'component',_vm.$attrs,false),_vm.$listeners),[_vm._t("default")],2)};
var <API key>$1 = [];
/* style */
const <API key>$2 = undefined;
/* scoped */
const __vue_scope_id__$2 = undefined;
/* module identifier */
const <API key>$2 = undefined;
/* functional template */
const <API key>$2 = false;
/* style inject */
/* style inject SSR */
var NavbarItem = <API key>(
{ render: __vue_render__$1, staticRenderFns: <API key>$1 },
<API key>$2,
__vue_script__$2,
__vue_scope_id__$2,
<API key>$2,
<API key>$2,
undefined,
undefined
);
var script$3 = {
name: 'BNavbarDropdown',
directives: {
clickOutside: directive
},
props: {
label: String,
hoverable: Boolean,
active: Boolean,
right: Boolean,
arrowless: Boolean,
boxed: Boolean,
closeOnClick: {
type: Boolean,
default: true
},
collapsible: Boolean
},
data: function data() {
return {
newActive: this.active,
isHoverable: this.hoverable,
_isNavbarDropdown: true // Used internally by NavbarItem
};
},
watch: {
active: function active(value) {
this.newActive = value;
}
},
methods: {
showMenu: function showMenu() {
this.newActive = true;
},
/**
* See naming convetion of navbaritem
*/
closeMenu: function closeMenu() {
this.newActive = !this.closeOnClick;
if (this.hoverable && this.closeOnClick) {
this.isHoverable = false;
}
},
checkHoverable: function checkHoverable() {
if (this.hoverable) {
this.isHoverable = true;
}
}
}
};
/* script */
const __vue_script__$3 = script$3;
/* template */
var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(_vm.closeMenu),expression:"closeMenu"}],staticClass:"navbar-item has-dropdown",class:{
'is-hoverable': _vm.isHoverable,
'is-active': _vm.newActive
},on:{"mouseenter":_vm.checkHoverable}},[_c('a',{staticClass:"navbar-link",class:{
'is-arrowless': _vm.arrowless,
'is-active': _vm.newActive && _vm.collapsible
},attrs:{"role":"menuitem","aria-haspopup":"true","href":"#"},on:{"click":function($event){$event.preventDefault();_vm.newActive = !_vm.newActive;}}},[(_vm.label)?[_vm._v(_vm._s(_vm.label))]:_vm._t("label")],2),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.collapsible || (_vm.collapsible && _vm.newActive)),expression:"!collapsible || (collapsible && newActive)"}],staticClass:"navbar-dropdown",class:{
'is-right': _vm.right,
'is-boxed': _vm.boxed,
}},[_vm._t("default")],2)])};
var <API key>$2 = [];
/* style */
const <API key>$3 = undefined;
/* scoped */
const __vue_scope_id__$3 = undefined;
/* module identifier */
const <API key>$3 = undefined;
/* functional template */
const <API key>$3 = false;
/* style inject */
/* style inject SSR */
var NavbarDropdown = <API key>(
{ render: __vue_render__$2, staticRenderFns: <API key>$2 },
<API key>$3,
__vue_script__$3,
__vue_scope_id__$3,
<API key>$3,
<API key>$3,
undefined,
undefined
);
var use = function use(plugin) {
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(plugin);
}
};
var registerComponent = function registerComponent(Vue, component) {
Vue.component(component.name, component);
};
var Plugin = {
install: function install(Vue) {
registerComponent(Vue, Navbar);
registerComponent(Vue, NavbarItem);
registerComponent(Vue, NavbarDropdown);
}
};
use(Plugin);
exports.BNavbar = Navbar;
exports.BNavbarDropdown = NavbarDropdown;
exports.BNavbarItem = NavbarItem;
exports.default = Plugin;
Object.defineProperty(exports, '__esModule', { value: true });
}));
|
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('froala-editor')) :
typeof define === 'function' && define.amd ? define(['froala-editor'], factory) :
(factory(global.FroalaEditor));
}(this, (function (FE) { 'use strict';
FE = FE && FE.hasOwnProperty('default') ? FE['default'] : FE;
/**
* Hungarian
*/
FE.LANGUAGE['hu'] = {
translation: {
// Place holder
'Type something': 'Szöveg...',
// Basic formatting
'Bold': 'Félkövér',
'Italic': 'Dőlt',
'Underline': 'Aláhúzott',
'Strikethrough': 'Áthúzott',
// Main buttons
'Insert': 'Beillesztés',
'Delete': 'Törlés',
'Cancel': 'Mégse',
'OK': 'Rendben',
'Back': 'Vissza',
'Remove': 'Eltávolítás',
'More': 'Több',
'Update': 'Frissítés',
'Style': 'Stílus',
// Font
'Font Family': 'Betűtípus',
'Font Size': 'Betűméret',
// Colors
'Colors': 'Színek',
'Background': 'Háttér',
'Text': 'Szöveg',
'HEX Color': 'HEX színkód',
// Paragraphs
'Paragraph Format': 'Formátumok',
'Normal': 'Normál',
'Code': 'Kód',
'Heading 1': 'Címsor 1',
'Heading 2': 'Címsor 2',
'Heading 3': 'Címsor 3',
'Heading 4': 'Címsor 4',
// Style
'Paragraph Style': 'Bekezdés stílusa',
'Inline Style': ' Helyi stílus',
// Alignment
'Align': 'Igazítás',
'Align Left': 'Balra igazít',
'Align Center': 'Középre zár',
'Align Right': 'Jobbra igazít',
'Align Justify': 'Sorkizárás',
'None': 'Egyik sem',
// Lists
'Ordered List': 'Számozás',
'Default': 'Alapértelmezett',
'Lower Alpha': 'Alacsonyabb alfa',
'Lower Greek': 'Alsó görög',
'Lower Roman': 'Alacsonyabb római',
'Upper Alpha': 'Felső alfa',
'Upper Roman': 'Felső római',
'Unordered List': 'Felsorolás',
'Circle': 'Kör',
'Disc': 'Lemez',
'Square': 'Négyzet',
// Line height
'Line Height': 'Vonal magassága',
'Single': 'Egyetlen',
'Double': 'Kettős',
// Indent
'Decrease Indent': 'Behúzás csökkentése',
'Increase Indent': 'Behúzás növelése',
// Links
'Insert Link': 'Hivatkozás beillesztése',
'Open in new tab': 'Megnyitás új lapon',
'Open Link': 'Hivatkozás megnyitása',
'Edit Link': 'Hivatkozás szerkesztése',
'Unlink': 'Hivatkozás törlése',
'Choose Link': 'Keresés a lapok között',
// Images
'Insert Image': 'Kép beillesztése',
'Upload Image': 'Kép feltöltése',
'By URL': 'Webcím megadása',
'Browse': 'Böngészés',
'Drop image': 'Húzza ide a képet',
'or click': 'vagy kattintson ide',
'Manage Images': 'Képek kezelése',
'Loading': 'Betöltés...',
'Deleting': 'Törlés...',
'Tags': 'Címkék',
'Are you sure? Image will be deleted.': 'Biztos benne? A kép törlésre kerül.',
'Replace': 'Csere',
'Uploading': 'Feltöltés',
'Loading image': 'Kép betöltése',
'Display': 'Kijelző',
'Inline': 'Sorban',
'Break Text': 'Szöveg törése',
'Alternative Text': 'Alternatív szöveg',
'Change Size': 'Méret módosítása',
'Width': 'Szélesség',
'Height': 'Magasság',
'Something went wrong. Please try again.': 'Valami elromlott. Kérjük próbálja újra.',
'Image Caption': 'Képaláírás',
'Advanced Edit': 'Fejlett szerkesztés',
// Video
'Insert Video': 'Videó beillesztése',
'Embedded Code': 'Kód bemásolása',
'Paste in a video URL': 'Illessze be a videó webcímét',
'Drop video': 'Húzza ide a videót',
'Your browser does not support HTML5 video.': 'A böngészője nem támogatja a HTML5 videót.',
'Upload Video': 'Videó feltöltése',
// Tables
'Insert Table': 'Táblázat beillesztése',
'Table Header': 'Táblázat fejléce',
'Remove Table': 'Tábla eltávolítása',
'Table Style': 'Táblázat stílusa',
'Horizontal Align': 'Vízszintes igazítás',
'Row': 'Sor',
'Insert row above': 'Sor beszúrása elé',
'Insert row below': 'Sor beszúrása mögé',
'Delete row': 'Sor törlése',
'Column': 'Oszlop',
'Insert column before': 'Oszlop beszúrása elé',
'Insert column after': 'Oszlop beszúrása mögé',
'Delete column': 'Oszlop törlése',
'Cell': 'Cella',
'Merge cells': 'Cellák egyesítése',
'Horizontal split': 'Vízszintes osztott',
'Vertical split': 'Függőleges osztott',
'Cell Background': 'Cella háttere',
'Vertical Align': 'Függőleges igazítás',
'Top': 'Felső',
'Middle': 'Középső',
'Bottom': 'Alsó',
'Align Top': 'Igazítsa felülre',
'Align Middle': 'Igazítsa középre',
'Align Bottom': 'Igazítsa alúlra',
'Cell Style': 'Cella stílusa',
// Files
'Upload File': 'Fájl feltöltése',
'Drop file': 'Húzza ide a fájlt',
// Emoticons
'Emoticons': 'Hangulatjelek',
'Grinning face': 'Vigyorgó arc',
'Grinning face with smiling eyes': 'Vigyorgó arc mosolygó szemekkel',
'Face with tears of joy': 'Arcon az öröm könnyei',
'Smiling face with open mouth': 'Mosolygó arc tátott szájjal',
'Smiling face with open mouth and smiling eyes': 'Mosolygó arc tátott szájjal és mosolygó szemek',
'Smiling face with open mouth and cold sweat': 'Mosolygó arc tátott szájjal és hideg veríték',
'Smiling face with open mouth and tightly-closed eyes': 'Mosolygó arc tátott szájjal és lehunyt szemmel',
'Smiling face with halo': 'Mosolygó arc dicsfényben',
'Smiling face with horns': 'Mosolygó arc szarvakkal',
'Winking face': 'Kacsintós arc',
'Smiling face with smiling eyes': 'Mosolygó arc mosolygó szemekkel',
'Face savoring delicious food': 'Ízletes ételek kóstolása',
'Relieved face': 'Megkönnyebbült arc',
'Smiling face with heart-shaped eyes': 'Mosolygó arc szív alakú szemekkel',
'Smilin g face with sunglasses': 'Mosolygó arc napszemüvegben',
'Smirking face': 'Vigyorgó arc',
'Neutral face': 'Semleges arc',
'Expressionless face': 'Kifejezéstelen arc',
'Unamused face': 'Unott arc',
'Face with cold sweat': 'Arcán hideg verejtékkel',
'Pensive face': 'Töprengő arc',
'Confused face': 'Zavaros arc',
'Confounded face': 'Rácáfolt arc',
'Kissing face': 'Csókos arc',
'Face throwing a kiss': 'Arcra dobott egy csókot',
'Kissing face with smiling eyes': 'Csókos arcán mosolygó szemek',
'Kissing face with closed eyes': 'Csókos arcán csukott szemmel',
'Face with stuck out tongue': 'Kinyújototta a nyelvét',
'Face with stuck out tongue and winking eye': 'Kinyújtotta a nyelvét és kacsintó szem',
'Face with stuck out tongue and tightly-closed eyes': 'Kinyújtotta a nyelvét és szorosan lehunyt szemmel',
'Disappointed face': 'Csalódott arc',
'Worried face': 'Aggódó arc',
'Angry face': 'Dühös arc',
'Pouting face': 'Duzzogó arc',
'Crying face': 'Síró arc',
'Persevering face': 'Kitartó arc',
'Face with look of triumph': 'Arcát diadalmas pillantást',
'Disappointed but relieved face': 'Csalódott, de megkönnyebbült arc',
'Frowning face with open mouth': 'Komor arc tátott szájjal',
'Anguished face': 'Gyötrődő arc',
'Fearful face': 'Félelmetes arc',
'Weary face': 'Fáradt arc',
'Sleepy face': 'Álmos arc',
'Tired face': 'Fáradt arc',
'Grimacing face': 'Elfintorodott arc',
'Loudly crying face': 'Hangosan síró arc',
'Face with open mouth': 'Arc nyitott szájjal',
'Hushed face': 'Csitított arc',
'Face with open mouth and cold sweat': 'Arc tátott szájjal és hideg veríték',
'Face screaming in fear': 'Sikoltozó arc a félelemtől',
'Astonished face': 'Meglepett arc',
'Flushed face': 'Kipirult arc',
'Sleeping face': 'Alvó arc',
'Dizzy face': ' Szádülő arc',
'Face without mouth': 'Arc nélküli száj',
'Face with medical mask': 'Arcán orvosi maszk',
// Line breaker
'Break': 'Törés',
// Math
'Subscript': 'Alsó index',
'Superscript': 'Felső index',
// Full screen
'Fullscreen': 'Teljes képernyő',
// Horizontal line
'Insert Horizontal Line': 'Vízszintes vonal',
// Clear formatting
'Clear Formatting': 'Formázás eltávolítása',
// Save
'Save': 'Mentés',
// Undo, redo
'Undo': 'Visszavonás',
'Redo': 'Ismét',
// Select all
'Select All': 'Minden kijelölése',
// Code view
'Code View': 'Forráskód',
// Quote
'Quote': 'Idézet',
'Increase': 'Növelés',
'Decrease': 'Csökkentés',
// Quick Insert
'Quick Insert': 'Beillesztés',
// Spcial Characters
'Special Characters': 'Speciális karakterek',
'Latin': 'Latin',
'Greek': 'Görög',
'Cyrillic': 'Cirill',
'Punctuation': 'Központozás',
'Currency': 'Valuta',
'Arrows': 'Nyilak',
'Math': 'Matematikai',
'Misc': 'Egyéb',
// Print
'Print': 'Nyomtatás',
// Spell Checker
'Spell Checker': 'Helyesírás-ellenőrző',
// Help
'Help': 'Segítség',
'Shortcuts': 'Hivatkozások',
'Inline Editor': 'Inline szerkesztő',
'Show the editor': 'Mutassa a szerkesztőt',
'Common actions': 'Közös cselekvések',
'Copy': 'Másolás',
'Cut': 'Kivágás',
'Paste': 'Beillesztés',
'Basic Formatting': 'Alap formázás',
'Increase quote level': 'Növeli az idézet behúzását',
'Decrease quote level': 'Csökkenti az idézet behúzását',
'Image / Video': 'Kép / videó',
'Resize larger': 'Méretezés nagyobbra',
'Resize smaller': 'Méretezés kisebbre',
'Table': 'Asztal',
'Select table cell': 'Válasszon táblázat cellát',
'Extend selection one cell': 'Növelje meg egy sorral',
'Extend selection one row': 'Csökkentse egy sorral',
'Navigation': 'Navigáció',
'Focus popup / toolbar': 'Felugró ablak / eszköztár',
'Return focus to previous position': 'Visszaáll az előző pozícióra',
// Embed.ly
'Embed URL': 'Beágyazott webcím',
'Paste in a URL to embed': 'Beilleszteni egy webcímet a beágyazáshoz',
// Word Paste
'The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?': 'A beillesztett tartalom egy Microsoft Word dokumentumból származik. Szeretné megtartani a formázását vagy sem?',
'Keep': 'Megtartás',
'Clean': 'Tisztítás',
'Word Paste Detected': 'Word beillesztés észlelhető'
},
direction: 'ltr'
};
})));
//# sourceMappingURL=hu.js.map
|
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('froala-editor')) :
typeof define === 'function' && define.amd ? define(['froala-editor'], factory) :
(factory(global.FroalaEditor));
}(this, (function (FE) { 'use strict';
FE = FE && FE.hasOwnProperty('default') ? FE['default'] : FE;
/**
* Arabic
*/
FE.LANGUAGE['ar'] = {
translation: {
// Place holder
'Type something': "\u0627\u0643\u062A\u0628 \u0634\u064A\u0626\u0627",
// Basic formatting
'Bold': "\u063A\u0627\u0645\u0642",
'Italic': "\u0645\u0627\u0626\u0644",
'Underline': "\u062A\u0633\u0637\u064A\u0631",
'Strikethrough': "\u064A\u062A\u0648\u0633\u0637 \u062E\u0637",
// Main buttons
'Insert': "\u0625\u062F\u0631\u0627\u062C",
'Delete': "\u062D\u0630\u0641",
'Cancel': "\u0625\u0644\u063A\u0627\u0621",
'OK': "\u0645\u0648\u0627\u0641\u0642",
'Back': "\u0638\u0647\u0631",
'Remove': "\u0625\u0632\u0627\u0644\u0629",
'More': "\u0623\u0643\u062B\u0631",
'Update': "\u0627\u0644\u062A\u062D\u062F\u064A\u062B",
'Style': "\u0623\u0633\u0644\u0648\u0628",
// Font
'Font Family': "\u0639\u0627\u0626\u0644\u0629 \u0627\u0644\u062E\u0637",
'Font Size': "\u062D\u062C\u0645 \u0627\u0644\u062E\u0637",
// Colors
'Colors': "\u0627\u0644\u0623\u0644\u0648\u0627\u0646",
'Background': "\u0627\u0644\u062E\u0644\u0641\u064A\u0629",
'Text': "\u0627\u0644\u0646\u0635",
'HEX Color': 'عرافة اللون',
// Paragraphs
'Paragraph Format': "\u062A\u0646\u0633\u064A\u0642 \u0627\u0644\u0641\u0642\u0631\u0629",
'Normal': "\u0637\u0628\u064A\u0639\u064A",
'Code': "\u0643\u0648\u062F",
'Heading 1': "\u0627\u0644\u0639\u0646\u0627\u0648\u064A\u0646 1",
'Heading 2': "\u0627\u0644\u0639\u0646\u0627\u0648\u064A\u0646 2",
'Heading 3': "\u0627\u0644\u0639\u0646\u0627\u0648\u064A\u0646 3",
'Heading 4': "\u0627\u0644\u0639\u0646\u0627\u0648\u064A\u0646 4",
// Style
'Paragraph Style': "\u0646\u0645\u0637 \u0627\u0644\u0641\u0642\u0631\u0629",
'Inline Style': "\u0627\u0644\u0646\u0645\u0637 \u0627\u0644\u0645\u0636\u0645\u0646",
// Alignment
'Align': "\u0645\u062D\u0627\u0630\u0627\u0629",
'Align Left': "\u0645\u062D\u0627\u0630\u0627\u0629 \u0627\u0644\u0646\u0635 \u0644\u0644\u064A\u0633\u0627\u0631",
'Align Center': "\u062A\u0648\u0633\u064A\u0637",
'Align Right': "\u0645\u062D\u0627\u0630\u0627\u0629 \u0627\u0644\u0646\u0635 \u0644\u0644\u064A\u0645\u064A\u0646",
'Align Justify': "\u0636\u0628\u0637",
'None': "\u0644\u0627 \u0634\u064A\u0621",
// Lists
'Ordered List': "\u0642\u0627\u0626\u0645\u0629 \u0645\u0631\u062A\u0628\u0629",
'Default': 'الافتراضي',
'Lower Alpha': 'أقل ألفا',
'Lower Greek': 'أقل اليونانية',
'Lower Roman': 'انخفاض الروماني',
'Upper Alpha': 'العلوي ألفا',
'Upper Roman': 'الروماني العلوي',
'Unordered List': "\u0642\u0627\u0626\u0645\u0629 \u063A\u064A\u0631 \u0645\u0631\u062A\u0628\u0629",
'Circle': 'دائرة',
'Disc': 'القرص',
'Square': 'ميدان',
// Line height
'Line Height': 'ارتفاع خط',
'Single': 'غير مرتبطة',
'Double': 'مزدوج',
// Indent
'Decrease Indent': "\u0627\u0646\u062E\u0641\u0627\u0636 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0627\u0644\u0628\u0627\u062F\u0626\u0629",
'Increase Indent': "\u0632\u064A\u0627\u062F\u0629 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0627\u0644\u0628\u0627\u062F\u0626\u0629",
// Links
'Insert Link': "\u0625\u062F\u0631\u0627\u062C \u0631\u0627\u0628\u0637",
'Open in new tab': "\u0641\u062A\u062D \u0641\u064A \u0639\u0644\u0627\u0645\u0629 \u062A\u0628\u0648\u064A\u0628 \u062C\u062F\u064A\u062F\u0629",
'Open Link': "\u0627\u0641\u062A\u062D \u0627\u0644\u0631\u0627\u0628\u0637",
'Edit Link': "\u0627\u0631\u062A\u0628\u0627\u0637 \u062A\u062D\u0631\u064A\u0631",
'Unlink': "\u062D\u0630\u0641 \u0627\u0644\u0631\u0627\u0628\u0637",
'Choose Link': "\u0627\u062E\u062A\u064A\u0627\u0631 \u0635\u0644\u0629",
// Images
'Insert Image': "\u0625\u062F\u0631\u0627\u062C \u0635\u0648\u0631\u0629",
'Upload Image': "\u062A\u062D\u0645\u064A\u0644 \u0635\u0648\u0631\u0629",
'By URL': "\u0628\u0648\u0627\u0633\u0637\u0629 URL",
'Browse': "\u062A\u0635\u0641\u062D",
'Drop image': "\u0625\u0633\u0642\u0627\u0637 \u0635\u0648\u0631\u0629",
'or click': "\u0623\u0648 \u0627\u0646\u0642\u0631 \u0641\u0648\u0642",
'Manage Images': "\u0625\u062F\u0627\u0631\u0629 \u0627\u0644\u0635\u0648\u0631",
'Loading': "\u062A\u062D\u0645\u064A\u0644",
'Deleting': "\u062D\u0630\u0641",
'Tags': "\u0627\u0644\u0643\u0644\u0645\u0627\u062A",
'Are you sure? Image will be deleted.': "\u0647\u0644 \u0623\u0646\u062A \u0645\u062A\u0623\u0643\u062F\u061F \u0633\u064A\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0635\u0648\u0631\u0629.",
'Replace': "\u0627\u0633\u062A\u0628\u062F\u0627\u0644",
'Uploading': "\u062A\u062D\u0645\u064A\u0644",
'Loading image': "\u0635\u0648\u0631\u0629 \u062A\u062D\u0645\u064A\u0644",
'Display': "\u0639\u0631\u0636",
'Inline': "\u0641\u064A \u062E\u0637",
'Break Text': "\u0646\u0635 \u0627\u0633\u062A\u0631\u0627\u062D\u0629",
'Alternative Text': "\u0646\u0635 \u0628\u062F\u064A\u0644",
'Change Size': "\u062A\u063A\u064A\u064A\u0631 \u062D\u062C\u0645",
'Width': "\u0639\u0631\u0636",
'Height': "\u0627\u0631\u062A\u0641\u0627\u0639",
'Something went wrong. Please try again.': ".\u062D\u062F\u062B \u062E\u0637\u0623 \u0645\u0627. \u062D\u0627\u0648\u0644 \u0645\u0631\u0629 \u0627\u062E\u0631\u0649",
'Image Caption': 'تعليق على الصورة',
'Advanced Edit': 'تعديل متقدم',
// Video
'Insert Video': "\u0625\u062F\u0631\u0627\u062C \u0641\u064A\u062F\u064A\u0648",
'Embedded Code': "\u0627\u0644\u062A\u0639\u0644\u064A\u0645\u0627\u062A \u0627\u0644\u0628\u0631\u0645\u062C\u064A\u0629 \u0627\u0644\u0645\u0636\u0645\u0646\u0629",
'Paste in a video URL': 'لصق في عنوان ورل للفيديو',
'Drop video': 'انخفاض الفيديو',
'Your browser does not support HTML5 video.': 'متصفحك لا يدعم فيديو HTML5.',
'Upload Video': 'رفع فيديو',
// Tables
'Insert Table': "\u0625\u062F\u0631\u0627\u062C \u062C\u062F\u0648\u0644",
'Table Header': "\u0631\u0623\u0633 \u0627\u0644\u062C\u062F\u0648\u0644",
'Remove Table': "\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062C\u062F\u0648\u0644",
'Table Style': "\u0646\u0645\u0637 \u0627\u0644\u062C\u062F\u0648\u0644",
'Horizontal Align': "\u0645\u062D\u0627\u0630\u0627\u0629 \u0623\u0641\u0642\u064A\u0629",
'Row': "\u0635\u0641",
'Insert row above': "\u0625\u062F\u0631\u0627\u062C \u0635\u0641 \u0644\u0644\u0623\u0639\u0644\u0649",
'Insert row below': "\u0625\u062F\u0631\u0627\u062C \u0635\u0641 \u0644\u0644\u0623\u0633\u0641\u0644",
'Delete row': "\u062D\u0630\u0641 \u0635\u0641",
'Column': "\u0639\u0645\u0648\u062F",
'Insert column before': "\u0625\u062F\u0631\u0627\u062C \u0639\u0645\u0648\u062F \u0644\u0644\u064A\u0633\u0627\u0631",
'Insert column after': "\u0625\u062F\u0631\u0627\u062C \u0639\u0645\u0648\u062F \u0644\u0644\u064A\u0645\u064A\u0646",
'Delete column': "\u062D\u0630\u0641 \u0639\u0645\u0648\u062F",
'Cell': "\u062E\u0644\u064A\u0629",
'Merge cells': "\u062F\u0645\u062C \u062E\u0644\u0627\u064A\u0627",
'Horizontal split': "\u0627\u0646\u0642\u0633\u0627\u0645 \u0623\u0641\u0642\u064A",
'Vertical split': "\u0627\u0644\u0627\u0646\u0642\u0633\u0627\u0645 \u0627\u0644\u0639\u0645\u0648\u062F\u064A",
'Cell Background': "\u062E\u0644\u0641\u064A\u0629 \u0627\u0644\u062E\u0644\u064A\u0629",
'Vertical Align': "\u0645\u062D\u0627\u0630\u0627\u0629 \u0639\u0645\u0648\u062F\u064A\u0629",
'Top': "\u0623\u0639\u0644\u0649",
'Middle': "\u0648\u0633\u0637",
'Bottom': "\u0623\u0633\u0641\u0644",
'Align Top': "\u0645\u062D\u0627\u0630\u0627\u0629 \u0623\u0639\u0644\u0649",
'Align Middle': "\u0645\u062D\u0627\u0630\u0627\u0629 \u0648\u0633\u0637",
'Align Bottom': "\u0645\u062D\u0627\u0630\u0627\u0629 \u0627\u0644\u0623\u0633\u0641\u0644",
'Cell Style': "\u0646\u0645\u0637 \u0627\u0644\u062E\u0644\u064A\u0629",
// Files
'Upload File': "\u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0645\u0644\u0641",
'Drop file': "\u0627\u0646\u062E\u0641\u0627\u0636 \u0627\u0644\u0645\u0644\u0641",
// Emoticons
'Emoticons': "\u0627\u0644\u0645\u0634\u0627\u0639\u0631",
'Grinning face': "\u064A\u0643\u0634\u0631 \u0648\u062C\u0647\u0647",
'Grinning face with smiling eyes': "\u0645\u0628\u062A\u0633\u0645\u0627 \u0648\u062C\u0647 \u0645\u0639 \u064A\u0628\u062A\u0633\u0645 \u0627\u0644\u0639\u064A\u0646",
'Face with tears of joy': "\u0648\u062C\u0647 \u0645\u0639 \u062F\u0645\u0648\u0639 \u0627\u0644\u0641\u0631\u062D",
'Smiling face with open mouth': "\u0627\u0644\u0648\u062C\u0647 \u0627\u0644\u0645\u0628\u062A\u0633\u0645 \u0645\u0639 \u0641\u062A\u062D \u0627\u0644\u0641\u0645",
'Smiling face with open mouth and smiling eyes': "\u0627\u0644\u0648\u062C\u0647 \u0627\u0644\u0645\u0628\u062A\u0633\u0645 \u0645\u0639 \u0641\u062A\u062D \u0627\u0644\u0641\u0645 \u0648\u0627\u0644\u0639\u064A\u0646\u064A\u0646 \u064A\u0628\u062A\u0633\u0645",
'Smiling face with open mouth and cold sweat': "\u0627\u0644\u0648\u062C\u0647 \u0627\u0644\u0645\u0628\u062A\u0633\u0645 \u0645\u0639 \u0641\u062A\u062D \u0627\u0644\u0641\u0645 \u0648\u0627\u0644\u0639\u0631\u0642 \u0627\u0644\u0628\u0627\u0631\u062F",
'Smiling face with open mouth and tightly-closed eyes': "\u0627\u0644\u0648\u062C\u0647 \u0627\u0644\u0645\u0628\u062A\u0633\u0645 \u0645\u0639 \u0641\u062A\u062D \u0627\u0644\u0641\u0645 \u0648\u0627\u0644\u0639\u064A\u0646\u064A\u0646 \u0645\u063A\u0644\u0642\u0629 \u0628\u0625\u062D\u0643\u0627\u0645",
'Smiling face with halo': "\u0627\u0644\u0648\u062C\u0647 \u0627\u0644\u0645\u0628\u062A\u0633\u0645 \u0645\u0639 \u0647\u0627\u0644\u0629",
'Smiling face with horns': "\u0627\u0644\u0648\u062C\u0647 \u0627\u0644\u0645\u0628\u062A\u0633\u0645 \u0628\u0642\u0631\u0648\u0646",
'Winking face': "\u0627\u0644\u063A\u0645\u0632 \u0648\u062C\u0647",
'Smiling face with smiling eyes': "\u064A\u0628\u062A\u0633\u0645 \u0648\u062C\u0647 \u0645\u0639 \u0639\u064A\u0648\u0646 \u062A\u0628\u062A\u0633\u0645",
'Face savoring delicious food': "\u064A\u0648\u0627\u062C\u0647 \u0644\u0630\u064A\u0630 \u0627\u0644\u0645\u0630\u0627\u0642 \u0644\u0630\u064A\u0630 \u0627\u0644\u0637\u0639\u0627\u0645",
'Relieved face': "\u0648\u062C\u0647 \u0628\u0627\u0644\u0627\u0631\u062A\u064A\u0627\u062D",
'Smiling face with heart-shaped eyes': "\u0627\u0644\u0648\u062C\u0647 \u0627\u0644\u0645\u0628\u062A\u0633\u0645 \u0628\u0639\u064A\u0646\u064A\u0646 \u0639\u0644\u0649 \u0634\u0643\u0644 \u0642\u0644\u0628",
'Smiling face with sunglasses': "\u0627\u0644\u0648\u062C\u0647 \u0627\u0644\u0645\u0628\u062A\u0633\u0645 \u0645\u0639 \u0627\u0644\u0646\u0638\u0627\u0631\u0627\u062A \u0627\u0644\u0634\u0645\u0633\u064A\u0629",
'Smirking face': "\u0633\u0645\u064A\u0631\u0643\u064A\u0646\u062C \u0627\u0644\u0648\u062C\u0647",
'Neutral face': "\u0645\u062D\u0627\u064A\u062F \u0627\u0644\u0648\u062C\u0647",
'Expressionless face': "\u0648\u062C\u0647 \u0627\u0644\u062A\u0639\u0627\u0628\u064A\u0631",
'Unamused face': "\u0644\u0627 \u0645\u0633\u0644\u064A\u0627 \u0627\u0644\u0648\u062C\u0647",
'Face with cold sweat': "\u0648\u062C\u0647 \u0645\u0639 \u0639\u0631\u0642 \u0628\u0627\u0631\u062F",
'Pensive face': "\u0648\u062C\u0647 \u0645\u062A\u0623\u0645\u0644",
'Confused face': "\u0648\u062C\u0647 \u0627\u0644\u062E\u0644\u0637",
'Confounded face': "\u0648\u062C\u0647 \u0645\u0631\u062A\u0628\u0643",
'Kissing face': "\u062A\u0642\u0628\u064A\u0644 \u0627\u0644\u0648\u062C\u0647",
'Face throwing a kiss': "\u0645\u0648\u0627\u062C\u0647\u0629 \u0631\u0645\u064A \u0642\u0628\u0644\u0629",
'Kissing face with smiling eyes': "\u062A\u0642\u0628\u064A\u0644 \u0648\u062C\u0647 \u0645\u0639 \u0639\u064A\u0648\u0646 \u062A\u0628\u062A\u0633\u0645",
'Kissing face with closed eyes': "\u062A\u0642\u0628\u064A\u0644 \u0648\u062C\u0647 \u0645\u0639 \u0639\u064A\u0648\u0646 \u0645\u063A\u0644\u0642\u0629",
'Face with stuck out tongue': "\u0627\u0644\u0648\u062C\u0647 \u0645\u0639 \u062A\u0645\u0633\u0643 \u0628\u0647\u0627 \u0627\u0644\u0644\u0633\u0627\u0646",
'Face with stuck out tongue and winking eye': "\u0627\u0644\u0648\u062C\u0647 \u0645\u0639 \u062A\u0645\u0633\u0643 \u0628\u0647\u0627 \u0627\u0644\u0644\u0633\u0627\u0646 \u0648\u0627\u0644\u0639\u064A\u0646 \u0627\u0644\u062A\u063A\u0627\u0636\u064A",
'Face with stuck out tongue and tightly-closed eyes': "\u0627\u0644\u0648\u062C\u0647 \u0645\u0639 \u062A\u0645\u0633\u0643 \u0628\u0647\u0627 \u0627\u0644\u0644\u0633\u0627\u0646 \u0648\u0627\u0644\u0639\u064A\u0648\u0646 \u0645\u063A\u0644\u0642\u0629 \u0628\u0623\u062D\u0643\u0627\u0645-",
'Disappointed face': "\u0648\u062C\u0647\u0627 \u062E\u064A\u0628\u0629 \u0623\u0645\u0644",
'Worried face': "\u0648\u062C\u0647\u0627 \u0627\u0644\u0642\u0644\u0642\u0648\u0646",
'Angry face': "\u0648\u062C\u0647 \u063A\u0627\u0636\u0628",
'Pouting face': "\u0627\u0644\u0639\u0628\u0648\u0633 \u0648\u062C\u0647",
'Crying face': "\u0627\u0644\u0628\u0643\u0627\u0621 \u0627\u0644\u0648\u062C\u0647",
'Persevering face': "\u0627\u0644\u0645\u062B\u0627\u0628\u0631\u0629 \u0648\u062C\u0647\u0647",
'Face with look of triumph': "\u0648\u0627\u062C\u0647 \u0645\u0639 \u0646\u0638\u0631\u0629 \u0627\u0646\u062A\u0635\u0627\u0631",
'Disappointed but relieved face': "\u0628\u062E\u064A\u0628\u0629 \u0623\u0645\u0644 \u0648\u0644\u0643\u0646 \u064A\u0639\u0641\u0649 \u0648\u062C\u0647",
'Frowning face with open mouth': "\u0645\u0642\u0637\u0628 \u0627\u0644\u0648\u062C\u0647 \u0645\u0639 \u0641\u062A\u062D \u0627\u0644\u0641\u0645",
'Anguished face': "\u0627\u0644\u0648\u062C\u0647 \u0627\u0644\u0645\u0624\u0644\u0645",
'Fearful face': "\u0627\u0644\u0648\u062C\u0647 \u0627\u0644\u0645\u062E\u064A\u0641",
'Weary face': "\u0648\u062C\u0647\u0627 \u0628\u0627\u0644\u0636\u062C\u0631",
'Sleepy face': "\u0648\u062C\u0647 \u0646\u0639\u0633\u0627\u0646",
'Tired face': "\u0648\u062C\u0647 \u0645\u062A\u0639\u0628",
'Grimacing face': "\u0648\u062E\u0631\u062C \u0633\u064A\u0633 \u0627\u0644\u0648\u062C\u0647",
'Loudly crying face': "\u0627\u0644\u0628\u0643\u0627\u0621 \u0628\u0635\u0648\u062A \u0639\u0627\u0644 \u0648\u062C\u0647\u0647",
'Face with open mouth': "\u0648\u0627\u062C\u0647 \u0645\u0639 \u0641\u062A\u062D \u0627\u0644\u0641\u0645",
'Hushed face': "\u0648\u062C\u0647\u0627 \u0627\u0644\u062A\u0643\u062A\u0645",
'Face with open mouth and cold sweat': "\u0648\u0627\u062C\u0647 \u0645\u0639 \u0641\u062A\u062D \u0627\u0644\u0641\u0645 \u0648\u0627\u0644\u0639\u0631\u0642 \u0627\u0644\u0628\u0627\u0631\u062F",
'Face screaming in fear': "\u0648\u0627\u062C\u0647 \u064A\u0635\u0631\u062E \u0641\u064A \u062E\u0648\u0641",
'Astonished face': "\u0648\u062C\u0647\u0627 \u062F\u0647\u0634",
'Flushed face': "\u0627\u062D\u0645\u0631\u0627\u0631 \u0627\u0644\u0648\u062C\u0647",
'Sleeping face': "\u0627\u0644\u0646\u0648\u0645 \u0627\u0644\u0648\u062C\u0647",
'Dizzy face': "\u0648\u062C\u0647\u0627 \u0628\u0627\u0644\u062F\u0648\u0627\u0631",
'Face without mouth': "\u0648\u0627\u062C\u0647 \u062F\u0648\u0646 \u0627\u0644\u0641\u0645",
'Face with medical mask': "\u0648\u0627\u062C\u0647 \u0645\u0639 \u0642\u0646\u0627\u0639 \u0627\u0644\u0637\u0628\u064A\u0629",
// Line breaker
'Break': "\u0627\u0644\u0627\u0646\u0642\u0633\u0627\u0645",
// Math
'Subscript': "\u0645\u0646\u062E\u0641\u0636",
'Superscript': "\u062D\u0631\u0641 \u0641\u0648\u0642\u064A",
// Full screen
'Fullscreen': "\u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",
// Horizontal line
'Insert Horizontal Line': "\u0625\u062F\u0631\u0627\u062C \u062E\u0637 \u0623\u0641\u0642\u064A",
// Clear formatting
'Clear Formatting': "\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062A\u0646\u0633\u064A\u0642",
// Save
'Save': "\u062D\u0641\u0638",
// Undo, redo
'Undo': "\u062A\u0631\u0627\u062C\u0639",
'Redo': "\u0625\u0639\u0627\u062F\u0629",
// Select all
'Select All': "\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0643\u0644",
// Code view
'Code View': "\u0639\u0631\u0636 \u0627\u0644\u062A\u0639\u0644\u064A\u0645\u0627\u062A \u0627\u0644\u0628\u0631\u0645\u062C\u064A\u0629",
// Quote
'Quote': "\u0627\u0642\u062A\u0628\u0633",
'Increase': "\u0632\u064A\u0627\u062F\u0629",
'Decrease': "\u0627\u0646\u062E\u0641\u0627\u0636",
// Quick Insert
'Quick Insert': "\u0625\u062F\u0631\u0627\u062C \u0633\u0631\u064A\u0639",
// Spcial Characters
'Special Characters': 'أحرف خاصة',
'Latin': 'لاتينية',
'Greek': 'الإغريقي',
'Cyrillic': 'السيريلية',
'Punctuation': 'علامات ترقيم',
'Currency': 'دقة',
'Arrows': 'السهام',
'Math': 'الرياضيات',
'Misc': 'متفرقات',
// Print.
'Print': 'طباعة',
// Spell Checker.
'Spell Checker': 'مدقق املائي',
// Help
'Help': 'مساعدة',
'Shortcuts': 'اختصارات',
'Inline Editor': 'محرر مضمنة',
'Show the editor': 'عرض المحرر',
'Common actions': 'الإجراءات المشتركة',
'Copy': 'نسخ',
'Cut': 'يقطع',
'Paste': 'معجون',
'Basic Formatting': 'التنسيق الأساسي',
'Increase quote level': 'زيادة مستوى الاقتباس',
'Decrease quote level': 'انخفاض مستوى الاقتباس',
'Image / Video': 'صورة / فيديو',
'Resize larger': 'تغيير حجم أكبر',
'Resize smaller': 'تغيير حجم أصغر',
'Table': 'الطاولة',
'Select table cell': 'حدد خلية الجدول',
'Extend selection one cell': 'توسيع اختيار خلية واحدة',
'Extend selection one row': 'تمديد اختيار صف واحد',
'Navigation': 'التنقل',
'Focus popup / toolbar': 'التركيز المنبثقة / شريط الأدوات',
'Return focus to previous position': 'عودة التركيز إلى الموقف السابق',
// Embed.ly
'Embed URL': 'تضمين عنوان ورل',
'Paste in a URL to embed': 'الصق في عنوان ورل لتضمينه',
// Word Paste.
'The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?': 'المحتوى الذي تم لصقه قادم من وثيقة كلمة ميكروسوفت. هل تريد الاحتفاظ بالتنسيق أو تنظيفه؟',
'Keep': 'احتفظ',
'Clean': 'نظيف',
'Word Paste Detected': 'تم اكتشاف معجون الكلمات',
// Character Counter
'Characters': 'الشخصيات',
// More Buttons
'More Text': 'المزيد من النص',
'More Paragraph': ' المزيد من الفقرة',
'More Rich': ' أكثر ثراء',
'More Misc': ' أكثر متفرقات'
},
direction: 'rtl'
};
})));
//# sourceMappingURL=ar.js.map
|
package wblut.Render2016;
import java.util.Arrays;
import processing.core.PConstants;
public class MultiTextNoTitle extends Slide {
String[] lines = null;
int offset;
public MultiTextNoTitle(final RTO home, final String... lines) {
super(home, "");
this.lines = Arrays.copyOf(lines, lines.length);
offset = 80;
};
public MultiTextNoTitle(final RTO home, final int offset, final String... lines) {
super(home, "");
this.lines = Arrays.copyOf(lines, lines.length);
this.offset = offset;
};
@Override
void setup() {
home.fill(0);
}
@Override
public void updatePre() {
}
@Override
void backgroundDraw() {
home.background(20);
}
@Override
void transformAndLights() {
}
@Override
void normalDraw() {
}
@Override
void glowDraw() {
}
@Override
public void hudDraw() {
home.textFont(home.fontsans, 1.8f * home.smallfont);
home.textAlign(PConstants.CENTER);
home.fill(200);
float m = 0;
for (int i = 0; i < lines.length; i++) {
home.text(lines[i], home.width / 2, ((home.height / 2) - offset) + m);
m += 2.6f * home.smallfont;
}
}
@Override
public void updatePost() {
}
@Override
void shutdown() {
}
}
|
jsonp({"cep":"08525325","logradouro":"Rua da Olaria","bairro":"Vila Jamil","cidade":"Ferraz de Vasconcelos","uf":"SP","estado":"S\u00e3o Paulo"});
|
jsonp({"cep":"79040500","logradouro":"Rua Cevena","bairro":"Ch\u00e1cara Cachoeira","cidade":"Campo Grande","uf":"MS","estado":"Mato Grosso do Sul"});
|
jsonp({"cep":"04663050","logradouro":"Rua Doutor Paulo Aires Neto","bairro":"Jardim Marajoara","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
|
jsonp({"cep":"52090365","logradouro":"Rua Professor Luiz Rodrigues de Melo","bairro":"Macaxeira","cidade":"Recife","uf":"PE","estado":"Pernambuco"});
|
jsonp({"cep":"04011040","logradouro":"Rua Victor Francisco Abatepaulo","bairro":"Vila Mariana","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
|
jsonp({"cep":"86079490","logradouro":"Rua Ant\u00f4nia Carolina da Silva","bairro":"Jardim Mar\u00edzia I","cidade":"Londrina","uf":"PR","estado":"Paran\u00e1"});
|
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_45-internal) on Sat Jul 25 18:14:30 BST 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.apache.jena.sparql.sse.writers.WriterGraph (Apache Jena ARQ)</title>
<meta name="date" content="2015-07-25">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.apache.jena.sparql.sse.writers.WriterGraph (Apache Jena ARQ)";
}
}
catch(err) {
}
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar.top">
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../../org/apache/jena/sparql/sse/writers/WriterGraph.html" title="class in org.apache.jena.sparql.sse.writers">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/jena/sparql/sse/writers/class-use/WriterGraph.html" target="_top">Frames</a></li>
<li><a href="WriterGraph.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.top">
</a></div>
<div class="header">
<h2 title="Uses of Class org.apache.jena.sparql.sse.writers.WriterGraph" class="title">Uses of Class<br>org.apache.jena.sparql.sse.writers.WriterGraph</h2>
</div>
<div class="classUseContainer">No usage of org.apache.jena.sparql.sse.writers.WriterGraph</div>
<div class="bottomNav"><a name="navbar.bottom">
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../../org/apache/jena/sparql/sse/writers/WriterGraph.html" title="class in org.apache.jena.sparql.sse.writers">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/jena/sparql/sse/writers/class-use/WriterGraph.html" target="_top">Frames</a></li>
<li><a href="WriterGraph.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.bottom">
</a></div>
<p class="legalCopy"><small>Licenced under the Apache License, Version 2.0</small></p>
</body>
</html>
|
jsonp({"cep":"31170580","logradouro":"Rua Al\u00edrio Elias Ferreira","bairro":"Uni\u00e3o","cidade":"Belo Horizonte","uf":"MG","estado":"Minas Gerais"});
|
jsonp({"cep":"89874000","cidade":"Maravilha","uf":"SC","estado":"Santa Catarina"});
|
jsonp({"cep":"91750340","logradouro":"Rua Fernando Pessoa","bairro":"Vila Nova","cidade":"Porto Alegre","uf":"RS","estado":"Rio Grande do Sul"});
|
jsonp({"cep":"23934600","logradouro":"Rua Para\u00edba do Sul","bairro":"Aeroporto (Cunhambebe)","cidade":"Angra dos Reis","uf":"RJ","estado":"Rio de Janeiro"});
|
jsonp({"cep":"37701518","logradouro":"Rua B","bairro":"Jardim do Gin\u00e1sio","cidade":"Po\u00e7os de Caldas","uf":"MG","estado":"Minas Gerais"});
|
jsonp({"cep":"13976616","logradouro":"Rua Dorvalino Colla","bairro":"Conjunto Habitacional H\u00e9lio Nicolai","cidade":"Itapira","uf":"SP","estado":"S\u00e3o Paulo"});
|
var tpl_library = "<ul id=\"library\" class=\"library\">\n <li>\n \t<a href=\"/albums\" class=\"<API key>\">\n\t <span class=\"icon\" farm-icon=\"#icon-disc\"></span>\n\t <span>Albums</span>\n\t</a>\n </li>\n <li>\n \t <a href=\"/artists\" class=\"<API key>\">\n\t <span class=\"icon\" farm-icon=\"#icon-user\"></span>\n\t <span>Artists</span>\n\t</a>\n </li>\n <!--\n <li class=\"selected\">\n \t <a class=\"<API key>\">\n\t <span class=\"icon\" farm-icon=\"#icon-song\"></span>\n\t <span>Songs</span>\n\t</a>\n </li>\n-->\n</ul>";
|
jsonp({"cep":"55034070","logradouro":"Rua Euclides Figueredo","bairro":"Agamenom Magalh\u00e3es","cidade":"Caruaru","uf":"PE","estado":"Pernambuco"});
|
jsonp({"cep":"16201427","logradouro":"Rua Adriano Sim\u00f5es Rainho","bairro":"Residencial Portal da P\u00e9rola II","cidade":"Birig\u00fci","uf":"SP","estado":"S\u00e3o Paulo"});
|
jsonp({"cep":"89812380","logradouro":"Rua Volunt\u00e1rios da P\u00e1tria - E","bairro":"Universit\u00e1rio","cidade":"Chapec\u00f3","uf":"SC","estado":"Santa Catarina"});
|
jsonp({"cep":"12246875","logradouro":"Rua Jesus Garcia","bairro":"Royal Park","cidade":"S\u00e3o Jos\u00e9 dos Campos","uf":"SP","estado":"S\u00e3o Paulo"});
|
jsonp({"cep":"70304901","logradouro":"Quadra SCS Quadra 4","bairro":"Asa Sul","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
|
jsonp({"cep":"69087111","logradouro":"Rua T\u00eamis","bairro":"Tancredo Neves","cidade":"Manaus","uf":"AM","estado":"Amazonas"});
|
jsonp({"cep":"40330205","logradouro":"Rua da Fonte","bairro":"IAPI","cidade":"Salvador","uf":"BA","estado":"Bahia"});
|
jsonp({"cep":"71727022","logradouro":"Quadra QR A Conjunto VC","bairro":"Candangol\u00e2ndia","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
|
jsonp({"cep":"07154020","logradouro":"Rua Adilson Charles dos Santos J\u00fanior","bairro":"Jardim Fortaleza","cidade":"Guarulhos","uf":"SP","estado":"S\u00e3o Paulo"});
|
jsonp({"cep":"71020122","logradouro":"Quadra QI 3 Conjunto L","bairro":"Guar\u00e1 I","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
|
jsonp({"cep":"03151030","logradouro":"Rua Igarat\u00e1","bairro":"Quinta da Paineira","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
|
jsonp({"cep":"63880000","cidade":"Domingos da Costa","uf":"CE","estado":"Cear\u00e1"});
|
jsonp({"cep":"06170102","logradouro":"Rua Edvaldo da Anuncia\u00e7\u00e3o Nascimento","bairro":"Jardim Roberto","cidade":"Osasco","uf":"SP","estado":"S\u00e3o Paulo"});
|
jsonp({"cep":"52091089","logradouro":"1\u00aa Travessa Popular","bairro":"C\u00f3rrego do Jenipapo","cidade":"Recife","uf":"PE","estado":"Pernambuco"});
|
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>web server - Coding is Poetry</title>
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="<API key>" content="yes">
<meta name="<API key>" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="web server - Coding is Poetry">
<meta name="<TwitterConsumerkey>" content="">
<meta property="og:url" content="http://nmrony.info">
<meta property="og:type" content="article">
<meta property="og:title" content="web server - Coding is Poetry">
<meta property="og:description" content="">
<meta property="og:site_name" content="Coding is Poetry">
<meta itemprop="name" content="web server - Coding is Poetry">
<meta itemprop="description" content="">
<meta name="twitter:site" content="@nmrony">
<meta name="twitter:creator" content="@nmrony">
<meta property="article:author" content="https:
<meta name="<API key>" content="">
<meta name="theme-color" content="">
<link href="../../favicon.ico" rel="shortcut icon" type="image/x-icon">
<link href="../../<API key>.png" rel="apple-touch-icon">
<link href="http://fonts.googleapis.com/" rel="dns-prefetch">
<link href="http://fonts.googleapis.com/css?family=Noto+Serif:400,700,400italic%7COpen+Sans:700,400&subset=latin,latin-ext" rel="stylesheet">
<link rel="stylesheet" href="../../assets/css/main.min.css?v=a04fd632d9">
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
var ga_ua = 'UA-73097824-1';
var disqus_shortname = 'nmrony';
var enable_pjax = true;
// Pace Options
window.paceOptions = {
catchupTime: 100,
minTime: 100,
elements: false,
<API key>: 500,
startOnPageLoad: false
}
// Ghostium Globals
window.GHOSTIUM = {};
GHOSTIUM.haveGA = typeof ga_ua !== 'undefined' && ga_ua !== 'UA-XXXXX-X';
GHOSTIUM.haveDisqus = typeof disqus_shortname !== 'undefined' && disqus_shortname !== 'example';
GHOSTIUM.enablePjax = typeof enable_pjax !== 'undefined' ? enable_pjax : true;
</script>
<script src="../../assets/js/head-scripts.min.js?v=a04fd632d9"></script>
<link rel="canonical" href="index.html">
<meta name="referrer" content="<API key>">
<meta property="og:site_name" content="Coding is Poetry">
<meta property="og:type" content="website">
<meta property="og:title" content="web server - Coding is Poetry">
<meta property="og:url" content="http://nmrony.info/tag/web-server/">
<meta property="article:modified_time" content="2016-09-09T19:12:10.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="web server - Coding is Poetry">
<meta name="twitter:url" content="http://nmrony.info/tag/web-server/">
<meta name="twitter:site" content="@nmrony">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Series",
"publisher": "Coding is Poetry",
"url": "http://nmrony.info/tag/web-server/",
"name": "web server"
}
</script>
<meta name="generator" content="Ghost 0.9">
<link rel="alternate" type="application/rss+xml" title="Coding is Poetry" href="../../rss/index.html">
</head>
<body class="tag-template tag-web-server">
<button data-action="open-drawer" id="drawer-button" class="drawer-button"><i class="fa fa-bars"></i></button>
<nav tabindex="-1" class="drawer">
<div class="drawer-container">
<!--.drawer-search(role="search")-->
<ul role="navigation" class="drawer-list">
<li class="drawer-list-item">
<a href="../../" data-pjax>
<i class="fa fa-home"></i>Home
</a>
</li>
<li class="drawer-list-item">
<a href="../../rss/index.rss" target="_blank" rel="noopener">
<i class="fa fa-rss"></i>Subscribe to Feed
</a>
</li>
<li class="drawer-list-divider">
<li class="drawer-list-item drawer-list-title">
Follow me
</li>
<li class="drawer-list-item">
<a href="https://twitter.com/nmrony" target="_blank" rel="noopener">
<i class="fa fa-twitter"></i>Twitter
</a>
</li>
<li class="drawer-list-item">
<a href="https://github.com/nmrony" target="_blank" rel="noopener">
<i class="fa fa-github"></i>Github
</a>
</li>
<li class="drawer-list-item">
<a href="https://stackoverflow.com/cv/nmrony" target="_blank" rel="noopener">
<i class="fa fa-stack-overflow"></i>Stackoverflow
</a>
</li>
</ul>
</div>
</nav>
<div class="drawer-overlay"></div>
<main id="container" role="main" class="container">
<div class="surface">
<div class="surface-container">
<div data-pjax-container class="content">
<aside role="banner" class="cover">
<div data-load-image="/content/images/2016/08/home-bg.jpg" class="cover-image"></div>
<div class="cover-container">
<a href="../../" class="cover-logo" data-pjax>
<img src="../../content/images/2016/08/rony.jpg" alt="Blog Logo">
</a>
<h1 class="cover-title">Coding is Poetry</h1>
<p class="cover-description">Thoughts, stories and ideas.</p>
</div>
</aside>
<section class="wrapper" tabindex="0">
<div class="wrapper-container">
<header>
<p></p><h2>Posts tagged with <i>web server</i></h2>
<hr>
</header>
<section class="post-list">
<article itemscope itemtype="http://schema.org/BlogPosting" role="article" class="post-item post tag-nginx tag-howto tag-php tag-latest tag-web-server">
<header class="post-item-header">
<h2 itemprop="name" class="post-item-title">
<a href="../../<API key>/" itemprop="url" data-pjax title="Configuring Nginx Virtual Host with PHP 7.0">
Configuring Nginx Virtual Host with PHP 7.0
</a>
</h2>
</header>
<section itemprop="description" class="post-item-excerpt">
<p>I was super excited about PHP 7.0 and started using it as soon it was getting some shape. But I also faced some problem while I was configuring PHP 7.0 with Nginx. I…</p>
</section>
<footer class="post-item-footer">
<ul class="post-item-meta-list">
<li class="post-item-meta-item">
<time datetime="2016-02-02" itemprop="datePublished">
7 months ago
</time>
</li>
<li class="post-item-meta-item">
<a itemprop="articleSection" href="../nginx/" data-pjax>nginx</a>,
<a itemprop="keywords" href="../howto/" data-pjax>howto</a>,
<a itemprop="keywords" href="../php/" data-pjax>php</a>,
<a itemprop="keywords" href="../latest/" data-pjax>latest</a>,
<a itemprop="keywords" href="index.html" data-pjax>web server</a>
</li>
<li class="post-item-meta-item">
<a href="../../<API key>/index.html#disqus_thread" data-pjax <API key>="22">Comments</a>
</li>
</ul>
</footer>
</article>
</section>
<nav role="pagination" class="<API key>">
<span class="<API key> <API key>">Page 1 of 1</span>
</nav>
<footer role="contentinfo" class="footer">
<p><small>© 2016. All Rights Reserved.</small></p>
<p><small>Proudly published with <a href="http://ghost.org" target="_blank">Ghost</a></small></p>
</footer>
</div>
</section>
</div>
</div>
</div>
</main>
<script src="../../assets/js/foot-scripts.min.js?v=a04fd632d9"></script>
<script type="text/javascript">
if(GHOSTIUM.haveGA) {
(function(g,h,o,s,t,z){g.<API key>=s;g[s]||(g[s]=
function(){(g[s].q=g[s].q||[]).push(arguments)});g[s].s=+new Date;
t=h.createElement(o);z=h.<API key>(o)[0];
t.src='
z.parentNode.insertBefore(t,z)}(window,document,'script','ga'));
ga('create',ga_ua);ga('send','pageview');
}
if(GHOSTIUM.haveDisqus) {
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.<API key>('HEAD')[0] || document.<API key>('BODY')[0]).appendChild(s);
}());
}
</script>
</body>
|
class FavoritesController < <API key>
def index
@favorite = Favorite.new
end
def create
@favorite = Favorite.new(favorite_params)
@favorite.user = current_user
if @favorite.save
redirect_to :back
end
end
def destroy
@favorite = Favorite.find(params[:favorite])
@favorite.destroy
end
private
def favorite_params
params.require(:favorite).permit(:busroute)
end
end
|
jsonp({"cep":"02151030","logradouro":"Rua Ant\u00f4nio Vivaldi","bairro":"Jardim Guanca","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
|
jsonp({"cep":"79110190","logradouro":"Rua Jos\u00e9 Rodrigues Benfica","bairro":"Sobrinho","cidade":"Campo Grande","uf":"MS","estado":"Mato Grosso do Sul"});
|
jsonp({"cep":"71881155","logradouro":"Quadra QN 14E Conjunto 5","bairro":"Riacho Fundo II","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
|
R
HYB_subset<-subset(dataset, fly=="HYB")[,-c(1:3)]
ORE_subset<-subset(dataset, fly=="ORE")[,-c(1:3)]
SAM_subset<-subset(dataset, fly=="SAM")[,-c(1:3)]
HYB_dist<-vegdist(decostand(HYB_subset,"pa"),method="jaccard")
ORE_dist<-vegdist(decostand(ORE_subset,"pa"),method="jaccard")
SAM_dist<-vegdist(decostand(SAM_subset,"pa"),method="jaccard")
mantel(ORE_dist,HYB_dist,method="spearman",permutations=9999)
mantel(ORE_dist,SAM_dist,method="spearman",permutations=9999)
mantel(HYB_dist,SAM_dist,method="spearman",permutations=9999)
|
# pgen
Perl program to generate XKCD-style passwords
I want there to be NO barriers to using this code, so I am releasing it to the public domain. But "public domain" does not have an internationally agreed upon definition, so I use CC0:
Copyright 2017 Steven Ford http:
"public domain" style under
[CC0](http://creativecommons.org/publicdomain/zero/1.0/):
.
Here are the interesting features of the program:
* It starts with a set of 3000 words that I put together.
I make use of several "lists of common words" for suggestions, including
[Education First](http:
and [Wikipedia](https://en.wiktionary.org/wiki/Wiktionary:Frequency_lists/<API key>).
But this is not a simple copy of any of the lists, and I consider it
my own.
I wanted them to be words that most people would understand and know how to
spell.
* It can either use Perl's internal pseudo-random number generator (useful for experimentation and statistics gathering), or it can get random numbers from https://random.org which makes the resulting password properly secure.
You can get help by entering:
./pgen.pl -h
Important: if you plan to actually use the passwords you generate, use "-r"! [Here's why](http://blog.geeky-boy.com/2017/07/<API key>.html).
To try it out without downloading it, go here:
https://repl.it/@fordsfords/pgen#README.md
Click on the right-hand panel and enter:
./pgen.pl -r
|
jsonp({"cep":"71993190","logradouro":"Conjunto SHA Conjunto 1 Ch\u00e1cara 58B","bairro":"Setor Habitacional Arniqueiras (Taguatinga)","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
|
jsonp({"cep":"23545460","logradouro":"Caminho da Barreira","bairro":"Sepetiba","cidade":"Rio de Janeiro","uf":"RJ","estado":"Rio de Janeiro"});
|
jsonp({"cep":"91160634","logradouro":"Acesso I Um","bairro":"Rubem Berta","cidade":"Porto Alegre","uf":"RS","estado":"Rio Grande do Sul"});
|
jsonp({"cep":"65605520","logradouro":"Rua Esperantinop\u00f3lis","bairro":"Vila Lob\u00e3o","cidade":"Caxias","uf":"MA","estado":"Maranh\u00e3o"});
|
jsonp({"cep":"24140610","logradouro":"Rua Dona Zulmira Barbosa","bairro":"Baldeador","cidade":"Niter\u00f3i","uf":"RJ","estado":"Rio de Janeiro"});
|
jsonp({"cep":"44009270","logradouro":"Caminho 21","bairro":"Calumbi","cidade":"Feira de Santana","uf":"BA","estado":"Bahia"});
|
jsonp({"cep":"26031340","logradouro":"Rua Tuiuti","bairro":"Floresta","cidade":"Nova Igua\u00e7u","uf":"RJ","estado":"Rio de Janeiro"});
|
jsonp({"cep":"32681394","logradouro":"Rua Boa Viagem","bairro":"Jardim Teres\u00f3polis","cidade":"Betim","uf":"MG","estado":"Minas Gerais"});
|
import {CHANGE_PAGE_ID} from 'actions'
const initialState = null
export default function(state = initialState, action = {}) {
switch (action.type) {
case CHANGE_PAGE_ID:
return action.payload
default:
return state
}
}
|
jsonp({"cep":"18207816","logradouro":"Rua Salvador Costa","bairro":"Tupy","cidade":"Itapetininga","uf":"SP","estado":"S\u00e3o Paulo"});
|
jsonp({"cep":"72003360","logradouro":"Rua Rua 8 Ch\u00e1cara 312","bairro":"Vila S\u00e3o Jos\u00e9 (Taguatinga)","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
|
jsonp({"cep":"12519460","logradouro":"Rua Maria Benedita Meirelles de Carvalho","bairro":"Jardim do Vale II","cidade":"Guaratinguet\u00e1","uf":"SP","estado":"S\u00e3o Paulo"});
|
jsonp({"cep":"16206017","logradouro":"Rua Oito","bairro":"Distrito Industrial","cidade":"Birig\u00fci","uf":"SP","estado":"S\u00e3o Paulo"});
|
jsonp({"cep":"39402235","logradouro":"Rua Jo\u00e3o Paulo I","bairro":"Francisco Peres I","cidade":"Montes Claros","uf":"MG","estado":"Minas Gerais"});
|
jsonp({"cep":"09341146","logradouro":"Rua Beatriz Helena Costa","bairro":"Jardim Quarto Centen\u00e1rio","cidade":"Mau\u00e1","uf":"SP","estado":"S\u00e3o Paulo"});
|
jsonp({"cep":"44072380","logradouro":"Rua Novo Murumbi","bairro":"Santo Ant\u00f4nio dos Prazeres","cidade":"Feira de Santana","uf":"BA","estado":"Bahia"});
|
jsonp({"cep":"25645044","logradouro":"Vila Maria Joana Garril Foster","bairro":"S\u00e3o Sebasti\u00e3o","cidade":"Petr\u00f3polis","uf":"RJ","estado":"Rio de Janeiro"});
|
# revision identifiers, used by Alembic.
revision = 'c0a714ade734'
down_revision = '1a886e694fca'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade(engine_name):
globals()["upgrade_%s" % engine_name]()
def downgrade(engine_name):
globals()["downgrade_%s" % engine_name]()
def upgrade_validation():
commands auto generated by Alembic - please adjust!
op.add_column('field_type', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('field_type', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('file_columns', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('file_columns', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('file_type', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('file_type', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('multi_field_rule', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('multi_field_rule', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('<API key>', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('<API key>', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('rule', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('rule', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('rule_timing', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('rule_timing', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('rule_type', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('rule_type', sa.Column('updated_at', sa.DateTime(), nullable=True))
op.add_column('tas_lookup', sa.Column('created_at', sa.DateTime(), nullable=True))
op.add_column('tas_lookup', sa.Column('updated_at', sa.DateTime(), nullable=True))
end Alembic commands
def <API key>():
commands auto generated by Alembic - please adjust!
op.drop_column('tas_lookup', 'updated_at')
op.drop_column('tas_lookup', 'created_at')
op.drop_column('rule_type', 'updated_at')
op.drop_column('rule_type', 'created_at')
op.drop_column('rule_timing', 'updated_at')
op.drop_column('rule_timing', 'created_at')
op.drop_column('rule', 'updated_at')
op.drop_column('rule', 'created_at')
op.drop_column('<API key>', 'updated_at')
op.drop_column('<API key>', 'created_at')
op.drop_column('multi_field_rule', 'updated_at')
op.drop_column('multi_field_rule', 'created_at')
op.drop_column('file_type', 'updated_at')
op.drop_column('file_type', 'created_at')
op.drop_column('file_columns', 'updated_at')
op.drop_column('file_columns', 'created_at')
op.drop_column('field_type', 'updated_at')
op.drop_column('field_type', 'created_at')
end Alembic commands
|
jsonp({"cep":"54410222","logradouro":"Rua Vinte e Quatro de Maio","bairro":"Piedade","cidade":"Jaboat\u00e3o dos Guararapes","uf":"PE","estado":"Pernambuco"});
|
<?php
class <API key>
{
/**
* @var <API key>
*/
protected static $_instance;
/**
* @var <API key>
*/
protected static $_instanceFile;
/**
* @var <API key>
*/
protected $_env;
/**
* @var <API key>
*/
protected $_logger;
/**
* @var array
*/
protected $_extensions = array();
/**
* Retrieves the default string loader instance
*
* @param array $twigOptions
* @return <API key>
*/
public static function getInstance($twigOptions=array())
{
if (self::$_instance === null) {
require_once dirname(__FILE__) . '/../Tpl.php';
$options = array_merge(array('twig_loader' => 'String'), $twigOptions);
$env = IfwPsn_Wp_Tpl::factory($options);
self::$_instance = new self($env);
}
return self::$_instance;
}
/**
* Retrieves the file loader instance
*
* @param <API key> $pm
* @param array $twigOptions
* @return <API key>
*/
public static function getFileInstance(<API key> $pm, $twigOptions=array())
{
if (self::$_instanceFile === null) {
require_once dirname(__FILE__) . '/../Tpl.php';
$env = IfwPsn_Wp_Tpl::<API key>($pm, $twigOptions);
self::$_instanceFile = new self($env);
}
return self::$_instanceFile;
}
/**
* @param <API key> $env
*/
protected function __construct(<API key> $env)
{
$this->_env = $env;
$this->_init();
}
protected function _init()
{
$this->_loadExtensions();
}
protected function _loadExtensions()
{
$extensionsPath = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Extension' . DIRECTORY_SEPARATOR;
require_once $extensionsPath . 'TextFilters.php';
require_once $extensionsPath . 'TextTests.php';
require_once $extensionsPath . 'ListFilters.php';
require_once $extensionsPath . 'Globals.php';
array_push($this->_extensions, new <API key>());
array_push($this->_extensions, new <API key>());
array_push($this->_extensions, new <API key>());
array_push($this->_extensions, new <API key>());
foreach ($this->_extensions as $extension) {
if ($extension instanceof <API key>) {
$extension->load($this->_env);
}
}
}
/**
* @param $string
* @param array $context
* @param null|callable $exceptionHandler
* @return string
*/
public function parse($string, $context = array(), $exceptionHandler = null)
{
if (!empty($string)) {
try {
if ($this->_env->getLoader() instanceof <API key>) {
$string = $this->_sanitzeString($string);
}
$string = $this->_env->render($string, $context);
} catch (Exception $e) {
// invalid filter handling
if (is_callable($exceptionHandler)) {
<API key>($exceptionHandler, array($e));
} else {
if ($this->_logger instanceof <API key>) {
$this->_logger->err($e->getMessage());
}
}
}
}
return $string;
}
/**
* @param $string
* @return string
*/
protected function _sanitzeString($string)
{
$replace = array(
'/{{(\s+)/' => '{{',
'/{{ /' => '{{',
'/(\s+)}}/' => '}}',
);
$string = preg_replace(array_keys($replace), array_values($replace), $string);
return $string;
}
/**
* @param \<API key> $logger
*/
public function setLogger($logger)
{
$this->_logger = $logger;
}
/**
* @return \<API key>
*/
public function getLogger()
{
return $this->_logger;
}
}
|
<!
Automatically generated HTML file from DocOnce source
(https://github.com/hplgit/doconce/)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="DocOnce: https://github.com/hplgit/doconce/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Computational Physics Lectures: Introduction to the course">
<title>Computational Physics Lectures: Introduction to the course</title>
<!-- Bootstrap style: bootstrap -->
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<!-- not necessary
<link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<style type="text/css">
/* Add scrollbar to dropdown menus in bootstrap navigation bar */
.dropdown-menu {
height: auto;
max-height: 400px;
overflow-x: hidden;
}
/* Adds an invisible element before each target to offset for the navigation
bar */
.anchor::before {
content:"";
display:block;
height:50px; /* fixed header height for style bootstrap */
margin:-50px 0 0; /* negative fixed header height */
}
</style>
</head>
<!-- tocinfo
{'highest level': 2,
'sections': [('Overview of first week', 2, None, '___sec0'),
('Reading suggestions and exercises', 2, None, '___sec1'),
('Lectures and ComputerLab', 2, None, '___sec2'),
('Course Format', 2, None, '___sec3'),
('Teachers and ComputerLab', 2, None, '___sec4'),
('Deadlines for projects (end of day, tentative deadlines)',
2,
None,
'___sec5'),
('Topics covered in this course', 2, None, '___sec6'),
('Syllabus', 2, None, '___sec7'),
('Syllabus', 2, None, '___sec8'),
('Syllabus', 2, None, '___sec9'),
('Syllabus', 2, None, '___sec10'),
('Syllabus', 2, None, '___sec11'),
('Syllabus', 2, None, '___sec12'),
('Overarching aims of this course', 2, None, '___sec13'),
('Additional learning outcomes', 2, None, '___sec14'),
('Computing knowledge', 2, None, '___sec15'),
('And, there is nothing like a code which gives correct '
'results!!',
2,
None,
'___sec16'),
('Other courses in Computational Science at UiO',
2,
None,
'___sec17'),
('Extremely useful tools, strongly recommended',
2,
None,
'___sec18')]}
end of tocinfo
<body>
<!-- Bootstrap navigation bar -->
<div class="navbar navbar-default navbar-fixed-top">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".<API key>">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="intro-bs.html">Computational Physics Lectures: Introduction to the course</a>
</div>
<div class="navbar-collapse collapse <API key>">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Contents <b class="caret"></b></a>
<ul class="dropdown-menu">
<!-- navigation toc: --> <li><a href="._intro-bs001.html
<!-- navigation toc: --> <li><a href="
<!-- navigation toc: --> <li><a href="._intro-bs003.html
<!-- navigation toc: --> <li><a href="._intro-bs004.html
<!-- navigation toc: --> <li><a href="._intro-bs005.html
<!-- navigation toc: --> <li><a href="._intro-bs006.html
<!-- navigation toc: --> <li><a href="._intro-bs007.html
<!-- navigation toc: --> <li><a href="._intro-bs008.html
<!-- navigation toc: --> <li><a href="._intro-bs009.html
<!-- navigation toc: --> <li><a href="._intro-bs010.html
<!-- navigation toc: --> <li><a href="._intro-bs011.html
<!-- navigation toc: --> <li><a href="._intro-bs012.html
<!-- navigation toc: --> <li><a href="._intro-bs013.html
<!-- navigation toc: --> <li><a href="._intro-bs014.html
<!-- navigation toc: --> <li><a href="._intro-bs015.html
<!-- navigation toc: --> <li><a href="._intro-bs016.html
<!-- navigation toc: --> <li><a href="._intro-bs017.html
<!-- navigation toc: --> <li><a href="._intro-bs018.html
<!-- navigation toc: --> <li><a href="._intro-bs019.html
</ul>
</li>
</ul>
</div>
</div>
</div> <!-- end of navigation bar -->
<div class="container">
<p> </p><p> </p><p> </p> <!-- add vertical space -->
<a name="part0002"></a>
<!-- !split -->
<h2 id="___sec1" class="anchor">Reading suggestions and exercises </h2>
<p>
<div class="panel panel-default">
<div class="panel-body">
<p> <!-- subsequent paragraphs come in larger fonts, so start with a paragraph -->
<ul>
<li> Introduction to C++ programming</li>
<li> Numerical precision and C++ programming (chapter 2 of lecture notes)</li>
<li> Numerical differentiation and loss of numerical precision (chapter 3 lecture notes)</li>
</ul>
</div>
</div>
<p>
<p>
<!-- navigation buttons at the bottom of the page -->
<ul class="pagination">
<li><a href="._intro-bs001.html">«</a></li>
<li><a href="._intro-bs000.html">1</a></li>
<li><a href="._intro-bs001.html">2</a></li>
<li class="active"><a href="._intro-bs002.html">3</a></li>
<li><a href="._intro-bs003.html">4</a></li>
<li><a href="._intro-bs004.html">5</a></li>
<li><a href="._intro-bs005.html">6</a></li>
<li><a href="._intro-bs006.html">7</a></li>
<li><a href="._intro-bs007.html">8</a></li>
<li><a href="._intro-bs008.html">9</a></li>
<li><a href="._intro-bs009.html">10</a></li>
<li><a href="._intro-bs010.html">11</a></li>
<li><a href="._intro-bs011.html">12</a></li>
<li><a href="">...</a></li>
<li><a href="._intro-bs019.html">20</a></li>
<li><a href="._intro-bs003.html">»</a></li>
</ul>
</div> <!-- end container -->
<!-- include javascript, jQuery *first* -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<!-- Bootstrap footer
<footer>
<a href="http:
</footer>
<center style="font-size:80%">
</center>
</body>
</html>
|
jsonp({"cep":"86802789","logradouro":"Rua Valdemar Albert Schmaiske","bairro":"Residencial Interlagos","cidade":"Apucarana","uf":"PR","estado":"Paran\u00e1"});
|
-- http:
-- Generated By Quest Extractor on 2/8/2008 3:46:17 PM
local QuestID = 335;
local ReqClv = 12;
local ReqJlv = 0;
local NextQuest = 0;
local RewZeny = 292;
local RewCxp = 675;
local RewJxp = 0;
local RewWxp = 0;
local RewItem1 = 1700113;
local RewItem2 = 0;
local RewItemCount1 = 5;
local RewItemCount2 = 0;
-- Modify steps below for gameplay
function QUEST_VERIFY(cid)
return 0;
end
function QUEST_START(cid)
-- Initialize all quest steps
-- Initialize all starting navigation points
return 0;
end
function QUEST_FINISH(cid)
Saga.GiveZeny(cid, RewZeny);
Saga.GiveExp(cid, RewCxp, RewJxp, RewWxp);
return 0;
end
function QUEST_CANCEL(cid)
return 0;
end
function QUEST_CHECK(cid)
-- Check all steps for progress
local CurStepID = Saga.GetStepIndex(cid, QuestID);
-- TODO: Add code to check all progress
return -1;
end
|
jsonp({"cep":"27935080","logradouro":"Rua Salvador","bairro":"Riviera Fluminense","cidade":"Maca\u00e9","uf":"RJ","estado":"Rio de Janeiro"});
|
jsonp({"cep":"11310900","logradouro":"Rua Frei Gaspar","bairro":"Centro","cidade":"S\u00e3o Vicente","uf":"SP","estado":"S\u00e3o Paulo"});
|
jsonp({"cep":"79831335","logradouro":"Rua Projetada JA","bairro":"Jardim Ayde","cidade":"Dourados","uf":"MS","estado":"Mato Grosso do Sul"});
|
jsonp({"cep":"35030120","logradouro":"Rua Dois de Fevereiro","bairro":"S\u00e3o Paulo","cidade":"Governador Valadares","uf":"MG","estado":"Minas Gerais"});
|
layout: reference_md
title: language.paginate.last
summary: __
sub: (Options & API) DataTables
since: DataTables 1.10
navcategory: option
keywords: option,language.paginate.last
author: /reference/option/language.paginate.last
## (Description)
DataTablesHTMLdocumentHTML `<` `>`HTML `<` `>`
## (Type)
- {% include href/Types.html param="string" %}
## (Default)
- Value `Last`
## (Example)
{% highlight javascript linenos %}
$('#example').DataTable( {
"language": {
"paginate": {
"last": ""
}
}
} );
{% endhighlight %}
## (Related)
Options
- {% include href/Options.html param="language" %}
- {% include href/Options.html param="language.paginate" %}
- {% include href/Options.html param="language.paginate.first" %}
- {% include href/Options.html param="language.paginate.next" %}
- {% include href/Options.html param="language.paginate.previous" %}
- {% include href/Options.html param="language.aria.paginate" %}
- {% include href/Options.html param="language.aria.paginate.last" %}
|
<!DOCTYPE html PUBLIC "-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>
<table width="100%" summary="page for which.min {base}"><tr><td>which.min {base}</td><td style="text-align: right;">R Documentation</td></tr></table>
<h2>Where is the Min() or Max() or first TRUE or FALSE ?</h2>
<h3>Description</h3>
<p>Determines the location, i.e., index of the (first) minimum or maximum
of a numeric (or logical) vector.
</p>
<h3>Usage</h3>
<pre>
which.min(x)
which.max(x)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>x</code></td>
<td>
<p>numeric (logical, integer or double) vector or an <span style="font-family: Courier New, Courier; color: #666666;"><b>R</b></span> object
for which the internal coercion to <code><a href="double.html">double</a></code> works whose
<code><a href="Extremes.html">min</a></code> or <code><a href="Extremes.html">max</a></code> is searched for.</p>
</td></tr>
</table>
<h3>Value</h3>
<p>Missing and <code>NaN</code> values are discarded.
</p>
<p>an <code><a href="integer.html">integer</a></code> or on 64-bit platforms, if
<code><a href="length.html">length</a>(x) =: n</code><i>>= 2^31</i> an integer
valued <code><a href="double.html">double</a></code> of length 1 or 0 (iff <code>x</code> has no
non-<code>NA</code>s), giving the index of the <em>first</em> minimum or
maximum respectively of <code>x</code>.
</p>
<p>If this extremum is unique (or empty), the results are the same as
(but more efficient than) <code>which(x == min(x, na.rm = TRUE))</code> or
<code>which(x == max(x, na.rm = TRUE))</code> respectively.
</p>
<h3>Logical <code>x</code> – First <code>TRUE</code> or <code>FALSE</code></h3>
<p>For a <code><a href="logical.html">logical</a></code> vector <code>x</code> with both <code>FALSE</code> and
<code>TRUE</code> values, <code>which.min(x)</code> and <code>which.max(x)</code> return
the index of the first <code>FALSE</code> or <code>TRUE</code>, respectively, as
<code>FALSE < TRUE</code>. However, <code>match(FALSE, x)</code> or
<code>match(TRUE, x)</code> are typically <em>preferred</em>, as they do
indicate mismatches.
</p>
<h3>Author(s)</h3>
<p>Martin Maechler</p>
<h3>See Also</h3>
<p><code><a href="which.html">which</a></code>, <code><a href="maxCol.html">max.col</a></code>, <code><a href="Extremes.html">max</a></code>, etc.
</p>
<p>Use <code><a href="which.html">arrayInd</a>()</code>, if you need array/matrix indices instead
of 1D vector ones.
</p>
<p><code><a href="../../nnet/html/which.is.max.html">which.is.max</a></code> in package <a href="https://CRAN.R-project.org/package=nnet"><span class="pkg">nnet</span></a> differs in
breaking ties at random (and having a ‘fuzz’ in the definition
of ties).
</p>
<h3>Examples</h3>
<pre>
x <- c(1:4, 0:5, 11)
which.min(x)
which.max(x)
## it *does* work with NA's present, by discarding them:
presidents[1:30]
range(presidents, na.rm = TRUE)
which.min(presidents)
which.max(presidents)
## Find the first occurrence, i.e. the first TRUE, if there is at least one:
x <- rpois(10000, lambda = 10); x[sample.int(50, 20)] <- NA
## where is the first value >= 20 ?
which.max(x >= 20)
## Also works for lists (which can be coerced to numeric vectors):
which.min(list(A = 7, pi = pi)) ## -> c(pi = 2L)
</pre>
<hr /><div style="text-align: center;">[Package <em>base</em> version 3.6.1 <a href="00Index.html">Index</a>]</div>
</body></html>
|
# Contribution Guidelines
Please note that this project is released with a [Contributor Code of Conduct](CODE-OF-CONDUCT.md). By participating in this project you agree to abide by its terms.
## Table of Contents
- [Adding to This List](#adding-to-this-list)
- [Updating Your Pull Request](#<API key>)
## Adding to This List
Please ensure your pull request adheres to the following guidelines:
* Search open and closed PR's to avoid duplicate suggestions.
* Only submit CSS tips that you think would be useful to others. This implies each tip has enough succinct content to describe why it's useful.
* Add your tip at the bottom of the [README](https://github.com/AllThingsSmitty/css-protips/blob/master/README.md) document. Add a link to your tip at the bottom of the table of contents.
* Use [title-case](https://titlecaseconverter.com/).
* Code formatting should follow standard [CSSLint](http:
* Indent with two spaces
* Use shorthand, e.g., `margin: 10px 10px 5px;`
* Use double quotes, e.g., `background: url("logo.svg");`
* Sort properties alphabetically
* Make sure your text editor is set to remove trailing whitespace.
* Check your spelling and grammar.
* The PR should have a useful title.
Thank you for your suggestions!
Language Translations
If you fluently speak another language and want to contribute by translating this list into that language, please submit a PR using the following guidelines:
* Add a new folder to the [`translations`](https://github.com/AllThingsSmitty/css-protips/tree/master/translations) folder
* The new folder should be labeled the language culture name, e.g, `es-ES`, `ru-RU`, `zh-CN`, etc.
Additionally, feel free to review already translated content for accuracy.
## Updating Your Pull Request
Sometimes a maintainer will ask you to edit your pull request before it's included. This is normally due to spelling errors or because your PR didn't match the above guidlines guidelines. [This write-up](https://github.com/RichardLitt/knowledge/blob/master/github/<API key>.md) covers the different ways you can change a pull request.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.