text stringlengths 3 1.05M |
|---|
<?php
/**
* @author Axel Anceau <Peekmo>
*/
namespace Peekmo\Story\Analyzers;
use Peekmo\Story\Interfaces\AnalyzerInterface;
class StartSentenceAnalyzer implements AnalyzerInterface
{
/**
* Method called to analyze the group of words to add to the sentence.
* Words to add can be modify through this metho... |
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
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/license... |
package com.vmware.vim25;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for VirtualDeviceFileBackingOption complex type.
*
* <p>The following... |
<?php
// --------------------------------------------------------------------------------
// PhpConcept Library - Zip Module 2.8.2
// --------------------------------------------------------------------------------
// License GNU/LGPL - Vincent Blavet - August 2009
// http://www.phpconcept.net
// ----------------------... |
package net.cloudslides.app.custom.widget;
import net.cloudslides.app.R;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.os.Handler;
import android.os.Message;
import android.os.SystemC... |
public function executeEdit(sfWebRequest $request)
{
<?php if (isset($this->params['with_propel_route']) && $this->params['with_propel_route']): ?>
$this->form = new <?php echo $this->getModelClass().'Form' ?>($this->getRoute()->getObject());
<?php else: ?>
$this->forward404Unless($<?php echo $this->getSing... |
set -e
version=$1
if [ -z "$version" ]; then
echo "No version passed! Example usage: ./release.sh 1.0.0"
exit 1
fi
echo "Running tests..."
go test
echo "Update version..."
echo -n "v${version}" > VERSION
sed -i '' 's/fmt\.Println("v[0-9]*\.[0-9]*\.[0-9]*")/fmt.Println("v'$version'")/' cmd/captain/cmd.go
sed -i ... |
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/multi-jvm-test.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>logs/multi-jvm-test.%d{d... |
"use strict";
class Cheese extends Phaser.Sprite {
constructor (game, x, y, type, debug = false) {
let cheese_type = (type && type.match(/^(speed|bomb)$/)) ? type : undefined,
key = cheese_type ? `cheese_${cheese_type}` : 'cheese';
super(game, x, y, 'spriteAtlas', key);
... |
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("Con... |
package com.thinkbiganalytics.policy.validation;
import org.apache.commons.lang3.StringUtils;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Validates the date matches a given ... |
/*
*
* Publisher subscriber pattern
*
*/
"use strict";
var cluster = require('cluster'),
hare = require('../index.js');
if (cluster.isMaster) {
for (var i = 0; i < 2; i++) {
cluster.fork();
}
cluster.on('death', function (worker) {
console.log('worker ' + worker.pid + ' died');
... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
// Copyright (c) 2015 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
module Findingaids::Ead::Behaviors
module Document
end
end
|
(function(){
var chokidar, watch;
chokidar = require('chokidar');
watch = function(full){
full == null && (full = true);
return function(cluster){
var watcher;
watcher = chokidar.watch(Object.keys(require.cache), {
persistent: true
});
watcher.on('change', function(){
... |
"""Tests that deleting the current working directory doesn't immediately fail"""
PYTHON_VERSION_COMPATIBILITY = 'PY2+3'
DEPS = [
'step',
'path',
]
def RunSteps(api):
api.step('innocent step', ['bash', '-c', "echo some step"])
api.step('nuke it', ['rm', '-rf', api.path['start_dir']])
try:
api.step('ba... |
require 'spec_helper'
module CodeClimate::TestReporter
describe Ci do
describe '.service_data' do
before :each do
@env = {
'SEMAPHORE' => 'yes?',
'BRANCH_NAME' => 'master',
'SEMAPHORE_BUILD_NUMBER' => '1234'
}
end
it 'returns a hash of CI environme... |
// *****************************************************************************
//
// © Component Factory Pty Ltd 2012. All rights reserved.
// The software and associated documentation supplied hereunder are the
// proprietary information of Component Factory Pty Ltd, 17/267 Nepean Hwy,
// Seaford, Vic 3198, A... |
<!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_45) on Tue Jul 28 07:43:48 CEST 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface org.toggl... |
package org.xm.word2vec.vec;
import org.xm.word2vec.domain.WordEntry;
import java.io.*;
import java.util.*;
/**
* word2vec 模型的使用
*
* @author xuming
*/
public class ModelParser {
private int words;
private int size;
private int topNSize = 40;
private HashMap<String, float[]> wordMap = new HashMap<... |
package com.espian.showcaseview.targets;
import android.app.Activity;
import android.graphics.Point;
import android.view.View;
import com.espian.showcaseview.ShowcaseViewTests;
import com.espian.showcaseview.TestingActivity;
import com.espian.showcaseview.actionbar.ActionBarViewWrapper;
import org.junit.Before;
impo... |
package builtin
import (
"testing"
"github.com/drone/drone/engine/compiler/parse"
"github.com/drone/drone/engine/runner"
"github.com/franela/goblin"
)
func Test_shell(t *testing.T) {
g := goblin.Goblin(t)
g.Describe("shell containers", func() {
g.It("should ignore plugin steps", func() {
root := parse.... |
type: post100
title: Network Configuration
categories: XAP100ADM
parent: none
weight: 800
---
In this guide we will show you how to configure the network including configuring unicast, multicast, over a firewall and over NAT.
<br>
{{%fpanel%}}
[Unicast Discovery](./network-unicast-discovery.html){{<wbr>}}
The s... |
using System;
using MarkdownSharp;
using Tamarack.Pipeline;
namespace Demo.OutputRendering.CommandUI.Filters
{
public class ConvertToHtml : IFilter<Context, bool>
{
public bool Execute(Context context, Func<Context, bool> executeNext)
{
context.Content = new Markdown().Transform(co... |
"""SQLite Abstraction layer for Starbot's database API."""
import sqlite3
from api.database.entry import Entry
def db_open(db_in):
"""Open the Database."""
db_in.type = "SQLite"
db_in.connection = sqlite3.connect("bot.db3")
def db_close(db_in):
"""Close the Database."""
# Close the database.
... |
"""
Django settings for microinvoices project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build ... |
import os
import sys
import unittest
sys.path.append(os.path.dirname(os.getcwd()))
from workers import base_job, mongodb_worker
class TestMongoDBCollections(unittest.TestCase):
"""Test case for indexing MongoDB collections."""
@classmethod
def setUpClass(self):
pass
def test_all_collections(s... |
package nom.bdezonia.zorbage.datasource;
import static org.junit.Assert.assertEquals;
import org.junit.Test; import nom.bdezonia.zorbage.algebra.G;
import nom.bdezonia.zorbage.storage.Storage;
import nom.bdezonia.zorbage.type.integer.int32.SignedInt32Member;
/**
*
* @author Barry DeZonia
*
*/
public class Test... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="d39bba44-3d67-4f52-8646-9e5805ff875a" name="Default" comment="" />
<ignored path="BooksCrawler.iws" />
<ignored path=".idea/workspace.xml" />
<ignored path=".idea/dataSources.loca... |
ACCEPTED
#### According to
Interim Register of Marine and Nonmarine Genera
#### Published in
null
#### Original name
null
### Remarks
null |
app.controller('editLocaleadminController', function($scope, $http, $cookies, $location, $routeParams, screenSize) {
$scope.$parent.hideNav = 1;
$scope.locale_admin = $routeParams.locale_admin;
$scope.$parent.isDesktop = screenSize.onChange($scope, 'md, sm, lg', function(isMatch){
$scope.isDesktop = isMatch;
}... |
package com.Rahat.myroutine;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import... |
<?php
namespace Magium\Actions;
interface ConfigurableActionInterface extends ActionInterface
{
public function execute($param);
} |
<!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_60-ea) on Tue Sep 06 12:41:45 EDT 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface org.wil... |
vcfplt
======
Convenient plotting functions for working with variant call data.
|
package ca.ualberta.cs.cmput301t03app.controllers;
import java.util.Timer;
import java.util.TimerTask;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.location.Location;
import android.lo... |
Description
===========
Installs icecast2 server package.
Requirements
============
Platform
--------
Tested on Debian 6, but should work on recent Debian or Ubuntu servers.
Not tested on RedHat based distributions.
Attributes
==========
All attributes have a decent default value set in the default.rb attributes ... |
<?php
namespace lukisongroup\assets;
use yii\web\AssetBundle;
/**
* @author ptr.nov <ptr.nov@lukison.com>
* @since 1.0
*/
class AppAssetFusionChart extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = [
/* 'css/sb-admin.css',
'angular/XenonChat/fonts/... |
package uk.ac.leeds.sc11mp.cloudautoscaling.prediction;
import java.io.File;
import java.util.Arrays;
import org.apache.log4j.Logger;
import org.encog.ml.data.MLData;
import org.encog.ml.data.basic.BasicMLData;
import org.encog.neural.networks.BasicNetwork;
import org.encog.persist.EncogDirectoryPersistence;
import or... |
<?php
/*
Unsafe sample
input : use proc_open to read /tmp/tainted.txt
sanitize : none
construction : use of sprintf via a %s with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this software and its d... |
package org.yaml.snakeyaml.parser;
import org.yaml.snakeyaml.events.Event;
/**
* Helper for {@link ParserImpl}. A grammar rule to apply given the symbols on
* top of its stack and the next input token
*
* @see http://en.wikipedia.org/wiki/LL_parser
*/
interface Production {
public Event produ... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
<div class="row-fluid" style="margin-top:10%">
<div class="span4 offset4">
<span class="span5">Found {{results.hits.total}} Results</span></span>
<span class="span5 offset2">
<a href="#/search"> <i class="icon-search"></i> Return to Search</a>
</span>
<table class="table ... |
#define lua_c
#include "lprefix.h"
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#if !defined(LUA_PROMPT)
#define LUA_PROMPT "> "
#define LUA_PROMPT2 ">> "
#endif
#if !defined(LUA_PROGNAME)
#define LUA_PROGNAME "lua"... |
<!-- Navigation -->
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<title>ADD-UNDIRECTED-LINKS-TO-ALL-OTHERS</title>
</head>
<body>
<h3><i>I create undirected links to all others.</i></h3>
<font size="2" color="gr... |
using System;
using NUnit.Framework;
using SevenDigital.Messaging.Routing;
namespace SevenDigital.Messaging.Unit.Tests.Routing
{
[TestFixture]
public class UniqueEndpointGeneratorTests
{
[Test]
public void Should_generate_a_name_based_on_hostname_and_running_assembly_and_a_hash()
{
// This one... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
package cern.util.testhelpers;
import java.lang.ref.PhantomReference;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.Reference;
/**
* A helper class to check if Garbage Collection works properly.
* It allows you to check whether an object is freed by the Garbage
* Collector.
*
* To check whether an ob... |
<?php
namespace esperanto\NewsletterBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Loader;
use esperanto\AdminBundle\DependencyInjection\SyliusResourceExtension;
/**
* This is the class that... |
package pl.openrest.dto.security.authorization;
import java.util.List;
import org.springframework.security.access.AccessDeniedException;
public class AffirmativeAccessDecisionManager extends AccessDecisionManager {
@Override
public int isAuthorized(Object principal, Object dto, Object entity, List<DtoAuthor... |
<!doctype html>
<html class="no-js" lang="en">
<head>
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,400italic,600,600italic,700,700italic,300italic" rel="stylesheet" type="text/css">
<meta charset="utf-8">
<title>Restart is a clean, multipurpose HTML template</title>
<meta name="apple-mobile-web-... |
var http = require("http");
var https = require("https");
/**
* getJSON: REST request returning JSON object(s)
* @param options: http options object
* @param callback: callback to pass the results JSON object(s) back
*/
exports.getJSON = function(options, onResult) {
var prot, req;
prot = options.https ? h... |
import test from 'ava';
import path from 'path';
import * as sinon from 'sinon';
import TorrentLibrary from '../../index';
import { folders } from '../_constants';
// TESTS
/** @test {TorrentLibrary#addNewPath} */
test('missing parameter', async (t) => {
let eventSpy = sinon.spy();
let libInstance = new TorrentLib... |
package com.battlelancer.seriesguide.ui;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;... |
package com.learn.api.modal;
import lombok.Data;
import java.util.Map;
/**
* @Author: luxq
* @Description:
* @Date: Created in 2018/5/27 0027 22:16
*/
@Data
public class Link {
private String operationRef; // string A relative or absolute reference to an OAS operation. This field is mutually exclusive of... |
-- Stored procedure with single result type.
exec [dbo].[uspGetManagerEmployees] @BusinessEntityID=2
-- Stored procedure with output parameter.
declare @p1 int
set @p1=0
exec [dbo].[uspLogError] @ErrorLogID=@p1 output
select @p1
-- Stored procedure with multiple result types.
exec [dbo].[uspGetCategoryAndSubCategory... |
package com.feilong.core.bean.beanutiltest;
import org.junit.Test;
import com.feilong.core.bean.BeanOperationException;
import com.feilong.core.bean.BeanUtil;
import com.feilong.store.member.Person;
import com.feilong.store.member.User;
/**
* The Class BeanUtilCopyPropertiesTest.
*
* @author <a href="http://feit... |
/*
Sequencer.cpp
Li-Yi Wei
August 17, 2014
*/
#include "Sequencer.hpp"
Sequencer::~Sequencer(void)
{
// nothing else to do
}
bool Sequencer::Reset(const Texture & target)
{
// shouldn't be called
return false;
}
bool Sequencer::Next(Position & answer)
{
// shouldn't be called
return fals... |
namespace duilib2
{
static String gListHeaderItemProperties[][3] =
{
// name value type
{"dragable", "true", "Bool"},
{"sepwidth", "4", "Int"},
{"align", "left", "String"},
{"endellipsis", "false", "Bool"},
{"font", "-1", ... |
package aQute.bnd.osgi.resource;
import java.io.File;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java... |
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("Ph... |
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("ht... |
package io.quarkus.qute.deployment.i18n;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import io.quarkus.qute.deployment.MessageBundleException;
import io.qua... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/optimization_guide/core/optimization_guide_util.h"
#include "base/base64.h"
#include "base/containers/flat_set.h"
#include "base/not... |
layout: post
title: LeetCode-#409-求最长的回文
date: 2017-03-26 21:52:00 +0800
categories: Algorithm
tag: LeetCode
---
* content
{:toc}
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.
This is case sensitive, for example `"... |
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);
client.calls('CAe03b7cd806070d1f32bdb7f1046a41c0').feedback.create({
quality_score: '3',
issue: 'imperfect-audio',
}, (err, feedback) => {
console.log(feedback.da... |
'use strict';
const assert = require('assert');
const supertest = require('supertest');
const helper = require('./test_helper');
const app = helper.app;
describe('Downloads', function () {
var server = supertest.agent(app);
describe('With an invalid file path', function () {
var file = '/invalidfile.mp3';
... |
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2017 Hippo Seven
~
~ 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
~
... |
package kami.admindataservice
import akka.actor.ActorSystem
import akka.http.scaladsl.Http
import akka.stream.{ActorMaterializer, Materializer}
import scala.concurrent.ExecutionContextExecutor
import scala.io.StdIn
import Environment.{instance => config}
import kami.admindataservice.service.SystemContext
import kami.... |
'use strict';
var React = require('react'), //eslint-disable-line no-unused-vars
ReactDOM = require( 'react-dom' ),
TestUtils = require( 'react-addons-test-utils' ),
Icon = require('../icon.js'),
stubIntlMessage = require('./utils/stubIntlMessage'),
sinon = require('sinon');
var getIconClassName;
describe('Gene... |
1. Fill up the sections
1. Translate it in spanish
1. Add HPC including also:
- grid
- MPI
- Big Data
|
package uk.me.candle.translations;
/**
*
* @author Andrew
*/
public class BundleCreationException extends RuntimeException {
private static final long serialVersionUID = 1457853680L;
public BundleCreationException(String message, Throwable cause) {
super(message, cause);
}
public BundleCreationException(Strin... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... |
package ieg.util.xml;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java... |
[jvm]
Content
val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
|
DroneEntity::DroneEntity(int uniqueID, int team, int atX, int atY)
:SimpleMovingEntity(uniqueID, team, atX, atY)
{
// constructor
m_type = DRONE;
m_groupType = PLAYER_SPAWN_GROUP;
m_initialAnimCount = DataReader::getInstance()->getIntFromFile("DRONE_ANIM_COUNT", "data/entity.txt");
m_animCounter = m_initia... |
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "optionsmodel.h"
#include "transactiontablemodel.h"
#include "transactionfilterproxy.h"
#include "guiutil.h"
#include "guiconstants.h"
#include <QAbstractItemDelegate>
#include <QPainter>
#define DECORATION_SIZE 64
#define NUM_ITEMS 3
class ... |
// ****************************************************************
// Copyright 2012, Charlie Poole
// This is free software licensed under the NUnit license. You may
// obtain a copy of the license at http://nunit.org
// ****************************************************************
using System;
using System.IO;... |
<?php
/**
* A sniff that shows errors when conditionals do not have braces.
*
* @author Dylan Pruitt
* @author Ryan Masters
*/
class PHP_CodeSniffer_Sniffs_Syntax_ConditionalBracesSniff implements PHP_CodeSniffer_Sniff
{
/**
* Registers the tokens that this sniff wa... |
module Vectorise.Monad.Naming
( mkLocalisedName
, mkDerivedName
, mkVectId
, cloneVar
, newExportedVar
, newLocalVar
, newLocalVars
, newDummyVar
, newTyVar
, newCoVar
)
where
import Vectorise.Monad.Base
import DsMonad
import TcType
import Type
import Var
import Module
import Name
import SrcLoc
... |
<?php
namespace RedMedica\ConsultasBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/hello/Fabien');
$th... |
#import <Foundation/Foundation.h>
#include <Polo/PoloClient.h>
// PoloClient provides an ObjC wrapper around the PoloClientRef C API.
// In addition to providing ObjC abstration for primitive C types it also
// provides transparent keychain integration.
// PoloClient is toll-free bridged to PoloClientRef.
//
// A po... |
using System.Reflection;
// 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("Assman.dotLess")]
[assembly: AssemblyDescription("")]
[assembly: Assembl... |
Provides convenience methods for setting Mandrill SMTP headers for ActionMailer
## Installation
Add this line to your application's Gemfile:
gem 'mandrill_smtp_headers'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mandrill_smtp_headers
## Usage
Adding this gem will provide co... |
using Microsoft.Extensions.Logging;
using System;
namespace AWTY
{
using Logging;
/// <summary>
/// Logging-related extension methods for progress.
/// </summary>
public static class ProgressLoggingExtensions
{
/// <summary>
/// Write progress data to a logger.
... |
class CommentsController < ApplicationController
def create
@comment = Comment.create! comment_params
redirect_to post_path(@comment.post)
end
def update
@comment = Comment.find(params[:id])
if @comment.update(comment_params)
redirect_to @comment.post
else
render :edit
end
... |
import bot from './bot';
import slash from './slash';
export default () => {
bot();
slash();
};
|
#import "YoumiOfferWall.h"
#import "YoumiExtensionHandler.h"
static YoumiExtensionHandler* youmi;
/* YoumiOfferWallExtInitializer()
* The extension initializer is called the first time the ActionScript side of the extension
* calls ExtensionContext.createExtensionContext() for any context.
*
* Please note: this... |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.java.j2seproject</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>RobotControl</name>
<minimum-ant-version>1.6.5</minimum-... |
package com.the9.daisy.network.proto;
public interface RpcMsgType {
public static final int RPC_LoginGameReq = 20001;
public static final int RPC_LoginGameAck = 20002;
public static final int RPC_LoginOutReq = 20003;
public static final int RPC_GetServerConfigReq = 20005;
public static final int RPC_GetServerConf... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>classical-realizability: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../b... |
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, national... |
package com.hazelcast.internal.nearcache.impl.invalidation;
import com.hazelcast.spi.impl.eventservice.EventRegistration;
import com.hazelcast.spi.impl.NodeEngine;
import java.util.function.Function;
/**
* Sends invalidations to Near Caches immediately.
*/
public class NonStopInvalidator extends Invalidator {
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using QuickGraph;
using QuickGraph.Algorithms.Search;
using QuickGraph.Collections;
namespace GraphSharp.Algorithms.Layout.Simple.Tree
{
public partial class SimpleTreeLayoutAlgorithm<TVertex, TEdge, TGraph> : DefaultParamete... |
<?php
// do stuff with $_POST["address"] and $_POST["file"]
function pushQueue ($file, $queue) {
$lines = file($file);
array_push($lines, $queue);
file_put_contents($file, $lines);
}
?>
|
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = r'''
---
module: netbox_ip_address
short_description: Creates or removes IP a... |
//
// BXUMessageTableViewCell.h
// Bit6UI
//
// Created by Carlos Thurber on 12/29/15.
// Copyright © 2015 Bit6. All rights reserved.
//
#import <UIKit/UIKit.h>
/*! Unique cell to be used in <BXUMessageTableViewController>. */
@interface BXUMessageTableViewCell : UITableViewCell
/*! Font for the text content of ... |