answer stringlengths 15 1.25M |
|---|
package generated.zcsclient.mail;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "<API key>")
public class <API key> {
} |
<!
Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com)
sisane: The stunning micro-library that helps you to develop easily
AJAX web applications by using Angular.js 1.x & sisane-server
sisane is distributed under the MIT License (MIT)
Sources at https://github.com/rafaelaznar/
Perm... |
body {
font-family: 'Lora', 'Times New Roman', serif;
font-size: 20px;
color: #333333;
}
p {
line-height: 1.5;
margin: 30px 0;
}
p a {
text-decoration: underline;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 800;
}
a {
color: #333333... |
using System.Collections.Generic;
namespace Manatee.Trello.Json
{
<summary>
Defines the JSON structure for the BoardBackground object.
</summary>
public interface <API key> : IJsonCacheable, IAcceptId
{
<summary>
Gets or sets the bottom color of a gradient background.
</summa... |
from nose.tools import *
from Loggers import SearchLogger
from <TwitterConsumerkey> import *
from DaoMocks import *
from TwitterMocks import *
from ObserverMocks import *
import unittest
class SearchTest(unittest.TestCase):
def setUp(self):
self.object = Search()
self.redis = RedisDaoMock()
... |
//! \file ImageFCB.cs
//! \date Thu Aug 11 04:21:02 2016
//! \brief Caramel BOX compressed image format.
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// sell copies of the Software, and to permi... |
'use strict';
let Observable = require('data/observable').Observable;
class AccountViewModel extends Observable {
constructor() {
super();
this.title = 'Account';
}
}
module.exports = {
AccountViewModel: AccountViewModel,
defaultInstance: new AccountViewModel()
}; |
layout: default
title: "404: Page not found"
permalink: 404.html
<div class="page">
<h1 class="page-title">404: Page not found</h1>
<p class="lead">
<h1>404 error</h1>
<a href="{{ site.baseurl }}"></a>
</p>
</div> |
(function() {
'use strict';
angular
.module('plagUiApp')
.controller('<API key>', <API key>);
<API key>.$inject = ['$stateParams', 'Auth', 'LoginService'];
function <API key> ($stateParams, Auth, LoginService) {
var vm = this;
Auth.activateAccount({key: $stateParams.key})... |
class Person
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Versioning
# include Mongoid::Paranoia
extend Mongorder
attr_accessor :relationship
field :name_pfx, type: String, default: ""
field :name_first, type: String
field :name_middle, type: String, default: ""
field :name... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ms_MY" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About EverGreenCoin</source>
<translation type="unfinished"/>
</message>
<message>
<locati... |
package nl.dekkr.feedfrenzy.backend.extractor.action
import nl.dekkr.feedfrenzy.backend.model.Regex
class RegexAction extends BaseAction {
def execute(vars: VariableMap, a: Regex): List[String] =
getVariable(a.inputVariable, vars) map { input =>
a.regex.r.findFirstMatchIn(input) match {
case Some(fo... |
#if !FEZENGINE
using System;
using System.Collections;
using System.Collections.Generic;
using FezEngine;
using FezEngine.Structure.Geometry;
using FezEngine.Structure.Input;
#if XNA
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
#elif UNITY
using UnityEngi... |
<script type="text/javascript">
$(document).ready(function(){
// the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
$('.modal-trigger').leanModal();
});
$(document).ready(function(){
$('.parallax').parallax();
});
</script> |
# Microsoft.Network/applicationGateways template reference
API Version: 2015-06-15
## Template format
To create a Microsoft.Network/applicationGateways resource, add the following JSON to the resources section of your template.
json
{
"type": "Microsoft.Network/applicationGateways",
"apiVersion": "2015-06-15",
"i... |
import Tag from './Tag'
function createTemplateTag (tag, options = {}) {
return (strings, ...values) => {
return new Tag(tag, options, strings, values)
}
}
export {default as Tag} from './Tag'
export const state = createTemplateTag('state', {
isStateDependency: true
})
const inputTemplateTag = createTemplateT... |
#pragma config(Hubs, S1, HTMotor, HTMotor, HTMotor, HTMotor)
#pragma config(Sensor, S1, , <API key>)
#pragma config(Sensor, S2, lightR, sensorLightActive)
#pragma config(Sensor, S3, lightL, sensorLightActive)
#pragma config(Motor, mtr_S1_C1_1, fr, tmotorTetr... |
var galleriesCtrl = function ($scope, galleriesResource) {
$scope.categories = galleriesResource.query();
};
galleriesCtrl.$inject = ['$scope', 'galleriesResource'];
module.exports = galleriesCtrl; |
# Tools used
- [Adobe Ink stylus](https:
- [iPad Air 2](https://en.wikipedia.org/wiki/IPad_Air_2)
- [Procreate](https://procreate.art/) |
#include <_apex_send_trans.hpp>
START_ATF_NAMESPACE
int _apex_send_trans::size()
{
using org_ptr = int (WINAPIV*)(struct _apex_send_trans*);
return (org_ptr(0x140410c30L))(this);
};
END_ATF_NAMESPACE |
import { <API key> } from 'redux/constants';
const SHOW_ALL = 'ALL';
function publisherFilter (state = SHOW_ALL, action) {
switch (action.type) {
case <API key>:
return action.filter;
default:
return state;
}
}
export default publisherFilter; |
bf.constant('Errors', {
email: '',
required: ''
}); |
#!/usr/bin/env node
// Load Jii Framework
global.Jii = require('jii');
require('jii-urlmanager');
require('jii-httpserver');
require('jii-comet');
// Load other packages
var request = require('request');
// Load custom config
var customPath = __dirname + '/../../config.js';
var custom = require('fs').existsSync(customP... |
layout: tagpage
title: "Tag: python"
tag: python
robots: noindex
exclude_from_search: true
tagline: '"Creative Active Individuals can only grow up in a society that emphasizes learning instead of teaching." - Chris Alexander' |
require('dotenv').load();
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
app.use(bodyParser.json());
app.use(require('./middleware/headers'));
app.use(require('./middleware/add-user-to-request'));
app.use('/api/v1/notes', require('./routes/notes-routes'));
app.use('/api/... |
<span class="article-title">
<a href="{{article.url}}">{{article.title}}</a>
</span>
<div class="click-items">
<a ng-click="articlesAPI.removeArticle($index)" class="delete-article clickable" title="Remove article">
<span>✖</span>
</a>
<a ng-click="articlesAPI.toggleShare(article)" class="s... |
<div class="" data-ng-controller="<API key>">
<h1>Testing: Example view from your new awesome package</h1>
<h2>Package: {{package.name}}</h2>
<ol>
<li>
<a href="/api/roadtriphomepage/example/anyone" target="_self">Server route that anyone can access</a>
</li>
<li>
<a href="/api/roadtriphom... |
package com.comp490.studybuddy.models;
import android.util.Log;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
@DatabaseTable(tableName="Calendar")
public class CalendarEvent {
//static are for the DB Table queries, if you change these, things break.
public static fina... |
// MTFTestApplicants.h
// Motif
@import Foundation;
@import CoreGraphics;
@import Motif;
@interface <API key> : NSObject
@property (nonatomic) char charValue;
@property (nonatomic) int intValue;
@property (nonatomic) short shortValue;
@property (nonatomic) long longValue;
@property (nonatomic) long long longLongValue... |
#!/bin/sh
# CYBERWATCH SAS - 2017
# Security fix for DLA-326-1
# Operating System: Debian 6 (Squeeze)
# Architecture: i386
# - zendframework:1.10.6-1squeeze6
# Last versions recommanded by security team:
# - zendframework:1.10.6-1squeeze6
# CVE List:
# - CVE-2015-7695
# More details:
sudo apt-get install --only-u... |
require "jquery_notify_bar/version"
require "jquery_notify_bar/engine" if defined? Rails |
#include "overviewpage.h"
#include "ui_overviewpage.h"
#include "util.h"
#include "clientmodel.h"
#include "darksend.h"
#include "darksendconfig.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "optionsmodel.h"
#include "<API key>.h"
#include "<API key>.h"
#include "guiutil.h"
#include "guiconstants.h"
#i... |
// CCIStepsManager.h
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// a... |
{% extends 'base.html' %}
{% block content %}
<div class="column">
<h1 class="title is-1">ListedMaths</h1>
<h2 class="subtitle is-2">A list of books from different fields of Mathematics </h2>
</div>
<section class="section">
<div class="container">
<div class="heading">
<h3 class="title is-3">Some Tags<... |
#! /usr/bin/env python
#-*-coding:utf-8-*-
import BeautifulSoup
import urllib2
import codecs
import os
URL='http:
html=urllib2.urlopen(URL).read()
soup=BeautifulSoup.BeautifulSoup(html)
f=codecs.open('Traininfopy.cache','w','utf-8')
trableinfo=soup.findAll(id='hokai-1')[0].find('img').get('alt')
if(trableinfo!=u""):
... |
layout: post
title: itemize,enumerate,description LaTeX
modified:
categories: blog
excerpt: itemizeenumeratedescription LaTeX
tags: [latex, emacs]
image:
feature:
date: 2014-02-24 Mon 23:26
## itemizeenumeratedescription LaTeX
itemize
{% highlight tex %}
\begin{itemize}
\item[*] a
\item[*] b
\end{itemize}
{% endhighlig... |
/* eslint no-console: 0 */
// Run this example by adding <%= javascript_pack_tag 'hello_vue' %> (and
// <%= stylesheet_pack_tag 'hello_vue' %> if you have styles in your component)
// to the head of your layout file,
// like app/views/layouts/application.html.erb.
// All it does is render <div>Hello Vue</div> at the bo... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html xmlns="http:
<head>
<title>Rails::Engine::Rake</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="../../../css/reset.css" type="text/... |
#include <string>
#include <iostream>
#include <iomanip>
#include <time.h>
#include <vector>
#include <fstream>
#include <tvmet/Vector.h>
#include <limits>
#include "Node.h"
#include "Model.h"
#include "Lbfgsb.h"
#include "OPSBody.h"
#include "OPSBrownianKick.h"
#include "<API key>.h"
#include <vtkPolyData.h>
#include ... |
<?
class LTChatTplParser
{
var $LTChartCore;
var $language_config;
var $room;
var $private_id;
var $title;
function LTChatTplParser($room = NULL, $private_id = -1)
{
if($private_id >= 0)
$room = '';
$this->private_id = $private_id;
$this->room = $room;
se... |
/*
* gcenv.os.cpp
*
* GCToOSInterface implementation
*
*
*/
#include "common.h"
#include "gcenv.h"
#ifndef FEATURE_PAL
#include <Psapi.h>
#endif
#define MAX_PTR ((uint8_t*)(~(ptrdiff_t)0))
// Initialize the interface implementation
// Return:
// true if it has succeeded, false if it has failed
bool GCToOSInterfa... |
namespace CompareSimpleMaths
{
using System;
using System.Diagnostics;
public class TimeLogger
{
private const long ExecutionTimes = (long)1e7;
public static void LogExecutionTime(string numberType, Action action)
{
var stopWatch = Stopwatch.StartNew();
fo... |
<div
class="task"
ng-class="{completed:completed}"
ng-init="completed = task.status == 'completed'; disabled = completed"
>
<label>
<input
type="checkbox"
class="uk-checkbox"
ng-model="completed"
/>
<span class="caption">
<s... |
// TextureProvider.h
// Chilli Source
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the foll... |
<?php
namespace SDispatcher\Common;
/**
* Used to read resource option in a more declarative way.
*/
final class <API key> extends <API key>
{
/**
* Used to read private method/property.
* @var \ReflectionObject
*/
private $reflector;
/**
* The target object to read.
* @var mixed
... |
# -*- coding:utf-8 -*-
from . import view
from flask import render_template
@view.app_errorhandler(404)
def page_not_found(e):
return render_template('404.html'), 404
@view.app_errorhandler(500)
def <API key>(e):
return render_template('500.html'), 500 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Chapter 6. Summary and Examples</title>
<link rel="stylesheet" href="gettingStarted.css" type="text/css" />
<meta name=... |
namespace AjLanguage.Commands
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AjLanguage.Expressions;
using AjLanguage.Language;
[Serializable]
public class <API key> : ICommand
{
private string name;
private string[] para... |
# keyclic_sdk_api.model.Publication
## Load the model package
dart
import 'package:keyclic_sdk_api/api.dart';
## Properties
Name | Type | Description | Notes
**embedded** | [**PublicationEmbedded**](PublicationEmbedded.md) | | [optional] [default to null]
**links** | [**PublicationLinks**](PublicationLinks.md) | | [o... |
#include "stdafx.h"
#include "MathUtils.h"
#include "Vector.h"
#include "Matrix4x4.h"
Matrix4x4 Matrix4x4::Identity(
1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f);
Matrix4x4::Matrix4x4(float InF) :
Matrix4x4(
InF, InF, InF, InF,
InF, ... |
h3.<API key> {
margin-top: 2px;
}
.ui-widget select {
font-size: 11px;
}
.speasyforms-wizard .ms-formbody {
background: transparent;
border-top: 0px;
}
.ui-tabs-nav {
width: 99% !important;
}
.ui-tabs .ui-tabs-panel {
padding: .7em .7em;
}
.<API key> .ms-long {
width: 225px;
}
.<API key> .ms... |
package de.avalax.mtg_insight.presentation.tasks;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.ProgressBar;
import java.util.Collections;
import de.avalax.mtg_insight.domain.model.card.Card;
import de.avalax.mtg_insight.domain.model.deck.StandardDeck;
import de.avalax.mtg_insight.domain.m... |
# We borrow heavily from the kernel build setup, though we are simpler since
# we don't have Kconfig tweaking settings on us.
# The implicit make rules have it looking for RCS files, among other things.
# We instead explicitly write all the rules we care about.
# It's even quicker (saves ~200ms) to pass -r on the comma... |
from __future__ import division
balance = 9999999
annualInterestRate = 0.18
min_pay = 10
def pay(m, min_pay):
if m == 1:
ub = (balance - min_pay) * (1 + annualInterestRate / 12)
return ub
else:
last_ub = pay(m - 1, min_pay)
ub = (last_ub - min_pay) * (1 + annualInterestRate / 12)... |
layout: post
category: Java
title:
tags: Java
[](https:
>
**1**
java
public class Main2 {
public static void main(String[] args) {
Class c1 = new ArrayList<Integer>().getClass();
Class c2 = new ArrayList<String>().getClass();
System.out.print(c1 == c2);
}
}
/* output
true
*/
List<String... |
public class Precedence // direction a
{
public static void main(String[] args) // main
{
int iAmFour = 4, iAmTwo = 2, iAmSeven = 7, iAmFourteen = 14, iAmEightteen = 18, iAmFive = 5, iAmOne = 1, iAmTwentyEight = 28, iAmTwenty = 20, iAmThree = 3; // direction a
double iAmPointTwo = 0.2; // direct... |
#{extends 'listAll.html' /}
#{set title:'Protocols and Structures for Inference - All Relations' /}
#{list items:resourceNames, as:'name' }
<li><a href="@{Data.describe(name)}" title="${name}">${name}</a></li>
#{/list} |
module MobileDevicePool
class IoStream
class << self
def <API key>(cmd, &blk)
begin
output = IO.popen(cmd)
while (line = output.gets)
blk.call(line)
end
rescue Exception => e
puts e.message
puts e.backtrace.inspect
end
... |
<?php
namespace Behat\BehatBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\Config\FileLocator;
use Behat\Behat\DependencyInjection\BehatExtension as BaseExtension;
/**
* Behat extension for DIC... |
Ext.provide('Phlexible.users.edit.Password');
Phlexible.users.edit.Password = Ext.extend(Ext.form.FormPanel, {
strings: Phlexible.users.Strings,
title: Phlexible.users.Strings.password,
iconCls: '<API key>',
border: false,
bodyStyle: 'padding:5px',
hideMode: 'offsets',
defaultType: 'textfiel... |
<?php
namespace Gos\Component\WebSocketClient\Wamp;
trigger_deprecation('gos/websocket-client', '1.2', 'The package is deprecated, use "ratchet/pawl" instead.');
/**
* @deprecated the package is deprecated, use "ratchet/pawl" instead.
*/
final class Protocol
{
public const MSG_WELCOME = 0;
public const MSG_PR... |
#import <UIKit/UIKit.h>
#import "<API key>.h"
@interface <API key> : NSObject <<API key>, ElementsDataSource>
{
}
@end |
var GetHtmlService = require('./../Services/GetHtmlService');
var M3U8File = require('./M3u8File');
module.exports = function () {
var self = this;
this.sourceLink;
this.id = '';
this.m3u8 = '';
this.m3u8Content;
this._m3u8 = '';
this.lastM3u8;
this.<API key> = 0;
t... |
using System.Configuration;
namespace Kafka.Client.Cfg
{
public class <API key> : <API key>
{
[<API key>("addressList")]
public string AddressList
{
get => (string) this["addressList"];
set => this["addressList"] = value;
}
[<API key>("sessionTimeo... |
// Annotations
//@TestFile
//@Require('Class')
//@Require('bugcli.CliAction')
//@Require('bugcli.CliActionInstance')
//@Require('bugcli.CliOptionInstance')
//@Require('bugcli.<API key>')
//@Require('bugmeta.BugMeta')
//@Require('bugunit.TestTag')
// Context
require('bugpack').context("*", function(bugpack) {
// Bug... |
var fs = require('fs'),
_ = require('underscore')._,
sys = require('sys'),
exec = require('child_process').exec;
var commands = function(dbot) {
var noChangeConfig = [ 'servers', 'name', 'moduleNames' ];
var getCurrentConfig = function(configKey) {
var defaultConfigPath = dbot.config;
... |
\subsection{Homology theory}
Let's remind ourselves of the First Isomorphism Theorem
\begin{thm}
(First Isomorphism Theorem) Let $G$, $H$ be groups, and let $\phi:G\to H$
be a homomorphism, then\end{thm}
\begin{enumerate}
\item $\text{Img}(\phi)\cong G/\ker(\phi)$,
\item $\ker(\psi)$ is a normal subgroup of $G$,
\item ... |
.animated {
-<API key>: 200ms;
animation-duration: 200ms;
-<API key>: both;
animation-fill-mode: both;
}
.position-absolute {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
}
popup {
display: block;
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
}
.popup-backdrop {
... |
package com.p_v.flexiblecalendar.view;
import android.content.Context;
import android.support.annotation.IntDef;
import android.util.AttributeSet;
import android.widget.TextView;
import com.p_v.flexiblecalendar.entity.Event;
import com.p_v.fliexiblecalendar.R;
import java.lang.annotation.Retention;
import java.lang.ann... |
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
# Note that this schema.rb definition is the authoritative source for your
# datab... |
class SchoolsController < <API key>
skip_before_action :check_school
before_action :set_school, only: [:show, :edit, :update, :destroy]
# GET /schools
# GET /schools.json
def index
@schools = School.all
end
# GET /schools/1
# GET /schools/1.json
def show
end
# GET /schools/new
def new
@s... |
#!/bin/sh
# create a file with a large amount of text pasted in and check to ensure file contains information
echo "FRom faireſt creatures we deſire increaſe,
> That thereby beauties Roſe might neuer die,
> But as the riper ſhould by time deceaſe,
> His tender heire might beare his memory:
> But thou contracted to thin... |
# <API key>: true
require File.expand_path("../../../../lib/awesome_xml.rb", __FILE__)
RSpec.describe AwesomeXML::Duration::Format::StaticChunk do
let(:static_chunk) { described_class.new }
let(:format_chars) { 'abdef'.chars }
before { static_chunk.format_chars = format_chars }
describe '#to_s' do
subject {... |
function carou2() {
$('[data-ride="carou"]').each(function () {
$(this).carousel();
});
}
$(document).on('turbolinks:load', carou2); |
#include "pihm.h"
#if defined(_NOAH_)
void InitSoil(const soiltbl_struct *soiltbl, const noahtbl_struct *noahtbl, const calib_struct *calib,
elem_struct elem[])
#else
void InitSoil(const soiltbl_struct *soiltbl, const calib_struct *calib, elem_struct elem[])
#endif
{
int i;
#if defined(_OPENMP)
# pr... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>JS Clock</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="clock">
... |
<?php
namespace Rollbar\Truncation;
use Rollbar\Payload\EncodedPayload;
class StringsStrategyTest extends \<API key>
{
/**
* @dataProvider executeProvider
*/
public function testExecute($data, $expected)
{
$truncation = new Truncation();
$strategy = new StringsStrategy($truncation)... |
import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import MySpinner from '../../components/Spinner/Spinner'
import { smallSpinnerRight } from '../../utils/SpinnerConfig'
import LessonList from './LessonList'
export class TeacherGroupInfo extends React.Component {
constructor(props) {
s... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FactorioModBuilder.Build.Messages
{
public class ErrorMessage : CompilerMessage
{
public ErrorMessage(string msg)
: base(MessageType.Error, msg)
{
}
... |
module.exports = {
"files": ["../wwwroot*.{html,htm,css,js}"],
"server": { "baseDir": "../wwwroot/" }
}; |
package au.com.sealink.printing.ticket_printer.exceptions;
public class <API key> extends Exception {
private static final long serialVersionUID = 1L;
public <API key>(String message) {
super(message);
}
} |
#ifndef BipBuffer_H
#define BipBuffer_H
/*
Changed header gaurd from pragma once to ifndef BipBuffer_H.
Chaning types to fixed width integers.
Removed destructor, AllocateBuffer, FreeBuffer.
Constructor expects array and size to be passed in.
Including stddef for NULL
Matthew Piccoli, 4/1/2016
*/
#include <... |
import unittest
import sys
import os
from Infrastructure.FileUtilities import FileUtilities
from Infrastructure.TipsManager import TipsManager
class TestsTipsManage(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.fileUtilities = FileUtilities()
def <API key>(self):
seed = 0
... |
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#<API key>">
<span class="sr-only">Toggle navigation</span>
... |
var assert=require('assert'), teselecta=require('../');
require('colors');
describe('terminal mode', function() {
it('should make numbers magenta', function() {
assert.equal(teselecta(42), '42'.magenta);
});
it('should make strings cyan', function() {
assert.equal(teselecta('foo'), '"'.grey+'foo'.cyan+'"'... |
/* global describe, it, beforeEach, expect, spyOn, jasmine */
/* eslint camelcase: 0, no-invalid-this: 0 */
const Player = require('../../../server/game/player.js');
const DrawCard = require('../../../server/game/drawcard.js');
describe('Player', function() {
beforeEach(function() {
this.gameSpy = jasmine.c... |
<?php
global $env;
global $cacheDriver;
$env->required('DB')->allowedValues(['mysql', 'pgsql', 'sqlite'])->notEmpty();
$env->required('TWIG_CACHE')->allowedValues([true, false])->notEmpty();
$env->required('DEBUG')->allowedValues([true, false])->notEmpty();
$env->required('CACHE_DRIVER')->allowedValues(
['Memcache'... |
/** @exports helpers
* Various helpers for non KoC specific stuff */
var helpers = {};
/**
* Simple e-mail validation with RegEx
* @param {String} email E-Mail address to validate
* @return {Boolean} whether or not this is a valid e-mail address
*/
helpers.validateEmail = function(email) {
var re = /^(([^<>()[... |
.modal-content {
background-color: white;
display: flex;
flex-direction: column;
align-items: stretch;
z-index: 999;
}
.modal-footer {
display: flex;
flex-direction: row-reverse;
}
.confirm-modal {
display: none;
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
justify-content: center;
... |
package com.flickr.api.entities;
import org.json.JSONException;
import org.json.JSONObject;
/**
*
* @author Fabien Barbero
*/
public class PhotosetsResponse extends PaginatedResponse<Photoset> {
@Override
protected Photoset unmarshall(JSONObject json) throws JSONException {
return new Photoset(json);... |
namespace Orleans.Providers.MongoDB.Configuration
{
public enum <API key>
{
SingleDocument,
Muiltiple,
MultipleDeprecated
}
} |
#pragma once
#include <world.h>
#include "world_allocator.h"
#include "world_hashtable.h"
#include "<API key>.h"
struct world_replica {
struct world_allocator allocator;
const struct world_replicaconf conf;
struct world_hashtable hashtable;
struct <API key> thread;
}; |
from Elements.G.Populators.Base.IElementPopulator import IElementPopulator
class <API key>(IElementPopulator):
def __init__(self, sectionName, templates, settingsObject):
super(<API key>, self).__init__(sectionName, templates, settingsObject)
self.separator = "\n|\n"
self.mainName = self.tem... |
[ => {
return Object.assign({
'backgroundColor': '#ffffff',
'class': '',
'padding': '0px',
'margin': '0px',
}, attributes, {
children,
});
};
// xml tag
body.tag = 'mmm-body';
// Not allowed ... |
package jd
type PathElement interface{}
type Path []PathElement
func (p1 Path) clone() Path {
p2 := make(Path, len(p1), len(p1)+1)
copy(p2, p1)
return p2
} |
<?php
require_once 'ohana.php';
hardReset();
$tests = array(
/*
array(
'mint', 'description',
'type', 'year', 'collection', 'expected accession number',
),
*/
array(
'mint', 'first interview',
'test', '1900', 'a', '1900test001_a001',
),
array(
'mint', ... |
namespace Facility.Definition;
<summary>
An error set.
</summary>
public sealed class ServiceErrorSetInfo : ServiceMemberInfo
{
<summary>
Creates an error set.
</summary>
public ServiceErrorSetInfo(string name, IEnumerable<ServiceErrorInfo> errors, IEnumerable<<API key>>? attributes, string? summary, IE... |
package coop.rchain.syntax.rholang.Absyn; // Java Package generated by the BNF Converter.
public class PPtVal extends PPattern {
public final ValPattern valpattern_;
public PPtVal(ValPattern p1) { valpattern_ = p1; }
public <R,A> R accept(coop.rchain.syntax.rholang.Absyn.PPattern.Visitor<R,A> v, A arg) { return v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.