text stringlengths 3 1.05M |
|---|
class TeaInformAddController {
constructor (API, $state, $stateParams, $scope) {
'ngInject'
$scope.vm.content = "<h3>在这里输入内容</h3>"
$scope.froalaOptions = {
// placeholder: "Edit Me",
heightMin: 300,
language: 'zh_cn',
imageUploadURL: "upload/imgEditor"
}
this.$state = $sta... |
package net.sourceforge.javydreamercsw.validation.manager.web;
import com.validation.manager.core.DataBaseManager;
import com.validation.manager.core.VMException;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
*/
publi... |
<?xml version="1.0" encoding="utf-8"?>
<!--
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:color="#000" />
<item android:state_focused="true" android:color="#000" />
<item android:state_pressed="true" android:color="#000" />
<item android:colo... |
// Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#include "MedusaPreCompiled.h"
#include "ProgressToAction.h"
#include "Node/Control/ProgressBar/IProgressBar.h"
#include "Core/Log/Log.h"
MEDUSA_BEGIN;
ProgressToA... |
/**
* New Relic agent configuration.
*
* See lib/config.defaults.js in the agent distribution for a more complete
* description of configuration variables and their potential values.
*/
exports.config = {
/**
* Array of application names.
*/
app_name: [(process.env.COMPANION_URL || "Companion (no URL)").... |
@interface ZNBConversationCell()
@property (weak, nonatomic) IBOutlet UIImageView *avatar;
@property (weak, nonatomic) IBOutlet UILabel *nick;
@end
@implementation ZNBConversationCell
- (void)setModel:(ZNBChatConversationModel *)model {
_model = model;
self.avatar.image = [UIImage imageWithData:model.toImage]... |
using UnityEngine;
using System.Collections;
public class PlayerMovement : MonoBehaviour {
Rigidbody2D rbody;
Animator anim;
bool isAnimating = false;
// Use this for initialization
void Start () {
rbody = GetComponent<Rigidbody2D> ();
anim = GetComponent<Animator> ();
}
// Update is called once per fr... |
package org.jitsi.videobridge;
import java.io.*;
import java.util.*;
import javax.media.*;
import javax.media.control.*;
import javax.media.format.*;
import javax.media.protocol.*;
import org.jitsi.impl.neomedia.codec.*;
import org.jitsi.impl.neomedia.jmfext.media.protocol.*;
import org.jitsi.impl.neomedia.jmfext.m... |
package com.salesforce.phoenix.end2end;
import static com.salesforce.phoenix.exception.SQLExceptionCode.CANNOT_DEFINE_PK_FOR_VIEW;
import static com.salesforce.phoenix.exception.SQLExceptionCode.CANNOT_DROP_PK;
import static com.salesforce.phoenix.exception.SQLExceptionCode.CANNOT_MODIFY_VIEW_PK;
import static com.sa... |
struct argMatcher
{
char *dash;
char *dashDash;
argumentType type;
bool required;
bool found;
void *destination;
u32 longLen;
};
//==============================================================================
static struct argMatcher *createArgMatcher(char *d... |
namespace llvm {
AVRInstrInfo::AVRInstrInfo()
: AVRGenInstrInfo(AVR::ADJCALLSTACKDOWN, AVR::ADJCALLSTACKUP), RI() {}
void AVRInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MI,
const DebugLoc &DL, unsigned DestReg,
... |
/**
* Users model
*/
var app = app || {};
app.Users = (function () {
'use strict';
var usersDataSource = (function () {
var dataModel = {
id: Everlive.idField,
isSelected: function () {
return this.get('isSelected')
},
isSelectedClass: function () {
return this.get('isSelected') ? "listv... |
define(
({
left: "Aliniere la stânga",
right: "Aliniere la dreapta",
arrangement: "Aranjament",
autoUpdate: "Actualizare automată",
respectCurrentMapScale: "Respectare scară actuală a hărţii"
})
); |
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using IdentityModel.Internal;
using System;
using System.Security.Cryptography;
using System.Text;
namespace IdentityModel;
/// <summary>
//... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ma... |
phpredmon
========= |
package org.nnsoft.trudeau.coloring;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.nnsoft.trudeau.coloring.ColoringSolver.coloring;
import static org.nnsoft.trudeau.connector.GraphConnector.populate;
import java.util.Set;
import org.junit.Test;
import ... |
package org.apache.kafka.clients.admin.internals;
import org.apache.kafka.clients.admin.DescribeProducersOptions;
import org.apache.kafka.clients.admin.DescribeProducersResult.PartitionProducerState;
import org.apache.kafka.clients.admin.ProducerState;
import org.apache.kafka.common.TopicPartition;
import org.apache.... |
require 'json'
@log.trace("Started execution'flint-o365:microsoft-cloud:user-accounts:licence:sync.rb' flintbit...")
begin
# Flintbit Input Parameters
@connector_name = @input.get('connector-name') # Name of the Connector
@microsoft_id = @input.get("customer-id") ... |
from functools import partial
import itertools
import numpy as np
import pandas._libs.algos as _algos
import pandas._libs.reshape as _reshape
from pandas._libs.sparse import IntIndex
from pandas.core.dtypes.cast import maybe_promote
from pandas.core.dtypes.common import (
ensure_platform_int,
is_bool_dtype,
... |
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib
import datetime
from mpl_toolkits.mplot3d import Axes3D
from plyfile import PlyData, PlyElement
from sklearn.decomposition import PCA
# Every 100 data samples, we save 1. If things run too
# slow, try increasing this number. If things run too fast... |
package edu.uvm.rtadmin
sealed abstract class RTCredential
case class RTMembershipCredential(
target: (String, String),
sourceEntity: String) extends RTCredential
case class RTInclusionCredential(
target: (String, String),
source: (String, String)) extends RTCredential
case class RTLinkedCredential(
targe... |
using System;
using System.Collections.Generic;
using FlatRedBall.IO;
using Microsoft.Build.Evaluation;
namespace FlatRedBall.Glue.VSHelpers.Projects
{
public class Xna4Project : VisualStudioProject
{
public Xna4Project(Project project) : base(project)
{
}
public override stri... |
using FluentMigrator;
namespace SimpleReport.Model.Migrations
{
[Migration(201604151326)]
public class AddConvertToPdfToReport : Migration
{
public override void Up()
{
Alter.Table("Report").AddColumn("ConvertToPdf").AsBoolean().WithDefaultValue("false");
}
pub... |
(function() {
// Baseline setup
// --------------
// Establish the root object, `window` in the browser, or `global` on the server.
var root = this;
// Save the previous value of the `_` variable.
var previousUnderscore = root._;
// Establish the object that gets returned to break out of a loop iterat... |
<!DOCTYPE html5>
<head>
<meta author="Nick McCrory"></meta>
<meta charset="utf-8"></meta>
<link rel="stylesheet" href="grid_styles.css">
<link href='http://fonts.googleapis.com/css?family=Prata' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=BenchNine' rel='stylesheet' t... |
function pathName_out = SaveFigure (figures, inDirectory, options)
if nargin < 1 || isempty(figures)
figures = get(0,'children');
if ~isempty(figures)
if isobject(figures(1))
figureNums = get(figures, 'Number');
figureNums = [figureNums{:}];
else
figureNums = figures;
end
[~, byFigureNum] =... |
class devices{
public:
static std::vector<const PaDeviceInfo*> getInputDevices();
static std::vector<const PaDeviceInfo*> getOutputDevices();
}; |
var sander = require('sander');
var path = require('path');
var resolver = require(path.join(process.cwd(), 'lib/resolver'));
module.exports = {
bind: (app, express) => resolver.coWrap(function*(app, express) {
var logger = resolver.logger().get('ROUTES', "STATIC");
var APP_NAME = resolver.env().APP... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.6.0_36) on Mon Jan 04 20:30:30 CST 2016 -->
<title>AppMaster.ExecutorBrief$</title>
<meta name="date" content="2016-01-04">
<link rel="styl... |
module Tilia
module DavAcl
module PrincipalBackend
# Abstract Principal Backend
#
# Currently this class has no function. It's here for consistency and so we
# have a non-bc-breaking way to add a default generic implementation to
# functions we may add in the future.
class Abst... |
"""
File: translation.py
Copyright (c) aquarianhouse.com | Georg Kasmin.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
... |
module Numrb
module Extension
class ::Array
def mean
inject { |sum, x| sum + x } / size
end
private def valid_element!
raise InvalidArrayElementsError unless all? { |e| e.is_a?(Numeric) }
end
end
end
end
|
package org.jbpm.workbench.ht.client.editors.taskdetails;
import java.util.Date;
import javax.annotation.PostConstruct;
import javax.enterprise.context.Dependent;
import javax.enterprise.event.Event;
import javax.enterprise.event.Observes;
import javax.inject.Inject;
import com.google.gwt.user.client.ui.IsWidget;
im... |
export type Store = {
/**
* - unique ikea store identification number
*/
buCode: string;
/**
* - The name of the store, like "Augsburg",
* "Bratislava" or similar, also unique worldwide
*/
name: string;
/**
* lowercase two-letter country code following (ISO-3166)
*... |
package io.swagger.api;
import javax.xml.bind.annotation.XmlTransient;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-09-22T00:15:19.505Z")
@javax.xml.bind.annotation.XmlRootElement
public class ApiResponseMessage {
public static final int ERROR = 1;
public sta... |
<?php
namespace Imagine\Gd;
use Imagine\Image\ImageInterface;
use Imagine\Image\Box;
use Imagine\Image\BoxInterface;
use Imagine\Image\Color;
use Imagine\Image\Fill\FillInterface;
use Imagine\Image\Point;
use Imagine\Image\PointInterface;
use Imagine\Exception\InvalidArgumentException;
use Imagine\Exc... |
package org.devel.jfxcontrols.sample;
import javafx.fxml.FXML;
import org.devel.jfxcontrols.scene.control.svg.SvgIconRadioButton;
public class SvgIconRadioButtonExample {
@FXML
public SvgIconRadioButton irbBlub;
}
|
namespace NotationConstants {
// TODO: could organize in vector so you can reliably read in all into data
const Notation p1("P", {"1"}); // Auto-probability 1.
}
#endif
|
SimpleCron is a Magento extension that removes the need to setup a crontab or Scheduled Task to periodically trigger your cron script.
It works by adding a small amount of javascript to every page, which performs an ajax request to trigger cron. It has a configurable interval, so that cron is not triggered more often ... |
require 'res/config'
module Res
module Reporters
class Testmine
attr_accessor :url, :config
def initialize(args)
@url = args[:url]
@config = Res::Config.new([:project, :component, :suite, :url, :target, :version],
:optional => [:hive_job_id, :cert, ... |
package com.twelvemonkeys.imageio.stream;
import javax.imageio.stream.ImageInputStreamImpl;
import java.io.IOException;
import static com.twelvemonkeys.lang.Validate.isTrue;
import static com.twelvemonkeys.lang.Validate.notNull;
/**
* Experimental
*
* @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</... |
/**
*
* This package provides classes to represent simple attitudes.
*
* <p>
* Some force models such as the atmospheric drag or the maneuvers need to
* know the spacecraft orientation in inertial frame. OREKIT uses a simple
* container for {@link org.orekit.attitudes.Attitude Attitude} which
* includes both t... |
namespace Yb {
template <class T>
inline const std::string to_stdstring(const T &x)
{
std::ostringstream out;
out << x;
return out.str();
}
#if defined(YB_STRING_NOSTD)
inline const std::string to_stdstring(const String &x) { return str2std(x); }
#endif
inline const std::string &to_stdstring(const std::str... |
import actions from './actionTypes';
export default payload => ({
type: actions.SET_FILTER,
payload
}); |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
.class public interface abstract Lcom/android/server/wm/StackWindowListener;
.super Ljava/lang/Object;
.source "StackWindowListener.java"
# interfaces
.implements Lcom/android/server/wm/WindowContainerListener;
# virtual methods
.method public abstract requestResize(Landroid/graphics/Rect;)V
.end method
|
require 'uri'
class TextWordCount
attr_reader :blacklist, :substitutions, :word_counts
def initialize(text)
script_dir = File.dirname(__FILE__)
@blacklist = []
@substitutions = {}
begin
@blacklist = File.open(File.join(script_dir, '..', '/conf/blacklist.txt'),'r'... |
package iot
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writing, software
//distribut... |
layout: default
---
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId=57820298747";
fjs.parentNode.insertBefore(js, ... |
<a href='https://github.com/angular/angular.js/edit//src/ng/interpolate.js?message=docs($interpolateProvider)%3A%20describe%20your%20change...#L5' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a>
<a href='https://github.com/angular/angular.js/tree/v1.3.19/src/ng... |
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
<title>transposed</title>
<link href='reno.css' type='text/css'... |
<header id="page" class="clearfix">
<div id="headerContent">
<?php print render($primary_local_tasks); ?>
<h1><a href="/">I design web sites, brands, apps, logos, and other useful things.</a></h1>
<nav>
<?php print theme('links__system_main_menu', array(
'links' => $main_menu,
'attributes' ... |
using System;
using System.Collections;
using NUnit.Core.Extensibility;
namespace NUnit.Core
{
/// <summary>
/// ExtensionHost is the abstract base class used for
/// all extension hosts. It provides an array of
/// extension points and a FrameworkRegistry and
/// implements the IExtensionHost interfac... |
<?php
namespace Schoolcontact\FormationBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
/**
* This is the class that load... |
package org.jetbrains.idea.devkit.inspections.internal;
import com.intellij.codeInsight.daemon.impl.HighlightInfo;
import com.intellij.codeInspection.LocalQuickFix;
import com.intellij.codeInspection.ProblemHighlightType;
import com.intellij.codeInspection.ProblemsHolder;
import com.intellij.lang.annotation.HighlightS... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_76) on Sun Mar 22 20:21:12 UTC 2015 -->
<title>ClientInterceptors.ForwardingListener (grpc-core 0.1.0-SNAPSHOT API)</title>
<meta name=... |
JAVA_HOME=/cad2/ece419s/java/jdk1.6.0/
JAVAC=${JAVA_HOME}/bin/javac -source 1.6
JAVADOC=${JAVA_HOME}/bin/javadoc -use -source 1.6 -author -version -link http://java.sun.com/j2se/1.6.0/docs/api/
MKDIR=mkdir
RM=rm -rf
CAT=cat
# The only file we are interested in is Mazewar.class,
# the rest are handled by the dependenc... |
id: 5a661e0f1068aca922b3ef17
title: Accede a los contenidos de un arreglo utilizando la notación de corchetes
challengeType: 1
forumTopicId: 301149
dashedName: access-an-arrays-contents-using-bracket-notation
---
# --description--
La principal característica de cualquier estructura de datos es, por supuesto, la habil... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>itree: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
When signed into their GitLab account, users can customize their
experience according to the best approach to their cases.
## Signing in
There are several ways to sign into your GitLab account.
See the [authentication topic](../../topics/authentication/index.md) for more details.
## User profile
Your profile is ava... |
"""
This module implements maximum likelihood-based estimation (MLE) of
Gaussian regression models for finite-dimensional observations made on
infinite-dimensional processes.
The ProcessMLE class supports regression analyses on grouped data,
where the observations within a group are dependent (they are made on
the sam... |
% ==== Tabla de contenidos ==== %
\tableofcontents
% ==== índice de figuras ==== %
\listoffigures
% ==== índice de figuras ==== %
\listoftables
|
package org.atomspace.camel.component.tinkerforge.device;
import org.apache.camel.Consumer;
import org.apache.camel.Endpoint;
import org.apache.camel.Message;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
import org.apache.camel.spi.UriEndpoint;
import org.atomspace.camel.component.tinkerforge.... |
Combustion::Application.configure do
# non-functional test Sengrid config (setup for testing the email provider auto-detect)
config.action_mailer.smtp_settings = {
:address => "smtp.sendgrid.net",
:port => '25',
:domain => "test.com",
:authentication => :plain,
:user_name => "test@test.com",
... |
#ifndef OPENIMAGEIO_COLOR_H
#define OPENIMAGEIO_COLOR_H
#include "export.h"
#include "version.h"
OIIO_NAMESPACE_ENTER
{
/// The ColorProcessor encapsulates a baked color transformation, suitable for
/// application to raw pixels, or ImageBuf(s). These are generated using
/// ColorConfig::createColorProcessor, and ... |
title: Using Templates with Client-Side Binding
description: Using Templates with Client-Side Binding
type: how-to
page_title: Using Templates with Client-Side Binding - RadGrid
slug: grid-using-templates-with-client-side-binding
res_type: kb
---
## DESCRIPTION
When the grid is bound on client-side, it does not crea... |
<?xml version="1.0" encoding="UTF-8"?>
<billStatus>
<bill>
<relatedBills>
<item>
<number>1540</number>
<type>HR</type>
<latestAction>
<text>Referred to the Subcommittee on Social Security.</text>
<actionDate>2017-03-23</actionDate>
</latestAction>
... |
namespace PatientManagement.PatientManagement {
export interface PatientHealthForm {
PatientId: Serenity.LookupEditor;
Diseases: Serenity.TextAreaEditor;
MedicinesIntake: Serenity.TextAreaEditor;
}
export class PatientHealthForm extends Serenity.PrefixedContext {
static for... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _getIterator2 = require('babel-runtime/core-js/get-iterator');
var _getIterator3 = _interopRequireDefault(_getIterator2);
var _assign = require('babel-runtime/core-js/object/assign');
var _assign2 = _interopRequireDefault(_assign);
... |
/**
*
*/
package gg.riotapichallenge.riotapi.models;
import java.util.Arrays;
/**
* @author Enivri
*
*/
public class RunePage {
private final int NUM_RUNE_SLOTS = 30;
private long Id;
private String Name;
private boolean Current;
private int[] Runes;
public RunePage(){
this.Id = ... |
"""
This module manages a table of subject ids and
their associated image file names.
A subset of the table can be retrieved by partitioning the set of images into
subsets of ``Train``, ``Validation``, ``Inference``.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print... |
package jp.co.bizreach.robot
import java.io.InputStream
import java.util.Locale
import org.apache.commons.io.input.BOMInputStream
import scala.annotation.tailrec
import scala.io.Source
import scala.util.Try
import scala.util.matching.Regex
import com.softwaremill.quicklens._
/**
* The object of parsing the robots... |
from foundation.FoundationException import FoundationException
import uuid
import logging
from foundation.AgentServer import AgentServerHandler
from foundation.AgentType import AgentType
from foundation.Agent import Agent
from foundation.Message import Message
from foundation.DecisionVariable import DecisionVariable
fr... |
import { inject, Kernel, state } from "oly";
import { ApiProvider, body, ForbiddenException, get, post, UnauthorizedException } from "../src";
import { HttpClient, IKoaContext } from "oly-http";
import { IToken } from "../src";
import { auth } from "../src/security/decorators/auth";
import { token } from "../src/securi... |
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.example.donotforgetme.Activities.Search">
<item android:id="@+id/action_settings" android:title="@string/action_settings"
android:orderInCategory="100" android:showAsAct... |
class C2dm::App < C2dm::Base
self.table_name= "c2dm_apps"
has_many :devices, :class_name => "C2dm::Device", :dependent => :destroy
has_many :notifications, :through => :devices, :dependent => :destroy
def deliver_notifications
connection = C2dm::Connection.new(username, password, source)
se... |
<!DOCTYPE html>
<html>
<head>
<title>Classe QHelpContentItem</title>
</head>
<body>
<p>Classe <b>QHelpContentItem</b></p><p>Derivada de <a href='.html'></a></p><p>Classes derivadas: <a href='.html'></a></p><p>Módulo <b>QtHelp</b></p><p>Método: QHelpContentItem():child(int ) -> QHelpContentItem *</p><p>Método: Q... |
<?php
namespace Yan\Bundle\SemaphoreSmsBundle\Tests\Functional\Sms;
use Yan\Bundle\SemaphoreSmsBundle\Sms\Message;
use Yan\Bundle\SemaphoreSmsBundle\Tests\Fixtures\AppKernel;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Depen... |
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'age' })
export class AgePipe implements PipeTransform {
transform(birthDate: Date | string ): number | null {
return calcAge(birthDate);
}
}
export function calcAge(birthDate: Date | string ): number | null {
if (birthDate == null) {
re... |
<!DOCTYPE html>
<html ng-app="MyApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Satellizer</title>
<link href="favicon.png" rel="shortcut icon">
<link href='//fonts.googleapis.com/css?family=Roboto|Montserrat:400,700|Open+Sans:400,300,600' rel='stylesheet' type... |
#ifdef WIN32
#include <windows.h>
#endif
typedef double Real;
#ifdef WIN32
#define UPDATE_TICKER(a,b,c,d,e) updateTicker(a,b,c,d,e)
#define GET_TIME_OF_DAY(a,b,c,d,e,f,g) gettimeofday(a,b,c,d,e,f,g)
#define TSTART(a,b,c,d,e,f) tstart(a,b,c,d,e,f)
#define RETRIEVE_SEC(a) a
#endif
#ifdef LINUX_OS
#define UP... |
module SlimFormObject
VERSION = "3.2.0"
end
|
license: Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2... |
/* (c) British Telecommunications plc, 2009, All Rights Reserved */
package com.bt.pi.ops.website;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import javax.annotation.Resource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.jet... |
<div class="toot">
<input type="checkbox" ##checked## name="toot" id="toot-enable-##id##" class="filled-in">
<label for="toot-enable-##id##">Publish on Mastodon</label> - <button type="button" class="toot-button">more</button>
<div class="toot-configure toot-hidden">
<div class="toot-modify-format">
<l... |
This example demonstrate the use of ngInclude to include template which will
themselves load javascript (with controllers inside).
It necessitate a third party library called (ocLazyLoad)[https://oclazyload.readme.io]
which does the heavy lifting of loading and attaching the controller is proper
order for angular to l... |
configure do
check_c_header "math.h", set_define: "HAVE_MATH_H"
check_c_header "stdio.h", set_define: "HAVE_STDIO_H"
end
env(echo: :command) do |env|
env.Object("simple.o", "simple.c")
end
|
namespace chatterino {
void attachToConsole()
{
#ifdef USEWINSDK
if (AttachConsole(ATTACH_PARENT_PROCESS))
{
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
}
#endif
}
} // namespace chatterino
|
<!DOCTYPE html >
<html>
<head>
<title>WordSpecStringWrapper - ScalaTest 3.0.4 - org.scalatest.AsyncWordSpecLike.WordSpecStringWrapper</title>
<meta name="description" content="WordSpecStringWrapper - ScalaTest 3.0.4 - org.scalatest.AsyncWordSpecLike.WordSpecStringWrapper" />
<meta ... |
use assessment;
drop PROCEDURE if exists upgrade_31;
DELIMITER $$
CREATE PROCEDURE upgrade_31 ()
BEGIN
declare script_version_no int;
declare cur_db_version_no int;
set script_version_no = 31;
select max(database_version_no)
into cur_db_version_no
from assessment.database_version;
if... |
define(function(require) {
var _ = require('underscore'),
util = require('util'),
loader = require('core/loader'),
KeyboardControls = require('core/keyboardcontrols'),
Player = require('entities/player'),
Door = require('entities/door'),
Sounds = require('core/sound... |
'use strict';
/* exported arrayAverage, arrayMax, arrayMin */
// array<function> returns the average (down to nearest int), max and min of
// an int array.
function arrayAverage(array) {
var cnt = array.length;
var tot = 0;
for (var i = 0; i < cnt; i++) {
tot += array[i];
}
return Math.floor(tot / cnt);... |
Cases::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web ser... |
package asia.gkc.vneedu.repository;
import asia.gkc.vneedu.model.Keyword;
import tk.mybatis.mapper.common.Mapper;
public interface KeywordMapper extends Mapper<Keyword> {
} |
import { DateTime } from 'luxon';
import { F_OK } from 'constants';
import _slugify from 'slugify';
import { promises as fs } from 'fs';
import path from 'path';
const segmentsRegex = /^(\d{4})-(\d{2})-(\d{2})-(.*)\.md$/;
export const postsDirectory = path.resolve(process.cwd(), 'posts');
export const postWebPath = (... |
package org.rioproject.system.measurable;
import org.rioproject.watch.PeriodicWatchMBean;
/**
* Provides a standard MBean to use when administering a MeasurableCapability
* using JMX
*
* @author Ming Fang
* @author Dennis Reedy
*/
public interface MeasurableCapabilityMBean extends PeriodicWatchMBean {
/**
... |
TensorFlow was designed from the ground up to be a good deep learning solution
for mobile platforms like Android and iOS. This guide is to help you understand
how to integrate TensorFlow into your mobile apps effectively and efficiently.
## About this Guide
This guide is aimed at developers who have a TensorFlow mode... |
using System.Text.Unicode;
namespace System.Text
{
public readonly ref partial struct Utf8Span
{
public static bool operator ==(Utf8Span left, Utf8Span right) => Equals(left, right);
public static bool operator !=(Utf8Span left, Utf8Span right) => !Equals(left, right);
public int Compa... |
#ifndef EDK_SHAPE_BEZIER2D_H
#define EDK_SHAPE_BEZIER2D_H
#ifdef printMessages
#warning "Inside Bezier2D"
#endif
#pragma once
#include "../TypeVars.h"
#include "../TypeVec2.h"
#include "Curve2D.h"
#ifdef printMessages
#warning " Compiling Bezier2D"
#endif
namespace edk{
namespace shape{
class Bezier2D:public e... |