text stringlengths 3 1.05M |
|---|
<nav role="navigation" id="js-menu" class="sliding-menu-content">
<h5> Temukan Kami di Social Media <br/>
<span>
<a href="https://www.facebook.com/Timposu-Labs-994979357190322/?ref=hl" class="btn-social facebook" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i> Facebook</a>
<a href="h... |
from pymanopt.manifolds import ComplexCircle
from .._test import TestCase
class TestComplexCircleManifold(TestCase):
def setUp(self):
self.dimension = 50
self.man = ComplexCircle(self.dimension)
def test_dim(self):
self.assertEqual(self.man.dim, self.dimension)
|
using System;
namespace ATZ.DependencyInjection
{
public class UnitializedKernelException : Exception
{
public UnitializedKernelException()
: base("Before using the Kernel system it has to be initialized with DependencyResolver.Initialize(<kernel object>)!")
{
}
}
}
|
using System.Collections;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters;
using Xunit;
namespace System.Net.Mail.Tests
{
public class SmtpExceptionTest
{
[Fact]
public void TestDefaultConstructor()
{
SmtpException se = new SmtpException();
... |
@interface UsersTableViewController : XLTableViewController <XLFormRowDescriptorViewController, XLFormRowDescriptorPopoverViewController>
@end
|
R CMD REMOVE --library=$PREFIX/lib/R/library/ zebrafishcdf
|
from django.urls import include, re_path
from django.views import defaults
__all__ = ['handler400', 'handler403', 'handler404', 'handler500', 'include', 'url']
handler400 = defaults.bad_request
handler403 = defaults.permission_denied
handler404 = defaults.page_not_found
handler500 = defaults.server_error
def url(re... |
package javax.crypto;
import java.security.GeneralSecurityException;
/**
* The exception that is thrown when a padding mechanism is expected for the
* input data, but the input data does not have the proper padding bytes.
*/
public class BadPaddingException extends GeneralSecurityException {
/**
* @ser... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Immutable;
using System.Linq;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Syntax;... |
// Copyright 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.
package org.chromium.content.browser;
/**
* Interface to be implemented by the embedder to handle file downloads.
*/
public interface ContentViewDownlo... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="android:Theme.Material">
<item name="android:colorPrimary">@color/primary</item>
<item name="android:colorPrimaryDark">@color/primary_dark</item>
<item name="android:colorAccent">@color/accent</item>
</style>
</resources> |
"use strict";
var Message_1 = require("../Message");
var InMemoryBackend = (function () {
function InMemoryBackend() {
this._messages = [];
}
InMemoryBackend.prototype.count = function () {
return this._messages.length;
};
InMemoryBackend.prototype.enqueue = function (message) {
... |
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environm... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
using XamlStyler.Core.Helpers;
using XamlStyler.Core.Model;
using XamlStyler.Core.Options;
using Xa... |
package test2;
import test.*;
public class DerivedOtherPackage extends BaseOtherPackage {
protected DerivedOtherPackage() {
super();
foo();
int i = this.i;
}
} |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
package org.apache.thrift;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TField;
import org.apache.thrift.protocol.TProtocol;
import org.apache.thrift.protocol.TProtocolFactory;
import org.apache.thrift.p... |
<x-meta id="core-input" label="Input" group="Core" isEditor>
<template>
<core-input placeholder="Type something..." style="padding: 15px;"></core-input>
</template>
<template id="imports">
<link rel="import" href="core-input.html">
</template>
</x-meta>
|
package label
import (
"os"
"os/user"
"strings"
"github.com/opencontainers/selinux/go-selinux"
"github.com/pkg/errors"
)
// Valid Label Options
var validOptions = map[string]bool{
"disable": true,
"type": true,
"filetype": true,
"user": true,
"role": true,
"level": true,
}
var ErrIncompat... |
App.Sshkey = DS.Model.extend({
name: DS.attr('string'),
tag : DS.attr('string'),
publickey : DS.attr('string'),
canEdit: DS.attr('number')
});
App.SshkeyAdapter = CustomRESTAdapter.extend({
buildURL: function(record, suffix,z ) {
try {
if (suffix == undefin... |
/**
* @module ol/geom/LineString
*/
import GeometryLayout from './GeometryLayout.js';
import GeometryType from './GeometryType.js';
import SimpleGeometry from './SimpleGeometry.js';
import {assignClosestPoint, maxSquaredDelta} from './flat/closest.js';
import {closestSquaredDistanceXY} from '../extent.js';
import {de... |
jQuery.ajaxSetup({ cache: false });
/*
SLIDEFADE
------------------------------------------------------------------------------------------------------*/
/* Custom plugin for a slide/in out animation with a fade - JJM */
(function ($) {
$.fn.slideFade = function (speed, callback) {
var slideSpeed;
for (v... |
package io.cattle.platform.agent.instance.process;
import io.cattle.platform.configitem.request.ConfigUpdateRequest;
import io.cattle.platform.core.model.Agent;
import io.cattle.platform.core.model.Host;
import io.cattle.platform.core.model.NetworkServiceProvider;
import io.cattle.platform.engine.handler.HandlerResult... |
var core = require('../../core');
// @see https://github.com/substack/brfs/issues/25
var fs = require('fs');
/**
* An RGB Split Filter.
*
* @class
* @extends PIXI.AbstractFilter
* @memberof PIXI.filters
*/
function RGBSplitFilter()
{
core.AbstractFilter.call(this,
// vertex shader
null,
... |
#ifndef TENSORFLOW_LITE_TOCO_TOCO_TOOLING_H_
#define TENSORFLOW_LITE_TOCO_TOCO_TOOLING_H_
#include <memory>
#include <string>
#include "tensorflow/lite/toco/model.h"
#include "tensorflow/lite/toco/model_flags.pb.h"
#include "tensorflow/lite/toco/toco_flags.pb.h"
namespace toco {
// Imports the input file into a Mo... |
module HTTPI
class DimeRecord < Struct.new('DimeRecord', :version, :first, :last, :chunked, :type_format, :options, :id, :type, :data)
end
class Dime < Array
BINARY = 1
XML = 2
def initialize(body)
bytes = body.unpack('C*')
while bytes.length > 0
record = DimeRecord.new
... |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>d0... |
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (Teaching scientists how to share code)
[#]: via: (https://opensource.com/article/19/2/open-science-git)
[#]: author: (Jon Tennant https://opensource.com/users/jon-tennant)
Teaching scientists how to sha... |
/**
* Classes for reporting health information to actuator.
*
* @author tgianos
* @since 3.0.0
*/
package com.netflix.genie.web.health;
|
node.set_unless['php-fpm']['pools'] = []
include_recipe "php-fpm"
php_fpm_pool "wordpress" do
listen "127.0.0.1:9001"
user node['wordpress']['install']['user']
group node['wordpress']['install']['group']
if node['platform'] == 'ubuntu' and node['platform_version'] == '10.04'
process_manager 'dynamic'
en... |
<?php
namespace PhpParser;
/**
* @codeCoverageIgnore
*/
class Autoloader
{
/** @var bool Whether the autoloader has been registered. */
private static $registered = false;
/**
* Registers PhpParser\Autoloader as an SPL autoloader.
*
* @param bool $prepend Whether to prepend the autoloade... |
package org.wso2.carbon.registry.ws.api.internal;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.engine.AxisConfiguration;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.osgi.service.component.ComponentContext;
import org.wso2.carbon.regi... |
namespace rocksdb {
class SanityTest {
public:
explicit SanityTest(const std::string& path)
: env_(Env::Default()), path_(path) {
env_->CreateDirIfMissing(path);
}
virtual ~SanityTest() {}
virtual std::string Name() const = 0;
virtual Options GetOptions() const = 0;
Status Create() {
Optio... |
/*
* 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... |
qx.Class.define("ncms.news.NewsNewDlg", {
extend: sm.ui.form.BaseSavePopupDlg,
construct: function (parentId) {
this.base(arguments);
this.set({width: 350});
this._id = parentId;
},
members: {
_id: null,
_configureForm: function () {
var el = new q... |
@interface FBSDKAccessTokenCacheV3_17 : NSObject<FBSDKAccessTokenCaching>
@end
|
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#424242"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="match_... |
#import "IOSIAP.h"
#define OUTPUT_LOG(...) if (self.debug) NSLog(__VA_ARGS__);
@implementation IOSIAP
@synthesize debug,_isServerMode;
NSSet * _productIdentifiers;
NSArray *_productArray;
bool _isAddObserver = false;
//productsRequest;
SKProductsRequest * _productsRequest;
//productTransation
NSArray * _transact... |
/* flatpickr v4.0.3, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.weekSelect = factory());
}(this, (function () { 'use strict';
function weekSelectPlugi... |
<?php
class Google_Service_Spanner_Status extends Google_Collection
{
protected $collection_key = 'details';
public $code;
public $details;
public $message;
public function setCode($code)
{
$this->code = $code;
}
public function getCode()
{
return $this->code;
}
public function setDetai... |
package org.keycloak.services.clientpolicy.condition;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import org.jboss.logging.Logger;
import org.keycloak.models.ClientModel;
import org.keycloak.models.KeycloakSession;
import org.keycloak.representations.idm.ClientPolicyConditionConf... |
class MiqSignalError < RuntimeError; end
|
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Masquer Outils",
ToolbarExpand : "Afficher Outils",
// Toolbar Items and Context Menu
Save : "Enregistrer",
NewPage : "Nouvelle page",
Preview : "Prévisualisation",
C... |
<?php
/**
* Aero Framework
*
* @category Aero
* @author Alex Zavacki
*/
namespace Aero\Application\Controller\Resolver;
/**
* Controller resolver interface
*
* @category Aero
* @package Aero_Application
* @subpackage Aero_Application_Controller
* @author Alex Zavacki
*/
interface Cont... |
<!--
Copyright (c) 2011 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.
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>WebGL Origin Restrictions Conformance Tests</title>
<link rel="stylesheet" href="../../reso... |
/* pica 1.0.5 nodeca/pica */!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.pica=e()}}(function(){var... |
<?php
namespace Google\Service\Compute;
class NetworkEndpointGroupsListNetworkEndpointsWarning extends \Google\Collection
{
protected $collection_key = 'data';
/**
* @var string
*/
public $code;
protected $dataType = NetworkEndpointGroupsListNetworkEndpointsWarningData::class;
protected $dataDataType... |
YUI.add('dom-base', function (Y, NAME) {
/**
* @for DOM
* @module dom
*/
var documentElement = Y.config.doc.documentElement,
Y_DOM = Y.DOM,
TAG_NAME = 'tagName',
OWNER_DOCUMENT = 'ownerDocument',
EMPTY_STRING = '',
addFeature = Y.Features.add,
testFeature = Y.Features.test;
Y.mix(Y_DOM, {
... |
(function () {
var defs = {}; // id -> {dependencies, definition, instance (possibly undefined)}
// Used when there is no 'main' module.
// The name is probably (hopefully) unique so minification removes for releases.
var register_3795 = function (id) {
var module = dem(id);
var fragments = id.split('.');
var t... |
require 'testing_env'
require 'extend/ENV'
class EnvironmentTests < Homebrew::TestCase
def setup
@env = {}.extend(EnvActivation)
@env.activate_extensions!
end
def test_switching_compilers
@env.llvm
@env.clang
assert_nil @env['LD']
assert_equal @env['OBJC'], @env['CC']
end
def test_w... |
{% extends "three.html" %}
{% block content %}{{ block.super }} two{% endblock %}
|
@interface BlazeTextViewTableViewCell : BlazeTableViewCell
{
}
//Outlets
@property(nonatomic,weak) IBOutlet BlazeTextView *textView;
@end |
define("ace/mode/less_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var lang = require("../lib/lang");
var TextHighlightRules = require("./text_highlight_rules").TextHighl... |
<!DOCTYPE html>
<html lang="en">
<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="author" content="">
<title>Andrew Rindfleisch</title>
... |
Ext.define('KitchenSink.view.form.XmlFormController', {
extend: 'Ext.app.ViewController',
alias: 'controller.form-xml',
onLoadClick: function() {
this.getView().getForm().load({
url: 'data/form/xml-form-data.xml',
waitMsg: 'Loading...'
});
},
... |
#define _SQLITE_OS_C_ 1
#include "sqliteInt.h"
#undef _SQLITE_OS_C_
/*
** The default SQLite sqlite3_vfs implementations do not allocate
** memory (actually, os_unix.c allocates a small amount of memory
** from within OsOpen()), but some third-party implementations may.
** So we test the effects of a malloc() failing... |
// @version 0.5.1
if (typeof WeakMap === "undefined") {
(function() {
var defineProperty = Object.defineProperty;
var counter = Date.now() % 1e9;
var WeakMap = function() {
this.name = "__st" + (Math.random() * 1e9 >>> 0) + (counter++ + "__");
};
WeakMap.prototype = {
set: function(ke... |
using web_modal::WebContentsModalDialogManager;
typedef InProcessBrowserTest RepostFormWarningTest;
// If becomes flaky, disable on Windows and use http://crbug.com/47228
IN_PROC_BROWSER_TEST_F(RepostFormWarningTest, TestDoubleReload) {
ASSERT_TRUE(embedded_test_server()->Start());
// Load a form.
ui_test_util... |
package container // import "github.com/docker/docker/container"
import (
"math/rand"
"os"
"path/filepath"
"testing"
"github.com/docker/docker/api/types"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/pkg/stringid"
"github.com/google/uuid"
"gotest.tools/v3/assert"
is... |
require "#{File.join(File.dirname(__FILE__),'..','spec_helper.rb')}"
describe 'puppi::check' do
let(:title) { 'puppi::check' }
let(:node) { 'rspec.example42.com' }
let(:facts) { { :arch => 'i386' } }
let(:params) {
{ 'enable' => 'true',
'name' => 'get',
'command' => 'echo',
'pr... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="SHORTCUT ICON" href="../../../../../img/clover.ico" />
<link rel="stylesheet" href="../../../../../aui/css/aui.min.css" media... |
.class public final Landroid/provider/CalendarContract$EventDays;
.super Ljava/lang/Object;
.source "CalendarContract.java"
# interfaces
.implements Landroid/provider/CalendarContract$EventDaysColumns;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/provider/CalendarContract;... |
/* global ElectronImplementation:true */
/**
* Since we've disabled Node integration in the browser window, we must selectively expose
* main-process/Node modules via this script.
*
* @WARNING This file must take care not to leak the imported modules to the browser window!
* In particular, do not save the followi... |
namespace gpu {
// A Sync Token is a binary blob which represents a waitable fence sync
// on a particular command buffer namespace and id.
// See src/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_sync_point.txt for more
// details.
struct GPU_EXPORT SyncToken {
SyncToken();
SyncToken(CommandBufferNamespace namespace_id... |
class AddUserIdToSpreeCreditCards < ActiveRecord::Migration
def change
unless Spree::CreditCard.column_names.include? "user_id"
add_column :spree_credit_cards, :user_id, :integer
add_index :spree_credit_cards, :user_id
end
unless Spree::CreditCard.column_names.include? "payment_method_id"
... |
require "spec_helper"
describe Mongoid::Relations::Polymorphic do
describe "#polymorph" do
let(:klass) do
Class.new.tap { |c| c.send(:include, Mongoid::Document) }
end
context "when the relation is polymorphic" do
context "when the relation stores a foreign key" do
let(:metadata)... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
using Zermelo.API.Helpers;
namespace Zermelo.API.Tests.Helpers
{
public class UnixTimeHelpersTests
{
[Fact]
public static void ShouldConvertFromUnixTimeSeconds()
... |
using base::android::JavaParamRef;
// This file contains an implementation of JsonSanitizer that calls into Java.
// It deals with malformed input (in particular malformed Unicode encodings) in
// the following steps:
// 1. The input string is checked for whether it is well-formed UTF-8. Malformed
// UTF-8 is rejec... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactRouter"] = fac... |
import _plotly_utils.basevalidators
class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self,
plotly_name="borderwidth",
parent_name="choroplethmapbox.colorbar",
**kwargs,
):
super(BorderwidthValidator, self).__init__(
plo... |
export default ImageWMS;
export type Options = {
/**
* Attributions.
*/
attributions?: import("./Source.js").AttributionLike;
/**
* The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer... |
package group
import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/util/validation/field"
)
// GroupStrategy defines the interface for all group constraint strategies.
type GroupStrategy interface {
// Generate creates the group based on policy rules. The underlying implementation can
// decide whether ... |
#include <aws/mediaconvert/model/CreatePresetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::MediaConvert::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreatePresetRequest::CreatePresetRequest() :
m_categoryHasBeenSet(false),
m_de... |
import os
import tempfile
from shutil import rmtree
import unittest
from numpy import array, array_equal
from py4j.protocol import Py4JJavaError
from pyspark.mllib.fpm import FPGrowth
from pyspark.mllib.recommendation import Rating
from pyspark.mllib.regression import LabeledPoint
from pyspark.serializers import Pick... |
<?php
/**
* Subtitle
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
global $post, $product;
$content = '';
$content .= '<div class = "single_product_info_desc_container-dropdown">';
$content .= '<h2 class = "h4 single_product_info_desc_title" data-iconafter="g" >Allergy Advice... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Gum.DataTypes.Variables;
using System.Xml.Serialization;
using ToolsUtilities;
namespace Gum.DataTypes
{
public abstract class ElementSave : IStateContainer, IStateCategoryListContainer
{
#region Properties
... |
package org.spockframework.compiler;
import org.codehaus.groovy.ast.ASTNode;
import org.codehaus.groovy.syntax.SyntaxException;
/**
* Indicates that a spec was found to contain a (syntactic or semantic)
* error during compilation. As such, this is the compile-time equivalent
* of InvalidSpecException.
* Inherit... |
namespace crypto {
namespace {
bool RunExchange(P224EncryptedKeyExchange* client,
P224EncryptedKeyExchange* server) {
for (;;) {
std::string client_message, server_message;
client_message = client->GetMessage();
server_message = server->GetMessage();
P224EncryptedKeyExchange::Resul... |
<?php
namespace Kunstmaan\AdminBundle\Command;
use Doctrine\ORM\EntityManager;
use Kunstmaan\AdminBundle\Entity\Group;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Inpu... |
class Bar < Formula
desc "Provide progress bars for shell scripts"
homepage "http://www.theiling.de/projects/bar.html"
url "http://www.theiling.de/downloads/bar-1.4-src.tar.bz2"
sha1 "00b55ca1d52ca6ed099937692697c2257833c73c"
def install
bin.install "bar"
end
test do
(testpath/"test1").write "pu... |
package com.netflix.spectator.controllers.filter;
import com.netflix.spectator.api.Id;
import com.netflix.spectator.api.Measurement;
import com.netflix.spectator.api.Tag;
import java.util.function.Predicate;
import java.util.regex.Pattern;
/**
* A simple MeasurementFilter based on meter/tag names and values.
*/... |
/*=========================================================================
MIRARCO MINING INNOVATION
Author: Nehme Bilal (nehmebilal@gmail.com)
===========================================================================*/
#ifndef _pqComputeVolumes_h
#define _pqComputeVolumes_h
#include "pqLoadedFormObjectPanel.h"
... |
<?php
namespace Twig\Node;
use Twig\Compiler;
/**
* Represents a block call node.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class BlockReferenceNode extends Node implements NodeOutputInterface
{
public function __construct(string $name, int $lineno, string $tag = null)
{
parent::__co... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakeSettings">
<configurations>
<configuration PROFILE_NAME="Debug" CONFIG_NAME="Debug" />
</configurations>
</component>
<component name="DesignSurface">
<option name="filePathToZoomLevelMap">
<map>
<en... |
(function($)
{
$.fn.wPaint = function(option, settings)
{
if(typeof option === 'object')
{
settings = option;
}
else if(typeof option == 'string')
{
var values = [];
var elements = this.each(function()
{
var data = $(this).data('_wPaint');
if(data)
{
if(option == 'clear') { d... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Notification -->
<string name="note_title">"Centrum łączenia Intel®"</string>
<!-- General / Common -->
<string name="yes">"Tak"</string>
<string name="no">"Nie"</string>
<string name="cancel_button_label">Cancel</string>
<string na... |
package org.springframework.boot.actuate.autoconfigure.metrics.export.datadog;
import io.micrometer.datadog.DatadogConfig;
import org.springframework.boot.actuate.autoconfigure.metrics.export.properties.StepRegistryPropertiesConfigAdapter;
/**
* Adapter to convert {@link DatadogProperties} to a {@link DatadogConf... |
using System;
using System.Collections;
using System.Runtime.InteropServices;
using System.Text;
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
namespace LedCSharp
{
public enum keyboardNames
{
ESC = 0x01,
F1 = 0x3b,
F2 = 0x3c,
F3 = 0x... |
import gulp from 'gulp'
import runSequence from 'run-sequence'
import babel from 'gulp-babel'
import cleancss from 'gulp-clean-css'
import concat from 'gulp-concat'
import htmlmin from 'gulp-htmlmin'
import rename from 'gulp-rename'
import shell from 'gulp-shell'
import uglify from 'gulp-uglify'
gulp.task('build-parse... |
ps ax | grep -i 'zookeeper' | grep -v grep | awk '{print $1}' | xargs kill -SIGINT
|
<?php
// @codingStandardsIgnoreFile
namespace Magento\Backup\Model\ResourceModel;
class Helper extends \Magento\Framework\DB\Helper
{
/**
* Tables foreign key data array
* [tbl_name] = array(create foreign key strings)
*
* @var array
*/
protected $_foreignKeys = [];
/**
* ... |
<?php
namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Tests\Models\CMS\CmsUser;
use Doctrine\Tests\Models\CMS\CmsGroup;
class DDC767Test extends \Doctrine\Tests\OrmFunctionalTestCase
{
protected function setUp()
{
$this->useModelSet('cms')... |
<?php
/**
* @see Zend_Gdata_App_Exception
*/
require_once 'Zend/Gdata/App/Exception.php';
/**
* Gdata exceptions
*
* Class to represent exceptions that occur during Gdata operations.
*
* @category Zend
* @package Zend_Gdata
* @subpackage App
* @copyright Copyright (c) 2005-2012 Zend Technologies USA ... |
namespace remoting {
namespace protocol {
class FakeChannelAuthenticator : public ChannelAuthenticator {
public:
FakeChannelAuthenticator(bool accept, bool async);
virtual ~FakeChannelAuthenticator();
// ChannelAuthenticator interface.
virtual void SecureAndAuthenticate(
scoped_ptr<net::StreamSocket> s... |
extern "C" const unsigned char CONCAT(DEBUGSERVER_PROGRAM_SYMBOL,
VersionString)[];
#define DEBUGSERVER_VERSION_NUM \
CONCAT(DEBUGSERVER_PROGRAM_SYMBOL, VersionNumber)
#endif
#ifndef DEBUGSERVER_VERSION_STR
extern "C" const double C... |
<?php
require_once('../src/whatsprot.class.php');
$debug = true;
echo "####################\n";
echo "# #\n";
echo "# WA Register Tool #\n";
echo "# #\n";
echo "####################\n";
echo "\n\nUsername (country code + number without + or 00): ";
$username = trim(fgets(STDIN));
$... |
layout: post
title: UIView.animate 在 iOS10 里的一个变动
date: 2017-02-16
summary: UIView.animate 经常会用在转场动画 (UIViewControllerAnimatedTransitioning) 中,这个方法的效果在 iOS10 中和老版本中产生了不同,这时候使用 iOS10 新增的 UIViewPropertyAnimator.runningPropertyAnimator 方法可以达到老版本的效果。
categories: iOS
---
> 在写 OneShare 的时候加了个对 ModalView 可以... |
namespace skia {
// -----------------------------------------------------------------------------
// For now we just use SkBitmap for SkBitmapDevice
//
// This is all quite ok for test_shell. In the future we will want to use
// shared memory between the renderer and the main process at least. In this
// case we'll pr... |
package com.avast.butterknifezelezny.test;
import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
public class CustomView extends LinearLayout {
public CustomView(Context context) {
super(context);
// Try to generate custom view injections by click... |
<form action="<?php bp_messages_form_action('compose'); ?>" method="post" id="send_message_form" class="standard-form" role="main" enctype="multipart/form-data">
<?php do_action( 'bp_before_messages_compose_content' ); ?>
<label for="send-to-input"><?php _e("Send To (Username or Friend's Name)", 'buddypress'); ?></... |