text stringlengths 3 1.05M |
|---|
name: cljs.core/Cons
see also:
---
## Summary
## Details
## Examples
|
package org.apache.hadoop.hbase.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.math.BigDecimal;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.Random;
impo... |
package com.neusoft.knowledge.activiti.entity;
import java.io.Serializable;
import java.util.Date;
/**
* @Title:ActivitiTaskLoginfoEntity.
* @Content:com.neusoft.knowledge.activiti.moudles.entity.ActivitiTaskLoginfoEntity
* @Description:
* @Author:Marklin
* @Create-DateTime:2017-11-02 01:50
* @Update-DateTime:2... |
'use strict';
const Element = require('../../lib/element');
const assert = require('assert');
class DriverStub {
sendCommand() {
return Promise.resolve({attributes: ['rel', 'manifest']});
}
}
/* global describe, it, beforeEach */
describe('Element', () => {
beforeEach(() => {
this.stubbedDriver = new... |
<?xml version="1.0" encoding="utf-8"?>
<Jobs>
<ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="30d0aa6a-cdfe-482a-8988-bb0145c13462">
<WebsiteUrl />
<UserAgent />
<UserNotes />
<LastFileSize>129368</LastFileSize>
<LastFileDat... |
HappySeed Base Install (Now for Rails 5!)
=================
### What does this do?
The `happy_seed` application template sets up `haml`, `meta-tags`, disables `turbolinks`, and installs the `happy_seed` generators into your application.
The `happy_seed:base` generator installs `dotenv-rails`, `puma`, http site authe... |
package com.rwxlicai.view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
<style type="t... |
---
layout: post
title: "Benefits Of Using Spring Security With Grails"
excerpt: "There are some obvious benefits to writing custom code vs using a plugin. When using a plugin you get a lot of things
off the shelf rather than writing it your self. But using something as mature as Spring Security has its unique advantag... |
FROM balenalib/parallella-hdmi-resin-fedora:30-build
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
RUN dnf install -y \
python3-pip \
python3-dbus \
&& dnf clean all
# install "virtualenv", since the... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
package com.jcabi.log;
/**
* Formats a log event using ANSI color codes.
* @author Jose V. Dal Pra Junior (jrdalpra@gmail.com)
* @version $Id$
* @since 0.18
*/
class ColorfullyFormatted implements Formatted {
/**
* The basic information to be formatted with colors.
*/
private final transient S... |
package cloud;
import com.google.common.net.HostAndPort;
import de.uniulm.omi.cloudiator.sword.api.domain.LoginCredential;
import de.uniulm.omi.cloudiator.sword.api.domain.OSFamily;
import de.uniulm.omi.cloudiator.sword.api.remote.RemoteConnection;
import de.uniulm.omi.cloudiator.sword.api.service.ConnectionService;... |
(function( root, $, undefined ) {
"use strict";
$(function () {
//init vars
var $cache = {};
$cache.mobileOverlay = $(".mobile-overlay");
$cache.mobileTrigger = $(".hamburger img");
$cache.mobileHide = $(".mobile-overlay .hide");
$cache.partnerImage = $(".slider-partners a");
$cache.desktopnavItem = ... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using Perfor... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hammer: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... |
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :authenticate_user!
if Rails.env.production?
force_ssl
end
before_action :set_raven_context
private
def set_raven_context
Raven.user_context(id: session[:current_user_id]) # or anything else... |
<!DOCTYPE html>
<html>
<head>
<title>CSS Transform Using translateX() function</title>
<link rel="author" title="Mihai Corlan" href="mailto:mcorlan@adobe.com">
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property">
<link rel="match" href="reference/ttwf-reftest-transform-tran... |
import { isObject, isArray, toArray, isString, splitText, splitComma, splitSpace, RGBA, splitBracket, COLOR_MODELS, stringToRGBA, OBJECT, ARRAY, PROPERTY, STRING, NUMBER, IS_WINDOW, $, ANIMATION, removeEvent, addEvent, requestAnimationFrame, cancelAnimationFrame, splitUnit, camelize, getKeys, sortOrders, isUndefined, ... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
#-------------------------------------------------------------------------
# Copyright (c) Microsoft. All rights reserved.
#
# 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.apa... |
require 'open-uri'
require 'nokogiri'
require 'pry'
require_relative "./daily_deal/version"
require_relative './daily_deal/deal'
require_relative './daily_deal/cli'
|
package com.intellij.diagnostic;
import com.intellij.icons.AllIcons;
import com.intellij.notification.Notification;
import com.intellij.notification.NotificationAction;
import com.intellij.notification.NotificationType;
import com.intellij.notification.impl.NotificationsManagerImpl;
import com.intellij.openapi.action... |
/* general style */
body { font: 16px 'Palatino', 'Palatino Linotype', 'Georgia', serif;
margin: 0; padding: 0; background: url(tweed.png); }
a { /*color: #432165;*/ color: #234764; }
a:hover { color: #3b185f; background: #f2edd5; }
/* headlines */
h1, h2, h3, h4, h5, h6 { /*font-family: 'Vollk... |
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<deployment-targets>
<target device="mobileweb">false</target>
<target device="iphone">true</target>
<target device="ipad">true</target>
<target device="android">true</target>
<target device... |
namespace pwiz {
namespace msdata {
/// common functionality for base SpectrumList implementations
class PWIZ_API_DECL SpectrumListBase : public SpectrumList
{
public:
SpectrumListBase() : MSLevelsNone() {};
/// implementation of SpectrumList
virtual const boost::shared_ptr<const DataProcessing> data... |
require 'spec_helper'
describe 'apache::balancer', type: :define do
let :title do
'myapp'
end
let :facts do
{
osfamily: 'Debian',
operatingsystem: 'Debian',
operatingsystemrelease: '8',
lsbdistcodename: 'jessie',
id: 'root',
path: '/usr/local/sbin:/usr/local/bin:/usr/s... |
GZ_REGISTER_MODEL_PLUGIN(Encoder)
Encoder::Encoder() {}
Encoder::~Encoder() {}
void Encoder::Load(physics::ModelPtr model, sdf::ElementPtr sdf) {
this->model = model;
// Parse SDF properties
joint = model->GetJoint(sdf->Get<std::string>("joint"));
if (sdf->HasElement("topic")) {
topic = sdf->Get<std::st... |
/* See license.txt for terms of usage */
define([
"httpmonitor/lib/events",
"httpmonitor/lib/trace"
],
function factoryOptions(Events, FBTrace) {
// ********************************************************************************************* //
// Constants
const Cc = Components.classes;
const Ci = Componen... |
package eap.util.validator;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAM... |
namespace Selftaught.Data.Common.ModelAdditions
{
using System;
public abstract class DeletableEntity : IDeletableEntity
{
public bool IsDeleted { get; set; }
public DateTime? DeletedOn { get; set; }
}
}
|
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>indoqa-rebass-components-docs</title>
<link href="/indoqa-rebass-components/indoqa-rebass-components-docs-a99524bbfa63cf1eec73.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
... |
import sys
import os
import argparse
import netCDF4 as nc
import numpy as np
import pandas as pd
import re
import datetime
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from lib_util import time_dim_to_pandas_periods
"""
What this script does:
Plot a full timeseries fields from mom ocean_sc... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Anais XIII Congr. Soc. bot. Brasil 469 (1964)
#### Original name
Weissia xylopiae Bat. & M.P. Herrera, 1964
### Remarks
null |
Awesome WM configuration template
github.com/lcpz
--]]
-- {{{ Required libraries
local awesome, client, mouse, screen, tag = awesome, client, mouse, screen, tag
local ipairs, string, os, table, tostring, tonumber, type = ipairs, string, os, table, tostring, tonumber, type
local gears = require("gea... |
package org.jacoco.examples.expressions;
public class Add implements IExpression {
private final IExpression l;
private final IExpression r;
public Add(final IExpression l, final IExpression r) {
this.l = l;
this.r = r;
}
public double evaluate() {
return l.evaluate() + r.evaluate();
}
}
|
=begin
options = {
:origin => 'LAS',
:departuredate => '2014-06-01',
:returndate => '2014-06-05'
}
destinations = SabreDevStudio::Flight::Api.destination_air_shop(options); nil
streamlined_destinations = SabreDevStudio::Flight::Shop::StreamlinedDestinations.new(destinations.respons... |
package org.eclipse.collections.test.map.mutable;
import java.util.Random;
import org.eclipse.collections.api.map.MutableMap;
import org.eclipse.collections.impl.map.mutable.ConcurrentMutableHashMap;
import org.eclipse.collections.impl.test.junit.Java8Runner;
import org.eclipse.collections.test.NoDetectOptionalNull... |
package processor.pipe;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.PipedReader;
import java.io.PipedWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurre... |
* InputGroup
* Provides three types of textbox: **success**, **disabled** and **error**.
* Customize border color using **Theme** file.
#### Upgraded Features
* Header component now takes even a single element, Button or Title.
<hr style="margin-top: 40px">
|
namespace RememBeer.Models.Dtos
{
public class BreweryRank : IBreweryRank
{
public BreweryRank(decimal averagePerBeer, int totalBeersCount, string name)
{
this.AveragePerBeer = averagePerBeer;
this.TotalBeersCount = totalBeersCount;
this.Name = name;
... |
export const defaultMapOptions = {
mapTypeControl: false,
streetViewControl: false
};
export function normalizeBounds(latLngBounds) {
return [
latLngBounds.getSouthWest().toJSON(),
latLngBounds.getNorthEast().toJSON(),
];
}
export function toLatLngBounds(normalizedBounds) {
const b... |
package org.innovateuk.ifs.supporter.resource;
import org.innovateuk.ifs.workflow.resource.ProcessEvent;
/**
* Events that can happen during the assessment process workflow.
*/
public enum SupporterEvent implements ProcessEvent {
CREATE("notify"),
ACCEPT("accept"),
REJECT("reject"),
EDIT("edit");
... |
<?php
namespace Oro\Bundle\DataAuditBundle\Entity\Repository;
use Oro\Bundle\DataAuditBundle\Entity\Audit;
use Oro\Bundle\DataAuditBundle\Entity\AuditField;
use Oro\Bundle\DataAuditBundle\Model\EntityReference;
use Oro\Bundle\DataAuditBundle\Service\EntityChangesToAuditEntryConverter;
use Oro\Bundle\SecurityBundle\To... |
<!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 (1.8.0_76-release) on Mon Apr 03 13:27:52 MDT 2017 -->
<title>DeleteMoodActivityTest</title>
<meta name="date" content="2017-04-03">
<link rel="styles... |
/* ###
* IP: GHIDRA
*
* 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 writin... |
namespace NinjaNye.SearchExtensions.Tests.SearchExtensionTests.Parsing
{
public class TestObjectChild
{
public string Message { get; set; }
}
} |
"""
_mkdir_p.py
~~~~~~~~~~~
Usage:
_mkdir_p(abspath):
create the abspath
except the abspath exist
Param:
abspath: the absolutly path you want to be created
"""
import os, errno
def _mkdir_p(abspath):
"""
Usage:
create the abspath
except the abspath exist
Para... |
<div class="emuwebapp-modal-wrap" ng-controller="ModalCtrl">
<div class="emuwebapp-modal-header-large emuwebapp-modal-header">
<h3 id="modalHeading">
Save changes
</h3>
</div>
<div class="emuwebapp-modal-body">
<div>
<p>Changes made to: "{{dataIn}}". Do you wish to save t... |
@import url("pygment_highlights.css");
.highlight pre {
margin-bottom: 0px; margin-top:10px;
}
button.copybtn:hover {
border:solid 2px #777;
padding:2px 3px;
background-color:rgb(128,128,128,0.4);
}
button.copybtn {
border:solid 1px #999;
margin:3px 4px;
padding:3px 4px;
width:37px;
right:14px;
pos... |
<?php
namespace Symfony\Bundle\FrameworkBundle\Controller;
use Symfony\Component\DependencyInjection\ContainerAware;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpExce... |
title: Second codeacademy
layout: post
author: james.meichtry
permalink: /second-codeacademy/
source-id: 100uZ4_JqgUqN6bpQa8tsJcpI1Ty5C11TMc3FDPB-kJ8
published: true
---
After a break from code academy we went back to code academy I learned how to use a true or false to make a expression different using **<> . **This w... |
package betterwithaddons.interaction.minetweaker;
import betterwithaddons.block.EriottoMod.BlockNettedScreen;
import betterwithaddons.crafting.manager.CraftingManagerWaterNet;
import betterwithaddons.crafting.recipes.NetRecipe;
import betterwithaddons.util.IngredientCraftTweaker;
import crafttweaker.IAction;
import cr... |
package com.adamroughton.concentus.canonicalstate.direct;
import java.util.Iterator;
import com.adamroughton.concentus.actioncollector.TickDelegate;
import com.adamroughton.concentus.data.ResizingBuffer;
import com.adamroughton.concentus.data.model.kryo.CandidateValue;
import com.adamroughton.concentus.disruptor.Even... |
/**
* @file: Payload handler for stringified JSON data
*
* @module jsonpayload
*/
/**
* @constructor
*/
function JSONPayloadHandler() {
}
JSONPayloadHandler.prototype.serializeToString = function(data) {
return JSON.stringify(data);
};
JSONPayloadHandler.prototype.parseString = function(string) {
re... |
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_M... |
package com.mao.travelapp.utils;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
/**
* 时间工具类
*
* @author mao
*
*/
public class TimeUtils {
private TimeUtils() {
throw new UnsupportedOperationException("can't instantiate class TimeUtils");
}
/... |
require 'test_helper'
require 'rack/test'
require 'fixtures/furnitures/application'
describe 'A modulized Hanami application' do
include Rack::Test::Methods
before do
@current_dir = Dir.pwd
Dir.chdir FIXTURES_ROOT.join('furnitures')
@app = Furnitures::Application.new
end
after do
Dir.chdir @c... |
using namespace indexer;
using namespace std;
using namespace generator::tests_support;
namespace
{
using Entries = vector<pair<uint32_t, base::GeoObjectId>>;
template <typename Cont>
Entries GetEntries(Cont const & cont)
{
Entries res;
cont.ForEachEntry([&res](uint32_t const fid, base::GeoObjectId const & gid) {... |
require "spec_helper"
describe PagSeguro::PaymentRequest::Response do
context "when payment request is created" do
let(:http_response) { xml_response("payment_request/success.xml") }
subject(:response) { described_class.new(http_response) }
it { expect(response.code).to eql("8CF4BE7DCECEF0F004A6DFA0A824... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Text;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Text;
using Roslyn.T... |
import datetime
from random import random
from hashlib import sha1
from django.conf import settings
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.db import models, transaction
from django.utils.translation import gettext_lazy as _
from confirmanager.utils import g... |
.. _Platform-Historian:
Platform Historian
==================
A platform historian is a `"friendly named" <VIP-Known-Identities>`__
historian on a VOLTTRON instance. It always has the identity (see
`vip <VIP-Known-Identities>`__) of platform.historian. A platform
historian is made available to a volttron central agen... |
ACCEPTED
#### According to
GRIN Taxonomy for Plants
#### Published in
Lilloa 23:247. 1950
#### Original name
null
### Remarks
null |
import { sideEffect } from 'redux-action-object';
const RowUtils = {
clone: function (row) {
return Object.assign({}, row);
},
sameFields: function (a, b) {
const aProps = Object.keys(a);
const bProps = Object.keys(b);
if (aProps.length != bProps.length) return false;
... |
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Nini.Config;
using OpenMetaverse;
using OpenMetaverse.StructuredData;
using Aurora.Framework;
using Aurora.Framework.Capabilities;
using Aurora.Framework.Servers.HttpServer;
using OpenSim.Region.Framework.Int... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
-->
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. -->
<resources xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string-... |
import { expect } from 'chai';
import isoDate from '../../src/components/date-time-iso/iso-date';
describe('isoDate', () => {
const year = 2015;
const month = 11;
const day = 15;
const hours = 15;
const minutes = 17;
const seconds = 19;
const dateAsString = `${year}-${month + 1}-${day}`; // Because why... |
<?php
namespace Quark\QuestionBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction($name)
{
return $this->render('QuarkQuestionBundle:Default:index.html.twig', array('name' => $name));
}
}
|
using System;
namespace SharperArchitecture.Common.Expressions
{
public class SubExpressionInfo
{
public string Path { get; set; }
public Type MemberType { get; set; }
public string MemberName { get; set; }
public System.Linq.Expressions.Expression Expression { get; set; }
... |
DTBeacon
========
iBeacons are transmitters that can notify nearby iOS 7 devices of their presence.
More here: http://support.apple.com/kb/HT6048
This beacon singleton class posts an NSNotification for state changes (entering/exiting a region/ proximity etc.)
and can be used by multiple objects simultaneously.
You ... |
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | | [optional]
**investigation_id** | **str** | | [optional]
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](... |
'use strict'
import {subscribeSocket, unsubscribeSocket} from '../lib/socket'
import _ from 'lodash'
export const SENSOR_SUBSCRIBE = 'SENSOR_SUBSCRIBE'
export const SENSOR_UPDATE = 'SENSOR_UPDATE'
export const SENSOR_UNSUBSCRIBE = 'SENSOR_UNSUBSCRIBE'
export function subscribe () {
return (dispatch) => {
const... |
ACCEPTED
#### According to
NUB Generator [autonym]
#### Published in
null
#### Original name
null
### Remarks
null |
#ifndef AUDIOBUFFER_H
#define AUDIOBUFFER_H
#include <stdint.h>
struct fische;
struct _fische__audiobuffer_;
struct fische__audiobuffer;
struct fische__audiobuffer* fische__audiobuffer_new (struct fische* parent);
void fische__audiobuffer_free (struct fische__audiobuffer* self);
void ... |
using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Aop.Api.Domain;
namespace Aop.Api.Response
{
/// <summary>
/// AlipayMobilePublicAccountQueryResponse.
/// </summary>
public class AlipayMobilePublicAccountQueryResponse : AopResponse
{
/// <summary>
... |
package me.mattak.aspect_ratio_layout;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
/**
* AspectRatioLayout for View.
* Created by matsushita on 2016/02/18.
*/
public class View extends android.view.View {
private Measurement mM... |
<?php defined('SYSPATH') or die('No direct script access.'); ?>
2013-07-17 16:18:06 --- ERROR: Database_Exception [ 0 ]: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') GROUP BY u.id' at line 4 ( SELECT u.id, u.nombre,u.car... |
package me.suisui.web.page;
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.sql.Timestamp;
import java.util.Arrays;
import java.util.Set;
import java.util.UUID;
import javax.annotation.PostConstruct;
import javax.crypto.... |
package gaffer.commonutil.iterable;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import com.google.common.collect.Lists;
import org.junit.Test;
import java.util.Arrays;
import java.util.List... |
package de.maxikg.osuapi.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.google.common.base.Optional;
import de.maxikg.osuapi.utils.Valuable;
import de.maxikg.osuapi.utils.ValuableUtils;
import lombok.RequiredArgsConstructor;
/**
* @author max... |
from schematizer.exceptions import SimpleValidationError, StopValidation
class BaseValidator:
def validate_primitive(self, obj):
pass
def validate_native(self, obj):
pass
class Nullable(BaseValidator):
def validate(self, obj):
if obj is None:
raise StopValidation
... |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifac... |
import Dot from './dot';
export default class Disc extends Dot {
drawTile() {
const halfSize = this._size / 2;
const diameter = this._size / 5;
this._context.beginPath();
this.setFillProps();
this.drawDot(0, 0, diameter);
this.drawDot(halfSize, halfSize, diameter);
this._context.fill(... |
package com.facebook.buck.jvm.java.abi.source;
import com.facebook.buck.jvm.java.abi.source.api.SourceCodeWillNotCompileException;
import com.facebook.buck.util.liteinfersupport.Nullable;
import com.facebook.buck.util.liteinfersupport.Preconditions;
import com.facebook.buck.util.liteinfersupport.PropagatesNullable;
... |
function plotData(x, y);
%PLOTDATA Plots the data points x and y into a new figure
% PLOTDATA(x,y) plots the data points and gives the figure axes labels of
% population and profit.
figure; % open a new figure window
plot(x, y, 'rx', 'MarkerSize', 10);
ylabel('Profit in $10,000s');
xlabel('Population of City in ... |
package emlab.gen.domain.agent;
import org.springframework.data.neo4j.annotation.NodeEntity;
import agentspring.agent.AbstractAgent;
@NodeEntity
public class DecarbonizationAgent extends AbstractAgent {
private double cash;
private double co2Allowances;
private String name;
public String getName()... |
import { ThrottledDelayer } from 'vs/base/common/async';
import { VSBuffer } from 'vs/base/common/buffer';
import { isUndefined, isUndefinedOrNull } from 'vs/base/common/types';
import { URI } from 'vs/base/common/uri';
import { IEnvironmentService } from 'vs/platform/environment/common/environment';
import { FileOpe... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>relation-extraction: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../boots... |
<div class="border-2-anthilla-gray" style="width: 100%; min-height: 100px; margin-bottom: 15px; padding: 15px;">
<legend id="SystemLog">System Log</legend>
<div class="border-2-anthilla-gray grid" style="width: 100%; padding-left: 15px; padding-bottom: 15px;">
<div class="row">
<div class="... |
<!DOCTYPE html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../../resources/bluetooth/bluetooth-helpers.js"></script>
<script>
'use strict';
promise_test(() => {
return setBluetoothFakeAdapter('HeartRateAdapter')
.then((... |
package org.apache.asterix.runtime.evaluators.constructors;
import java.io.DataOutput;
import java.io.IOException;
import org.apache.asterix.formats.nontagged.SerializerDeserializerProvider;
import org.apache.asterix.om.base.AMutableTime;
import org.apache.asterix.om.base.ATime;
import org.apache.asterix.om.base.tem... |
#import <UIKit/UIKit.h>
#import "GallopUtils.h"
@class LWFlag;
@protocol LWAsyncDisplayLayerDelegate;
//** LWAsyncDisplayLayer **//
@interface LWAsyncDisplayLayer : CALayer
@property (nonatomic,assign) BOOL displaysAsynchronously;
@property (nonatomic,strong,readonly) LWFlag* displayFlag;
- (void)displayImmedi... |
/*
* Auto generated Run-Time-Environment Component Configuration File
* *** Do not modify ! ***
*
* Project: 'ble_app_eddystone_pca10028_s130'
* Target: 'nrf51422_xxac'
*/
#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H
/*
* Define the Device Header File:
*/
#define CMSIS_device_h... |
ACCEPTED
#### According to
NUB Generator [autonym]
#### Published in
null
#### Original name
null
### Remarks
null |
<?php
/**
* Created by PhpStorm.
* User: sysadmin
* Date: 19.10.2016
* Time: 13:57
*/
namespace app\func\ImportData\Proc;
use app\models\Fregat\Import\Importconfig;
use app\models\Fregat\Import\Logreport;
use Exception;
use SplObserver;
use yii\db\ActiveRecord;
/**
* Class ImportFile
* @package app\func\Impo... |
# hangman
This hangman game was created within 12 hours using three main web technologies HTML, CSS and JavaScript (ES5).
You can view a live demo of this game at https://abdulhannanali.github.io/hangman
### Tools and frameworks
The libraries and frameworks and other tools which made this project possible are:
- [Ma... |
import {Component} from "angular2/core";
import {Header} from '../../components/header/header';
//import {UnitForm} from '../../components/unitForm/unitForm';
import {UnitDetail} from '../../components/unitDetail/unitDetail';
@Component({
selector: 'unit-details-page',
directives: [Header, UnitDetail],
pip... |
using Amqp;
using Amqp.Framing;
using IoTHubAmqp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace IoTHubAmqpService
{
class Program
{
private const string HOST = "[IOT_HUB_NAME].azure-devices.net";
private const int PORT =... |