code
stringlengths
4
1.01M
language
stringclasses
2 values
/* * Copyright (C) 2013 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/licenses/LICENSE-2.0 * * Unless required by app...
Java
package tasks // This file is generated by methodGenerator. // DO NOT MOTIFY THIS FILE. import ( "net/url" "github.com/kawaken/go-rtm/methods" ) // AddTags returns "rtm.tasks.addTags" method instance. func AddTags(timeline string, listID string, taskseriesID string, taskID string, tags string) *methods.Method { ...
Java
require('babel-polyfill'); /* eslint-disable */ // Webpack config for creating the production bundle. var path = require('path'); var webpack = require('webpack'); var CleanPlugin = require('clean-webpack-plugin'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var strip = require('strip-loader'); va...
Java
from itertools import product import numpy as np from sympy import And import pytest from conftest import skipif, opts_tiling from devito import (ConditionalDimension, Grid, Function, TimeFunction, SparseFunction, # noqa Eq, Operator, Constant, Dimension, SubDimension, switchconfig, ...
Java
App.SubPhotoInstance = DS.Model.extend({ width: DS.attr('number'), height: DS.attr('number'), url: DS.attr('string'), type: 'sub_photo_instance' });
Java
require "sendgrid-parse/version" require "sendgrid-parse/encodable_hash"
Java
"""Kytos SDN Platform.""" from pkgutil import extend_path __path__ = extend_path(__path__, __name__)
Java
finApp.directive('brief', function () { return { restrict: 'E', templateUrl: 'views/directives/brief.html', controller: 'BriefController', controllerAs: 'bfc' }; });
Java
// // XCPreferenceController.h // XCRegex // // Created by alexiuce  on 2017/6/22. // Copyright © 2017年 zhidier. All rights reserved. // #import <Cocoa/Cocoa.h> @interface XCPreferenceController : NSWindowController @end
Java
using OpenTK; using OpenTK.Graphics.OpenGL; namespace p_1 { class Spritebatch { public static void DrawSprite(Texture2D texture, RectangleF rectangle) { DrawSprite(texture, new Vector2(rectangle.X, rectangle.Y), new Vector2(rectangle.Width / texture.Width, rectangle.Height / texture.Height), Color.White, Vect...
Java
describe("grid-columns", function() { function createSuite(buffered) { describe(buffered ? "with buffered rendering" : "without buffered rendering", function() { var defaultColNum = 4, totalWidth = 1000, grid, view, colRef, store, column; function spy...
Java
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pigame.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
Java
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" @class IBConnection, NSSet, NSString; @interface IBDragConnectionContext : NSObject { NSString *connectionName; long long relationshipType; NSStri...
Java
/* * Copyright 2011 Matt Crinklaw-Vogt * * 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, publ...
Java
<!DOCTYPE html> <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" ...
Java
<?php namespace Akamon\OAuth2\Server\Domain\Service\Token\TokenGranter; use Akamon\OAuth2\Server\Domain\Exception\OAuthError\GrantTypeNotFoundOAuthErrorException; use Akamon\OAuth2\Server\Domain\Exception\OAuthError\UnauthorizedClientForGrantTypeOAuthErrorException; use Akamon\OAuth2\Server\Domain\Exception\OAuthErro...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>metacoq-safechecker: 6 m 37 s</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min....
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>jmlcoq: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>propcalc: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>karatsuba: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.c...
Java
package com.flockinger.spongeblogSP.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.service.A...
Java
--- title: "Does detecting a Minimally Conscious State in the ICU matter ?" date: 2017-11-22 00:00:00 categories: [Publi] tags: [Disorders of Consciousness, ICU, Consciousness, MyPublications] --- Our paper entitled **"Survival and consciousness recovery are better in the minimally conscious state than in the veget...
Java
<nav class="navbar navbar-default navbar-fixed-top"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-exp...
Java
import {keccak256, bufferToHex} from "ethereumjs-util" export default class MerkleTree { constructor(elements) { // Filter empty strings and hash elements this.elements = elements.filter(el => el).map(el => keccak256(el)) // Deduplicate elements this.elements = this.bufDedup(this.eleme...
Java
// // peas.js // // tree data structure in javascript // ////////////////////////// var peas = function() { // "sub" here is used as an object container for // operations related to sub nodes. // Each pea node will have a "sub" property // with an instance of "sub" var sub = function() {} // the current node...
Java
<!DOCTYPE html><html><head><meta charset="utf-8"><title>Untitled Document</title><style>/* * HTML5 ✰ Boilerplate * ...
Java
using System; using System.Linq; using System.Reflection; using System.Text; namespace Stealer { public class Spy { public string StealFieldInfo(string className, params string[] fieldsNames) { var sb = new StringBuilder(); sb.AppendLine($"Class under investigation: {c...
Java
from .. import Provider as CompanyProvider class Provider(CompanyProvider): formats = ( "{{last_name}} {{company_suffix}}", "{{last_name}} {{last_name}} {{company_suffix}}", "{{large_company}}", ) large_companies = ( "AZAL", "Azergold", "SOCAR", "So...
Java
/* * engine.h * * Created on: Mar 9, 2017 * Author: sushil */ #ifndef ENGINE_H_ #define ENGINE_H_ class InputMgr; #include <GfxMgr.h> #include <inputMgr.h> #include <EntityMgr.h> #include <gameMgr.h> #include <Types.h> #include <UiMgr.h> #include <SoundMgr.h> #include <Grid.h> class EntityMgr; class Eng...
Java
import formatPhoneNumber, { formatPhoneNumberIntl } from './formatPhoneNumberDefaultMetadata' describe('formatPhoneNumberDefaultMetadata', () => { it('should format phone numbers', () => { formatPhoneNumber('+12133734253', 'NATIONAL').should.equal('(213) 373-4253') formatPhoneNumber('+12133734253', 'INTERNATIONAL...
Java
import React from 'react'; import { withStyles } from '@material-ui/core/styles'; import { green } from '@material-ui/core/colors'; import Radio, { RadioProps } from '@material-ui/core/Radio'; import RadioButtonUncheckedIcon from '@material-ui/icons/RadioButtonUnchecked'; import RadioButtonCheckedIcon from '@material-u...
Java
// // ViewController.h // Examples // // Created by Tim Moose on 2/11/14. // Copyright (c) 2014 Tractable Labs. All rights reserved. // #import <UIKit/UIKit.h> #import <TLIndexPathTools/TLTableViewController.h> @interface SelectorTableViewController : TLTableViewController @end
Java
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'><head><title>app/helpers/cars_helper.rb - C0 code coverage information</title> <style type='text/css'>body { background-color: ...
Java
class JeraPushGenerator < Rails::Generators::NamedBase desc "This generator creates an initializer file at config/initializers" source_root File.expand_path("../templates", __FILE__) MissingModel = Class.new(Thor::Error) def initializer_file template 'jera_push.rb', 'config/initializers/jera_push.rb' ...
Java
<!DOCTYPE HTML> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (11.0.10) on Thu Apr 15 10:34:57 CEST 2021 --> <title>Uses of Class com.wrapper.spotify.model_objects.miscellaneous.CurrentlyPlaying.Builder (Spotify Web API Java Client 6.5.3 API)</title> <meta http-equiv="Content-Type" content="text/ht...
Java
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Copyright (c) 2013 doriancoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-licen...
Java
CREATE TABLE SM_STATE_DEFINITION( STATE_ID NUMBER NOT NULL, WORKFLOW_ID NUMBER NOT NULL, STATE_NAME VARCHAR2(256) NOT NULL, EMAIL_TO VARCHAR2(2048), PRIMARY KEY(STATE_ID), FOREIGN KEY(WORKFLOW_ID) REFERENCES SM_WORKFLOW_DEFINITION(WORKFLOW_ID) ); CREATE UNIQUE INDEX I_SM_STATE_DE...
Java
<?php /* Safe sample input : get the field UserData from the variable $_POST sanitize : settype (float) construction : use of sprintf via a %u with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this ...
Java
var final_transcript = ''; var recognizing = false; //var socket = io.connect('http://collab.di.uniba.it:48922');//"http://collab.di.uniba.it/~iaffaldano:48922" //socket.emit('client_type', {text: "Speaker"}); if ('webkitSpeechRecognition' in window) { var recognition = new webkitSpeechRecognition(); recognitio...
Java
/* eslint-disable promise/always-return */ import { runAuthenticatedQuery, runQuery } from "schema/v1/test/utils" describe("UpdateCollectorProfile", () => { it("updates and returns a collector profile", () => { /* eslint-disable max-len */ const mutation = ` mutation { updateCollectorProfile(in...
Java
module.exports = require('./src/tracking');
Java
<!DOCTYPE html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="keywords" content=" "> <title>Subscribe to Messaging Events | LivePerson Technical Documentation</...
Java
<?php namespace Sellsy\Tests\Sellsy\Criteria; use Sellsy\Criteria\CriteriaInterface; use Sellsy\Criteria\EmptyCriteria; /** * Class EmptyCriteriaTest * * @package Sellsy\Tests\Sellsy\Criteria */ class EmptyCriteriaTest extends \PHPUnit_Framework_TestCase { /** * @return EmptyCriteria */ public ...
Java
/** * Created by Administrator on 2017/3/11. */ public class ReverseWordsInSequence { public void reverseSequence(String str) { if (str == null) return; String[] strArray = str.split(" "); StringBuilder sb = new StringBuilder(); for (int i = strArray.length-1; i >= 0; --i) ...
Java
<?php class Autoreportemail_model extends CI_Model { public function __construct() { parent::__construct(); } public function get_milist($where = array()) { $this->db->select('*'); $this->db->where($where); $query = $this->db->get('autoreport_email'); re...
Java
--- layout: page title: Incoming webhooks permalink: /incoming_webhook order: 4 headings: - title: Posting a message with Incoming Webhooks --- ## Posting a message with Incoming Webhooks [Incoming webhooks](https://api.slack.com/incoming-webhooks) are an easy way to send notifications to a Slack channel with a m...
Java
/* Configures webpack to build only assets required for integration environments. */ const webpack = require('webpack'); const merge = require('webpack-merge'); const { source, sourceAll } = require('../lib/path-helpers'); const ciBuildWorkflow = require('./workflow/build.ci'); const { entries } = require(source...
Java
/** * A null-safe function to repeat the source string the desired amount of times. * @private * @param {String} source * @param {Number} times * @returns {String} */ function _repeat (source, times) { var result = ""; for (var i = 0; i < times; i++) { result += source; } return result; ...
Java
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>CTEArmorRicochet | demofile</title> <meta name="description" content="Documentation for demofile"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel=...
Java
(function(d,a){function b(a,b){var g=a.nodeName.toLowerCase();if("area"===g){var g=a.parentNode,i=g.name;if(!a.href||!i||g.nodeName.toLowerCase()!=="map")return!1;g=d("img[usemap=#"+i+"]")[0];return!!g&&e(g)}return(/input|select|textarea|button|object/.test(g)?!a.disabled:"a"==g?a.href||b:b)&&e(a)}function e(a){return!...
Java
/* * jQuery Cryptography Plug-in * version: 1.0.0 (24 Sep 2008) * copyright 2008 Scott Thompson http://www.itsyndicate.ca - scott@itsyndicate.ca * http://www.opensource.org/licenses/mit-license.php * * A set of functions to do some basic cryptography encoding/decoding * I compiled from some javascripts I ...
Java
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Handles backports of the standard library's `fractions.py`. The fractions module in 2.6 does not handle being instantiated using a float and then calculating an approximate fraction based on that. This functionality is required by the FITS unit format...
Java
/* eslint-disable func-names */ const { sampleUrls, shortSampleUrls, E2E_WAIT_TIME: WAIT_TIME, E2E_PRESENT_WAIT_TIME: PRESENT_WAIT_TIME } = require('../e2e_helper'); module.exports = { after(browser) { browser.end(); }, 'Go to top page': browser => { browser.page.index().navigate().waitForEleme...
Java
/*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under the MIT license */ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } +function ($) { 'use strict'; var version = $.fn.jquery.split(' ')[0].split('.') if ((v...
Java
#!/bin/sh -e usage() { echo "Usage: ${0} [--structure-only] DATABASE_NAME" } STRUCTURE_ONLY=false if [ "${1}" = --structure-only ]; then STRUCTURE_ONLY=true shift fi DATABASE_NAME="${1}" if [ "${DATABASE_NAME}" = "" ]; then usage exit 1 fi if [ "${STRUCTURE_ONLY}" = true ]; then FILE="${D...
Java
<?php /** * @package AcyMailing for Joomla! * @version 5.6.5 * @author acyba.com * @copyright (C) 2009-2017 ACYBA S.A.R.L. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><?php $name = 'Technology'; $thumb = 'media/com_acymaili...
Java
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using Windows.UI.Xaml; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ManagedUnitTests { public static class TestUtilities { ...
Java
<?php namespace EntityManager5178714d05176_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM; /** * CG library enhanced proxy class. * * This code was generated automatically by the CG library, manual changes to it * will be lost upon next generation. */ class EntityManager extends \Doctrine\ORM\Entit...
Java
<a name="2.7.8"></a> ## 2.7.8 (2016-03-20) * Added new blog to showcase ([d7be966](https://github.com/kikobeats/uno-zen/commit/d7be966)) * Apply effect in tag version as well. ([266f331](https://github.com/kikobeats/uno-zen/commit/266f331)) * Merge pull request #183 from binaryfever/patch-1 ([93ff62a](https://github....
Java
import {statementType} from "../_utils"; import * as Statements from "../../../src/abap/statements/"; const tests = [ "METHOD zfoobar.", "METHOD foobar by kernel module foobar fail.", "METHOD foobar by kernel module foobar ignore.", "METHOD if_foo~write BY KERNEL MODULE foobar.", "METHOD foobar BY DATABASE P...
Java
#! /usr/bin/env node import minimist from 'minimist' import Avifors from './Avifors' import YamlModelBuilder from './model/YamlModelBuilder' import Configuration from './Configuration' import {helpMessage} from './help' import YamlHelper from './tools/YamlHelper' const avifors = new Avifors() const corePlugins = ['./...
Java
# ipregex Simple python script to read apache log file and strip out the IP's
Java
# -*- coding: utf-8 -*- import os.path from django.db import models from django.utils.translation import ugettext_lazy as _ from django.conf import settings as django_settings from django.db.models import signals from know.plugins.attachments import settings from know import managers from know.models.pluginbase import ...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>dep-map: 32 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="sty...
Java
package h1z1.screens; import h1z1.MainFrame; import h1z1.game.GameState; import h1z1.input.ButtonHandler; import h1z1.input.InputButton; import h1z1.input.InputProvider; import h1z1.io.ResourceManager; import javax.imageio.ImageIO; import java.awt.*; import java.util.List; import h1z1.game.Maze; public class PlayGa...
Java
import express from 'express' import cors from 'cors' import bodyParser from 'body-parser' import helmet from 'helmet' import httpStatus from 'http-status' import path from 'path' import routes from './routes' import logger from './helpers/logger.js' const app = express() // Pug app.set('view engine', 'pug') app.set...
Java
<?php namespace PandaGroup\StoreLocator\Controller\Adminhtml\Index; use Magento\Framework\Exception\LocalizedException; class Save extends \Magento\Backend\App\Action { /** @var \Magento\Framework\App\Request\DataPersistorInterface */ protected $dataPersistor; /** @var \PandaGroup\StoreLocator\Model\Reg...
Java
using TwinTechs.Controls; using TekConf.Core.Data.Dtos; namespace TekConf.Forms.Cells { public partial class ConferenceListSessionsListCell : FastCell { protected override void InitializeCell () { InitializeComponent (); } protected override void SetupCell (bool isRecycled) { var session = BindingC...
Java
--- layout: post title: LeetCode 77 category: 技术 tags: LeetCode Medium keywords: LeetCode description: 2019 每天一道题 #77 --- #### 77. [Combinations](https://leetcode.com/problems/combinations/) --- Given two integers *n* and *k*, return all possible combinations of k numbers out of *1* ... *n*. **Example:** ``` Input: n...
Java
job === set timeout job or cron job to call a url. with nsq,this can sent a message in the special time.
Java
<?php namespace SilexMarkdown\Parser; use SilexMarkdown\Filter\FilterInterface; interface ParserInterface { public function transform($source); public function registerFilter($method, FilterInterface $filter); public function getFilters(); public function hasFilter($method); public function useFi...
Java
import Lab from 'lab'; import server from '../../server'; import data from '../data'; const expect = Lab.assertions.expect; export const lab = Lab.script(); lab.experiment('ProfileCtrl', function() { lab.before(done => { data.sync().then(done, done); }); lab.test('[getAuthenticated] returns the current pr...
Java
package net.glowstone.net.message.play.entity; import com.flowpowered.network.Message; import java.util.List; import lombok.Data; @Data public final class DestroyEntitiesMessage implements Message { private final List<Integer> ids; }
Java
// ArduinoJson - https://arduinojson.org // Copyright © 2014-2022, Benoit BLANCHON // MIT License #include <ArduinoJson.h> #include <catch.hpp> #define SHOULD_WORK(expression) REQUIRE(DeserializationError::Ok == expression); #define SHOULD_FAIL(expression) \ REQUIRE(DeserializationError::TooDeep == expression); TE...
Java
const fs = require('fs') const path = require('path') const LRU = require('lru-cache') const express = require('express') const favicon = require('serve-favicon') const compression = require('compression') const resolve = file => path.resolve(__dirname, file) const { createBundleRenderer } = require('vue-server-rendere...
Java
## async modes ### constant broadcast mode * `STATE A` `encoding` * agent broadcasts and performs signaling at a constant rate Agent does not listen for any signals. ### passive listen mode * `STATE A` `decoding` * agent polls for signaling and decodes bytes as they arrive This mode is for listening to a cons...
Java
import * as _ from 'lodash'; import * as AWS from 'aws-sdk'; import * as config from './config'; export interface Secrets { REDDIT_CLIENT_ID: string; REDDIT_CLIENT_TOKEN: string; REDDIT_USERNAME: string; REDDIT_PASSWORD: string; STEAM_API_KEY: string; } export async function resolve(): Promise<Secrets> { ...
Java
<!DOCTYPE html > <html> <head> <title></title> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <link href="../lib/ref-index.css" media="screen" type="text/css...
Java
FROM ubuntu ADD a.out /a.out
Java
#!/bin/bash cd "$(dirname "${BASH_SOURCE[0]}")" \ && . "utils.sh" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - tohome() { sourceFile="$(cd .. && pwd)/$1" targetFile="$HOME/.$(printf "%s" "$1" | sed "s/.*\/\(.*\)/\1/g")" if [ ! -e "$targetFile" ] || $skipQuestion...
Java
module FinancialStatementHelper include HyaccConst def colspan( node_level ) @max_node_level - node_level + 1 end def is_visible_on_report( account, branch_id ) # 削除された科目は表示しない return false if account.deleted? # 決算書科目以外は表示しない return false unless account.is_settlement_rep...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_comp...
Java
#include "Common.h" #include "CacheAdapters/Redis.h" #include "SSEConfig.h" #include "SSEEvent.h" #include <string> #include <vector> #include <iostream> #include <boost/asio/io_service.hpp> #include <boost/asio/ip/address.hpp> using namespace std; extern int stop; Redis::Redis(const string key, const ChannelConfig&...
Java
SPEC = Password.hs CC= gcc CFLAGS = -fPIC GHC = ghc %.o: %.c $(CC) -c -o $@ $< $(CFLAGS) example% : solution%.o $(SPEC) $(GHC) -o $@ $(SPEC) $< all : example1 example2
Java
<?php class kml_TimeSpan extends kml_TimePrimitive { protected $tagName = 'TimeSpan'; var $begin; var $end; /* Constructor */ function kml_TimeSpan($begin = null, $end = null) { parent::kml_TimePrimitive(); if ($begin !== null) $this->set_begin($begin); if ($end !== null...
Java
using System.ComponentModel; using System.Runtime.CompilerServices; namespace NAudioUniversalDemo { internal class ViewModelBase : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; protected virtual void OnPropertyChanged([CallerMemberName] string propertyName...
Java
# Rollup <p align="center"> <a href="https://travis-ci.org/rollup/rollup"> <img src="https://api.travis-ci.org/rollup/rollup.svg?branch=master" alt="build status"> </a> <a href="https://www.npmjs.com/package/rollup"> <img src="https://img.shields.io/npm/v/rollup.svg" alt="npm version"> ...
Java
$(function(){ $("#addCompanyForm").validate({ rules: { name : { required : true }, email: { required: true, email: true }, url : { required : true, url : true } }, messages: { name : { required : "Please enter your company name" }, url : { required : "P...
Java
package com.github.aureliano.evtbridge.converter; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.util.HashMap; import java.util.Map; import org.junit.Test; import com.github.aureliano.evtbridge.core.config.EventCollecto...
Java
<HTML><HEAD> <TITLE>Review for Can't Hardly Wait (1998)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0127723">Can't Hardly Wait (1998)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Jos...
Java
<?php namespace Kendo\Dataviz\UI; class DiagramShapeConnectorDefaultsStroke extends \Kendo\SerializableObject { //>> Properties /** * Defines the stroke color. * @param string $value * @return \Kendo\Dataviz\UI\DiagramShapeConnectorDefaultsStroke */ public function color($value) { ret...
Java
# reads uniprot core file and generates core features from features_helpers import score_differences def build_uniprot_to_index_to_core(sable_db_obj): uniprot_to_index_to_core = {} for line in sable_db_obj: tokens = line.split() try: # PARSING ID prot = tokens[0] ...
Java
--- published: true title: Oops. layout: post --- Just testing this out.
Java
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Project.Models { public enum WordRel { None, Synonym, Similar, Related, Antonym } }
Java
#include <string.hpp> #include "yatf/include/yatf.hpp" using namespace yacppl; TEST(string, can_be_created) { string str; REQUIRE(str == ""); REQUIRE(str.empty()); REQUIRE_EQ(str.length(), 0u); REQUIRE_EQ(str.size(), 0u); REQUIRE_FALSE(str == "abc"); } TEST(string, can_be_constructed_from_cst...
Java
module.exports = { entry: { 'public/js/bundle.js': ['./index.js'], }, output: { filename: '[name]', }, devtool: 'eval', module: { loaders: [ { test: /.js$/, exclude: /node_modules/, loaders: ['babel'], } ] } }
Java
// Copyright (c) 2014-2015 The AsturCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "asturcoinamountfield.h" #include "asturcoinunits.h" #include "guiconstants.h" #include "qvaluecombobox.h" #inclu...
Java
<html> <head> <title>Basic</title> <meta name="description" content="Large red-brown mountain terrain with <a-mountain>"> <meta property="og:image" content="https://raw.githubusercontent.com/ngokevin/kframe/master/components/mountain/examples/basic/preview.png"></meta> <script src="../build.js"></scri...
Java
using System.Collections.Generic; using System.Linq; namespace ComputerAlgebra { public static class Combinatorics { /// <summary> /// Enumerate the permutations of x. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="n"></param> /// <returns>...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SimpleStatePattern { public class StateB : StateBase { char currentLetter = 'B'; public void Change(Context context) { Console.Write(System.Environm...
Java