code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
<div class="usermanager_profile_edit">
<ion:usermanager request="form" attr="has_errors" form_name="profile_save">
<div class="greentab"><div class="greentab_head"><div><div><div><ion:translation term="module_usermanager_text_error" /></div></div></div></div><div class="greentab_content"><div><div>
<div class="us... | Java |
# YUMMY License
> **YoU make Money, I make MoneY.** If you don't make money using it, you are allowed to use the Software for free.
1. Permission is hereby granted to any person obtaining (A) a copy of this software and (B) a license code issued on [backpackforlaravel.com](https://backpackforlaravel.com) (the "Softwa... | Java |
from django.db import models
from django.core.urlresolvers import reverse
class Software(models.Model):
name = models.CharField(max_length=200)
def __unicode__(self):
return self.name
def get_absolute_url(self):
return reverse('software_edit', kwargs={'pk': self.pk})
| Java |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Децентрализированное Хранилище Данных</title>
<link rel="stylesheet" href="/bootstrap-3.3.7/css/bootstrap.min.cs... | Java |
#!/usr/bin/python3
"""
This bot uploads text from djvu files onto pages in the "Page" namespace.
It is intended to be used for Wikisource.
The following parameters are supported:
-index:... name of the index page (without the Index: prefix)
-djvu:... path to the djvu file, it shall be:
... | Java |
// Copyright 2015 LastLeaf, LICENSE: github.lastleaf.me/MIT
'use strict';
var fs = require('fs');
var fse = require('fs-extra');
var async = require('async');
var User = fw.module('/db_model').User;
var exports = module.exports = function(conn, res, args){
User.checkPermission(conn, 'admin', function(perm){
if(!p... | Java |
# opencfp-vote
| Java |
{{ _("test1") }}
{{ _('test2') }}
{{ _ 'test3' }}
{{ _ "test3.1" _ 'test4' _ "test5" }}
<%=_("test6")%>
<%= _("test7") %> | Java |
/*
* Copyright 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | Java |
package edu.brown.cs.pianoHeroFiles;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileRea... | Java |
$( document ).ready( function () {
$( "#form" ).validate( {
rules: {
company: { required: true },
truckType: { required: true },
materialType: { required: true },
fromSite: { required: true },
toSite: { required: true },
hourIn: { required: true },
hourOut: { required: true... | Java |
# QCWeChatPay
- 微信 APP 支付 Demo
- 开发环境:Xcode 8.2,WeChatSDK-1.7.5,AFNetworking-3.1.0
- 微信 APP 支付集成说明见 [QianChia 的博客](http://www.cnblogs.com/QianChia/p/6206153.html)。
| Java |
var axios = require("axios");
var expect = require("chai").expect;
var MockAdapter = require("../src");
describe("MockAdapter asymmetric matchers", function () {
var instance;
var mock;
beforeEach(function () {
instance = axios.create();
mock = new MockAdapter(instance);
});
it("mocks a post reque... | Java |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdatePagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table(
'pages... | Java |
'use strict';
var intlNameInitials = function () {
};
var pattern = '{0}{1}';
function _firstLetter(text) {
return text.charAt(0);
}
function _upperCase(letter) {
if (letter === 'ı'){
return 'I';
}
return letter.toUpperCase();
}
function _isHangul(l){
if ((l > 44032) && (l < 55203)) {... | Java |
export default [
{
radius: 6,
sizeReduction: .85,
branchProbability: 0.12,
rotation: new THREE.Vector3(0, 1, 0),
color: 'blue'
},{
radius: 6,
sizeReduction: .85,
branchProbability: 0.21,
rotation: new THREE.Vector3(0, 1, 0),
color: 'blue'
},{
radius: 3,
sizeReduction: .87... | Java |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lv_LV" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Hirocoin</source>
<translation>Par Hirocoin</translation>
</m... | Java |
VERSION := 1.1a
ROOT := $(shell pwd)
PATH := $(ROOT)/.luvit:$(PATH)
all: module
test: module
checkit tests/*
module: build/slnunicode/unicode.luvit
build/slnunicode/unicode.luvit: build/slnunicode/slnunico.c
$(CC) $(shell luvit-config --cflags | sed 's/ -Werror / /') -DluaI_openlib=luaL_openlib -shared -o ... | Java |
setTimeout(() => {
import(/* webpackPreload: true */ "./lazy-chunk-2.js").then((mod) =>
mod.test()
);
}, 750);
| Java |
/*
@font-face
{
font-family: 'Gotham-Book';
src: url(Gotham-Book.otf);
src: local('Gotham-Book'), local('Gotham-Book'), url(Gotham-Book.otf) format('opentype');
}
@font-face {
font-family: 'Muli';
font-style: normal;
font-weight: 400;
src: local('Muli'), url('http://themes.googleusercontent.com/s... | Java |
<?php declare(strict_types=1);
namespace Tests\Tsufeki\HmContainer\Definition;
use PHPUnit\Framework\TestCase;
use Psr\Container\ContainerInterface;
use Tsufeki\HmContainer\Definition\Reference;
/**
* @covers \Tsufeki\HmContainer\Definition\Reference
*/
class ReferenceTest extends TestCase
{
public function te... | Java |
using NSubstitute;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
namespace PoshGit2.TabCompletion
{
public class TabCompletionTests
{
private readonly ITestOutputHelper _log;
... | Java |
package org.fayalite.sjs
import org.fayalite.sjs.canvas.CanvasBootstrap
import org.scalajs.dom
import org.scalajs.dom.Node
import org.scalajs.dom.raw.CanvasRenderingContext2D
import org.scalajs.dom.raw.HTMLCanvasElement
import rx.core.{Rx, Var}
/**
* Created by aa on 3/17/2016.
*/
object Schema extends SJSHelp {... | Java |
var Purest = require('purest');
function Facebook(opts) {
this._opts = opts || {};
this._opts.provider = 'facebook';
this._purest = new Purest(this._opts);
this._group = 'LIB:SOCIAL:FACEBOOK';
return this;
}
Facebook.prototype.user = function (cb) {
var self = this;
this._purest.query()
... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<title>Note Detail</title>
<script
src="http://code.jquery.com/jquery-2.2.4.min.js"
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
cr... | Java |
<?php
namespace Lollipop;
defined('LOLLIPOP_BASE') or die('Lollipop wasn\'t loaded correctly.');
/**
* Benchmark Class
*
* @author John Aldrich Bernardo
* @email 4ldrich@protonmail.com
* @package Lollipop
* @description Class for recording benchmarks
*/
class Benchmark
{
/*... | Java |
#include <windows.h>
#include "NativeCore.hpp"
bool RC_CallConv IsProcessValid(RC_Pointer handle)
{
if (handle == nullptr)
{
return false;
}
const auto retn = WaitForSingleObject(handle, 0);
if (retn == WAIT_FAILED)
{
return false;
}
return retn == WAIT_TIMEOUT;
}
| Java |
#!/usr/bin/env bash
# build datatheme resources
# usage: $ bash ./publi.sh
# build & deploys datatheme resources to host s3 bucket
# usage: $ bash ./publi.sh put dev.afgo.pgyi
# dependencies:
# aws cli : http://aws.amazon.com/cli/
# nodejs : https://nodejs.org/
# bawlk : https://github.com/tesera/bawlk
datatheme_ro... | Java |
#ifndef SKULL_SERVICE_TYPES_H
#define SKULL_SERVICE_TYPES_H
#include "api/sk_txn.h"
#include "api/sk_service.h"
struct _skull_service_t {
sk_service_t* service;
const sk_txn_t* txn;
sk_txn_taskdata_t* task;
// If freezed == 1, user cannot use set/get apis to touch data. Instead
// user s... | Java |
# read only
In leveldb you may only open an instance in one process...
but you could have other processes open the database in read only mode
easily enough. You could also have each instance create it's own memtable,
(and tail other's memtables... as long as there weren't too many)
then you could have eventual consis... | Java |
#ifndef BITCOINGUI_H
#define BITCOINGUI_H
#include <QMainWindow>
#include <QSystemTrayIcon>
#include <QLabel>
#include <QMap>
#include "util.h"
class TransactionTableModel;
class WalletView;
class ClientModel;
class WalletModel;
class WalletStack;
class TransactionView;
class OverviewPage;
class AddressBookPage;
cl... | Java |
package dev.jee6demo.jspes;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.... | Java |
<?php
/**
* This file is part of the PrestaCMSThemeBasicBundle
*
* (c) PrestaConcept <www.prestaconcept.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Presta\CMSThemeBasicBundle\DependencyInjection;
use Symfony\Com... | Java |
using System;
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace XF_ManySwitches.Droid
{
[Activity(Label = "XF_ManySwitches", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | Con... | Java |
describe('controllers/home', function () {
var di,
Core,
Home,
Type,
contentModel = {
findOne: function() {
}
},
widgetHooks = [],
widgetHook = {
load: function (a, b, c) {
widgetHooks.push({
... | Java |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | Java |
#ifndef APPSETTINGSSTORAGE_H
#define APPSETTINGSSTORAGE_H
#include <QDebug>
#include <QCoreApplication>
#include <QString>
#include <QMap>
#include <QSettings>
#include <QDir>
class AppSettingsStorage
{
public:
enum Settings {
ACCOUNT_LOGIN = 0,
ACCOUNT_PASS,
APP_RUN_ON_BOOT,
APP_S... | Java |
<?php
return array(
/** @brief Table de liaison avec les mots clés */
'table_liaison' => 'jayps_search_word_occurence',
/** @brief Préfixe de la table de liaison avec les mots clés */
'table_liaison_prefixe' => 'mooc_',
/** @brief mots clés interdits */
'forbidden_words' => array(
// ... | Java |
/* vim: set syntax=javascript ts=8 sts=8 sw=8 noet: */
/*
* Copyright 2016, Joyent, Inc.
*/
var BINDING = require('./lockfd_binding');
function
check_arg(pos, name, value, type)
{
if (typeof (value) !== type) {
throw (new Error('argument #' + pos + ' (' + name +
') must be of type ' + type));
}
}
functi... | Java |
'use strict';
angular.module('depthyApp')
.controller('DrawCtrl', function ($scope, $element, depthy, $window, $timeout) {
var drawer = depthy.drawMode,
viewer = depthy.getViewer(),
lastPointerPos = null,
oldViewerOpts = angular.extend({}, depthy.viewer);
drawer.setOptions(depthy.drawOpti... | Java |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BigBang</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... | Java |
<?php
function event_stat_alexa_calculated($ranks){
}
function event_stat_similarweb_calculated($ranks){
} | Java |
#include <stdio.h>
int main() {
int current_char, previous_char;
printf("Input text below, multiple spaces will be escaped:\n");
previous_char = -1;
while((current_char = getchar()) != EOF) {
if (!(current_char == ' ' && previous_char == ' ')) {
putchar(current_char);
}
previous_char = cu... | Java |
<!DOCTYPE html>
<html dir="rtl" lan="en">
<head>
<meta charset="utf-8">
<title>2018-AR-07-arrows</title>
<script>
window.stringsLanguage = 'ar';
</script>
<script class="remove" type="text/javascript" src="../../../_common/modules/pemFioi/importModules-1.1_M.js" id="i... | Java |
<ion-header>
<ion-navbar>
<ion-title>会议查询</ion-title>
<!-- <ion-buttons end (click)="presentPopover($event)">
<button ion-button icon-only>
<ion-icon name="search"></ion-icon>
</button>
</ion-buttons> -->
</ion-navbar>
<div>
<tab-slide (... | Java |
---
layout: tag_index
tag: libraries
---
| Java |
// ***********************************************************************
// <copyright file="AssemblyInfo.cs" company="Holotrek">
// Copyright © Holotrek 2016
// </copyright>
// ***********************************************************************
using System.Reflection;
using System.Runtime.CompilerServices... | Java |
<td>
{{item.name}}
</td>
<td>
{{item.age}}
</td>
<td>
{{item.sex}}
</td> | Java |
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class My_PHPMailer {
public function My_PHPMailer()
{
require_once('class.phpmailer.php');
}
}
?> | Java |
<?php
return array(
'service_manager' => array(
'factories' => array(
'Twilio\Options\ModuleOptions' => 'Twilio\Options\Factory\ModuleOptionsFactory',
'Twilio\Service\TwilioService' => 'Twilio\Service\Factory\TwilioServiceFactory'
)
)
);
| Java |
<?php
$lang['date_year'] = 'Ano';
$lang['date_years'] = 'Anos';
$lang['date_month'] = 'Mês';
$lang['date_months'] = 'Meses';
$lang['date_week'] = 'Semana';
$lang['date_weeks'] = 'Semanas';
$lang['date_day'] = 'Dia';
$lang['date_days'] = 'Dias';
$lang['date_hour'] = 'Hora';
$lang['date_hours'] = 'Horas';
$lang['date_min... | Java |
<!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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | Java |
// Package time extends the time package in the stdlib.
package time
| Java |
/* eslint-disable node/no-deprecated-api */
module.exports.pathBasename = pathBasename
module.exports.hasSuffix = hasSuffix
module.exports.serialize = serialize
module.exports.translate = translate
module.exports.stringToStream = stringToStream
module.exports.debrack = debrack
module.exports.stripLineEndings = stripLi... | Java |
Template.postSubmit.onCreated(function() {
Session.set('postSubmitErrors', {});
});
Template.postSubmit.helpers({
errorMessage: function(field) {
return Session.get('postSubmitErrors')[field];
},
errorClass: function (field) {
return !!Session.get('postSubmitErrors')[field] ? 'has-error' : '';
}
});
... | Java |
<?php
// Text
$_['text_sizechart'] = 'Größentabelle';
| Java |
package ru.mephi.interpreter;
import org.antlr.v4.runtime.tree.ParseTree;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author Anton_Chkadua
*/
public class Scope {
static Scope GLOBAL = new Scope(null);
private Scope parent;
private Map<Big... | Java |
# ServiceInfo.TryExcludeTag method
Attempts to exclude a tag from service.
```csharp
public bool TryExcludeTag(string tagName, out ServiceInfo service,
out IReadOnlyList<ServiceDefinitionError> errors)
```
## See Also
* class [ServiceDefinitionError](../ServiceDefinitionError.md)
* class [ServiceInfo](../Servi... | Java |
<?php
return array (
'id' => 'sec_e900_ver1_sub10',
'fallback' => 'sec_e900_ver1',
'capabilities' =>
array (
'accept_third_party_cookie' => 'false',
'j2me_max_jar_size' => '700000',
'ajax_support_getelementbyid' => 'true',
'ajax_support_events' => 'true',
),
);
| Java |
<?php
return array (
'id' => 'dell_streak_7_ver1_suban32',
'fallback' => 'dell_streak_7_ver1',
'capabilities' =>
array (
'device_os_version' => '3.2',
),
);
| Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Open Knowledge">
<meta name="description" content="The Global Open Data Index assesse... | Java |
#include <cstring>
#include <iostream>
#include <algorithm>
#include "matcher.h"
#include "edit.h"
#include "char.h"
#include "instrumentation.h"
#define INIT_POS -1
#define __DEBUG__ false
// the node represented by a given point
#define node(p) (distances[(p)->j][(p)->i])
// the edit distance at a given point, from... | Java |
/*!
* # Semantic UI 2.1.6 - Message
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2015 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*******************************
Message
*******************************/
.ui.message {
position: relat... | Java |
<?php
/*
* This file is part of the Beloop package.
*
* Copyright (c) 2016 AHDO Studio B.V.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Arkaitz Garro <arkaitz.garr... | Java |
6650 #include "types.h"
6651 #include "x86.h"
6652
6653 void*
6654 memset(void *dst, int c, uint n)
6655 {
6656 if ((int)dst%4 == 0 && n%4 == 0){
6657 c &= 0xFF;
6658 stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4);
6659 } else
6660 stosb(dst, c, n);
6661 return dst;
6662 }
6663
6664 int
6665 memcmp(const... | Java |
import { IQuotation } from '../../model/QuotationService/IQuotation';
export interface IQuoteDisplayProps {
quote: IQuotation;
}
| Java |
# Laravel 5.1 Generators
Some generators for Laravel 5.1
## Install
Require the package:
```sh
composer require bvw/laravel-generators dev-master
```
Add the service provider to **config/app.php** in Providers section:
```sh
BVW\Providers\GeneratorServiceProvider::class,
```
Run the generators:
```sh
php artisa... | Java |
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========--
--
-- Purpose: Payload class
--
--==========================================================================--
require( "engine.shared.typelenvalues" )
class "payload" ( "typelenvalues" )
payload._handlers = payload._handlers or {}
-- Ge... | Java |
version https://git-lfs.github.com/spec/v1
oid sha256:c4d5490597798effaf63d11e546f0b200f196f28e17c69d39ce236de0c6683f0
size 64139
| Java |
### 2019-03-10
diff between today and yesterday
#### python
* [pirate/ArchiveBox](https://github.com/pirate/ArchiveBox): The open source self-hosted web archive. Takes browser history/bookmarks/Pocket/Pinboard/etc., saves HTML, JS, PDFs, media, and more...
* [0xAX/linux-insides](https://github.com/0xAX/linux-insides)... | Java |
import { Component, DebugElement } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By, DOCUMENT } from '@angular/platform-browser';
import { TocComponent } from './toc.component';
import { TocItem, TocService } from 'app/shared/toc.service';
describe('TocCompon... | Java |
<style>
body {
padding: 0;
margin: 0;
}
#viewer {
background-color: #000;
color: #fff;
margin: 0px;
padding: 0;
overflow: hidden;
}
</style>
<div id="viewer"></div>
| Java |
/* omega - node.js server
http://code.google.com/p/theomega/
Copyright 2011, Jonathon Fillmore
Licensed under the MIT license. See LICENSE file.
http://www.opensource.org/licenses/mit-license.php */
var http=require("http");var om=require("./omlib");
var Omega={Request:function(req){var req;req={api:nul... | Java |
module Souschef
# Loads Souschef configuration YAML
class Config
# Public - Reads the configuration file
#
# Returns Hash
def self.read
verify_file
YAML.load_file(File.expand_path('~/.souschef.yml'))
end
# Private - Checks if we have a configuraiton file
#
# Returns nil
... | Java |
package main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net/url"
"os"
"os/user"
"path/filepath"
"strings"
"crypto/tls"
"net/http"
)
type configCommand struct {
config *ClientConfig
}
// skipVerifyHTTPClient returns an *http.Client with InsecureSkipVerify set
// to true for its TLS config.... | Java |
module PlazrStore
VERSION = "0.0.1"
end
| Java |
# This is needed to render the menu properly, according to user's actions.
# The first menu option has an index of 0. The lower option is, the higher index it has.
selectable-update-current-index() {
# In case Arrow Down was pressed.
if [ "$1" == $SELECTABLE_ARROW_DOWN ]; then
# If there are n... | Java |
/*
* TestProxy.cpp
*
* Created on: Sep 6, 2013
* Author: penrique
*/
#include "InvocationManager.h"
#include <bb/system/CardDoneMessage>
#include <bb/system/InvokeRequest>
// to send number data while invoking phone application
#include <bb/PpsObject>
// Map
#include <bb/platform/LocationMapInvoker>
#inc... | Java |
<?php
namespace Lonquan\TaobaoSDK\Top\Request;
use Lonquan\TaobaoSDK\Top\RequestCheckUtil;
use Lonquan\TaobaoSDK\Top\RequestInterface;
/**
* TOP API: taobao.product.img.delete request
*
* @author auto create
* @since 1.0, 2016.03.05
*/
class ProductImgDeleteRequest implements RequestInterface
{
... | Java |
require "point/version"
module Point
autoload :Point, 'point/point'
def self.sum(*args)
x = y = 0
args.each do |point|
x += point.x
y += point.y
end
self::Point.new(x, y)
end
end
| Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (1.8.0_121) on Sat Apr 01 23:01:20 CEST 2017 -->
<title>Uses of Class algorithms.InitStrategy</title>
<meta name="date" content="2017-04-01">
<link re... | Java |
<?php
namespace MvMidia\Factory;
use MvMidia\Service\AudioService;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class AudioServiceFactory
implements FactoryInterface
{
public function createService(ServiceLocatorInterface $serviceLocator)
{
$entityManager = $ser... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _10.CatalanNumbers
{
class Program
{
static void Main(string[] args)
{
// 10. Write a program to calculate the Nth Catalan number by given N.
... | Java |
<?php
/* TwigBundle:Exception:traces.txt.twig */
class __TwigTemplate_c3e3230b69c4964c8a557e1f2f357b5c8020737511aeeb0ff45cb50924b53015 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | Java |
<section *ngIf="blogItems">
<div class="background"></div>
<div class="wrapper" *ngFor="let item of blogItems">
<div class="text" [innerHtml]="texts[blogItems.indexOf(item)]"></div>
<div class="item">
<aae-blog-item [blogItem]="item" [alias]="alias"></aae-blog-item>
</div>
</div>
</section... | Java |
(function() {
var $, expect, fruits;
$ = require('../');
expect = require('expect.js');
/*
Examples
*/
fruits = '<ul id = "fruits">\n <li class = "apple">Apple</li>\n <li class = "orange">Orange</li>\n <li class = "pear">Pear</li>\n</ul>'.replace(/(\n|\s{2})/g, '');
/*
Tests
*/
descri... | Java |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Form;
use Symfony\Component\Form\Exception\InvalidArg... | Java |
<!DOCTYPE html>
<html lang = "en">
<head>
<title> Cultural Blog</title>
<link href='http://fonts.googleapis.com/css?family=Italianno' rel='stylesheet' type='text/css'>
</head>
<style type="text/css">
h1 {
text-align: center;
margin-top: 3%
}
p {
}
body {
background: url("http://www.hdwallpapers.in/walls... | Java |
# nepali-wordlist
Nepali wordlist for wpa2 cracking. Includes password with length of 8 character or more and mostly contains nepali words including other common words.
## Files
* __nepali-name-suffix-8+.txt.gz:__
`Nepali names passwords with numbered suffix. Contains 80,00,000 words with up to 3 number suffixa. L... | Java |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: diplomacy_tensorflow/core/example/feature.proto
#include "diplomacy_tensorflow/core/example/feature.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_st... | Java |
require 'spec_helper'
require 'gitnesse/cli'
module Gitnesse
describe Cli, type: :cli do
let(:help) do
<<-EOS
USAGE: gitnesse push
Pushes local features to remote git-based wiki
Pushes the local features files to the remote git-based wiki, creating/updating
wiki pages as necessary.
Examples:
gitnesse ... | Java |
//
// This file is auto-generated. Please don't modify it!
//
package org.opencv.objdetect;
import org.opencv.core.Mat;
import org.opencv.core.MatOfDouble;
import org.opencv.core.MatOfInt;
import org.opencv.core.MatOfRect;
import org.opencv.core.Size;
// C++: class CascadeClassifier
//javadoc: CascadeClassifier
publi... | Java |
package GlidersGrid;
import java.util.Iterator;
import repast.simphony.context.Context;
import repast.simphony.engine.schedule.ScheduledMethod;
import repast.simphony.query.space.grid.MooreQuery;
import repast.simphony.space.grid.Grid;
import repast.simphony.space.grid.GridPoint;
import repast.simphony.util.ContextUt... | Java |
#ifndef LM75_H_
#define LM75_H_
/******************************************************************************/
/** \file Lm75.h
*******************************************************************************
*
* \brief This module allows to read the temperature of an attached lm75
* devic... | Java |
#region Copyright (c) 2009 S. van Deursen
/* The CuttingEdge.Conditions library enables developers to validate pre- and postconditions in a fluent
* manner.
*
* To contact me, please visit my blog at http://www.cuttingedge.it/blogs/steven/
*
* Copyright (c) 2009 S. van Deursen
*
* Permission is hereby grant... | Java |
(function(){
'use strict';
function ListService($http){
this.getList = function(list_id){
return $http.get('/lists/' + list_id + ".json")
}
}
ListService.$inject = ['$http']
angular
.module('app')
.service('ListService', ListService)
}()) | Java |
angular.module('movieApp')
.directive('movieResult', function () {
var directive = {
restrict: 'E',
replace: true,
scope: {
result: '=result'
},
template: [
'<div class="row">',
'<div class="col-sm-4">',
'<img ng-src="{{result.Poster}}" alt="{{result.Title}}" width="220px">',
'</div>',
... | Java |
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>... | Java |
#include<stdio.h>
#include<math.h>
#include<conio.h>
#include<ctype.h>
int i,j,cash=100;
void wheel();
void game(int r);
void game_over();
int suit_bet();
int cash_bet();
int roll_wheel();
int roll_dice();
void wheel_count(int c,int h,int s);
void dice_count(int d,int h);
int w[9][9]={
{32,32,32,32,2,32,32,32,32... | Java |
/* eslint-env mocha */
const { expect } = chai;
import React from './React';
import TestUtils from './TestUtils';
describe('React components', () => {
it('should find valid xpath in react component', () => {
const component = TestUtils.renderIntoDocument(<blink>hi</blink>);
expect(component).to.have.xpath('/... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.