answer
stringlengths
15
1.25M
FROM slapi/ruby:latest # If label is named description it will set tier 1 or plugin description in chat help LABEL "description"="Plugin Description" # Use Labels for Help info, a help list will be compiled from the labels LABEL "ARGNAME01"="Arg Description" LABEL "ARGNAME02"="Arg Description" LABEL "ARGNAME03"="Arg De...
package co.edu.uniandes.csw.bookstore.resources; import co.edu.uniandes.csw.bookstore.dtos.BookDetailDTO; import co.edu.uniandes.csw.bookstore.ejb.AuthorBooksLogic; import co.edu.uniandes.csw.bookstore.ejb.BookLogic; import co.edu.uniandes.csw.bookstore.entities.BookEntity; import co.edu.uniandes.csw.bookstore.exceptio...
var HistoryLogger; HistoryLogger = (function() { var _this = this; function HistoryLogger() {} HistoryLogger._storageOn = '<API key>'; HistoryLogger._storageData = 'history-logger-data'; HistoryLogger._data = function() { return $.localStorage(HistoryLogger._storageData) || []; }; HistoryLogger.isOn =...
<?php namespace Oro\Bundle\EntityConfigBundle\EventListener; use Doctrine\ORM\QueryBuilder; use Symfony\Component\EventDispatcher\<API key>; use Oro\Bundle\DataGridBundle\Extension\Action\ActionExtension; use Oro\Bundle\DataGridBundle\Datagrid\Common\<API key>; use Oro\Bundle\DataGridBundle\Event\BuildAfter; use Oro\Bu...
var mongoose = require('mongoose') var bcrypt = require('bcrypt-nodejs') var SALT_WORK_FACTOR = 10 var UserSchema = new mongoose.Schema({ name:{ unique: true, type: String }, nickname:{ unique: true, type: String }, password: String, // 'root' 'admin' 'normal' ...
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-25 01:43 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Account', ...
package zornco.reploidcraft.bullets; import java.util.Iterator; import java.util.List; import zornco.reploidcraft.ReploidCraft; import net.minecraft.block.Block; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.IProje...
#!/usr/bin/env ruby require 'terminal-table' require 'ipaddr' ifconfig = `ifconfig`.split("\n\n") oint = '' int = '' omac = '' # Begin the table. table = Terminal::Table.new do |t| # Define the table headers. t << ['Interface','IPv4 Address','Subnet Mask','Broadcast','MAC Address'] t.add_separator ifconfig.each...
package com.matija.easy; public class SequenceEquation { static int[] permutationEquation(int[] p) { int[] pIndexes = new int[p.length+1]; for (int i = 0; i < p.length; i++) { pIndexes[p[i]] = i+1; } int[] r = new int[p.length]; for(int i = 1; i <= p.length; i++) ...
define(function(require) { var $ = require('jquery'), _ = require('underscore'), Backbone = require('backbone'); FeedT = require('text!templates/feed.html'), Post = require('views/post'); Feed = Backbone.View.extend({ tagName: 'div', ...
<!DOCTYPE html> <!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" dir="ltr"> <!--<![endif]--> <!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) --> <!-- Created: ; Product Code...
using EasyRedisMQ.Resolvers; using System; using System.Threading.Tasks; using EasyRedisMQ.Models; using EasyRedisMQ.Services; using StackExchange.Redis.Extensions.Core; namespace EasyRedisMQ.Factories { public class SubscriberFactory : ISubscriberFactory { private IQueueNameResolver _queueNameResolver;...
layout: archive permalink: /tags/ title: "Posts by Tags" author_profile: true sidebar: title: "All Archives" nav: sidebar-archives {% include base_path %} {% include group-by-array collection=site.posts field="tags" %} {% for tag in group_names %} {% assign posts = group_items[forloop.index0] %} <h2 id="{{ tag ...
import * as React from 'react'; import { render } from 'react-dom'; import { install } from 'source-map-support'; import { VitrineLoader } from './app/features/loader/VitrineLoader'; import './resources/less/main.less'; install(); const appRoot: HTMLElement = document.createElement('div'); document.body.appendChild(app...
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <title>{{site.title}}</title> ...
import { ChartHTMLTooltip } from './chart-html-tooltip'; export interface DataPointPosition { row: number; column: number; } export interface BoundingBox { top: number; left: number; width: number; height: number; } export interface ChartMouseEvent { position: DataPointPosition; boundingBox: BoundingBox...
// <API key>.h // HackWinds #import <UIKit/UIKit.h> #import <StoreKit/StoreKit.h> @interface <API key> : <API key> <<API key>, <API key>> - (void) loadSettings; - (IBAction)acceptSettingsClick:(id)sender; - (IBAction)leaveTipClicked:(id)sender; - (IBAction)contactDevClicked:(id)sender; - (IBAction)<API key>:(id)sende...
from .allow_origin import <API key> # noqa from .api_headers import <API key> # noqa from .basic_auth import <API key> # noqa
using Housing.Data.Domain; using Housing.Data.Domain.DataAccessObjects; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace Housing.Data.Client.Controllers { public class <API key> : ApiController { private static A...
<!-- Header --> <header id="header"> <!-- <h1><a href="../index.html">{id}</a></h1> --> <div id="user_info"> <img class="user_flag" src="{flag}"> <h1 style="text-align: center"><a href="../scripts/home?&id={id}">{name}</a></h1> </div> <a href="#nav">Menu</a> </header> <!-- Nav --> <nav i...
package org.softuni.mostwanted.repository; import org.softuni.mostwanted.model.entity.Race; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface RaceRepository extends JpaRepository<Race, Integer> { }
const express = require('express'); const authRoutes = express.Router(); const <API key> = require('../controllers/authentication'), passportService = require('../config/passport'), passport = require('passport'); // Middleware to require login/auth const requireLogin = passport.authenticate('json', { sessi...
# Habuco Habuco name come from HAsh BUilder with COntext. It allows to use DSL to create hash structure with passed context. ## Installation Add this line to your application's Gemfile: ruby gem 'habuco' And then execute: $ bundle Or install it yourself as: $ gem install habuco ## Usage Static value ruby class ...
<div class="well" ng-controller="LeftNavController"> <a class="btn btn-lg btn-danger" href="#new">Compose</a> <ul class="nav nav-pills nav-stacked" style="max-width: 300px;"> <li role="presentation"><a href="#/inbox"> Inbox</a></li> <li role="presentation"><a href="#/sent"> Sent</a></li> ...
<?php namespace Spatie\Crawler; use GuzzleHttp\Psr7\Uri; use Illuminate\Support\Collection; use <API key>; use Psr\Http\Message\UriInterface; use Symfony\Component\DomCrawler\Crawler as DomCrawler; use Symfony\Component\DomCrawler\Link; use Tree\Node\Node; class LinkAdder { protected Crawler $crawler; public fu...
<!DOCTYPE html> <script src='../../../vendor/three.js/build/three.min.js'></script> <script src='../../../vendor/three.js/examples/js/renderers/CSS3DRenderer.js'></script> <script src='../threex.htmlmixer.js'></script> <body style='margin: 0px; background-color: #bbbbbb; overflow: hidden;'><script> var renderer ...
/** Automatically generated file. DO NOT MODIFY */ package cse110.TeamNom.projectnom; public final class BuildConfig { public final static boolean DEBUG = true; }
import {Component, Input, OnInit} from '@angular/core'; import {forkJoin, Observable} from 'rxjs'; import {IFileUploadClient} from '../../../common/http/upload/file-upload-client'; import {HttpDataTransfer} from '../../../common/http/transfer/http-data-transfer'; @Component({ selector: 'elder-file-upload, ebs-file-up...
<template name="appLoading"> <div class="loading"> <div class="loading-spinner"></div> <img src="/images/green-check.svg" class="loading-app" /> </div> </template>
@charset "utf-8"; /* CSS Document */ html, body { height:100%; } body { background-color:#FFF; background-image:url(moj_stil/bg.png); background-repeat:repeat; } .no-margin { margin:0 !important; } .section { width:570px; margin:10px auto; background-color:#FFF; border:1px solid #DDD...
<?php namespace Ali\DatatableBundle\Util; use Symfony\Component\DependencyInjection\ContainerInterface, Symfony\Component\HttpFoundation\Response; use Doctrine\ORM\Query, Doctrine\ORM\Query\Expr\Join, Doctrine\ORM\EntityManager; use Ali\DatatableBundle\Util\Factory\Query\QueryInterface, Ali\DatatableBun...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { SharedModule } from '../shared'; import { TabModule, UploadModule } from 'ngx-prx-styleguide'; import { storyRouting, storyProviders, storyComponents } from './story.routing'; @NgModule({ declarations: [ storyCompon...
#ifndef COINCONTROL_H #define COINCONTROL_H #include "core.h" /** Coin Control Features. */ class CCoinControl { public: CTxDestination destChange; CCoinControl() { SetNull(); } void SetNull() { destChange = CNoDestination(); setSelected.clear(); } bool HasSelecte...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>orange</title> <link href="/css/styles.css" rel="stylesheet" type="text/css" /> </head> <body> <h1> #FA8100 </h1> </body> </html>
{%- set items = resource.pages|<API key>(post.meta.directory) %} {%- if items.length > 0 %} <h2 class="component-demos"> <i class="anticon anticon-appstore icon-all" title=""></i> {%- if post.meta.sketch %} <a class="sketch-link" href="{{ post.meta.sketch }}" target="_blank"> <i class="anticon anticon-downloa...
<div class="s_background"> <textarea id="s_publish_content" ng-model="s_publish_content" type="text" class="s_input" placeholder="##"></textarea> <div> <button type="button" class="btn btn-primary s_btn_pic"> </button> <button type="button" class="btn btn-primary s_btn_pic" ng-click="choose_...
* { margin: 0; padding: 0; } html, body { background: #EEE; font: 12px sans-serif; } body { padding-top: 1.8em; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html, body, table, tbody, tr, td { height: 100% } table { table-layout: fixed; ...
PKGNAME = pyramid_describe include Makefile.python examples: rm -f doc/example.* for fmt in html json pdf rst txt wadl xml yaml ; do \ echo "creating '$$fmt' example..." ; \ pdescribe example.ini --format "$$fmt" > doc/example."$$fmt" ; \ done @echo "creating 'txt' (ascii) example..." @p...
package rps type Values []int64 func (self *Values) Rotate(n int) { if n > 0 { capacity := cap(*self) values := make([]int64, capacity, capacity) if n < capacity { copy(values, (*self)[n:]) } *self = values } }
import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="value", parent_name="volume.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_...
ActiveAdmin.register Kata do permit_params :name, :description menu parent: "Attributes" config.sort_order = "name_asc" filter :name filter :description index do id_column column :name column :description actions end show title: :name do |at| panel 'Details' do <API key> at do ...
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: <API key>("")] [asse...
package players import ( "testing" "github.com/stretchr/testify/require" ) func TestRepo_Pick(t *testing.T) { p := Player{ID: 1} r := &Repo{ Available: []Player{{ID: 1, ADP: 45}}, } var err error p.ID = 2 err = r.Pick(p) require.Error(t, err) require.Equal(t, 0, len(r.Cla...
import { CognitoUser, <API key> } from '<API key>'; import { getUserPool } from './config'; class <API key> extends Error { constructor(message, userAttributes, requiredAttributes) { super(message); this.message = message; this.name = '<API key>'; this.userAttributes = userAttributes; this.require...
'use strict'; angular.module('expensesApp') .factory('User', function ($resource) { return $resource('/api/users/:id/:controller', { id: '@_id' }, { changePassword: { method: 'PUT', params: { controller:'password' } }, get: { method: 'GET',...
#ifndef DUNE_PRINT_H #define DUNE_PRINT_H #include "dune.h" /* print a formatted string to terminal */ size_t kprintf(char *fmt, ...); /* construct a formatted string in buffer 's' */ size_t ksprintf(char *s, char *fmt, ...); /* **TEMPORARY** UNBUFFERED userspace printf */ size_t uprintf(char *fmt, ...); #ifdef QEMU_DE...
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Compute::Mgmt::V2019_07_01 module Models # Defines values for IPVersion module IPVersion IPv4 = "IPv4" IPv6 = "IPv6" ...
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2017_03_01 module Models # Application gateway BackendHealth pool. class <API key> include MsRestAzure # ...
import lang from './lang'; import xml from './xml'; import querystring from './querystring'; import models from './models'; import rest from './rest'; import sort from './sort'; export default { lang, xml, querystring, models, rest, sort };
package com.aspose.imaging.examples.shapes; import com.aspose.imaging.Pen; import com.aspose.imaging.examples.Logger; import com.aspose.imaging.examples.Utils; public class DrawingLines { public static void main(String[] args) { Logger.startExample("DrawingLines"); //Creates an instance of BmpOp...
#include "check_cjose.h" #include <stdlib.h> #include <stdio.h> #include <check.h> #include <cjose/cjose.h> #include <jansson.h> #include "include/jwk_int.h" #include "include/jws_int.h" #include <openssl/rand.h> // a JWK to be re-used for unit tests static const char *JWK_COMMON = "{ \"kty\": \"RSA\", " "\"e...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>web-ssh</title> <script src="https://code.jquery.com/jquery.min.js"></script> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text...
<?php namespace Anomaly\PostsModule\Post\Contract; use Anomaly\PostsModule\Category\Contract\CategoryInterface; use Anomaly\PostsModule\Type\Contract\TypeInterface; use Anomaly\Streams\Platform\Entry\Contract\EntryInterface; use Carbon\Carbon; use Symfony\Component\HttpFoundation\Response; interface PostInterface exten...
namespace Beekeeper.Web.Areas.User.ViewModels.Honeycomb { using System.Collections.Generic; using Data.Models; using Infrastructure.Mapping; using Services.Web; public class <API key> : IMapFrom<Honeycomb> { public int Id { get; set; } public int SuperId { get; set; } pub...
$(function(){ try{ var flashMsg = localStorage.getItem("flashMsg"); //flash Msg store in localstorage.flashMsg if( flashMsg != undefined && flashMsg.length){ $.bootstrapGrowl( flashMsg,{type: 'error'}); localStorage.setItem("flashMsg",""); } if( ! ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>sum-of-two-square: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap...
<?php /* @Twig/Exception/exception_full.html.twig */ class <API key> extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->loadTemplate("@Twig/layout.html.twig", "@Twig/Exception/exception_full.html.twig",...
using CGM.Communication.Extensions; using CGM.Communication.MiniMed; using System; using System.Collections.Generic; using System.Text; namespace CGM.Communication.Common { //[Serializable] //public class ApplicationSetting // public int SettingId { get; set; } = 1; // public bool AutoStartTask { ...
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import { Film } from '../Film'; describe('<Film />', () => { it('should have a class .film', () => { const props = { films: { detail: { title: 'A New Hope' } } }; expect(shallo...
require 'cgi' require 'multi_json' require 'excon' require 'tempfile' require 'base64' require 'find' require 'rubygems/package' require 'uri' require 'open-uri' # Add the Hijack middleware at the top of the middleware stack so it can # potentially hijack HTTP sockets (when attaching to stdin) before other # middleware...
using UnityEngine; using System.Collections; public class AICarTouches : MonoBehaviour { // Use this for initialization void Start () { } void OnCollisionEnter(Collision col) { if (col.gameObject.name == "Score_Cube") { Destroy(col.gameObject); } else if (...
var _ = require('underscore'), debug = require('./debug')('pulldasher:db-manager'), utils = require('./utils'), Promise = require('bluebird'), db = require('../lib/db'), DBIssue = require('../models/db_issue'), DBStatus = require('../models/db_status'), DBSignature = require('../models/db_si...
require File.dirname(__FILE__) + '/../../spec_helper' describe "Check FSize" do before :each do @c = C.p1.merge( :checks => C.check_fsize(:times => 3) ) end it "should start periodical watcher" do start_ok_process(@c) @process.watchers.keys.should == [:check_alive, :check_identity, :check_fs...
/// <reference path="Vector.ts" /> <reference path="SceneObject.ts" /> module RT { export var EPSILON = 0.000001; export class Ray { constructor(public origin: Vector, public direction: Vector) { } inchForward() { this.origin.add(this.direction.scaledBy(EPSILON)); } } ...
# yamljs ## Notice This project is out of date with https://github.com/Livefyre/py-yacc. Users should instead switch injected configs. export YACC_INJECT=$(pyyacc3 config/app.yaml /etc/default/cluster.yaml -o -) run my program ... var config = yamljs.loadInjected(); # Overview Extends [js-yaml][1] with a few Livefyre s...
package fi.nls.oskari.csw.helper; import fi.nls.oskari.csw.domain.CSWIsoRecord; import fi.nls.oskari.log.LogFactory; import fi.nls.oskari.log.Logger; import org.apache.commons.collections.map.LinkedMap; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import javax.xml.xpath.*; import java.util.ArrayList; import ja...
namespace MasterChef.Web { using System; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using Microsoft.AspNet.Identity; using MasterChef.Data; using System.Linq; public partial class SiteMaster : MasterPage { private co...
<ion-view view-title="Alergias"> <ion-nav-buttons side="right"> <button class="button button-icon icon <API key>" ng-click="showFilterBar()"></button> <button class="button button-icon icon" ng-class="{'ion-android-add': platform.isAndroid(), 'ion-ios-plus-empty': !platform.isAndroid()}" ...
<?php namespace GPBT\Context; class Clean extends AbstractContext { public function __invoke() { if (file_exists($this->settings->lock)) { unlink($this->settings->lock); } } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!-- Making sure the web-site will scale fine on mobiles--> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Trying to force IE to perform at its best--> <meta http-equiv="x-ua-compatibl...
#include "bindings.h" #include "application.h" #include <Urho3D/Scene/Scene.h> #include <Urho3D/Input/Input.h> #include <Urho3D/Core/Context.h> #include <Urho3D/Resource/ResourceCache.h> #include <Urho3D/Graphics/Renderer.h> #include <Urho3D/Audio/Audio.h> using namespace gengine::application; using namespace Urho3D; <...
module.exports = function RowCount (Model) { 'use strict'; // Model.afterRemote('findById', injectCounts); // Model.afterRemote('findOne', injectCounts); Model.afterRemote('find', injectCounts); function injectCounts (ctx, unused, next) { var resources = ctx.result; if (!Array.isArray(resources)) reso...
package com.avnt.soldi.service; import com.avnt.soldi.model.cheque.Note; import com.avnt.soldi.model.repositories.NoteRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.jpa.repository.Modifying; import org.springframework.stereotype.Service; import org.springframe...
import React, { PropTypes } from 'react' const ContextType = { // Enables critical path CSS rendering insertCss: PropTypes.func.isRequired, } class App extends React.Component { static propTypes = { context: PropTypes.shape(ContextType).isRequired, children: PropTypes.element.isRequired, } static chil...
require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../fixtures/common', __FILE__) describe "Exception#backtrace" do before :each do @backtrace = ExceptionSpecs::Backtrace.backtrace end it "returns nil if no backtrace was set" do Exception.new.backtrace.should be_nil end...
import e2e from '~shared/data/e2e'; import { <API key>, <API key>, <API key>, } from '~reusable/playlist'; import { <API key>, } from '~reusable/discoverPage'; import { <API key>, } from '~reusable/player'; describe('selected actions tests', () => { describe('click play album button', () => { before(fun...
+++ date = "2018-12-14T18:00:00+03:00" draft = true title = "Using mutual TLS in Scala" slug = "mutual-tls-in-scala" +++ _TODO:_ Add a short introduction to the solved problem. * Why do we need mutual TLS? * Short description of advatages when it is used. <!--more ## Keys, Certificates and everyone else _TODO:_ Cool pi...
#include "class_3.h" #include "class_9.h" #include "class_3.h" #include "class_7.h" #include "class_4.h" #include "class_0.h" #include <lib_56/class_4.h> #include <lib_14/class_0.h> #include <lib_41/class_5.h> #include <lib_48/class_3.h> #include <lib_7/class_6.h> class_3::class_3() {} class_3::~class_3() {}
#include "ecoreReflection/EcorePlugin.hpp" #include "ecoreReflection/impl/EcorePluginImpl.hpp" using namespace Ecore; //static initialisation std::shared_ptr<MDE4CPPPlugin> EcorePlugin::instance; std::shared_ptr<MDE4CPPPlugin> EcorePlugin::eInstance() { if(instance==nullptr) { //create a new Singelton I...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ var CONN={ init:function(){ // connection goes here console.log("SOCKET"); //when we get connected to server make proceed to n...
class EJson def self.dump_as(obj) obj end def self.dump(obj) JSON.dump(dump_as(obj)) end end
<!doctype html> <html> <head> <meta charset="utf-8"> <title>php | fantaster | </title> <meta name="author" content="fantaster"> <link rel="shortcut icon" href="/public/img/smallcat.png" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="/public/css/bootstrap.css"> <...
package edu.ilstu.it275.lab08.msanto2; /** * The Exception <API key>. */ public class <API key> extends Exception { /** The Constant serialVersionUID. */ private static final long serialVersionUID = -<API key>; /** * Instantiates a new zero denominator exception. */ public <API key>() { ...
"""MySQLdb Cursors This module implements Cursors of various types for MySQLdb. By default, MySQLdb uses the Cursor class. """ import re insert_values = re.compile(r"\svalues\s*(\(((?<!\\)'.*?\).*(?<!\\)?'|.)+?\))", re.IGNORECASE) from _mysql_exceptions import Warning, Error, InterfaceError, DataError, \ DatabaseE...
// Implements console.log, console.error, console.time, et al and emits a // console event for each output. 'use strict'; var _createClass = require('babel-runtime/helpers/create-class')['default']; var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default']; var _Map = require('babel-runtime/cor...
<div class="panel {{panelClass}}"> <div class="panel-heading"> <div class="row"> <div class="col-xs-3"> <i class="fa {{icon}} fa-5x"></i> </div> <div class="col-xs-9 text-right"> <div data-ng-transclude></div> </div> </div> </div> <!--a href=" <div class="panel-...
package com.easyweb.entity.core; import javax.persistence.*; import java.util.Date; @Entity @Table(name = "t_model_property") public class ModelProperty { @Id @GeneratedValue private Integer id; @ManyToOne(cascade = {CascadeType.ALL}, fetch = FetchType.LAZY) @JoinColumn(name="model_id") private ...
using UnityEngine; using System.Collections; public class LockRotation : MonoBehaviour { public Transform target; // Use this for initialization void Start () { } // Update is called once per frame void FixedUpdate () { transform.eulerAngles = target.eulerAngles; } }
#ifndef __vtkXBLImage_h__ #define __vtkXBLImage_h__ #include "vtkObject.h" #include "<API key>.h" #include <vector> class vtkXBLImage : public vtkObject { public: static vtkXBLImage *New(); vtkTypeMacro(vtkXBLImage, vtkObject); void PrintSelf(ostream& os, vtkIndent indent); public: vtkXBLImage& operator=(const ...
<?php /* @WebProfiler/Profiler/bag.html.twig */ class <API key> extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $b...
""" Twitter Most Followed Finding out top most followed accounts by a particular group of Twitter users such as the Hacker News community. For this exercise we consider @newsyc20 as our *source*, and @newsyc20 followers as the HNers, our *target group*. You can easily run the exercise for a different target group by sp...
@media only screen and (min-width:640px) { h1 { font-size: 3em; line-height: 1.05em; } h2 { font-size: 2.25em; line-height: 1.25em; } h3 { font-size: 1.75em; line-height: 1.25em; } h4 { font-size: 1.125em; line-height: 1.22em; } h5 { font-size: .9em; line-height...
// purpose with or without fee is hereby granted, provided that the above // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR // ANY SPECIAL, DIRECT,...
package algorithms.dayoftheprogrammer; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.extension.ExtensionContext; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.ArgumentsProvider; import org.junit.jup...
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W28638_text</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;"> ...
import { expect } from 'chai'; import * as d from '../../../decorators'; import { QueryParser } from '../../../queries/queryparser'; import { InMemoryQuery } from '../query'; import { ModelManager } from '../../../models/manager'; import { InMemoryBackend } from '../backend'; import { IObject } from '../../../utils/typ...
import unittest from pathlib import Path from html_minifier import Minifier from html_minifier import DjangoMinifier class TestMinify(unittest.TestCase): ext_min = "_min" file_name = "base" _file = "{0}.html" location = "html" def setUp(self): path = Path(__file__).parent file_name =...
package adamb; import javax.swing.AbstractListModel; import adamb.vorbis.CommentField; import adamb.vorbis.VorbisCommentHeader; import java.io.*; public class CommentListModel extends AbstractListModel { public VorbisCommentHeader comments; public CommentListModel(VorbisCommentHeader vch) { comments...
# <API key>: true module Acfs::Resource::Attributes # @api public # Integer attribute type. Use it in your model as an attribute type: # @example # class User < Acfs::Resource # attribute :name, :integer # end class Integer < Base # @api public # Cast given object to integer. # @param ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FunctionalTest { internal class <API key> : Exception { public static <API key> Create(string topMostException) { <API key> ex0 = new <API key>(topMostExcepti...