Skip to content

Instantly share code, notes, and snippets.

View Kikimora's full-sized avatar

Andrey Verbin Kikimora

View GitHub Profile
onImageRemove(image) {
return ()=> {
var imageName = _.capitalize(image);
var command = this.context.viewModel[`remove${imageName}Command`];
command.execute();
}
}
onImageAdd(image) {
return (file)=> {
this.addEvent(this.UM.document, 'mouseout', function(e) {
if (!e)
var e = self.UM.event;
if (!e.target) {
e.target = e.srcElement;
}
var y = e.clientY;
var popupFrequency = 0;
if ('0' > 0) {
popupFrequency = '0';
<!DOCTYPE html>
<html>
<head>
<title>TEST</title>
</head>
<body>
<p>THis is a test</p>
<p>THis is a test</p>
<p>THis is a test</p>
// Get the 2D shape (in image space) from global and local parameters
void PDM::CalcShape2D(cv::Mat_<double>& out_shape, const cv::Mat_<double>& params_local, const cv::Vec6d& params_global) const
{
int n = this->NumberOfPoints();
double s = params_global[0]; // scaling factor
double tx = params_global[4]; // x offset
double ty = params_global[5]; // y offset
//Increase model sensitivity to lip points, otherwise model does not react to lips movements.
//See http://ibug.doc.ic.ac.uk/media/uploads/images/annotpics/figure_68_markup.jpg for magic constants
auto& p = _clnf_model->pdm.princ_comp;
//increase reg_factor to 50 only if princ_comp also change, otherwise detection quality suffer a lot
_det_parameters.reg_factor = 50;
auto n = _clnf_model->pdm.NumberOfPoints();
//left outer and inner lip edges
//X
{
"auth": {
"token_type": "Bearer",
"scope": "user_impersonation",
"expires_in": "3599",
"ext_expires_in": "0",
"expires_on": "1482947012",
"not_before": "1482943112",
"resource": "https://liveoakd365export.crm4.dynamics.com",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlJyUXF1OXJ5ZEJWUldtY29jdVhVYjIwSEdSTSIsImtpZCI6IlJyUXF1OXJ5ZEJWUldtY29jdVhVYjIwSEdSTSJ9.eyJhdWQiOiJodHRwczovL2xpdmVvYWtkMzY1ZXhwb3J0LmNybTQuZHluYW1pY3MuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvMDA5OTU3MjktNGMzYS00OTIyLWIwM2MtYTU0YjFhMTc0ZmY4LyIsImlhdCI6MTQ4Mjk0MzExMiwibmJmIjoxNDgyOTQzMTEyLCJleHAiOjE0ODI5NDcwMTIsImFjciI6IjEiLCJhbXIiOlsicHdkIl0sImFwcGlkIjoiMDdmZmRmYWItYzQxMS00NDZlLWIzZTktNjA4NjljY2NkMTkxIiwiYXBwaWRhY3IiOiIxIiwiaXBhZGRyIjoiMTg4LjEzNC43MC41MCIsIm5hbWUiOiJBbmRyZXkgVmVyYmluIiwib2lkIjoiZmJmZmMxNjgtZjdhMi00Yzc3LThhZjYtZGQzYzY1ZWQ2N2EyIiwicGxhdGYiOiI1IiwicHVpZCI6IjEwMDMwMDAwOUQ0OUIzQjAiLCJzY3AiOiJ1c2VyX2ltcGVyc29uYXRpb24iLCJzdWIiOiJ1QUVUMDJON1ZJS19CZG9tbkpJbGZNX2VzUFR5VjEtbVcyV
"Serilog": {
//Using is required for Serilog to find location of Debug configuration method
"Using": [ "Avend.Common" ],
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "[{Level:u3}] {Timestamp:HH:mm:ss} {RequestId} {SourceContext} {Message}{NewLine}{Exception}"
}
},
public class Booster : IBooster
{
public int Multiplier {get; set;}
public SelfieConfig [] Applies { get; set; }
public void Apply(IPoly poly){
foreach (var monomial in poly) {
var selfie = monomial.Info as Selfie;
if (selfie != null && Applies.Contains(selfie.Config)) {
/// <summary>
/// Returns filtered list of events.
/// </summary>
/// <remarks>Returns filtered list of events according to filter and other parameters\n</remarks>
/// <param name="filter">A string to filter events by. Currently is filtering only event names using StartsWith criteria</param>
/// <param name="eventType">Type of the events to return (local/global). If omitted, return all events</param>
/// <param name="pageNumber">Zero-based page number</param>
/// <param name="recordsPerPage">Records per page</param>
/// <param name="sortField">Field to sort by</param>
/// <param name="sortOrder">Sorting order (asc/desc)</param>
///========== EventController - user input ==========
/// <summary>
/// Returns filtered list of events.
/// </summary>
/// <remarks>Returns filtered list of events according to filter and other parameters\n</remarks>
/// <param name="obsoleFilter">Don't use</param>
/// <param name="q">A string to filter events by. Currently is filtering only event names using StartsWith criteria</param>
/// <param name="eventType">Type of the events to return (local/global). If omitted, return all events</param>
/// <param name="tenant"></param>