text
stringlengths
3
1.05M
package virtualnetwork import ( "encoding/xml" "github.com/Azure/azure-sdk-for-go/management" ) const ( azureNetworkConfigurationURL = "services/networking/media" ) // NewClient is used to return new VirtualNetworkClient instance func NewClient(client management.Client) VirtualNetworkClient { return VirtualNetw...
require 'rubygems' # or use Bundler.setup require 'eventmachine' class SimpleChatServer < EM::Connection # # EventMachine handlers # def post_init puts "A client has connected..." end def unbind puts "A client has left..." end end EventMachine.run do # hit Control + C to stop Signal.trap(...
.bootstrap-dialog { } .bootstrap-dialog .modal-header { border-top-left-radius: 4px; border-top-right-radius: 4px; } .bootstrap-dialog .bootstrap-dialog-title { color: #fff; display: inline-block; } .bootstrap-dialog.type-default .bootstrap-dialog-title { color: #333; } .bootstrap-dialog .bootstrap...
""" Cred plugin for a file of the format 'username:password'. """ import sys from zope.interface import implements from twisted import plugin from twisted.cred.checkers import FilePasswordDB from twisted.cred.strcred import ICheckerFactory from twisted.cred.credentials import IUsernamePassword, IUsernameHashedPasswo...
package com.github.pedrovgs.problem24; import com.github.pedrovgs.binarytree.BinaryNode; /** * Given a sorted array full of integers, can you write a method to return a BST? * * A binary search tree (BST), sometimes also called an ordered or sorted binary tree, is a * node-based binary tree data structure where ...
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.androplus.systemuimod" android:versionCode="5" android:versionName="1.4" > <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="22" /> <application android:allowBackup...
<?php require_once dirname(__FILE__) . '/../Lib/AdWordsUser.php'; require_once dirname(__FILE__) . '/../../Common/Util/CurlUtils.php'; require_once dirname(__FILE__) . '/../../Common/Util/Logger.php'; require_once dirname(__FILE__) . '/../../Common/Util/XmlUtils.php'; /** * A collection of utility methods for workin...
Window::Window(Image* image, const PixelFormat& pixel_format, std::string title) { image_ = image; }
<html> <head> <title>TestNG: Default test</title> <link href="../testng.css" rel="stylesheet" type="text/css" /> <link href="../my-testng.css" rel="stylesheet" type="text/css" /> <style type="text/css"> .log { display: none;} .stack-trace { display: none;} </style> <script type="text/javascript"> <!-- function flip...
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Runtime.Versioning; using NuGet.Resources; namespace NuGet { public class InstallWalker : PackageWalker, IPackageOperationResolver { private rea...
package com.iluwatar.pageobject.pages; import com.gargoylesoftware.htmlunit.WebClient; /** * Encapsulation for a generic 'Page' */ public abstract class Page { /** * Application Under Test path * This directory location is where html web pages are located */ public static final String AUT_PATH = "src...
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace SDL.DXA.Modules.Forms { /// <summary> /// Form Handler Registry /// </summary> public abstract class FormHandlerRegistry { private static IDictionary<string, IFormHandler> formHandlers = new Dict...
namespace testing { using internal::GetUnitTestImpl; // Gets the summary of the failure message by omitting the stack trace // in it. internal::String TestPartResult::ExtractSummary(const char* message) { const char* const stack_trace = strstr(message, internal::kStackTraceMarker); return stack_trace == NULL ? in...
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apach...
VALUE cWIN32OLE_VARIABLE; VALUE create_win32ole_variable(ITypeInfo *pTypeInfo, UINT index, VALUE name); void Init_win32ole_variable(void); #endif
describe('buttons', function () { var $scope, $compile; beforeEach(module('ui.bootstrap.buttons')); beforeEach(inject(function (_$rootScope_, _$compile_) { $scope = _$rootScope_; $compile = _$compile_; })); describe('checkbox', function () { var compileButton = function (markup, scope) { ...
// Copyright (c) 2012 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. 'use strict'; /** * Responsible for showing banners in the file list. * @param {DirectoryModel} directoryModel The model. * @param {VolumeManager}...
package org.elasticsearch.common.xcontent; /** * An interface allowing to transfer an object to "XContent" using an * {@link XContentBuilder}. The difference between {@link ToXContentFragment} * and {@link ToXContentObject} is that the former outputs a fragment that * requires to start and end a new anonymous ob...
<?php namespace ZendTest\Code\Reflection; /** * @category Zend * @package Zend_Reflection * @subpackage UnitTests * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Reflection...
var path = require('path'); var fs = require('fs'); function Mime() { // Map of extension -> mime type this.types = Object.create(null); // Map of mime type -> extension this.extensions = Object.create(null); } /** * Define mimetype -> extension mappings. Each key is a mime-type that maps * to an array of...
; (function() { /** * * @type {Function} * @constructor */ var ElementQueries = this.ElementQueries = function() { this.withTracking = false; var elements = []; /** * * @param element * @returns {Number} */ function getEm...
@class BPImportOrchestrator; @protocol BPImportOrchestratorDelegate <NSObject> - (void)importOrchestrator:(BPImportOrchestrator *)importOrch numRecordsImported:(NSUInteger)importCount numRecordsUpdated:(NSUInteger)updateCount; - (void)importOrchestrator:(BPImportOrchestrator *)importOrch failedWithError:(NSError *)e...
c\BeginDoc c c\Name: zneupd c c\Description: c This subroutine returns the converged approximations to eigenvalues c of A*z = lambda*B*z and (optionally): c c (1) The corresponding approximate eigenvectors; c c (2) An orthonormal basis for the associated approximate c invariant subspace; ...
@charset "UTF-8"; @media print { /** * @section basic layout preparation * @see http://www.yaml.de/en/documentation/css-components/layout-for-print-media.html */ /* (en) change font size unit to [pt] - avoiding problems with [px] unit in Gecko based browsers */ /* (de) Wechsel der der Sc...
/*global describe, it, before, after */ var supertest = require('supertest'), express = require('express'), should = require('should'), _ = require('lodash'), testUtils = require('../../../utils'), ghost = require('../../../../../core'), httpServer, ...
package com.intellij.openapi.vfs.encoding; import com.intellij.openapi.options.Configurable; import com.intellij.openapi.options.ConfigurableProvider; import com.intellij.openapi.project.Project; /** * @author Sergey.Malenkov */ public final class FileEncodingConfigurableProvider extends ConfigurableProvider { p...
<?php namespace Scalr\Service\Aws\Rds\DataType; use Scalr\Service\Aws\DataType\ListDataType; use Scalr\Service\Aws\Rds\AbstractRdsDataType; /** * ModifyDBInstanceRequestData * * @author Vitaliy Demidov <vitaliy@scalr.com> * @since 20.03.2013 * * @property \Scalr\Service\Aws\DataType\ListDataType $dBSecur...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ /*global $hash$ installedModules $require$ hotDownloadManifest hotDownloadUpdateChunk modules */ module.exports = function() { // Copied from https://github.com/facebook/react/blob/bef45b0/src/shared/utils/canDefinePro...
package iterator import ( "errors" "reflect" "testing" "github.com/google/cayley/graph" ) func iterated(it graph.Iterator) []int { var res []int for graph.Next(it) { res = append(res, it.Result().(int)) } return res } func TestOrIteratorBasics(t *testing.T) { or := NewOr() f1 := NewFixed(Identity) f1.A...
void b3ComputeWorldAabb(int bodyId, __global const b3RigidBodyData_t* bodies, __global const b3Collidable_t* collidables, __global const b3Aabb_t* localShapeAABB, __global b3Aabb_t* worldAabbs) { __global const b3RigidBodyData_t* body = &bodies[bodyId]; b3Float4 position = body->m_pos; b3Quat orientation = body->m_...
@interface QNUpToken : NSObject + (instancetype)parse:(NSString *)token; @property (copy, nonatomic, readonly) NSString *token; @property (readonly) BOOL hasReturnUrl; @end
package reference import ( "errors" "fmt" "github.com/novln/docker-parser/distribution/digest" ) const ( // NameTotalLengthMax is the maximum total number of characters in a repository name. NameTotalLengthMax = 255 ) var ( // ErrReferenceInvalidFormat represents an error while trying to parse a string as a r...
set -e # Source libraries. Uncomment if needed/defined #. "${RT_LIB}" . "${RT_PROJECT_ROOT}/_lib/lib.sh" NAME=test-ns clean_up() { rm -rf ${NAME}-* } trap clean_up EXIT linuxkit build -format kernel+initrd -name ${NAME} ../../common.yml test.yml RESULT="$(linuxkit run -cpus 2 ${NAME})" echo "${RESULT}" | grep -...
define([ "./core", "./var/rnotwhite", "./core/access", "./data/var/data_priv", "./data/var/data_user" ], function( jQuery, rnotwhite, access, data_priv, data_user ) { // Implementation Summary // // 1. Enforce API surface and semantic compatibility with 1.9.x branch // 2. Improve the module's maintainability by r...
using System; using System.Text; using System.IO; using log4net.Util; using log4net.DateFormatter; using log4net.Core; namespace log4net.Util.PatternStringConverters { /// <summary> /// Write an environment variable to the output /// </summary> /// <remarks> /// <para> /// Write an environment variable to the o...
using System; using System.Collections.Generic; using System.Linq; using Windows.Foundation.Collections; namespace HubApp2.Common { /// <summary> /// Implementation of IObservableMap that supports reentrancy for use as a default view /// model. /// </summary> public class ObservableDictionary : IO...
- Initial version, created by Stagehand
package com.intellij.ide.plugins.newui; import com.intellij.application.options.RegistryManager; import com.intellij.icons.AllIcons; import com.intellij.ide.IdeBundle; import com.intellij.ide.plugins.*; import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.application.ex.ApplicationInfoEx; import com...
/** * Model to hold the amino acid composition data. Includes the parameters as * well as sequences and their names * * @author mhuska */ import java.util.*; import java.util.concurrent.CopyOnWriteArrayList; public class UserDataModel extends BasePlotModel implements IView { final static int DISPLAY_DYNAM...
namespace stm32plus { namespace display { // helper so the user can just do 'new fontname' without having to know the parameters extern const struct FontChar FDEF_ATARIST8X16SYSTEMFONT_CHAR[]; class Font_ATARIST8X16SYSTEMFONT16 : public Font { public: Font_ATARIST8X16SYSTEMFONT16() : Font(32,...
.artist-img-td { width: 200px !important; } .artist-img { width: 120px !important; display: block !important; margin: 2px !important; } .artist-img-big { width: 300px !important; display: block !important; margin: 2px !important; } .ui-widget-content div a.ui-link.ui-widget.artist-link { ...
package org.apache.camel.component.kubernetes; public interface KubernetesOperations { // Namespaces String LIST_NAMESPACE_OPERATION = "listNamespaces"; String LIST_NAMESPACE_BY_LABELS_OPERATION = "listNamespacesByLabels"; String GET_NAMESPACE_OPERATION = "getNamespace"; String CREATE_NAMESPACE_O...
DROP TABLE IF EXISTS like1; DROP TABLE IF EXISTS like2; DROP TABLE IF EXISTS child2; DROP TABLE IF EXISTS carpe_diem; DROP TABLE IF EXISTS cot_table11; -- end_ignore CREATE TABLE cot_table11 ( id BIGINT, wealth MONEY CONSTRAINT wealth_not_null_constraint NOT NULL, crazy_like_a_box BOX, pointless POINT, outer_c...
<?xml version="1.0" encoding="utf-8"?> <entry xmlns="http://www.w3.org/2005/Atom"> <link rel="enclosure" type="audio/mpeg" title="MP3" href="http://www.example.org/myaudiofile.mp3" length="1234" /> </entry>
<?php namespace Pagekit\Kernel\Exception; class UnauthorizedException extends HttpException { /** * {@inheritdoc} */ public function __construct($message = null, $previous = null, $code = 401) { parent::__construct($message ?: 'Unauthorized', $previous, $code); } }
//https://github.com/bitbasenyc/nsdata-zlib @interface NSData (zlib) /** ZLib error domain */ extern NSString *const BBSZlibErrorDomain; /** When a zlib error occurs, querying this key in the @p userInfo dictionary of the @p NSError object will return the underlying zlib error code. */ extern NSString *const BBS...
package io.mycat.server.sqlhandler; import io.mycat.server.MySQLFrontConnection; import io.mycat.server.parser.ServerParse; import io.mycat.server.parser.ServerParseShow; import io.mycat.server.response.ShowDatabases; import io.mycat.server.response.ShowMyCATCluster; import io.mycat.server.response.ShowMyCatStatus; i...
package brooklyn.mementos; import java.io.Serializable; import java.util.Map; import brooklyn.entity.rebind.RebindSupport; /** * Represents the internal state of something in brooklyn, so that it can be reconstructed (e.g. after restarting brooklyn). * * @see RebindSupport * * @author aled */ public interfac...
package net.ssehub.easy.instantiation.rt.core.model.rtVil; import net.ssehub.easy.instantiation.core.model.buildlangModel.IBuildlangVisitor; import net.ssehub.easy.instantiation.core.model.common.VilException; /** * Defines the visitor rt-VIL. * * @author Holger Eichelberger */ public interface IRtVilVisitor ex...
package org.docksidestage.hangar.dbflute.cbean.bs; import org.dbflute.cbean.AbstractConditionBean; import org.dbflute.cbean.ConditionBean; import org.dbflute.cbean.ConditionQuery; import org.dbflute.cbean.chelper.*; import org.dbflute.cbean.coption.*; import org.dbflute.cbean.dream.*; import org.dbflute.cbean.sqlclau...
import _extends from "@babel/runtime/helpers/extends"; import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; var _excluded = ["children", "className", "header", "text", "style", "iosCloseItem"]; import { createScopedElem...
/** * Apply a JsonPatch non-destructively with maximal sharing. */ var _ = require('lodash'); var _generation = 0; function ensureFreshArray (value) { if (value.$generation !== _generation) { value = value.slice(); Object.defineProperty(value, '$generation', { configurable: false, enumerable:...
package org.apache.commons.httpclient; /** * When a response stream has been consumed, various parts of the HttpClient * implementation need to respond appropriately. * * <p>When one of the three types of {@link java.io.InputStream}, one of * AutoCloseInputStream (package), {@link ContentLengthInputStream}, or ...
================= SHOW CREATE TABLE ================= Synopsis -------- .. code-block:: none SHOW CREATE TABLE table_name Description ----------- Show the SQL statement that creates the specified table. Examples -------- Show the SQL that can be run to create the ``orders`` table:: SHOW CREATE TABLE sf1...
<?php namespace Dingo\Api\Routing; use Dingo\Api\Dispatcher; use Dingo\Api\Auth\Authenticator; use Dingo\Api\Http\ResponseFactory; trait ControllerTrait { /** * API dispatcher instance. * * @var \Dingo\Api\Dispatcher */ protected $api; /** * API authenticator instance. * ...
// Copyright JS Foundation and other contributors, http://js.foundation // // 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 r...
import os.path import sys import re PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__)) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends', # Add 'postgresql_psycopg2', 'postgr...
import express from 'express' import ArticlesModel from './models/articles' import GamesModel from './models/games' import marked from 'marked' let router = express.Router(); router.use((req, res, next) => { next(); }) router.get('/', (req, res) => { Promise.all([ArticlesModel.findAllArticles('all'...
module('Inline', { setup: function(){ this.component = $('<div data-date="12-02-2012"></div>') .appendTo('#qunit-fixture') .datepicker({format: "dd-mm-yyyy"}); this.dp = this.component.data('datepicker') this.picker = this.dp.picker; }, ...
static int find_file_match( mz_zip_archive *zip_archive, name_matcher_t matcher, void* userdata) { unsigned int num_files = mz_zip_reader_get_num_files(zip_archive); for (unsigned int idx = 0; idx < num_files; idx++) { mz_zip_archive_file_stat file_stat; if (!mz_zip_reader_file_stat(zip_archive,...
import types import jsonpickle.util as util import jsonpickle.tags as tags import jsonpickle.handlers as handlers class Pickler(object): """Converts a Python object to a JSON representation. Setting unpicklable to False removes the ability to regenerate the objects into object types beyond what the standa...
"""This file contains a collection of standard key derivation functions. A key derivation function derives one or more secondary secret keys from one primary secret (a master key or a pass phrase). This is typically done to insulate the secondary keys from each other, to avoid that leakage of a secondary key compromi...
module Rake module InvocationExceptionMixin # Return the invocation chain (list of Rake tasks) that were in # effect when this exception was detected by rake. May be null if # no tasks were active. def chain @rake_invocation_chain ||= nil end # Set the invocation chain in effect when t...
#include "talk/p2p/base/parsing.h" #include <algorithm> #include <stdlib.h> #include "talk/base/stringutils.h" namespace { std::string kTrue = "true"; std::string kOne = "1"; } namespace cricket { bool BadParse(const std::string& text, ParseError* err) { if (err != NULL) { err->text = text; } return fal...
$(document).ready(function() { var switched = false; var updateTables = function() { if (($(window).width() < 767) && !switched ){ switched = true; $("table.responsive").each(function(i, element) { splitTable($(element)); }); return true; } else if (switched && ($(window)...
package org.springframework.boot.actuate.endpoint.jmx; import java.text.SimpleDateFormat; import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.util.Properties; import javax.management.MBeanInfo; import javax.management.Malfo...
<!DOCTYPE html> <html> <head> <title>Apéndice A - Glosario - Rubinius</title> <meta content='text/html;charset=utf-8' http-equiv='content-type'> <meta content='es' http-equiv='content-language'> <meta content='Rubinius is an implementation of the Ruby programming language. The Rubinius bytecode virtua...
class <caret>WithInner { public class Inner { } } class A { public void test() { WithInner.Inner i = new WithInner().new Inner(); } }
#include "config.h" #include "WebKitDownload.h" #include "DownloadProxy.h" #include "WebKitDownloadPrivate.h" #include "WebKitMarshal.h" #include "WebKitURIRequestPrivate.h" #include "WebKitURIResponsePrivate.h" #include <WebCore/ErrorsGtk.h> #include <WebCore/ResourceResponse.h> #include <glib/gi18n-lib.h> #include...
package ru.aplana.app.checkers; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import ru.aplana.app.db.DataBaseHelper; import ru.aplana.app.tools.SystemTypes; /** * * Save count calls to database * * @author Maksim Stepanov * */ public class CallsChecker implements Runna...
HTMLArea.I18N = { // the following should be the filename without .js extension // it will be used for automatically load plugin language. lang: "de", tooltips: { bold: "Fett", italic: "Kursiv", underline: "Unterstrichen", strikethrough: "Durchgestrichen", subscript: "Hochge...
<!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="utf-8" /> <block name="title"> <title>{$title|default=get_system_config("SYSTEM_NAME")}</title> </block> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <!-- basic styles --> <link rel="stylesheet" href="__S...
var howwework = angular.module('howwework', []);
"use strict"; /** * Hold a bunch of something * @extends Map * @prop {Class} baseObject The base class for all items * @prop {Number?} limit Max number of items to hold */ class Collection extends Map { /** * Construct a Collection * @arg {Class} baseObject The base class for all items * @arg {Number} ...
package org.apache.camel.component.properties; import org.springframework.context.support.AbstractXmlApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; /** * @version */ public class SpringPropertiesAfterTransactedDSL2Test extends SpringPropertiesAfterTransactedDSLTest {...
import sniper_stats, intelqueue, iqclient class SniperStatsJobid(sniper_stats.SniperStatsBase): def __init__(self, jobid): self.jobid = jobid self.ic = iqclient.IntelClient() self.names = self.read_metricnames() def read_metricnames(self): return self.ic.graphite_dbresults(self.jobid, 'read_metri...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
from django import template from .. import scope register = template.Library() @register.filter def scopes(scope_int): """ Wrapper around :attr:`provider.scope.names` to turn an int into a list of scope names in templates. """ return scope.to_names(scope_int)
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Governance.TimerJobs.RemediationUx.Model { public class OperationResult { public bool IsSuccess { get; set; } public st...
package com.netflix.loadbalancer; import com.netflix.client.config.IClientConfig; /** * Default simple implementation that marks the liveness of a Server * * @author stonse * */ public class DummyPing extends AbstractLoadBalancerPing { public DummyPing() { } public boolean isAliv...
require 'spec_helper' require 'puppet/settings/environment_conf.rb' describe Puppet::Settings::EnvironmentConf do def setup_environment_conf(config, conf_hash) conf_hash.each do |setting,value| config.expects(:setting).with(setting).returns( mock('setting', :value => value) ) end end ...
package asm func DdotUnitary(x, y []float64) (sum float64) func DdotInc(x, y []float64, n, incX, incY, ix, iy uintptr) (sum float64)
/*============================================================================= Author: Eric M. Barnard - @ericmbarnard License: MIT (http://opensource.org/licenses/mit-license.php) Description: Validation Library for KnockoutJS Version: 2.0.0-pre.3 =============...
function buildProgram(b, content, loc) { return b.program([buildStatement(b, content, loc)], null, loc); } function buildStatement(b, content, loc) { switch (content.type) { case 'PathExpression': return b.mustache(content, null, null, null, loc); case 'SubExpression': return b.mustache(content.path, ...
package org.elasticsearch.index.fielddata.ordinals; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.MultiDocValues.OrdinalMap; import org.apache.lucene.index.RandomAccessOrds; import org.apache.lucene.util.packed.PackedInts; import org.elasticsearch.common.breaker.CircuitBreaker; import or...
layout: relation title: 'list' shortdef: 'list' --- The `list` relation is used for chains of comparable items. In lists with more than two items, all items of the list should modify the first one. Informal and web text often contains passages which are meant to be interpreted as lists but are parsed as single sentenc...
class AddCategoryToHangout < ActiveRecord::Migration def change add_column :hangouts, :uid, :string add_column :hangouts, :category, :string end end
package com.spotify.apollo.test.unit; import com.spotify.apollo.Response; import com.spotify.apollo.StatusType; import org.hamcrest.Description; import org.hamcrest.FeatureMatcher; import org.hamcrest.Matcher; import org.hamcrest.TypeSafeMatcher; import java.util.Optional; /** * Provides Hamcrest matcher utilitie...
namespace darc { namespace pubsub { struct publish_packet { const static uint32_t payload_id = 0x04; darc::ID topic_id; std::string topic_name; std::string type_name; publish_packet(const darc::ID& topic_id = ID::null(), const std::string& topic_name = "", const std::strin...
package org.jvmcore.classloader; /** * @author Jeff Lee * @since 2015-12-1 19:00:40 * 打印类加载器信息 */ public class ClassLoaderInfoT { public static void main(String[] args) { ClassLoader loader = Thread.currentThread().getContextClassLoader(); System.out.println("当前类加载器:" + loader); Syste...
MathJax.OutputJax["HTML-CSS"].defineImageData({ "MathJax_Fraktur-bold": { } }); MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].imgDir+"/Fraktur/Bold"+ MathJax.OutputJax["HTML-CSS"].imgPacked+"/Main.js");
<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); /* * CKEditor helper for CodeIgniter * * @author Samuel Sanchez <samuel.sanchez.work@gmail.com> - http://kromack.com/ * @package CodeIgniter * @license http://creativecommons.org/licenses/by-nc-sa/3.0/us/ * @tutorial http://kromack.com/deve...
import json import readline import struct import subprocess import sys def PrintMenuAndGetBuilder(messages): print for i in range(0, len(messages)): print '%d: %s' % (i + 1, messages[i][0]) print 'Q: Quit' while True: choice = raw_input('Enter choice: ') if choice.lower() == 'q': return None...
<!doctype html> <head> <script src="../../fast/repaint/resources/text-based-repaint.js" type="text/javascript"></script> <script> window.outputRepaintRects = false; function repaintTest() { document.getElementById("svg").style.overflow="visible"; } </script> <style> div { height:100px; width:100px; } ...
package fileutil import "os" // OpenDir opens a directory for syncing. func OpenDir(path string) (*os.File, error) { return os.Open(path) }
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.custom.configure.ui; import org.eclipse.draw2d.MouseEvent; import org.eclipse.emf.common.command.CompoundCommand; import org.eclipse.emf.edit.command.AddCommand; import org.eclipse.emf.edit.command.RemoveCommand; import org.eclipse.emf.edit.command.SetCommand;...
/*************************************************************************/ /* freedesktop_screensaver.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#ifndef BMD_DECKLINKAPI_H #define BMD_DECKLINKAPI_H #ifndef BMD_CONST #if defined(_MSC_VER) #define BMD_CONST __declspec(selectany) static const #else #define BMD_CONST static const #endif #endif /* DeckLink API */ #include <CoreFoundation/CoreFoundation.h> #include <CoreFoundation/CFP...
package com.google.security.zynamics.binnavi.debug.connection.packets.commands; import com.google.security.zynamics.binnavi.debug.connection.DebugCommandType; /** * Command class used to request the memory map of the active process. */ public final class RequestMemoryMapCommand extends DebugCommand { /** * Cr...
#include "config.h" #include "WebKitGraphics.h" #include "WebKit.h" #include "WebKitDLL.h" #include "WebPreferences.h" #include <WebCore/Font.h> #include <WebCore/FontCache.h> #include <WebCore/FontDescription.h> #include <WebCore/FontSelector.h> #include <WebCore/GraphicsContext.h> #include <WebCore/StringTruncat...