answer stringlengths 15 1.25M |
|---|
var GlobezGame = GlobezGame || {};
GlobezGame.Boot = function() {};
GlobezGame.Boot.prototype = {
preload: function() {
console.log("%cStarting Fish Vs Mines", "color:white; background:red");
this.load.image("loading", "assets/sprites/loading.png");
this.load.image("logo", "assets/sprites/logo.png");
},... |
#ifndef <API key>
#define <API key>
#include <cmath>
#include <ctime>
#include <cstdint> // uint64_t
#include <sstream>
#include <string>
#include <vector>
#include <map>
namespace argcv {
namespace util {
// c style hash key generator
// void crypt_init(); // for hash key generator
// uint64_t hash(const char * k, u... |
namespace Logs.Data.Migrations
{
using System.Data.Entity.Migrations;
using Logs.Data;
public sealed class Configuration : <API key><Logs.Data.LogsDbContext>
{
public Configuration()
{
this.<API key> = true;
this.<API key> = true;
}
protected overr... |
$("nav span").mouseenter(function(){$("nav").removeClass("closed")}),$("nav").mouseleave(function(){$("nav").addClass("closed")}),$("nav a").click(function(){var o=$(this).parent().index();console.log(o),$("html,body").animate({scrollTop:$(".section-container > section").eq(o).offset().top},500)}),$(window).scroll(func... |
#ifndef <API key>
#define <API key>
#include <QModelIndex>
#include <QObject>
#include <<API key>>
#include <QString>
class <API key>
: public <API key>
{
Q_OBJECT
public:
explicit <API key>(QObject *parent=0)
: <API key>(parent) { }
protected:
private:
};
#endif // <API key> |
#ifndef <API key>
#define <API key>
#include <string>
#include "gui/ng/window.hpp"
namespace namelessgui
{
class LineInput;
}
namespace qrw
{
class <API key> : public namelessgui::Window
{
public:
<API key>();
<API key>(const <API key>&) = delete;
<API key>& operator=(const <API key>&) = delete;
const s... |
'use strict';
describe('nothing', () => {
it('should do nothing', () => {
});
}); |
package com.jinwen.thread.ch01;
/**
*
* @author JIN
*
*/
public class Demo010 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
final SynchronizedObject1 object = new SynchronizedObject1();
Thread thread... |
#include "TelaPrincipal.h"
TelaPrincipal::TelaPrincipal()
{
} |
<?php
namespace Ty666\LaravelTheme;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\View;
use Ty666\LaravelTheme\Exception\ThemeNotFound;
class ThemeManager
{
protected $config;
protected $files;
protected $activeTheme;
protected $activeThemeConfig = null;
protected $isUseTheme ... |
<!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... |
.configuration-root {
flex: 1;
padding: 20px;
}
.<API key> {
margin-bottom: 40px;
} |
package blastbenchmark;
/**
*
* @author thanos
*/
public class Lock {
private boolean isLocked = false;
public synchronized void lock()
throws <API key> {
while (isLocked) {
//System.out.println("locked.. sleeping");
wait();
}
isLocked = true;
}... |
import { setData } from '@progress/kendo-angular-intl';
setData({
name: "pt-CH",
identity: {
language: "pt",
territory: "CH"
},
territory: "CH",
numbers: {
symbols: {
decimal: ",",
group: " ",
list: ";",
percentSign: "%",
... |
{% if site.owner.google.ad-client and site.owner.google.ad-slot %}{% include ad-footer.html %}{% endif %}
<span>© {{ site.time | date: '%Y' }} {{ site.title }}. Powered by <a href="http:
<div class="social-icons">
{% if site.owner.twitter %}<a href="https://twitter.com/{{ site.owner.twitter }}" title="{{ site.... |
package br.edu.fumep.entity;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class GrupoEstudoTests {
private GrupoEstudo grupoEstudo;
private Aluno aluno;
private Usu... |
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Web.Mvc;
using VsixMvcAppResult.Models;
using VsixMvcAppResult.Models.Common;
using VsixMvcAppResult.Models.Membership;
using VsixMvcAppResult.UI.Web.Controllers;
using VsixMvcAppResult.UI.Web.Models;
namespace VsixMvcAppResult.... |
import * as nls from 'vs/nls';
import * as Objects from 'vs/base/common/objects';
import { IStringDictionary } from 'vs/base/common/collections';
import { Platform } from 'vs/base/common/platform';
import * as Types from 'vs/base/common/types';
import * as UUID from 'vs/base/common/uuid';
import { ValidationStatus, IPr... |
//Symbolic Property
#ifndef <API key>
#define <API key>
#include <array>
#include "boost/pending/property.hpp"
namespace probmodels {
namespace base {
//Property must be copyable, assignable and copy constructable
template <std::size_t Len, typename Property = boost::no_property>
class SymbolicProperty {
static con... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp1546Component } from './comp-1546.component';
describe('Comp1546Component', () => {
let component: Comp1546Component;
let fixture: ComponentFixture<Comp1546Component>;
beforeEach(async(() => {
TestBed.<API key>({
decl... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.ChangeTracking.Int... |
package seedu.ezdo.logic.parser;
import seedu.ezdo.logic.commands.Command;
/**
* An interface for the command parsers in ezDo.
*/
public interface CommandParser {
/** Parses the given string */
Command parse(String args);
} |
uid: <API key>.<API key>
summary:
remarks: Each of these collections of settings is a data set. By adding a data set to the <API key> collection object, those settings are available to the <API key> collection object as a DataSet property selection. This property specifies the set of feature control symbol characterist... |
<?php
namespace Embark\CMS\Database;
use Exception;
use Profiler;
use PDO;
class Connection
{
const UPDATE_ON_DUPLICATE = 1;
protected $log;
protected $conf;
protected $queryCaching;
protected $lastException;
protected $lastQuery;
protected $string;
public function __construct($conf)
... |
#pragma once
#include <cmath>
// windows MinGW fix
#ifdef __MINGW32__
#ifndef M_PI
const double M_PI = 3.<API key>;
#endif
#endif
const double M_2PI = M_PI * 2.0;
inline float _fmod( float x, float y ) { return fmod( fmod( x, y ) + y, y ); } |
import fileinput
def str_to_int(s):
return([ int(x) for x in s.split() ])
# args = [ 'line 1', 'line 2', ... ]
def proc_input(args):
(n, l) = str_to_int(args[0])
a = tuple(str_to_int(args[1]))
return(l, a)
def solve(args, verbose=False):
(l, a) = proc_input(args)
list_a = list(a)
list_a.sort... |
#ifndef BINARYTREE_H
#define BINARYTREE_H
#include "declarations.h"
#include <framework/util/databuffer.h>
enum {
<API key> = 0xFD,
<API key> = 0xFE,
BINARYTREE_NODE_END = 0xFF
};
class BinaryTree : public stdext::shared_object
{
public:
BinaryTree(const FileStreamPtr& fin);
~BinaryTree();
void ... |
# Cyclon
Cyclon [1] is a complete framework for inexpensive membership management in very large P2P overlays. It an improvement of the basic shuffling protocol developed by Stavrou et al. [2]. It is highly scalable, very robust, and completely decentralized. Most important is that the resulting communication graphs sha... |
define(function(require) {
var Checker = require("checkers/controller/Checker"),
GameBoard = require("checkers/controller/GameBoard"),
GameSpace = require("checkers/controller/GameSpace");
var instance = null;
function GameBoardUtil() {
}
var getInstance = function() {
if (in... |
namespace Novell.Directory.Ldap.Sasl
{
public class <API key> : SaslRequest
{
public string Host { get; }
public <API key>()
: base(SaslConstants.Mechanism.DigestMd5)
{
}
public <API key>(string username, string password, string realmName, string host)
... |
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
// Adapted from DescriptorHeap.h in Microsoft's Miniengine sample
#pragma once
namespace Kodiak
{
class DeviceManager;
// This is an unbounded resource descriptor all... |
import { <API key>, <API key> } from './actionTypes'
import createMiddleware from './middleware'
describe('middleware', () => {
let removeItem
let setItem
let middleware
let next
let store
beforeEach(() => {
removeItem = jest.fn()
setItem = jest.fn()
middleware = createMiddleware({
removeI... |
// This file is generated by rust-protobuf 3.0.0-alpha.8. Do not edit
// .proto file is parsed by protoc --rust-out=...
// @generated
#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]
#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![... |
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of <API key>
*
* @author KottkeDP
*/
class <API key> extends <API key>{
public function __construct($keyValue = null) {
$sourceKeys = unserialize(<API key>);
$database = DB... |
@(decks: Seq[ShipWithName], deckport: DeckPort, user: User)
@import models.join.ShipParameter.Rate
<input type="hidden" data-id="@deckport.id" class="fleet_data" />
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<div style="float: right; margi... |
using Xunit;
using XUnit.Extensions.TestOrdering;
[assembly: TestCaseOrderer(<API key>.Name, <API key>.Assembly)]
[assembly: CollectionBehavior(CollectionBehavior.<API key>, <API key> = true)]
[assembly: <API key>(<API key>.Name, <API key>.Assembly)] |
require 'test_helper'
class <API key> < ActiveSupport::TestCase
<API key> :recent, :limit => 5
<API key> "recent(20)", :limit => 20
<API key> :order => "#{WatchedException.quoted_table_name}.created_at DESC"
context "A watched exception instance" do
setup { @watched_exception = Factory(:watched_exception) }... |
<?php
namespace Mawi\Bundle\FrostlogBundle\Controller;
use Symfony\Component\Security\Core\SecurityContext;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\<API key>\Configuration\Route;
use Sensio\Bundle\<API key>\Configuration\Template;
use Sy... |
<?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\<API key>;
use Symfony\Component\OptionsResolver\<API key>;
class SymptomType extends AbstractType
{
/**
* @param <API key> $builder
* @param array $options
*/
public function buildForm(<API key> $... |
# IdentityServer4.Mock
Mock Identity Server for Integration testing |
# Methods added to this helper will be available to all templates in the application.
# origin: RM
module ApplicationHelper
def icon(icon, label)
content_tag(:span, label, :class => "#{icon}_icon")
end
def page_head(options = {})
html = ''.html_safe
html << content_tag(:h1, options[:title]) if options... |
# [Climbing](/climbing)
These are miscellaneous notes I've taken while reading climbing related books.
Books:
* [The Rock Warrior's Way](http://a.co/0p1O8rP)
* [Self-Coached Climber](http://a.co/3FFbnTp)
* [Training for Climbing](http://a.co/eTcKh2Y)
* [9 Out of 10 Climbers Make the Same Mistakes](http://a.co/d3rWH5N)
... |
package market
import (
"github.com/Efruit/marqit/exchange"
"github.com/Efruit/marqit/managers"
"github.com/nu7hatch/gouuid"
"time"
)
type Exchange interface {
manager.Bank
manager.Broker
manager.Ticker
exchange.Dealership
exchange.Auctioner
Init() ... |
import { isFunction } from './isFunction';
import { isObject } from './isObject';
import { isMasked } from './_isMasked';
import { toSource } from './_toSource';
const reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
/** Used to detect host constructors (Safari). */
const reIsHostCtor = /^\[object .+?Constructor\]$/;
/** Used for... |
jQuery.each(param_obj, function (index, value) {
if (!isNaN(value)) {
param_obj[index] = parseInt(value);
}
});
function <API key>(id) {
var _this = this;
_this.container = jQuery('#' + id + '.view-full-height');
_this.hasLoading = _this.container.data("show-loading") == "on";
_this.opti... |
#include "core/core.h"
#include "hooks/hooks.h"
#include "os/os_specific.h"
void dlopen_hook_init();
// DllMain equivalent
void library_loaded()
{
if(LibraryHooks::Detect("<API key>"))
{
RDCDEBUG("Not creating hooks - in replay app");
RenderDoc::Inst().SetReplayApp(true);
RenderDoc::Inst().Initialise();... |
# <API key>
[Find a Supplier](https:
[![code-climate-image]][code-climate]
[![circle-ci-image]][circle-ci]
[![codecov-image]][codecov]
[![gitflow-image]][gitflow]
[![calver-image]][calver]
## Development
Installing
$ git clone https://github.com/uktrade/<API key>
$ cd <API key>
$ virtualenv .venv -p python3... |
using MyRoutine.Service;
using MyRoutine.Service.Interfaces;
using MyRoutine.Web.Areas.Admin.ViewModels.Users;
using MyRoutine.Web.Controllers;
using MyRoutine.Web.Helpers;
using MyRoutine.Web.ViewModels;
using System.Linq;
using System.Web.Mvc;
using WebMatrix.WebData;
namespace MyRoutine.Web.Areas.Admin.Controllers
{... |
package com.<API key>.repository;
import com.<API key>.entity.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface RoleRepository extends JpaRepository<Role, Long> {
Role findOneByAuthority(String authority);
} |
import numpy
from chainer import cuda
from chainer import function
from chainer.utils import array
from chainer.utils import type_check
class BilinearFunction(function.Function):
def check_type_forward(self, in_types):
n_in = type_check.eval(in_types.size())
if n_in != 3 and n_in != 6:
r... |
import s from './Callouts.css';
import React, { PropTypes } from 'react';
import numbro from 'numbro';
function <API key>(conf) {
return conf.diversityPercentage >= 50;
}
function confFromCurrentYear(conf) {
return conf.year == (new Date()).getFullYear();
}
function <API key>(accumulator, conf) {
return accumulat... |
# work-token
Simple proof of work generation and verification library based on [hashcachgen](https://github.com/carlos8f/node-hashcashgen). It works on node.js and in web browsers. The idea is that this can be used as an alternative to throttling on a web API. Instead of throttling, you give each client a challenge,... |
#!/bin/sh -e
prj_make=$( pwd )/.git/prj_make
bin_make=$( which make.sh )
schroot.sh $prj_make $bin_make "$@" |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="http://photonui.orangehilldev.com/images/photo... |
( function( $ ) {
$.fn.simplerSidebar = function( options ) {
var cfg = $.extend( true, $.fn.simplerSidebar.settings, options );
return this.each( function() {
var align, sbw, ssbInit, ssbStyle, maskInit, maskStyle,
attr = cfg.attr,
$sidebar = $( this ),
$opener = $( ... |
package com.github.niwaniwa.we.core.player;
import com.github.niwaniwa.we.core.api.callback.Callback;
import com.github.niwaniwa.we.core.twitter.TwitterManager;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org... |
package mcjty.rftools.blocks.dimlets;
import mcjty.lib.container.GenericGuiContainer;
import mcjty.lib.gui.Window;
import mcjty.lib.gui.layout.PositionalLayout;
import mcjty.lib.gui.widgets.EnergyBar;
import mcjty.lib.gui.widgets.ImageLabel;
import mcjty.lib.gui.widgets.Panel;
import mcjty.lib.gui.widgets.Widget;
impor... |
Symfony - Spotify (Academic Work)
=====================
## Application demo
Display playlists, followed artists, albums and tracks
Use the Spotify credentials with token regeneration
Installation
bash
$ composer install
$ bower install
$ npm install
$ gulp
insert your privates spotify keys in :
app/config/config.yml
Ge... |
// Fill in topbar details.
$('header .right').append(Handlebars.templates.userTopbar(user));
// Fill in sidebar details.
user.created_at = moment(user.created_at).format('MMM DD, YYYY');
var userStars = {user: user, stars: stars};
$('aside').prepend(Handlebars.templates.userSidebar(userStars));
// Populate the organiza... |
// error.h
// error reporting for pathed
#ifndef INC_PATHED_ERROR_H
#define INC_PATHED_ERROR_H
#include <windows.h>
#include <exception>
#include <string>
// We throw these kind of exceptions
class Error : public std::exception {
public:
Error( const std::string & msg ) : mMsg( msg ) {}
~Error() thr... |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class ModelPersona extends YPS_Model {
CONST OBJETO = 'modelPersona';
CONST PK = 'idPersona';
CONST TABLA = 'personas';
private $idPersona;
private $sufijo_nombre;
private $prefijo_nombre;
private $nombres;
priv... |
use File::Find;
use File::Basename;
use Win32::TieRegistry 0.20 ( KEY_READ );
# Gloabal registry access options
my $registry_options = {
Delimiter => '/',
Access => KEY_READ(),
};
# First, let's get location of ActivePerl
my $active_key = "LMachine/Software/ActiveState/ActivePerl";
my $perl_binary = get_perl... |
import { faker } from 'ember-cli-mirage';
import lodash from 'npm:lodash';
export const CONTAINER_MEMORY = 8023089152;
export function getPorts(isContainer=false) {
let ports = [];
for (let j = 1; j <= faker.random.number({ max: 3 }); j++) {
let obj = {
name: faker.hacker.noun(),
protocol: 'TCP',
... |
\begin{tabular}{c|llllll}
& \multicolumn{6}{|c}{\textbf{\textit{f}\raisebox{-0.35ex}{1}--\textit{f}\raisebox{-0.35ex}{24} in 5-D}, maxFE/D=112}\\
\#FEs/D & best & 10\% & 25\% & \textbf{med} & 75\% & 90\%\\
2 & ~\,0.61 & ~\,0.82 & \hspace*{1ex}1.2 & \hspace*{1ex}2.2 & \hspace*{1ex}4.7 & 10\\
10 & ~\,0.72 & \hspace*{1ex... |
module RubyHashcat
class API < Sinatra::Application
get '/location.json' do
content_type :json
if settings.debug
pp params
end
{:location => settings.ocl_location}.to_json
end
get '/rules.json' do
content_type :json
if settings.debug
pp params
end
... |
module.exports = function () {
return {
templateUrl : './shared/partials/footer/directives/footer.html',
controller: require('./footerCtrl'),
restrict: 'E',
scope: {}
};
}; |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1" name="viewport">
<title>Lavue</title>
<!-- fonts -->
<link href="https://fonts.googleapis.com/css?family=Raleway:100,600"
... |
<?php
namespace RpkUtils\Sysinfo;
class Client
{
/**
* Client ip
* @return string
*/
public static function ip()
{
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
// check ip from share internet
$ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['<API... |
<?php
require __DIR__.DIRECTORY_SEPARATOR.'includes.php';
if (strtolower($_SERVER['REQUEST_METHOD']) == 'post') {
$Upload = new \Rundiz\Upload\Upload('filename');
$Upload->move_uploaded_to = __DIR__.DIRECTORY_SEPARATOR.'uploaded-files';
foreach ($_POST as $key => $value) {
$$key = $value;
}
... |
// $Id: LSOCK_CODgram.cpp 79134 2007-07-31 18:23:50Z johnnyw $
#include "ace/LSOCK_CODgram.h"
#if !defined (<API key>)
#include "ace/Log_Msg.h"
ACE_RCSID(ace, LSOCK_CODgram, "$Id: LSOCK_CODgram.cpp 79134 2007-07-31 18:23:50Z johnnyw $")
#if !defined (__ACE_INLINE__)
#include "ace/LSOCK_CODgram.inl"
#endif /* __ACE_INLI... |
{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
<title>{% block title %}ikeQuizGen{% endblock %}</title>
<link href="https://fonts.... |
from accounts.models import Practice
def create_practice(request, strategy, backend, uid, response={}, details={}, user=None, social=None, *args, **kwargs):
"""
if user has a practice skip else create new practice
"""
practice, created = Practice.objects.update_or_create(user=user)
return None |
package com.sun.j2ee.blueprints.waf.view.taglibs.smart;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.tagext.BodyTagSupport;
import javax.servlet.jsp.tagext.BodyContent;
import java.io.IOException;
import java.util.*;
/**
* A parameter for a link (i.e. a key-value pair in string such
* as "?foo=y... |
<?php
$factory->define(App\User::class, function () {
$hasher = app()->make('hash');
return [
'name' => 'Admin',
'email' => 'admin@admin.com.br',
'password' => $hasher->make("senhaAdmin"),
'is_admin' => 1
];
});
/*
$factory->define(App\Post::class, function (Faker\Generator $... |
import React from 'react';
import PropTypes from 'prop-types';
import ColumnChart from './columnChart';
import Tooltip from './../tooltip/tooltip';
import {dateFormats} from './../../utils/displayFormats';
import './columnWidget.css';
const ColumnWidget = ({
chartTitle,
chartDescription,
chartUpdatedDate,
serie... |
This folder contains all your exported files.
**NOTE**: The permissions for this folder *must* be `777`.
To do so navigate to the exports folder/directory
cd /exports
Then change the user permission using chmod.
chmod 777 -R ./ |
<?php
namespace Tests\Behat\Gherkin\Node;
use Behat\Gherkin\Exception\NodeException;
use Behat\Gherkin\Node\TableNode;
use PHPUnit\Framework\TestCase;
class TableNodeTest extends TestCase
{
public function <API key>()
{
$this->expectException(NodeException::class);
new TableNode(array(
... |
from flask import Flask
from flask import render_template, request
app = Flask(__name__)
@app.route("/")
def main():
room = request.args.get('room', '')
if room:
return render_template('watch.html')
return render_template('index.html')
if __name__ == "__main__":
app.run(host='0.0.0.0', debug=Tru... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_31) on Wed Dec 17 20:48:31 PST 2014 -->
<title>Uses of Class org.omg.CORBA.NO_RESOURCES (Java Platform SE 8 )</title>
<meta name="date" content="2014-12-17">
<link rel="stylesheet" type="text/css" href="../../../../styles... |
layout: tammo_main
title: Blog
<div class="posts">
{% for post in site.posts %}
<article class="post">
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
<div class="entry">
{{ post.excerpt }}
</div>
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more"... |
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
render(
<Provider store={store}>
<App />
</Provider>... |
package uk.gov.bis.levyApiMock.data
import uk.gov.bis.levyApiMock.auth.{TOTP, TOTPCode}
import scala.concurrent.{ExecutionContext, Future}
case class Application(name: String, applicationID: String, clientID: String, clientSecret: String, serverToken: String, privilegedAccess: Boolean)
trait ClientOps {
def timeSourc... |
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http:
<head>
<title>web2py.gluon.validators.IS_TIME</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script type="text/javascript" src="ep... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RemoveOddPosition
{
class RemoveOddPosition
{
static void Main(string[] args)
{
var words = Console.ReadLine().Split(' ').ToList();
var output = n... |
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format. Inflections
# are locale specific, and you may define rules for as many different
# locales as you wish. All of these examples are active by default:
ActiveSupport::Inflector.inflections(:en) do |inflect|
... |
package jaist.css.covis.cls;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import javax.swing.JPopupMenu;
import jaist.css.covis.util.FramePopup;
public class ArrayPrimitiveMenu... |
// window.onload = function() {
// var data = {username:'52200', password:'123', remember:52200};
// fetch('/api/users/getUser?id=1').then(function(res) {
// console.log("", res);
// if (res.ok) {
// alert('Submitted!');
// } else {
// alert('Error!');
// }).t... |
Meteor.methods({
addAllUserToRoom(rid, activeUsersOnly = false) {
check (rid, String);
check (activeUsersOnly, Boolean);
if (RocketChat.authz.hasRole(this.userId, 'admin') === true) {
const userCount = RocketChat.models.Users.find().count();
if (userCount > RocketChat... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `enc_region` fn in crate `rustc_lint`.">
<meta name="keywor... |
<reference path="../_references.d.ts" />
interface sage {
id: number;
name: string;
username: string;
email: string;
dateOfBirth: Date;
sayings?: saying[];
}
interface repositorySage {
getAll: () => ng.IPromise<sage[]>;
getById: (id: number, forceRemote?: boolean) => ng.IPromise<sage>;
... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>nucleo-dynamixel: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css... |
const HttpStatus = require('http-status-codes');
const build = status => {
return (ctx, message) => {
ctx.status = status
ctx.body = message || {message: HttpStatus.getStatusText(status)}
return ctx
}
}
module.exports = {
accepted: build(HttpStatus.ACCEPTED), // 202
badGateway: b... |
module.exports = function verify(check) {
if (typeof check !== 'object') {
throw new Error('check is not an object');
}
var errors = [];
Object.keys(check).forEach(_verify, check);
if (errors.length > 0) {
throw new Error('Health checks failed: '+ errors.join(', '));
}
return... |
<?php
namespace artworx\omegacp\Database\Types\Postgresql;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use artworx\omegacp\Database\Types\Type;
class RealType extends Type
{
const NAME = 'real';
const DBTYPE = 'float4';
public function getSQLDeclaration(array $field, AbstractPlatform $platform)
{
... |
using System.Data;
namespace NBA_Stats.ConnectionProviders.Contracts
{
public interface IConnectionProvider
{
IDbConnection CreateConnection(string connectionString);
}
} |
<!-- Control Sidebar -->
<aside class="control-sidebar <API key>">
<!-- Tab panes -->
<div class="tab-content">
<ng-transclude></ng-transclude>
</div>
</aside>
<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar
<div class=... |
using System;
public class WithManaged :
IDisposable
{
public void Dispose()
{
}
public void DisposeManaged()
{
<API key> = true;
Property = "a";
Method();
}
public bool <API key>;
public string Property { get; set; }
public void Method()
{
}
} |
/* globals describe, beforeEach, it, expect, inject, vehicles, VehicleMock */
describe("Vehicles Factory:", function() {
'use strict';
var $httpBackend,
vehicles,
request,
Showcase;
// Load the main module
beforeEach(module('sc'));
beforeEach(inject(function($injector, _vehic... |
import { createGlobalStyle } from 'styled-components';
export const GlobalStyle = createGlobalStyle`
body {
margin: 0;
font-family: 'Montserrat', sans-serif;
}
* {
box-sizing: border-box;
}
`; |
package com.practise.androidstuff;
import android.app.Application;
import android.test.ApplicationTestCase;
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.