answer stringlengths 15 1.25M |
|---|
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
class Base{
private:
int x;
public:
int y;
void setXY(int n,int m){
x = n;
y = m;
}
void showXY(){
cout<<x<<','<<y<<endl;
}
};
class Derived:protected Base{
private:
int z;
public:
void setXYZ(i... |
import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { AuthService } from '../services/auth.service';
import { CookieService } from '../services/cookie.service';
export class LoginData {
constructor(
public username: string,
public password: string
) { }
}
@Compon... |
package theme.support.demo.test;
import android.os.Bundle;
import android.support.annotation.Nullable;
import theme.support.demo.BaseActivity;
import theme.support.demo.R;
public class TestActivity extends BaseActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCr... |
App.Tile = function(properties) {
p = properties || {};
App.Glyph.call(this, p);
this.isWalkable = (p.isWalkable===undefined) ? false : p.isWalkable;
this.isDiggable = (p.isDiggable===undefined) ? false : p.isDiggable;
this.blocksLight = (p.blocksLight===undefined) ? true : p.blocksLight;
};
App.Tile.ext... |
using System.Collections.Generic;
using NUnit.Framework;
using Plivo.Http;
using Plivo.Resource;
using Plivo.Resource.Medis;
using Plivo.Utilities;
namespace Plivo.Test.Resources
{
[TestFixture]
public class TestMedia : BaseTestCase
{
[Test]
public void TestMediaList()
{
... |
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
namespace eratter.Properties
{
[global::System.Runtime.CompilerServices.<API key>()]
[global::System.CodeDom.Compiler.<A... |
define([
"lib/mini"
],function( mini ){
var User = function(){
mini.User.apply( this, arguments );
};
User.prototype = Object.create( mini.User.prototype ,{
compareScore: { value: function( a, b ){ return a >= b; } },
grantCollection: { value: function( name ){
if( !t... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _templateObject = <API key>(['\n margin: 0;\n padding: 0;\n'], ['\n margin: 0;\n padding: 0;\n']);
var _styledComponents = require('styled-components');
var _styledComponents2 = <API key>(_styledComponents);
function <API key>(obj) {... |
using System.Collections.Generic;
namespace SoftwarePassion.LogBridge
{
<summary>
Encapsulates an extended property whether assigned programmatically
or in the configuration file.
</summary>
public class ExtendedProperty
{
<summary>
Creates an ExtendedProperty with the given name... |
<?php
namespace Application\Gillbus\EtravelsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Sduser
*
* @ORM\Table(name="sduser")
* @ORM\Entity
*/
class Sduser
{
/**
* @var integer
*
* @ORM\Column(name="order_id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY"... |
# Generated by Django 3.1.2 on 2020-11-10 11:51
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('emailtemplates', '<API key>'),
]
operations = [
migrations.AlterField(
model_name='emailtemplate',
... |
<?php
declare(strict_types=1);
namespace Sonata\OrderBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Sonata\Component\Currency\CurrencyInterface;
use Sonata\Component\Customer\CustomerInterface;
use Sonata\Component\Delivery\BaseServiceDelivery;
use Sonata\Component\Order\<API key>;
use Sonata\Compo... |
describe('<API key> Test Suite', function() {
beforeEach(function() {
this.xhr = jasmine.createSpyObj('xhr', ['done']);
spyOn($, 'get').andReturn(this.xhr);
});
beforeEach(function() {
this.tmpl = new Backbone.<API key>();
});
it('should have a remote template manager defined', function() {
ex... |
var mongoose = require('mongoose');
var models = require('./schemas');
var fs = require('fs'),
xml2js = require('xml2js');
var async = require('async');
var parser = new xml2js.Parser();
var ipnett = "10.0.2."; // Set your IP range nett. Same as found in nmap bash file.
var iprange = "255"; // select the range you wa... |
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
namespace DLaB.Xrm.Entities
{
[System.Runtime.Serialization.<API key>()]
[System.CodeDom.Compiler.<API key>("CrmSvcUtil"... |
<?php
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class <API key> extends AbstractMigration
{
public function up(Schema $schema)
{
// this up() migration is auto-gener... |
/**
* built by Astrocoders
* @flow
*/
// Modules
import React from 'react'
import styled from 'styled-components'
import { Link } from 'react-router'
import SvgDeleteIcon from 'material-ui/svg-icons/action/delete'
import {
grey100,
grey200,
grey400,
grey500,
grey700,
grey800,
} from 'material-ui/styles/c... |
#pragma once
#define CLIENT_DLL
//framework for csgo/swarm engine
#include "../../required.h"
#include "../../ionbase.h"
#include "../../mem/vmt.h"
#include "sdk.h"
#include "csgohook.h"
#include "interfaces.h"
#include "entity.h"
#include "vector.h"
namespace ion
{
interfaces* csgo;
class ioncsgo : public ionb... |
module Oo
module Command
class SwingCommand
def verbs
["SWING"]
end
def execute(verb, word, inventory, rooms)
inventory.thing(word).swing(rooms) if inventory.carrying?(word)
end
end
end
end |
<?php
namespace Reurbano\UserBundle\Form\Backend;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\AbstractType;
class UserForm extends AbstractType {
public function buildForm(FormBuilder $builder, array $options) {
$builder
->add('id', 'hidden')
->add('nam... |
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using DetailWorkflow.Models;
using Microsoft.AspNet.Identity.EntityFramework;
namespace DetailWorkflow.DataLayer
{
public class <API key> : IdentityDbContext<ApplicationUser>
{
public <API key>... |
<?php
namespace PaymentSuite\PaylandsBundle\DependencyInjection;
use PaymentSuite\PaymentCoreBundle\DependencyInjection\Abstracts\<API key>;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
/**
* Class... |
using Shouldly;
namespace Tests.Caliburn.Actions
{
using System;
using System.Linq;
using System.Reflection;
using global::Caliburn.Core.Invocation;
using global::Caliburn.Core.InversionOfControl;
using global::Caliburn.<API key>.Actions;
using global::Caliburn.<API key>.Conventions;
usi... |
namespace Vigilant.WebPoker {
partial class Form1 {
<summary>
Required designer variable.
</summary>
private System.ComponentModel.IContainer components = null;
<summary>
Clean up any resources being used.
</summary>
<param name="disposing">true if man... |
using System;
using System.Linq;
using System.Text;
<summary>
Write a program that finds the sequence of maximal sum in given array.
Example:
input | result
2, 3, -6, -1, 2, -1, 6, 4, -8, 8 | 2, -1, 6, 4
Can you do it with only one loop (with single scan through the elements of the array)?
</su... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using aaatest.framework;
namespace aaatest.executor
{
public class TestClassCrawler
{
private readonly ITracer _tracer;
private readonly Type _type;
public TestClassCrawler(ITracer tracer, Type ty... |
// OGVQueue.h
// OGVKit
#import "OGVKit.h"
#import "OGVDecoderOggPacket.h"
@interface OGVQueue : NSObject
@property (readonly) BOOL empty;
- (void)queue:(id)object;
- (void)swap:(id)object;
- (id)peek;
- (id)dequeue;
- (void)flush;
@end |
import React from 'react';
import { GainLoss } from '../../gainloss/GainLoss'
export function PositionSymbol(props) {
const style = {
flexGrow: '1'
}
return (
<div style={style}>
<h2>{ props.position.symbol }</h2>
<div>{ props.position.quantity } shares</div>
<div>Day:</div>
<GainL... |
<code>FTELL</code> — Current stream position
<h3>Description</h3>
Retrieves the current position within an open file.
<p>This intrinsic is provided in both subroutine and function forms; however,
only one form can be used in any given program unit.
<br></p>
<h3>Syntax</h3>
<p><table summary=""><tbody><tr... |
#include "StdAfx.h"
#include "LogFile.h"
CLogFile::CLogFile(void) : m_hFile(0), m_dwError(0)
{
}
CLogFile::~CLogFile(void)
{
if (m_hFile) {
CloseHandle(m_hFile);
m_dwError = GetLastError();
m_hFile = 0;
}
}
int CLogFile::OpenLogFile (wchar_t *pFilePath)
{
DWORD dwDesiredAccess = 0;
... |
<!-- start: PAGE TITLE -->
<section id="page-title">
<div class="row">
<div class="col-sm-8">
<h1 class="mainTitle" translate="sidebar.nav.forms.WIZARD">{{ mainTitle }}</h1>
<span class="mainDescription">Using simple Angular.js guidelines you can turn a form into a multi-step form wi... |
module Lambdalib
class Routes
def self.add_hooks(router)
router.instance_exec do
mount Lambdalib::Engine => '/lambda'
end
end
end
end |
module Middleman::Sitemap
class Template
attr_accessor :page, :options, :locals, :blocks, :request_path
def initialize(page)
@page = page
@options = {}
@locals = {}
@blocks = []
end
def path
page.path
end
def source_file
page.source_file
end
def... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-analysis: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap... |
import * as ko from 'knockout';
import {getMessage} from '../services/messageService';
import {IMessage} from 'messageInterface';
class BaseView {
protected message: any = ko.observable();
protected type: any = ko.observable();
protected displayMessage: any = ko.observable(false);
constructor () {
... |
using System.Collections.Generic;
using MockingData.Model;
namespace MockingData.LocationData.CountryData
{
public class Norway : Country
{
public Norway(int countryId) : base(countryId)
{
Name = "Norway";
CodeIsoAlpha2 = "NO";
Currency = "NOK";
Ge... |
from collections import defaultdict, OrderedDict
from typing import Callable
class HookRegistry:
def __init__(self):
self.hooks = defaultdict(OrderedDict)
def register(self, name: str, func: Callable):
self.hooks[name][func] = True
def run_hook(self, name: str, *args, **kwargs):
retu... |
//! Rsure is a set of utilities for capturing information about files, and later verifying it is
//! still true.
//! The easiest way to use Rsure is to build the `rsure` executable contained in this crate. This
//! program allows you to use most of the functionality of the crate.
//! However, it is also possible to us... |
var R = require('../source/index.js');
var eq = require('./shared/eq.js');
var list = ['a', 'b', 'c', 'd', 'e', 'f'];
describe('move', function() {
it('moves an element from an index to another', function() {
eq(R.move(0, 1, list), ['b', 'a', 'c', 'd', 'e', 'f']);
eq(R.move(2, 1, list), ['a', 'c', 'b', 'd', '... |
/*
Circuit script by lem()ntea.
Please do not copy my code.
*/
//Block definations
//Warning: edting this could make error(s).
var SWITCH_ENABLED = 22 //Lapis lazuli block
var SWITCH_DISABLED = 20 //Glass
var WIRE_ENABLED = 41; //Gold block
var WIRE_DISABLED = 42; //Iron block
function useItem(x, y, z, b, i, s){
if... |
<?php
$environments = array(
'local' => array('http://localhost*', '*.dev'),
);
// The path to the application directory.
$paths['app'] = './';
// The path to the Laravel directory.
$paths['sys'] = '../laravel';
// The path to the bundles directory.
$paths['bundle'] = './bundles';
// END OF USER CONFIGURATION. HERE B... |
using System.Collections.Immutable;
namespace LanguageService.Formatting.Ruling
{
internal class RuleDescriptor
{
internal RuleDescriptor(ImmutableArray<SyntaxKind> tokenLeft, ImmutableArray<SyntaxKind> tokenRight)
{
this.TokenRangeLeft = tokenLeft;
this.TokenRangeRight =... |
var mirror = {
'top left': 'top right',
'top right': 'top left',
'bottom left': 'bottom right',
'bottom right': 'bottom left',
'left': 'right',
'right': 'left',
'top': 'bottom',
'bottom': 'top'
}
function isWindow (element) {
return obj != null && obj === obj.window
}
function outerWidth (el) {
var ... |
namespace SampleApplication.ReadModel.Notes
{
using Ewancoder.DDD.Interfaces;
using Domain.Notes.Events;
internal sealed class NoteHandler
//: IEventHandler<NoteCreated>,
: IEventHandler<NoteCreatedV2>,
IEventHandler<NoteArchived>,
IEventHandler<NoteNameChanged>,
IEve... |
# <API key>: true
module Mako
class Errors
attr_accessor :messages
def initialize
@messages = []
end
# Add an error message to the messages array
# @param [String]
def add_error(msg)
messages << msg
end
# Predicate method to see if there are any error messages
# @return... |
# php8-composer
Alpine image with php8 and composer installed. You can use it to install composer dependencies in your project:
console
$ docker run --rm --user $(id -u) -v $(pwd):/app -w /app iras/php8-composer composer install |
// <auto-generated/>
#nullable disable
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.ResourceManager;
namespace Azure.ResourceManager.AppService
{
internal class <API key> : IOperationSource<<API key>>
{
private readonly ArmClien... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coqeal: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>finger-tree: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... |
class CreateResponses < ActiveRecord::Migration
def change
create_table :responses do |t|
t.belongs_to :user
t.belongs_to :question
t.string :participant_choice
t.timestamps
end
end
end |
get '/guesses/:guess_id' do |guess_id|
@guess = Guess.find(guess_id)
@user_attempt = params[:attempt]
@card = @guess.card
deck = Deck.find(@card.deck_id)
@round = Round.find(session[:round_id])
available_cards = (deck.cards - @round.done_cards)
if available_cards.empty?
redirect "/rounds/#{@round.id}"... |
#include <stdio.h>
#include <fcntl.h> // for open
#include <unistd.h> // for close
#include <sys/mman.h>
#include <string.h>
const char str[] = "Hello World";
int main(int argc, char const *argv[]) {
char* memory;
int file_len = strlen(str);
int fd = open( "hello.txt" , O_RDWR | O_CREAT );
memory = mmap... |
const Button = FocusComponents.common.button.action.component;
const ButtonSample = React.createClass({
/**
* Render the component.
* @return {object} React node
*/
render() {
return (
<div className='button-example'>
<Button label='Bouton primaire' type='button' ... |
layout: post
title: "12/01 - Rose"
description: Will's Socks for Friday, December 1st
date: 2017-12-01
img: 2017-12-01_rose.jpg
author: Scott Shepard |
// <auto-generated>
// This code was generated from a template.
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
namespace PizzaStoreData.DataAccess
{
using System;
us... |
package routers
import (
"code.google.com/p/go.crypto/bcrypt"
"github.com/codegangsta/martini-contrib/render"
"github.com/martini-contrib/sessions"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"net/http"
)
func AdminPassword(r render.Render, s sessions.Session) {
r.HTML(200, "admin/password", ... |
layout: page
title: "Polu Chen"
comments: true
description: "blanks"
keywords: "Polu Chen,CU,Boulder"
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></script>
<!-- <script src="../assets... |
module API
module Helpers
module InternalHelpers
# Project paths may be any of the following:
# * /repository/storage/path/namespace/project
# * /namespace/project
# * namespace/project
# In addition, they may have a '.git' extension and multiple namespaces
# Transform al... |
// addon/components/mixins/has_property.js
import Ember from 'ember';
// A mixin that enriches a view that is attached to a model property.
// The property name by default is taken from the parentView unless explictly
// defined in the `property` variable.
// This mixin also binds a property named `errors` to the m... |
package main
import (
"net/http"
"strings"
)
func isHTTPS(r *http.Request) bool {
if r.URL.Scheme == "https" {
return true
}
if strings.HasPrefix(r.Proto, "HTTPS") {
return true
}
if r.Header.Get("X-Forwarded-Proto") == "https" {
return true
}
return false
}
f... |
#pragma once
#ifndef <API key>
#define <API key>
#include "core/globals.h"
#include "rendersystem/irenderer.h"
#include "inputsystem/mousehandler.h"
#include "gui/guiskin.h"
namespace clearsky
{
class CLEARSKY_API Mouse
{
public:
Mouse(GUISkin *guiskin);
~Mouse();
voi... |
package technology.tabula;
import org.junit.Before;
import org.junit.Test;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import static org.junit.Assert.*;
public class TestCohenSutherland {
private Rectangle2D clipWindow;
private <API key> algorithm;
private static final double DELTA = 0.00... |
#!/usr/bin/python
import math
import numpy as np
class Gesture(object):
def __init__(self,name):
self.name=name
def getName(self):
return self.name
def set_palm(self,hand_center,hand_radius):
self.hand_center=hand_center
self.hand_radius=hand_radius
def set_finger_pos(sel... |
<HTML><HEAD>
<TITLE>Review for Train To Pakistan (1998)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0170704">Train To Pakistan (1998)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Murali+K... |
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Wicture.DbRESTFul
{
public class CSIItem
{
public string name { get; set; }
public string module { get; set; }
public JToken code { get; set; }
public string resultSet { get; set; }
public bool queryOnly { get; ... |
requirejs.config({
paths: {
'text': '../lib/require/text',
'durandal':'../lib/durandal/js',
'plugins' : '../lib/durandal/js/plugins',
'transitions' : '../lib/durandal/js/transitions',
'knockout': '../lib/knockout/knockout-3.1.0',
'bootstrap': '../lib/bootstrap/js/boot... |
package com.owera.xaps.web.app.page.staging;
import java.util.Map;
import com.owera.xaps.web.app.input.Input;
import com.owera.xaps.web.app.input.InputData;
/**
* The Class <API key>.
*/
public class <API key> extends InputData {
/** The model name. */
private Input modelName = Input.getStringInput("modelname... |
# <API key>: true
require_relative '../../test_helper'
# Test AutomationObject::BluePrint::HashAdapter
class <API key> < Minitest::Test
def setup
AutomationObject::BluePrint.adapter = :hash
AutomationObject::BluePrint::HashAdapter::Top.skip_validations = true
@hash_adapter = AutomationObject::BluePrint::H... |
<?php
return array(
'advertisement' => 'إعلان',
'subcategory' => 'التصنيف الفرعي',
'heading_title' => 'اضافة الاعلان',
'post_free_ad' => 'اضافة اعلان مجانا',
'general' => 'العامة',
'hotselling' => 'الأكثر بيعا',
'title' => 'العنوان',
'currency_id' => 'العملة',
'mobile' => 'محمول',
... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_112-google-v7) on Fri Oct 20 16:52:52 PDT 2017 -->
<title>Qualifiers</title>
<meta name="date" content="2017-10-20">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/... |
'use strict';
//Setting up route
angular.module('manage-events').config(['$stateProvider',
function($stateProvider) {
// Manage events state routing
$stateProvider.
state('admin.manage-events', {
abstract: true,
url: '/manage-events',
template: '<ui-view/>... |
<?php
namespace AppBundle\DataFixtures\ORM;
use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\<API key>;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Component\DependencyInjection\<API key>;
use Symfony\Component\Dependenc... |
// 7. Write a JavaScript program which iterates the integers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".
for(var i = 1; i <= 100; i++) {
var print = "";
if(i % 3 === ... |
namespace LSystemEditor {
partial class LSystemEngineGUI {
<summary>
Required designer variable.
</summary>
private System.ComponentModel.IContainer components = null;
<summary>
Clean up any resources being used.
</summary>
<param name="disposing">true... |
# Install script for directory: D:/MyData/Code/PCL/<API key>
# Set the install prefix
if(NOT DEFINED <API key>)
set(<API key> "C:/Program Files/<API key>")
endif()
string(REGEX REPLACE "/$" "" <API key> "${<API key>}")
# Set the install configuration name.
if(NOT DEFINED <API key>)
if(BUILD_TYPE)
string(REGEX R... |
<?php
namespace Dotdigitalgroup\Email\Block;
/**
* Roi block
*
* @api
*/
class Roi extends \Magento\Framework\View\Element\Template
{
/**
* @var \Dotdigitalgroup\Email\Helper\Data
*/
public $helper;
/**
* @var \Magento\Checkout\Model\Session
*/
public $session;
/**
* @va... |
<?php
namespace Intisana\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel {
/**
* The application's global HTTP middleware stack.
* @var array
*/
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\<API key>::class,
\Intisana\... |
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
using System;
using System.ComponentModel;
using System.Data.Linq;
using System.Data.Linq.Mapping;
namespace derpirc.Data.Models... |
'use strict';
var Mongoose = require('mongoose')
, Schema = Mongoose.Schema
, ObjectId = Mongoose.Types.ObjectId;
var CaseSchema = new Schema({
clients: [
{
type: ObjectId,
ref: 'Client'
}
]
});
module.exports = Mongoose.model('Case', CaseSchema); |
from django.contrib import admin
from django import forms
from . import models
from nnmarkdown.form import MarkdownWidget
from nnscr.admin import site
class PageAdminForm(forms.ModelForm):
class Meta:
model = models.Page
exclude = ("slug",)
widgets = {
"text": MarkdownWidget
... |
require 'sage_one/connection'
require 'sage_one/request'
module SageOne
# This module helps with setting up the OAuth connection to SageOne. After the two
# step process you will have an access_token that you can store and use
# for making future API calls.
# @see OAuth#authorize_url Step 1 - Authorisation requ... |
package fundamentals.list.twopointers.<API key>;
import fundamentals.list.ListNode;
/**
* Given a linked list, determine if it has a cycle in it.
* Follow up: Can you solve it without using extra space?
*/
public class Solution {
// My 3AC.
// My 2nd
// Error: it's ok to put behind, since they will encou... |
package types
// DO NOT EDIT. THIS FILE WAS AUTOMATICALLY GENERATED
// <API key> - no documentation
type <API key> struct {
// EmpRecordId - no documentation
EmpRecordId int `json:"empRecordId,omitempty"`
// Id - no documentation
Id int `json:"id,omitempty"`
// ResourceTableId - no documentation
... |
//team list controller
app.controller("eventDCtrl",
// Implementation the todoCtrl
function($scope, Auth, $firebaseArray, $firebaseObject, $stateParams, $filter, Helper, ngDialog, $state) {
console.log("event detail");
//initialize
$scope.isManaging = false;
$scope.userdata = "";... |
/*
* dragtable
*
* @Version 1.0.3
*
* default css
*
*/
/*
* gets wrapped around placeholder table
*/
.<API key>{
position: absolute;
z-index: 1000;
}
/*
* this gets applied to the table copy of the col that we are dragging
*/
.<API key> .dragtable-drag-col{
opacity: 0.7;
filter: alpha(opac... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base data-ice="baseUrl" href="../../">
<title data-ice="title">buildDocs/memoizeAll.js | Lodash Decorators Documentation API Document</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<link type="text/css" rel="stylesheet" href="css/pret... |
#ifndef <API key>
#define <API key>
#include "<API key>.h"
#include "equality.h"
#include "paul_hsieh_hash.h"
#include "thomas_wang_hash.h"
#include <google/sparse_hash_map>
#include <google/dense_hash_map>
using namespace std;
using google::sparse_hash_map;
using google::dense_hash_map;
//typedef struct page_edge_t pa... |
# Node Image Manipulator
[ page.
## Sending Images
The server is made to intercept `.png` images. We have a simple bash scri... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace ForumSystem.Web
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{... |
// Adaptive music composition engine implementation for interactive systems.
using UnityEngine;
using System.Collections;
namespace BarelyAPI
{
public class <API key> : MacroGenerator
{
ContextFreeGrammar grammar;
public <API key>(int length, bool looping = false)
: base(length, lo... |
from weight.weight_vector import WeightVector
from data.data_pool import DataPool
import os
from learner import logger
__version__ = '1.0.0'
class <API key>:
name = "<API key>"
def __init__(self, w_vector=None):
self.w_vector = {}
if w_vector is None:
return
if not isinstance... |
class <%= class_name.underscore.camelize %> < ActiveRecord::Migration
def self.up
create_table '<%= tags_table %>', :force => true do |table|
table.string 'name', :null => false
end
add_index '<%= tags_table %>', 'name', :unique => true
create_table '<%= taggings_table %>', :force => true do |ta... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="js/lib/jqueryeasyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="js/lib/jqueryeasyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="js/lib/jqu... |
<input type="text" ng-model="search"/>
<ul>
<li ng-repeat="project in projects | filter:search | orderBy:'name'">
<a ng-href="{{project.site}}">{{project.name}}</a>
<span>{{project.description}}</span>
<a ng-href="#/edit/{{project.$id}}"><i class="icon-pencil"></i></a>
<a ng-click="r... |
# coding=utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
from typing import TYPE_CHECKING
import warnings
from azure.core.exceptions import <API key>, HttpResponseError, ResourceExistsError, <API key>, map_error
from az... |
require 'test_helper'
class <API key> < ActionController::TestCase
setup do
@link_request = link_requests(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:link_requests)
end
test "should get new" do
get :new
assert_response :success
end... |
<?php
namespace application\nutsNBolts\plugin\workflow
{
use nutshell\Nutshell;
use nutshell\core\plugin\PluginExtension;
class Action extends PluginExtension
{
private $db =null;
private $model =null;
public function init()
{
if ($connection=Nutshel... |
package jobs
import (
"fmt"
"github.com/nubleer/revel"
"github.com/nubleer/revel/modules/jobs/app/jobs"
"github.com/nubleer/revel/samples/booking/app/controllers"
"github.com/nubleer/revel/samples/booking/app/models"
)
// Periodically count the bookings in the database.
type BookingCounter struct{}
... |
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
// copies or substantial portions of... |
#include <algorithm>
#include <cmath>
#include <cctype>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define FOR(i,a,b) for (int i = a; i <= b; i++)
#define FORN(i,N) for (int i = 0; i < N; i++)
#define FORD(i,a,b) for (int i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.