answer stringlengths 15 1.25M |
|---|
{% extends '__base__.html' %}
{% block title %}{% endblock %}
{% block beforehead %}
<script>
var
action = '{{ action }}';
function initVM(account) {
var vm = new Vue({
el: '
data: account,
methods: {
submit: function (event) {
this.$data.date = $('#date').val... |
class <API key> < ActiveRecord::Migration
def change
remove_column :users, :od_token
end
end |
(function() {
angular.module('starter.controllers').controller('DetailController', DetailController);
DetailController.$inject = ['CarService', '$stateParams'];
function DetailController (CarService, $stateParams) {
var vm = this;
CarService.getCar($stateParams.id).$promise.then(function(data) {
v... |
# Deploying Development Office 365 Sites to Microsoft Azure #
Summary
When developing any type a web application, most development is done locally using http://localhost. Some projects use local resources or a mix of local and remote resources. Taking these projects from local development environments involves a handfu... |
# -*- coding: utf-8 -*-
import unittest
from hanspell import spell_checker
from hanspell.constants import CheckResult
from textwrap import dedent as trim
class SpellCheckerTests(unittest.TestCase):
def setUp(self):
pass
def test_basic_check(self):
result = spell_checker.check(u' . . .')
... |
<?php declare(strict_types=1);
namespace Composer\DependencyResolver;
use Composer\Filter\<API key>\<API key>;
use Composer\Filter\<API key>\<API key>;
use Composer\Filter\<API key>\<API key>;
use Composer\Package\BasePackage;
use Composer\Package\AliasPackage;
/**
* @author Nils Adermann <naderman@naderman.de>
* @ph... |
THREE.DepthPassPlugin = function () {
this.enabled = false;
this.renderTarget = null;
var _gl,
_renderer,
_lights, _webglObjects, <API key>,
_depthMaterial, _depthMaterialMorph, _depthMaterialSkin, <API key>,
_frustum = new THREE.Frustum(),
_projScreenMatrix = new THREE.Matrix4(),
_r... |
import path from 'path'
let { context, file, mocha, options } = module.parent.context
let { it } = context
context.it = function (name, callback) {
if (callback) {
return it(...arguments);
} else {
callback = name
name = path.basename(file, '.js')
}
} |
package net.docusign.sample;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.Enumeration;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.UUID;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.h... |
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# copies or substantial portio... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_45) on Mon Aug 31 23:15:52 CEST 2015 -->
<title>Uses of Interface starkcoder.failfast.fails.objects.floats.<API key> (FailFast v.1.3)</title>
<meta name="date" content="2015-08-31">
<link rel="stylesheet" type="te... |
using System.Linq;
using EspaceClient.FrontOffice.Business.Depots;
using EspaceClient.FrontOffice.Domaine;
namespace EspaceClient.FrontOffice.Data.Depots
{
public partial class DepotTypeRenduBloc : Depot<TypeRenduBloc>, IDepotTypeRenduBloc
{
public TypeRenduBloc GetByCode(string code, string codeTypeBlo... |
# lnet update 2015-03-28
Now multi-httpserver supported! See 'httpserver.lua'.
# lnet update 2015-03-25
Now cosocket supported!
What is cosocket? 'cosocket' is a socket API wapper for http handlers in lnet httpserver. It provides tcp/udp block operations but actually non-block in lnet httpserver thread. Yes, the name '... |
'use strict'
const { EventEmitter } = require('events')
const { Multiaddr } = require('multiaddr')
/**
* @typedef {import('libp2p-interfaces/src/transport/types').Listener} Listener
*/
/**
* @param {import('../')} libp2p
* @returns {Listener} a transport listener
*/
module.exports = (libp2p) => {
const listening... |
using System.Collections.Generic;
namespace BlobTransfer
{
public class TransferResult
{
public List<string> Succeeded { get; set; } = new List<string>();
public List<string> Skipped { get; set; } = new List<string>();
public List<string> Failed { get; set; } = new List<string>();
}... |
<H1>CARDS LIST</h1>
<div ng-repeat="card in CardCtrl.cardlist" ng-bind="card.title"></div> |
(function() {
$(function() {
$('.tooltip-examples a, .<API key> a').tooltip({
animation: false
});
$('.top-sign-in').on("click", function(e) {
$('.login-box').fadeIn("fast");
return false;
});
$('.login-box-close').on("click", function(e) {
$(this).closest(".login-box").fad... |
# Testing rufus-sixjo
# jmettraux at gmail.org
# Fri Aug 8 15:14:45 JST 2008
require 'test/unit'
require 'testmixins'
# the "test" app
module HeadApp
extend Rufus::Sixjo
get '/toto' do
"toto"
end
end
class HeadTest < Test::Unit::TestCase
include SixjoTestMixin
def setup
@app = HeadApp.new_sixjo_rack_... |
@font-face {
font-family: 'UbuntuRegular';
src: url('<API key>.eot');
src: url('<API key>.eot?iefix') format('eot'),
url('<API key>.woff') format('woff'),
url('<API key>.ttf') format('truetype'),
url('<API key>.svg#webfontHLBpjp3B') format('svg');
font-weight: normal;
font... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<!-- [Dependencies[ -->
<script src="transform.js"></script>
<style type="text/css">
body {
background: #0040... |
using Owin;
using SimpleInjector;
using SimpleInjector.Extensions.<API key>;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Reporter.WebAPI.Infrastructure.Owin
{
public static class <API key>
{
public static void <API key>(this IAppBuilder app, Container c... |
# heppyplot
A package for plotting histogrammed data with special support for high energy physics applications.


## Installation
Currently we use a custom fork of the excellent [seaborn](http://stanford.edu/~... |
# BSD Licenced. See LICENCE.rdoc for details.
# Taverna Player was developed in the BioVeL project, funded by the European
# Commission 7th Framework Programme (FP7), through grant agreement
# number 283359.
class TavernaPlayer::RunsController < <API key>
# Do not remove the next line.
include TavernaPlayer::Concer... |
package com.pablodomingos.classes.rps.servicos;
import java.io.IOException;
import org.apache.commons.io.IOUtils;
import org.junit.Assert;
import org.junit.Test;
import com.pablodomingos.classes.<API key>;
public class LoteRpsConsultaTest {
@Test
public void <API key>() throws IOException{
String xmlTest = IOUt... |
var common = require('../common');
var connection = common.createConnection({port: common.fakeServerPort});
var assert = require('assert');
var server = common.createFakeServer();
var connectErr;
server.listen(common.fakeServerPort, function(err) {
if (err) throw err;
connection.connect(function(err) {
... |
/*!40101 SET @<API key>=@@<API key> */;
/*!40101 SET NAMES utf8mb4 */;
/*!40014 SET @<API key>=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='<API key>' */;
-- Export de la structure de la base pour chacal
CREATE DATABASE IF NOT EXISTS `chacal` /*!40100 DEFAULT CHARACTER... |
import { Component, Input } from '@angular/core';
import * as _ from 'lodash';
@Component({
selector: '<API key>',
template: `
<div class="info-header">
<div class="info-header-buttons">
<span
class="vendor-logo-link"
[ngStyle]="getButtonStyle(<API key>(componentStatus))"
(mouseo... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.AccessControl;
using System.Text;
using System.Threading.Tasks;
namespace DynamicSerializer.Test
{
public class IX
{
public int IP { get; set; }
}
[Serializable]
public class A
{
public A()
... |
#ifndef _HC_EXCEPTION_HPP_
#define _HC_EXCEPTION_HPP_
// Includes //
#include <exception>
#include <string>
// Code //
// To distinguish between different HCExceptions.
enum HCType {
// When the game cannot open the SDL window.
HC_WINDOW_EXCEPTION,
// When the game cannot load an asset, or it has been destr... |
<?php
namespace Proxies\__CG__\Cabinet\PatientBundle\Entity;
/**
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
*/
class Patient extends \Cabinet\PatientBundle\Entity\Patient implements \Doctrine\ORM\Proxy\Proxy
{
private $_entityPersister;
private $_identifier;
public $__isInitial... |
//package sgl.scene
//package ui
** SceneElement that is part of a layout
// * This is the root class providing logic for
// * how to render widgets in a hierarchical user
// * interface.
//abstract class Widget(_x: Float, _y: Float) extends SceneElement(_x, _y) {
// def minWidth: Float
// def minHeight: Float
// ... |
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
box-shadow: 0 6px 25px 0 rgba(0,0,0,.25);
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
cursor:poin... |
export default {
cartCommodityCount: state => {
const totalCount = state.cartList.reduce((total, commodity) => {
return total + Number(commodity.count)
}, 0)
return totalCount
},
<API key>: state => {
const totalCount = state.removeCartList.reduce((total, commodity) => {
return total +... |
<template name="odd-one-out">
<!-- Template for odd-one-out exercise -->
<section class="mainSection">
<form>
<input name=exercisesID type="hidden" value={{_id}}>
<input name=type type="hidden" value={{type}}>
{{#each options}}
<div class="checkbox">... |
require "uri"
require "net/http"
module JingdongFu
module Rest
class << self
def get(url, hashed_vars)
res = request(url, 'GET', hashed_vars)
process_result(res, url)
end
def post(url, hashed_vars)
res = request(url, 'POST', hashed_vars)
process_result(res, url)
... |
package source
import (
log "github.com/Sirupsen/logrus"
"github.com/howardplus/lirest/describe"
"github.com/howardplus/lirest/util"
"os"
"strconv"
"strings"
"time"
)
// Extractor returns a generic data based
// on the converter.
// An object that implements the Extractor interface needs
// ... |
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;
using Cognifide.PowerShell.Core.Extensions;
using Sitecore.Data.Items;
using Sitecore.Layouts;
namespace Cognifide.PowerShell.Commandlets.Presentation
{
[Cmdlet(VerbsCommon.Get, "Rendering")]
[OutputType(typeof (RenderingDe... |
package com.darksci.pardot.api.parser.user;
import com.darksci.pardot.api.parser.JacksonFactory;
import com.darksci.pardot.api.parser.ResponseParser;
import com.darksci.pardot.api.response.user.<API key>;
import java.io.IOException;
/**
* Handles parsing UserAbilities API responses into POJOs.
*/
public class UserAbi... |
<?php
namespace App\Controller;
use Core\http;
use Core\view;
use Core\db;
class main
{
protected $http;
protected $view;
protected $db;
public function __construct()
{
$this->http = new http();
$this->view = new view();
$this->db = new db();
}
} |
<?php
namespace CodingMatters\EmployeeTest;
use PHPUnit\Framework\TestCase;
class ModuleConfigTest extends TestCase
{
public function testConfigProvider()
{
$this->markTestIncomplete("Not yet implemented");
}
} |
#import <UIKit/UIKit.h>
FOUNDATION_EXPORT double <API key>;
FOUNDATION_EXPORT const unsigned char <API key>[]; |
//this controller simply tells the dialogs service to open a mediaPicker window
//with a specified callback, this callback will receive an object with a selection on it
angular.module('umbraco')
.controller("Umbraco.PropertyEditors.<API key>",
function ($rootScope, $routeParams, $scope, $log, mediaHelper, cropp... |
package data_struct.in_class.d10_02;
/**
* A class to test basic 'Object' methods
*
* @author Eddie Gurnee
* @version 10/02/13
* @see TestingSam
*
*/
public class Sam {
public int mikesplan = 8;
/**
* No argument constructor for the Sam class
*
*/
public Sam() {
}
/**
* In... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>URI.js - URI-Template</title>
<meta name="description" content="URI.js is a Javascript library for working with URLs." />
<script src="jquery-3.6.0.min.js" ty... |
DVScrollBar
Usage:
Place this control in your panel. You will ideally have another panel or
control which is bigger than the original panel. This is the Canvas.
scrollbar:SetUp( _barsize_, _canvassize_ ) should be called whenever
the size of your 'canvas' changes.
scrollbar:GetOffset() c... |
__author__ = 'brianoneill'
from log_calls import log_calls
global_settings = dict(
log_call_numbers=True,
log_exit=False,
log_retval=True,
)
log_calls.set_defaults(global_settings, args_sep=' $ ') |
angular.module('phonebook')
.config(['$urlRouterProvider','$stateProvider',function($urlRouterProvider,$stateProvider){
$stateProvider
// Greeting State
.state('user.main',{
url : '/',
templateUrl : 'user/view/welcome.html',
controller ... |
<!DOCTYPE html>
<html ng-app="myapp">
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?php echo base_url() ?>css/bootstrap.min.css">
<style>
</style>
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PineTree.Language.Syntax
{
public abstract class ExpressionTerminal : Expression
{
}
} |
<script>
var detail = $("#cb_post_title_url");
if (detail.text() !== ""){$("div#sideBar").hide();var mainArticleArea = $("div#mainContent");mainArticleArea.width("100%");mainArticleArea.css("margin-left","0");
$("div.forFlow #comment_form").css("margin-left","40px");
$("div.post h1.postTitle").after("<div id='mycpright... |
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>KeyExportOptions | <API key> API</title>
<meta name="description" content="Documentation for <API key> API">
<meta name="viewport" content="width=device-width, init... |
// <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 STextViewControl.Properties
{
[global::System.Runtime.CompilerServices.<API key>()]
[global::System.CodeDom.Co... |
#include "Common.h"
#include "Script.h"
#include <atlimage.h>
#include <hidsdi.h>
#include <SetupAPI.h>
#define HID_SFIP 'SFIP'
#define HID_X52P 'X52P'
#define HID_UNKN 'UNKN'
// CHECKME : Do we still need all this code since we now have a GetSerialNumber() in the DO API?
DeviceManager *DevMan = De... |
game.TitleScreen = me.ScreenObject.extend({
init: function(){
this.font = null;
},
onResetEvent: function() {
me.audio.stop("theme");
game.data.newHiScore = false;
me.game.world.addChild(new BackgroundLayer('bg', 1));
me.input.bindKey(me.input.KEY.ENTER, "enter", true);
me.input.bindKey(me... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>First Steps Into PHP</title>
</head>
<body>
<form>
X: <input type="text" name="num1" />
Y: <input type="text" name="num2" />
Z: <input type="text" name="num3" />
<input type="submit" />
</form>
<?ph... |
'use strict';
var _ = require('underscore'),
Util = require('../../shared/util'),
Base = require('./base'),
Action = require('../../action'),
Types = require('./types');
var _parent = Base.prototype;
var RandomWalk = Util.extend(Base, {
properties: ['walkPropability'],
t... |
<?php
/* SRVDVServerBundle:ChangePassword:changePassword.html.twig */
class <API key> extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
'fos_user_content' => array($this, '<API... |
#ifndef <API key>
#define <API key>
#include <mysql++.h>
#include <vector>
#include "dbConfig.h"
namespace model {
namespace manager {
template<class ModelName>
class baseManager {
public:
baseManager() {
try {
_con.connect(db_name, db_ip, db_u... |
<?php
declare(strict_types=1);
namespace Eelly\SDK\Order\Api;
use Eelly\SDK\Order\Service\OfflineInterface;
/**
* @author shadonTools<localhost.shell@gmail.com>
*/
class Offline implements OfflineInterface
{
/**
* @return self
*/
public static function getInstance(): self
{
static $insta... |
#!/bin/sh
set -e
echo "mkdir -p ${<API key>}/${<API key>}"
mkdir -p "${<API key>}/${<API key>}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRODUCTS_DIR}/$1"
elif [ -r "${BUILT_PRODUCTS_DIR}/$(basen... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Rice Diseases</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="static/bootstrap.min.css">
<script src="static/jquery.min.js"></script>
<script src="static/bootstrap.min.js"></script... |
import_module('Athena.Math');
m1 = new Athena.Math.Matrix3(1, 2, 3,
4, 5, 6,
7, 8, 9);
for (var row = 0; row < 3; ++row)
{
for (var col = 0; col < 3; ++col)
CHECK_CLOSE(row * 3 + col + 1, m1.get(row, col));
} |
<?php
/**
* The default template for displaying content
*
* Used for both single and index/archive/search.
*
* @package FoundationPress
* @since FoundationPress 1.0.0
*/
?>
<div id="post-<?php the_ID(); ?>" <?php post_class('blogpost-entry'); ?>>
<header>
<h2><a href="<?php the_permalink(); ?>"><?php... |
class <API key> < ActiveRecord::Migration
def up
change_column :users, :user_data, :text, :limit => nil
end
def down
end
end |
<?php
?>
<?php
class PostNuke_User extends Abstract_User {
function loadByUid($uid) {
global $name; /* Gallery PN module name */
if (ereg("[^0-9]", $uid)) {
$newuser = new NobodyUser();
foreach ($newuser as $k => $v) {
$this->$k = $v;
}
... |
import Objective from '../objective';
export default class KillShipsObjective extends Objective {
constructor (game, ships) {
super(game);
if (!Array.isArray(ships)) {
ships = [ships];
}
this.bots = _.filter(ships, ship => { return ship.alive; });
this.ships = shi... |
body {
background-color:#948664;
font-size:16px;
font-family:Georgia, "Times New Roman", Times, serif;
color:#F4ECD3;
text-shadow:-1px -1px 5px #000;
padding:0;
margin:0;
}
a {
color:#fbfcef;
}
a:visited {
color:#eed69b;
}
a:hover {
color:#d7bc7b;
}
a:active {
color:#eed69b;
... |
export * from './privacy.component'; |
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-... |
@charset "utf-8";
body {
color: #7d7d7d;
/*background: #f5f4f2;*/
font-size: .875rem;
line-height: 24px;
background: #eeede8;
}
h1, h2, h3, h4, h5, h6, ul, li, ol, p {
margin: 0;
padding: 0;
}
a {
color: #7d7d7d;
text-decoration: none;
cursor: pointer;
}
a:hover {
color: #54a... |
.highlight {
padding: 1px 3px;
font-weight: bold;
background-color: #fff34d;
-moz-border-radius: 6px;
-<API key>: 6px;
border-radius: 6px;
-moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
-webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
} |
package org.hibernate.test.annotations.cascade;
import java.util.HashSet;
import org.junit.Test;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.testing.junit4.<API key>;
import static org.junit.Assert.fail;
/**
* @author Jeff Schnitzer
* @... |
System.config({
baseURL: ".",
defaultJSExtensions: true,
transpiler: "babel",
babelOptions: {
"optional": [
"runtime",
"optimisation.modules.system"
]
},
paths: { |
// languages index
var localeIndex = {
"en" : 0,
"ja" : 1,
"es" : 2,
"hu" : 3,
"lt" : 4,
"ru" : 5,
"it" : 6,
"pt" : 7,
"sp_ch" : 8,
"fr" : 9,
"ge" : 10,
"ua" : 11,
"lv" : 12,
"no" : 13,
"pt_br" : 14
}; |
<?php
function includeIfExists($file)
{
return file_exists($file) ? include $file : false;
}
if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../../autoload.php'))) {
echo "Cannot find an autoload.php file, have you executed composer install command... |
<html><body>
<h4>Windows 10 x64 (18363.836)</h4><br>
<h2>_LUID</h2>
<font face="arial"> +0x000 LowPart : Uint4B<br>
+0x004 HighPart : Int4B<br>
</font></body></html> |
#ifndef _IRC_COMM_H_
#define _IRC_COMM_H_
#include "utility_sys.h" /* useful macros, definitions and libraries */
#define NO_FLAGS 0 /* used for functions where no flag argument is used. */
/* Server connectivity information */
#define _COM_SERV_ADDR "10.200.248.135"
#define _COM_SERV_LEN sizeof(_COM_SERV_ADDR)
#... |
# Scala Documentation
* [Command Line Input](command-line-input/command-line-input.md)
* [String](string/string.md)
* [Array](array/array.md)
* [List](list/list.md)
* [Vector](vector/vector.md)
* [Iterator](iterator/iterator.md)
* [HashMap](hashmap/hashmap.md)
* [Math](math/math.md) |
define(['exports'], function (exports) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var globalExtraOptions = exports.globalExtraOptions = {
<API key>: {
class: 'class',
content: 'content',
disabled: 'disabled',
divider: 'divider',
groupLabe... |
#ifndef <API key>
#define <API key>
/*!\brief Auxiliary class template for the data members of the Subvector class.
// \ingroup subvector
//
// The auxiliary SubvectorData class template represents an abstraction of the data members of
// the Subvector class template. The necessary set of data members is selected depen... |
# <API key>: true
require 'sunrise/config/base'
require 'sunrise/config/has_fields'
module Sunrise
module Config
class Form < Base
include Sunrise::Config::HasFields
include Sunrise::Config::HasGroups
# List of permissible attributes
<API key> :permited_attributes do
:all
end... |
"""
Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not
unary) +, -, or * between the digits so they evaluate to the target value.
Examples:
"123", 6 -> ["1+2+3", "1*2*3"]
"232", 8 -> ["2*3+2", "2+3*2"]
"105", 5 -> ["1*0+5","10-5"]
"00", 0 -> ["0+0", "0... |
package softuni.io;
import org.springframework.stereotype.Component;
import java.io.*;
@Component
public class FileParser {
public String readFile(String path) throws IOException {
StringBuilder stringBuilder = new StringBuilder();
try (InputStream is = this.getClass().getResourceAsStream(path);
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>bignums: 2 m 35 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="s... |
{
test.ok(
thrown instanceof axios.Cancel,
"Promise must be rejected with a Cancel obejct"
);
test.equal(thrown.message, "Operation has been canceled.");
test.done();
} |
using System;
namespace EasyNetQ
{
public class EasyNetQException : Exception
{
public EasyNetQException() {}
public EasyNetQException(string message) : base(message) {}
public EasyNetQException(string format, params string[] args) : base(string.Format(format, args)) {}
public Ea... |
function closeObject(id) {
document.getElementById(id).style.display = 'none';
}
function openObject(id) {
document.getElementById(id).style.display = 'block';
}
function openClose(id){
if (document.getElementById(id).style.display == 'block'){
console.log('intenta cerrar');
closeObject(id);
... |
import {Component, OnInit, ElementRef,} from '@angular/core';
import {FileSelect} from './file.select';
import {NgIf} from '@angular/common';
import {NgForm} from '@angular/common';
import {CostImport, CostImportService} from '../../../services/cost-import-service';
import {FourcastService} from '../../../services/f... |
#include <iostream>
#include <string>
#include<iomanip>
using namespace std;
int main()
{
string a;
double h,m,x;
while(cin>>a)
{
if(a=="0:00")break;
if(a[1]==':')
{
h=a[0]-'0';
m=(a[2]-'0')*10+(a[3]-'0');
}
else if... |
<?php
namespace HealthCareAbroad\LogBundle\Repository;
use Doctrine\ORM\EntityRepository;
/**
* ErrorLogRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ErrorLogRepository extends EntityRepository
{
} |
# SilkSlider
[:
sh
gem install SilkSlider
Als... |
<?php
namespace Mopa\Bundle\BootstrapBundle\Menu\Factory;
use Knp\Menu\Factory\ExtensionInterface;
use Knp\Menu\ItemInterface;
/**
* Extension for integrating Bootstrap Menus into KnpMenu.
*/
class MenuExtension implements ExtensionInterface
{
/**
* Builds a menu item based.
*
* @param ItemInterfac... |
<?php
require_once "class_db.php";
class qly_pages extends db{
public function LayTieuDeKD($idPa){
$sql="SELECT TieuDeKD FROM mk_pages WHERE idPa = '$idPa'";
$kq = mysql_query($sql,$this->conn);
$row_trang = mysql_fetch_assoc($kq);
return $row_trang['TieuDeKD'];
}
public fun... |
/* eslint-env node*/
var gutil = require('gulp-util')
var paths = {
layouts: {
componentsDir: './app/components*.jade',
src: './app/views*.jade',
dest: './app/public/assets/html/'
},
styles: {
componentsDir: './app/lib/stylesheets*.styl',
src: './app/lib/stylesheets/styles.styl',
dest: './... |
#ifndef _DATA_H_
#define _DATA_H_
#include <xcb/xcb.h>
#include <xcb/damage.h>
#define XTOQ_DAMAGE 0
#define XTOQ_EXPOSE 1
#define XTOQ_CREATE 2
#define XTOQ_DESTROY 3
typedef struct xtoq_context_t {
xcb_connection_t *conn;
xcb_drawable_t window;
xcb_window_t parent;
xcb_damage_damage_t damage;
int ... |
# Lecture 1: Mathematical background
This lecture aims at introducing the mathematical concepts we will be using throughout the course (linear algebra, calculus, statistics, numerical optimization).
Note that this does not serve as a mathematics course in itself.
The students interested in a more formal and academic ap... |
from django.contrib import admin
from .models import Question
# Register your models here.
admin.site.register(Question) |
<!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" lang="es"> <!--<![endif]-->
<head>
<... |
/**
*
* app.js
*
* This is the entry file for the application
*
*/
import <API key> from '../MovieSearchApp/Containers/FilmSearchContainer/FilmSearchComponent';
import AppComponent from '../CommonComponent/app.js';
import React from 'react';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.