code
stringlengths
4
1.01M
/** * Created by wangqi on 16/6/3. */ function ServiceValidationError(code, message, field) { Error.captureStackTrace(this, this.constructor); this.type = 'UserLevelServiceRequestError'; this.name = 'ServiceValidationError'; this.message = message || 'Unauthenticated Access Token'; this.code = c...
local field2D = require "field2D" local draw2D = require "draw2D" local vec2 = require "vec2" math.randomseed(os.time()) win:setdim(512, 512) local dim = 256 local f1 = field2D(dim, dim) local f1_prev = field2D(dim, dim) local genome_size = 20 local population_size = 200 local mutation_rate = 0.2 local agelimit = ...
# dsm-store This project allows customers of the e-store to use widgets to select the products they would like to buy. The total for the order including tax will be displayed when the user enters their state of residence.
package com.microsoft.bingads.v12.adinsight; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for KeywordCategory complex type. * * <p>The following schema ...
var _ = require('underscore') , path = require('path') , passport = require('passport') , AuthCtrl = require('./controllers/auth') , UserCtrl = require('./controllers/user') , User = require('./models/User.js') , userRoles = require('../client/scripts/routingConfig').userR...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>18 --> 19</title> <link href="./../../assets/style.css" rel="stylesheet"> </head> <body> <h2>You have to be fast</h2> <a href="./c06b1f8b062c8867c4ddba17d677a60b57916ead784aff483d7ed71496703a3b.html">Teleport</a> <hr> ...
package gui.main; /* // Author: Benjamin Wilcox // Project GNGH */ import java.awt.Dimension; import javax.swing.JTabbedPane; public class TabHolder extends JTabbedPane { private WorldTab world = new WorldTab(); private JobTab jobs = new JobTab(); private ResourcesTab resources = new Res...
from django.db import models class Citizen(models.Model): """ The insurance users. """ name = models.CharField(max_length=50) last_name = models.CharField(max_length=50) # Contact information email = models.EmailField() phone = models.CharField(max_length=50) # Citizen documents...
import datetime import typing from . import helpers from .tl import types, custom Phone = str Username = str PeerID = int Entity = typing.Union[types.User, types.Chat, types.Channel] FullEntity = typing.Union[types.UserFull, types.messages.ChatFull, types.ChatFull, types.ChannelFull] EntityLike = typing.Union[ P...
package de.laag.service; import org.mindrot.jbcrypt.BCrypt; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import de.laag.entities.User; import de.laag.repositories.UserRepository; @Service public class LoginService { private UserRepository userRepo...
using Graphs.Library; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Graphs.Console { class Program { static void Main(string[] args) { Stack<int> stack = new Stack<int>(); stack.Push(1); ...
<!DOCTYPE html> <html ng-app="app"> <head> <style> /* This helps the ng-show/ng-hide animations start at the right place. */ /* Since Angular has this but needs to load, this gives us the class early. */ .ng-hide { display: none!important; } </style> <title ng-bind="title">Machine Da...
/** * Copyright 2012-2018, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; module.exports = { moduleType: 'locale', name: 'gu', dictionary: {}, format: { days: ['ર...
package example.spring.oktabs.restful; import example.Conversation; import example.ConversationRepository; import example.DomainObject; import example.DomainObjectRepository; import example.spring.PathBuilder; import example.spring.success.SuccessController; import org.slf4j.Logger; import org.slf4j.LoggerFactory; imp...
// Copyright 2015 Zhu.Jin Liang #ifndef CAFFE_UTIL_COORDS_H_ #define CAFFE_UTIL_COORDS_H_ #include <algorithm> #include <utility> #include <vector> #include "caffe/util/util_pre_define.hpp" namespace caffe { template <typename Dtype> class Net; template <typename Dtype> class DiagonalAffineMap { public: expli...
package com.github.okapies.rx.process; import java.net.URI; import java.nio.ByteBuffer; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.TreeMap; import com.zaxxer.nuprocess.NuProcess; import com.zaxxer.nuprocess.NuProcessBui...
# 基本 - order: 0 最简单的下拉菜单。 --- ````jsx import { Menu, Dropdown, Icon } from 'antd'; const menu = <Menu> <Menu.Item> <a target="_blank" href="http://www.alipay.com/">第一个菜单项</a> </Menu.Item> <Menu.Item> <a target="_blank" href="http://www.taobao.com/">第二个菜单项</a> </Menu.Item> <Menu.Item> <a targe...
#Clear Console cls #*** Initialize variables Write-Host "Initialize variables" Write-Host " " [string]$graphApp_AppId = "APPLICATION_ID" [string]$graphApp_AppSecret = "APPLICATION_SECRET" [string]$tenantId="TENANT_ID" [string]$spAdminURL = "SPADMIN_URL" [string]$graphVer = "v1.0" #Credetential iformation to be used...
import {TOGGLE_IS_VAT_PAYER} from '../actions'; export function isVATPayer(state = false, action) { switch (action.type) { case TOGGLE_IS_VAT_PAYER: return !state; default: return state; } }
#ifndef SKP_BOUNDING_BOX_HPP #define SKP_BOUNDING_BOX_HPP #include "common.hpp" #include <SketchUpAPI/geometry.h> #include "point3d.hpp" typedef struct { PyObject_HEAD SUBoundingBox3D bbox; } SkpBoundingBox; static void SkpBoundingBox_dealloc(SkpBoundingBox* self) { Py_TYPE(self)->tp_free((PyObject*)self); }...
using System; namespace Utilities.Extensions { public static class ExceptionExtensions { public static Exception GetOriginalException(this Exception ex) { if (ex.InnerException == null) return ex; return ex.InnerException.GetOriginalException(); } publ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.ai.metricsadvisor.implementation.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** The...
<?php return array( /* |-------------------------------------------------------------------------- | Application Debug Mode |-------------------------------------------------------------------------- | | When your application is in debug mode, detailed error messages with | stack traces will be shown on every ...
/* =========================== index =========================== */ .home-class-list { padding: 0; margin: 0; list-style-type: none; } .home-class-list .class-item { padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 5px; background-color: #fff; } .home-class-list .class-item:ho...
<?php namespace Brainstrap\CoreBundle\Entity\Session\Group; use Brainstrap\CoreBundle\Entity\AbstractApiEntity; use Gedmo\Mapping\Annotation as Gedmo; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert, Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * Group S...
/* * This file is part of the xPack distribution * (http://xpack.github.io). * Copyright (c) 2017 Liviu Ionescu. * * 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 * restrict...
module Bringit class Tree include Bringit::EncodingHelper attr_accessor :id, :root_id, :name, :path, :type, :mode, :commit_id, :submodule_url class << self # Get list of tree objects # for repository based on commit sha and path # Uses rugged for raw objects def where(repos...
<!doctype html> <html class="no-js"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Julian Renard | Nomad full stack developer and entrepreneur</title> <meta name="description" content=...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, ...
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> ## Related Issue <!--- This project only accepts pull requests related to open issues --> <!--- If suggesting a new feature or change, please discuss it in an issue first --> <!--- If fixi...
# Ember-cli-input-radio This README outlines the details of collaborating on this Ember addon. ## Installation * `git clone` this repository * `npm install` * `bower install` ## Running * `ember server` * Visit your app at http://localhost:4200. ## Running Tests * `ember test` * `ember test --server` ## Buildin...
<div class="container"> <img ng-src="{{mainImageUrl}}" class="phone"> <h1>{{phone.name}}</h1> <p>{{phone.description}}</p> <ul class="phone-thumbs list-inline"> <li ng-repeat="img in phone.images"> <img ng-src="{{img}}" width="100" ng-click="setImage(img)"> </li> </ul> ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>LCOV - coverage.info - src/servicios/ServicioInexistente.cpp</title> <link rel="stylesheet" type="text/css" href="../../gcov.css"> </head> <body> ...
// // 2019-10-26, jjuiddong // visual programming editor // - ui definition // // 2021-07-27 // - rename vprog -> vpl // #pragma once #include "pin.h" #include "node.h" #include "link.h" #include "nodefile.h" #include "editmanager.h" namespace vpl { ImColor GetIconColor(ePinType::Enum type); void DrawPinIcon(co...
import { expect } from 'chai'; import { ModelApiManager } from '../../api/manager'; import * as models from '../__fixtures__/models'; import { graphql, GraphQLSchema } from 'graphql'; import { ModelManager, fields } from 'rev-models'; import { createData, IModelTestData } from '../__fixtures__/modeldata'; import { Gra...
<?php use yii\helpers\Html; //use yii\grid\GridView; use kartik\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel chd7well\sales\models\ProductpurchasepriceSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ ?> <div class="productpurchaseprice-details"> <?= GridView::widget([ ...
package com.advancedaddons.events; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.SoundEvents; import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.ItemStack; import net.minecraft.util.DamageSource; import net.minecraft....
### Salt Command - Objectives - Executing Salt - Targets and the matcher system - Salt functions - Passing arguments - Built-in documentation - Core functions The `salt` command is used to send remote exec commands out to the minions from the master. salt <target> <module.function> <arguments> * Command Option...
Basalt ====== [![Build Status](https://travis-ci.org/polyfox/moon-basalt.svg?branch=master)](https://travis-ci.org/polyfox/moon-basalt) [![Test Coverage](https://codeclimate.com/github/polyfox/moon-basalt/badges/coverage.svg)](https://codeclimate.com/github/polyfox/moon-basalt) [![Inline docs](http://inch-ci.org/github...
<!--<link rel="import" href="{$components_url}controllets/data-sevc-controllet/co-datalets-creator-controllet.html"/> <script src="{$components_url}locales/controllet_ln.js" type="text/javascript"></script> <script src="{$components_url}locales/paper_card_controllet_ln.js" type="text/javascript"></script>--> {style} {...
package com.tpwang.security.signature.ecdsa; import java.security.KeyFactory; import java.security.PublicKey; import java.security.Signature; import java.security.spec.X509EncodedKeySpec; import org.apache.commons.codec.binary.Base64; public class ECReader { private byte[] publicKeyEncoded; /*** * Constructo...
import { Options as RequestOptions } from "request"; import * as _ from "lodash"; import { Headers, Header, Form, FormData, Params,Param, RequestMethod, HeaderValueType } from "../index"; type dataValue = any | any[] | null; export class Request { private method: RequestMethod; private url: string; priva...
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { TopPostComponent } from './TopPost.component'; import {Observable} from 'rxjs/Rx'; @Injectable() export class TopPostservice { constructor(private http: Http) { } getTopPlaces() : Observable<TopPostComponent[]> { ...
# Diff Longest Common Sub String "The diff sniffing out texts every move" A resonably fast diff algoritm using longest common substrings that can also detect text that has moved. ## Usage First require it. $ irb > require 'rubygems' > require 'difflcs' Then it can be used on any set of arrays, in this exa...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "alert.h" #include "base58.h" #include "chainparams.h" #include "clientversion.h"...
# coding=utf-8 # # Copyright © 2015 VMware, Inc. All Rights Reserved. # # 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, co...
--- layout: post title: 발달 단계에 맞는 그림책 보여주기 date: 2013-02-11 12:31:19 summary: 독서를 가족의 취미를 만들고, 아이에게는 성장에 맞추어 알맞은 책을 읽게 해줘야 한다. categories: Education, Reading Education permalink: use-leveled-picturebook-for-kids --- ## 독서를 가족 취미로 만들어야 하는 이유 어릴 때부터 책 읽어주는 부모 밑에서 자란 아이들은 책과 친밀감이 깊고 부모와 교감도 특별하다. 산돌 어...
using System.Collections.Generic; using System.Linq; using Swashbuckle.AspNetCore.Swagger; using Swashbuckle.AspNetCore.SwaggerGen; using Abp.Authorization; namespace Volo.PostgreSqlDemo.Web.Host.Startup { public class SecurityRequirementsOperationFilter : IOperationFilter { public void Apply(Operatio...
/** * THIS FILE IS AUTO-GENERATED * DON'T MAKE CHANGES HERE */ import { DenseMatrixDependencies } from './dependenciesDenseMatrixClass.generated'; import { matrixDependencies } from './dependenciesMatrix.generated'; import { typedDependencies } from './dependenciesTyped.generated'; import { createSmaller } from '../...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Semana da Engenharia - Integrante Inserido</title> <lin...
<?php /* AcmeStoreBundle:Product:edit.html.twig */ class __TwigTemplate_eef8bdf9cdc3001416c3324c23541043 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protecte...
/*************************************************************************/ /* gltf_mesh.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
<?php /** * Created by Philippe Le Van. * Date: 18/02/13 */ namespace Kitpages\StepBundle\Tests\Sample; use Kitpages\StepBundle\Step\StepEvent; /** * This class is used to test events * * @example */ class StepListener { public function onStepExecute(StepEvent $event) { $step = $event->getStep...
# grunt-parse-templates > Parser for Angular style guide templates ## Getting Started This plugin requires Grunt `~0.4.5` If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gr...
import numpy as np import jarvis.helpers.helpers as helpers from data_cleaner import DataCleaner def get_data(csv=None, sep='|'): dataset = create_dataset(csv, sep) inputs = DataCleaner().clean(dataset[:, 0:1]) outputs = format_targets(dataset[:, 1]) train_data, test_data = inputs[::2], inputs[1::2] train_ta...
import { script } from 'dynamic-import'; export interface InitOptions { version?: string; apiKey?: string; apiSecret?: string; apiVersion?: string | number; // TODO: Deprecated, remove in next major version } export interface LoginOptions { permissions?: Permission[]; } export type Permission = ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta name="theme-color" content="#E13334"> <title>Wordpress Child Pages Widget</title> <link href="...
<?php /** * Smarty Internal TestInstall * Test Smarty installation * * @package Smarty * @subpackage Utilities * @author Uwe Tews */ /** * TestInstall class * * @package Smarty * @subpackage Utilities */ class Smarty_Internal_TestInstall { /** * diagnose Smarty setup * If $errors is...
# 0.1.3 (2015-07-13) Features: - UPDATED all dependencies incl. bcrypt # 0.1.2 (2015-07-13) Bugfixes: - FIX bugfixes were not properly detected # 0.1.1 (2015-07-13) Features: - REQUIRE latest passwordless-tokenstore-test - REQUIRE latest mongodb # 0.1.0 (2014-10-16) Bugfixes: - N/A Features: - UPDATE of depende...
var gulp = require('gulp'); var mocha = require('gulp-mocha'); var istanbul = require('gulp-istanbul'); var eslint = require('gulp-eslint'); var coveralls = require('gulp-coveralls'); gulp.task('pre-test', function () { return gulp.src(['lib/**/*.js', '!lib/micro-whalla.js', '!lib/helpers.js']) .pipe(istanbul({ ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-character: 8 m 4 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min...
class TeaKnowledgeController { constructor ($scope, $state, $compile, DTOptionsBuilder, DTColumnBuilder, API) { 'ngInject' this.API = API this.$state = $state // let TeaKnowledges = this.API.service('teakns', this.API.all('users')) let TeaKnowledges = this.API.service('teaknowledges', this.API.al...
package com.freshsoft.matterbridge.routing import akka.http.scaladsl.model.FormData import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server.Route import model.MatterBridgeEntities.JsonSupport import com.freshsoft.matterbridge.server.{MatterBridgeService, MatterBridgeServiceIntegration} /** * ...
'use strict'; /** * @ngdoc function * @name liteAppManagesystemApp.controller:AboutCtrl * @description * # AboutCtrl * Controller of the liteAppManagesystemApp */ angular.module('liteAppManagesystemApp') .controller('AboutCtrl', function ($scope) { $scope.awesomeThings = [ 'HTML5 Boilerplate', ...
from jaspyx.visitor import BaseVisitor class Return(BaseVisitor): def visit_Return(self, node): self.indent() if node.value is not None: self.output('return ') self.visit(node.value) else: self.output('return') self.finish()
Title: Chapter 2: Save Our Souls Date: 2015-08-03T01:10:00 Tags: Persistence, Automation, Orthogonal Persistence, Domains [Ngnghm](/blog/2015/08/02/chapter-1-the-way-houyhnhnms-compute/), whom I call Ann, was fascinated by our keyboards: because of physiological differences between our races, similar devic...
# Master/Detail Components At the moment, the `HeroesComponent` displays both the list of heroes and the selected hero's details. Keeping all features in one component as the application grows will not be maintainable. You'll want to split up large components into smaller sub-components, each focused on a specific ta...
package pl.lome.socialsym; import java.util.ArrayList; import java.util.HashMap; import com.tinkerpop.blueprints.pgm.Edge; import com.tinkerpop.blueprints.pgm.Graph; import com.tinkerpop.blueprints.pgm.Vertex; import com.tinkerpop.gremlin.GremlinScriptEngine; public class CalculateFOAF3Correlation extends CalculateF...
--- layout: post title: "the Begin of TyeolRik's Blog [KOR]" section-type: post category: blog tags: [ 'korean', 'introduction' ] --- ### If you want to read this post in English, Please click **[HERE]({{ site.baseurl }}{% link _posts/2017-01-01-the-begin-of-tyeolrik-blog-eng.md %})**. But I am unsure as to weather it ...
/**********************************************************\ | | | hprose | | | | Official WebSite: http://www.hprose.com/ | | ...
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2014.11.22 at 01:45:0...
import {NO_ERRORS_SCHEMA} from '@angular/core'; import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {ReactiveFormsModule} from '@angular/forms'; import {MatButtonModule, MatCardModule, MatInputModule, MatRadioModule, MatSelectModule,} from '@angular/material'; import {NoopAnimationsModule} fr...
CC = gcc CFLAGS = -pedantic -Wall -g bsttest: bsttest.o bst.o $(CC) $(CFLAGS) -o bsttest bsttest.o bst.o bsttest.o: bsttest.c bst.h $(CC) $(CFLAGS) -c bsttest.c bst.o: bst.c bst.h $(CC) $(CFLAGS) -c bst.c
/** * @license AngularJS v1.2.16 * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function(window, document, undefined) {'use strict'; /** * @description * * This object provides a utility for producing rich Error messages within * Angular. It can be called as follows: * * var exampleMinE...
package org.springframework.integration.aws.sns.channel; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.beans.factory.DisposableBean; import org.springframework.context.SmartLifecycle; import org.springframework.integration.Message; import org.springfram...
:::anchor body 列事件自定义 :::demo ```html <template> <div> 打开F12 查看 console 信息 <ve-table :columns="columns" :table-data="tableData" :event-custom-option="eventCustomOption" /> </div> </template> <script> export default { data() { ...
package org.usfirst.frc.team4915.stronghold; import org.usfirst.frc.team4915.stronghold.commands.AutoCommand1; import org.usfirst.frc.team4915.stronghold.commands.PortcullisMoveUp; import org.usfirst.frc.team4915.stronghold.subsystems.Autonomous; import org.usfirst.frc.team4915.stronghold.subsystems.DriveTrain; import...
using MvvmCross.Core.ViewModels; using ProductPriceCalc.Core.Services; namespace ProductPriceCalc.Core.ViewModels { public class FirstViewModel : MvxViewModel { private readonly IProductPriceService _productPriceService; public FirstViewModel(IProductPriceService productPriceService) ...
/** * @author Mat Groves http://matgroves.com/ @Doormat23 * @author Chad Engler https://github.com/englercj @Rolnaaba */ /** * Originally based on https://github.com/mrdoob/eventtarget.js/ from mr Doob. * Currently takes inspiration from the nodejs EventEmitter, EventEmitter3, and smokesignals */ /** ...
import os import os.path from raiden.constants import RAIDEN_DB_VERSION def database_from_privatekey(base_dir, app_number): """ Format a database path based on the private key and app number. """ dbpath = os.path.join(base_dir, f"app{app_number}", f"v{RAIDEN_DB_VERSION}_log.db") os.makedirs(os.path.dirna...
The apple is red,sev lal hai, It is John’s apple, yeh John ka sev hai, I give John the apple, Mein John ko yeh apple de raha hu, We give him the apple, hum ushai (him) sev de rahe hai, He gives it to John, Woh Johhn ko de raha(male tense) hai, She gives it to him, Woh ushai de rahi(female tense) hai, Common and usefu...
package com.beeant.service; import com.beeant.common.IBaseService; import com.beeant.po.User; public interface IUserService extends IBaseService<User> { }
<?php namespace Acme\StoreBundle\Controller; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\EventDispatcher\EventSubscriberInterface; class LocaleListener implements EventSubscriberInterface { private $defaultLocale; ...
/* //%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor l...
--- layout: post title: How/why podify an external dependency ? categories: - freelancing status: publish type: post published: true --- So you may use externals pods and you may have packaged your internal libraries as pods. But how do you handle a `Vendor.framework` ? It will look like a lot of hassle compared to ...
from django.apps import AppConfig class ProxyConfig(AppConfig): name = 'geoq.proxy' verbose_name = 'GeoQ Proxy'
var globalArgsTest = 'nothing to see here'; new Test.Unit.Runner({ test$A: function(){ this.assertEnumEqual([], $A({})); }, testToArrayOnArguments: function(){ function toArrayOnArguments(){ globalArgsTest = $A(arguments); } toArrayOnArguments(); this.assertEnumEqual([], globalArgsTe...
<div class='user-panel'> <%- partial('./header') %> <div class='user-panel__content'> <div class='user-panel__content__detail'> <ul class='breadcrumb'> <%- partial('./nav') %> </ul> <div class='breadcrumb--content'> <div class='breadcrumb--content__section section--show...
class StaticPagesController < ApplicationController def home end def help end def about end def contact end def acknowledgements end def projects end def cv end def resume end end
<?php namespace Znck\Tests\Plug\Eloquent\Traits; use GrahamCampbell\TestBench\AbstractTestCase; use Ramsey\Uuid\Uuid; use Znck\Plug\Eloquent\Traits\UuidKey; class UuidKeyTest extends AbstractTestCase { public function test_it_has_uuid_key() { $uuid = $this->getMockForTrait(UuidKey::class); $t...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.TeamFoundation.Client; using Microsoft.TeamFoundation.WorkItemTracking.Client; using Microsoft.TeamFoundation.VersionControl.Client; using Microsoft.TeamFoundation.Server; namespace tfin...
module YAYJS::Instructions class Splatarray < Instruction literal :flag pops 1 pushes 1 end end
<div ng-controller="TeamRewardsController"> <div team-view team="team"> <div class="row"> <div ng-if="is_admin" class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <loading-bar ng-hide="rewards">Loading rewards...</loading-bar> <div ng-show="rewards"> <button ng-show="expand_all" cla...
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("To...
 //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by CSGenerator. // </auto-generated> //------------------------------------------------------------------------------ using UnityEngine; using System; using System.Collections; using System....
<script type="text/javascript"> RED.nodes.registerType('compare',{ category: 'PiCubes', color: '#c6dbef', defaults: { name: {value:""}, operator: {value:"GT"}, topicX : {value:""}, topicY0 : {value:""}, topicY1 : {value:""} }, ...
<?php declare (strict_types=1); namespace Rector\Caching; use Rector\Caching\Detector\ChangedFilesDetector; use Symplify\SmartFileSystem\SmartFileInfo; final class UnchangedFilesFilter { /** * @var \Rector\Caching\Detector\ChangedFilesDetector */ private $changedFilesDetector; public function __...
<form class="form-horizontal"> <div class="row"> <div class="form-group"> <label for="kitId" class="col-sm-2 control-label"> Kit Id </label> <div class="col-sm-10"> <input type="text" class="form-control" id="kitId" placeholder="Kit Id" ng...
export const generateGuid = () => { function s4() { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1); } return `${s4() + s4()}-${s4()}${s4()}`; }; export default { generateGuid, };
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using MonoTouch.Foundation; using MonoTouch.UIKit; using MonoTouch.Dialog; namespace Verses.iOS { public class StyledStringElement : StringElement, IElementSizing { public StyledStringElement (string caption) : base (caption) ...