code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
<?xml version="1.0" ?><!DOCTYPE TS><TS language="nb" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About RupayaCoin</source>
<translation>Om RupayaCoin</translation>
</m... | Java |
require File.expand_path('../helper', __FILE__)
class BeforeFilterTest < Test::Unit::TestCase
it "executes filters in the order defined" do
count = 0
mock_app do
get('/') { 'Hello World' }
before do
assert_equal 0, count
count = 1
end
before do
assert_equal 1, ... | Java |
//
// SPFastPush.h
// e-mail:83118274@qq.com
//
// Created by lishiping on 16/11/11.
// Copyright (c) 2016年 lishiping. All rights reserved.
//
//If you think this open source library is of great help to you, please open the URL to click the Star,your approbation can encourage me, the author will publish the better ... | Java |
<?php
namespace IdeaSeven\Core\Services\Menu;
use IdeaSeven\Core\Exceptions\InvalidMenuStructureException;
use IdeaSeven\Core\Helpers\Strings;
use IdeaSeven\Core\Services\Lang\Contracts\LanguagesContract;
/**
* Class PermalinkCreator
* @package IdeaSeven\Core\Services\Menu
*/
class PermalinkCreator
{
/**
... | Java |
<?php
/* TwigBundle:Exception:exception_full.html.twig */
class __TwigTemplate_add344e1e383c1eb02227246319313ae extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("TwigBundle::layout.html.twig");
... | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0-beta2) on Mon Mar 19 19:30:45 CST 2007 -->
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>
接口 javax.print.FlavorException... | Java |
<?php
namespace CBSi\ProductBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use CBSi\ProductBundle\Model\Product;
use CBSi\ProductBundle\ApiClient;
class DefaultController extends Controller
{
public function indexAction($name)
{
return $this->render('CBSiProductBundle:De... | 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 |
<!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 |
<!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... | Java |
export const PlusCircle = `
<svg viewBox="0 0 28 28">
<g fill="none" fill-rule="evenodd">
<path d="M8 14h12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<circle stroke="currentColor" cx="14" cy="14" r="13"/>
<path d="M14 8v12" stroke="currentColor" stroke-linecap="round" stroke-... | Java |
<?php
/*
* Description of bibliographyController
*
* This is a controller loading the bibliography. It does not support any user input
*/
namespace PNM\controllers;
class bibliographyController
{
public function load()
{
$bibliography = new \PNM\models\bibliography();
$view = new \PNM\vi... | Java |
package com.missingeye.pixelpainter.events.network.texture;
import com.missingeye.pixelpainter.common.PixelMetadata;
import net.minecraft.util.ResourceLocation;
/**
* Created on 1/17/2015.
*
* @auhtor Samuel Agius (Belpois)
*/
public class ServerUpdatedTexturePacketEvent extends UpdatedTexturePacketEvent
{
publi... | Java |
# Changelog
## 2.0.5 (Sep 16 2014)
- Fix small bugs
## 2.0.4 (Sep 9 2014)
- Prevent window from moving when clicking window buttons
## 2.0.3 (Sep 9 2014)
- Add "Media Link" button, click to open current playing video/music link (Can resolve SoundCloud URL now)
- Load faster
- Fix Auto-Woot doesn't work if loaded too... | Java |
Contributing
============
- [Fork](https://help.github.com/articles/fork-a-repo) the [notifier on github](https://github.com/bugsnag/bugsnag-android-gradle-plugin)
- Build and test your changes
- Commit and push until you are happy with your contribution
- [Make a pull request](https://help.github.com/articles... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace QSDStudy
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*path... | Java |
<!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... | Java |
---
title: Dimmer
---
<h3 class="docs-subsection-title">Default</h3>
<div class="docs-example">
<div av-dimmer class="card card-block">
<div class="dimmer-content dimmer-content-dark text-center">
<p> Dimmer Message </p>
</div>
<h4 class="card-title">Example title</h4>
<p class="card-text">Examp... | Java |
#ifndef LUCE_HEADER_TYPETRAIT_TYPEEQUAL_HH
#define LUCE_HEADER_TYPETRAIT_TYPEEQUAL_HH
#include <Luce/Configuration.hh>
#include <Luce/Utility/NonComparable.hh>
#include <Luce/Utility/NonCopyable.hh>
namespace Luce
{
namespace TypeTrait
{
template<typename Lhs_, typename Rhs_>
struct TypeEqual LUCE_M... | Java |
#!/usr/bin/env julia
using ArgParse
s = ArgParseSettings()
@add_arg_table s begin
"config"
help = "a YAML configuration file"
default = "config.yaml"
end
parsed_args = parse_args(ARGS, s)
import YAML
config = YAML.load(open(parsed_args["config"]))
# Make some diagnostic plots to show what the model loo... | Java |
export type TemplateToken = string | TemplatePlaceholder;
export interface TemplatePlaceholder {
before: string;
after: string;
name: string;
}
interface TokenScanner {
text: string;
pos: number;
}
const enum TemplateChars {
/** `[` character */
Start = 91,
/** `]` character */
En... | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_24) on Mon Apr 01 21:56:35 EDT 2013 -->
<TITLE>
Groupable (ATG Java API)
</TITLE>
<META NAME="date" CONTENT="2013-04-01">
<LINK REL ="stylesheet" T... | Java |
package com.example.aperture.core.contacts;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.provider.ContactsContract;
import java.util.List;
import java.util.ArrayList;
import com.example.aperture.core.Module;
public class Email... | Java |
<?php
return array (
'id' => 'samsung_n300_ver1',
'fallback' => 'uptext_generic',
'capabilities' =>
array (
'model_name' => 'SGH-N300',
'brand_name' => 'Samsung',
'streaming_real_media' => 'none',
),
);
| Java |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | 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 |
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "kcoingui.h"
#include "kcoinunits.h"
#include "clientmodel.h"
#include "guiconstants.h"
#include "guiutil.h"
#inclu... | Java |
var xmas = {};
(function() {
xmas.present = {
box: {}
};
}());
(function(global) {
global.xmas.present.box.color = 'Red';
}(this));
| Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GSAKWrapper.Excel
{
public class PropertyItemHasUserNote : PropertyItem
{
public PropertyItemHasUserNote()
: base("HasUserNote")
{
}
public ... | Java |
Vswiki::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both thread web serve... | Java |
/**
* A decorator for making sure specific function being invoked serializely.
*
* Usage:
* class A {
* @serialize
* async foo() {}
* }
*
*/
export default function serialize(target, key, descriptor) {
let prev = null;
function serializeFunc(...args) {
const next = () =>
Promise.resolve(descr... | Java |
<?php
namespace Application\Controller;
use Zend\Mvc\Controller\AbstractRestfulController;
use Zend\View\Model\JsonModel;
class UserController extends AbstractRestfulController
{
protected $collectionOptions = array('GET', 'POST');
protected $resourceOptions = array('GET', 'PUT', 'DELETE');
protected fu... | Java |
Changelog
==========
### 3.1.2
- Bump to FBSDK 5.5.0
### 3.1.1
- Bump to FBSDK 5.4.1
### 3.1.0
- Bump to FBSDK 5.2.3
### 3.0.2
- Bug fix with facebook picture pagination
### 3.0.1
- Bug fix with facebook album pagination
### 3.0.0
- Bump to FBSDK 5.0.0 (contains a lot of breaking change)
### 2.6.0
- Bu... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../openssl_sys/enum.stack_st_X509.html">
</head>
<body>
<p>Redirecting to <a href="../../openssl_sys/enum.stack_st_X509.html">../../openssl_sys/enum.stack_st_X509.html</a>...</p>
<script>location.replace("../../openssl_sys/... | Java |
<?php
/**
* This module shows an introduction tour for new users
*
* @package profiler.modules_core.like
* @since 0.5
*/
class TourModule extends HWebModule
{
public $isCoreModule = true;
public static function onDashboardSidebarInit($event)
{
if (HSetting::Get('enable', 'tour') == 1 && Yii:... | Java |
package ast
import (
"testing"
"bitbucket.org/yyuu/xtc/xt"
)
func TestPrefixOpNode(t *testing.T) {
x := NewPrefixOpNode(loc(0,0), "--", NewVariableNode(loc(0,0), "a"))
s := `{
"ClassName": "ast.PrefixOpNode",
"Location": "[:0,0]",
"Operator": "--",
"Expr": {
"ClassName": "ast.VariableNode",
"L... | Java |
package com.dpanayotov.simpleweather.api.base;
public class BaseForecastResponse {
}
| Java |
//
// EmailComposer.h
//
//
// Created by Jesse MacFadyen on 10-04-05.
// Copyright 2010 Nitobi. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MessageUI/MFMailComposeViewController.h>
#import <MobileCoreServices/MobileCoreServices.h>
#import <Cordova/CDV.h>
@interface EmailCompose... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qarith: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>cfml: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel=... | Java |
require 'rails_helper'
RSpec.describe "Pages", :type => :request do
describe "GET /pages" do
it "redirects when unauthenticated" do
get pages_path
expect(response.status).to be(302)
end
end
let(:rory) {User.create!(name: 'Rory', uid: "1")}
let(:valid_attributes) { { path: 'path/to/page', b... | Java |
---
layout: post
title: "Welcome"
date: 2015-07-26 15:07:29
author: Rodrigo de Freitas
modalID: modalWelcome
image: /images/posts/welcome.png
---
Normalmente as pessoas da minha área colocariam o título de "Hello World" na primeira postagem do blog, mas como eu já acho isso um pouco batido e como você deve ter notad... | Java |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Huoran Chat</title>
<link rel="stylesheet" type="text/css" href="styles/main.css" />
</head>
<body>
<!-- The window for login and registration -->
<div id='loginWindow'>
<h1>Huoran Chat</h1>
<br>
<div id="loginWrap... | Java |
var functions = {}
functions.evaluateSnapshotType = function (name) {
var splittedName = name.split('-')
var type = splittedName[splittedName.length - 1].split('.')[0]
return type === 'motion' ? type : type === 'snapshot' ? 'periodic' : 'unknown'
}
functions.getSnapshotDate = function (name) {
var splittedDa... | Java |
package bsw
import (
"testing"
)
func TestMX(t *testing.T) {
_, results, err := MX("stacktitan.com", "8.8.8.8")
if err != nil {
t.Error("error returned from MX")
t.Log(err)
}
found := false
for _, r := range results {
if r.Hostname == "mx1.emailsrvr.com" {
found = true
}
}
if !found {
t.Error("MX... | Java |
package edu.avans.hartigehap.web.util;
import java.io.UnsupportedEncodingException;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.util.UriUtils;
import org.springframework.web.util.WebUtils;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class UrlUtil {
private UrlUtil() {
... | Java |
package com.veggie.src.java.controllers.transaction;
import java.util.List;
import com.veggie.src.java.controllers.Controller;
import com.veggie.src.java.form.Form;
import com.veggie.src.java.form.AbstractFormBuilder;
import com.veggie.src.java.form.AbstractFormBuilderFactory;
import com.veggie.src.java.notification.N... | Java |
<?php return array (
'FrameworkBundle:Form:attributes.html.php' => 'C:\\xampp\\htdocs\\linkedxpert\\vendor\\symfony\\symfony\\src\\Symfony\\Bundle\\FrameworkBundle/Resources/views/Form/attributes.html.php',
'FrameworkBundle:Form:button_attributes.html.php' => 'C:\\xampp\\htdocs\\linkedxpert\\vendor\\symfony\\symfon... | Java |
# tapjoy Module
## Description
TODO: Enter your module description here
## Accessing the tapjoy Module
To access this module from JavaScript, you would do the following:
var tapjoy = require("ti.tapjoy");
The tapjoy variable is a reference to the Module object.
## Reference
TODO: If your module has an API, yo... | Java |
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS and IE text size adjust after device orientation change,
* without disabling user zoom.
*/
html {
font-family: sans-serif;
/* 1 */
-ms-text-size-adjust: 100%;
/* 2... | Java |
using Android.App.Job;
namespace Plugin.FirebasePushNotification
{
public class PNFirebaseJobService : JobService
{
public override bool OnStartJob(JobParameters @params)
{
return false;
}
public override bool OnStopJob(JobParameters @params)
{
... | Java |
(function() {
'use strict';
angular
.module('rtsApp')
.directive('hasAuthority', hasAuthority);
hasAuthority.$inject = ['Principal'];
function hasAuthority(Principal) {
var directive = {
restrict: 'A',
link: linkFunc
};
return directive... | Java |
require 'rails_helper'
RSpec.describe Gallery, type: :model do
it "is valid with valid attributes" do
gallery = create(:gallery)
expect(gallery).to be_valid
end
describe "associations and validations" do
it { should have_many(:collections) }
it { should validate_presence_of(:name) }
it { s... | Java |
Gitscm::Application.routes.draw do
constraints(:host => 'whygitisbetterthanx.com') do
root :to => 'site#redirect_wgibtx', as: :whygitisbetterthanx
end
constraints(:host => 'progit.org') do
root :to => 'site#redirect_book', as: :progit
get '*path' => 'site#redirect_book'
end
# constraints(:subdom... | Java |
<html><body>
<h4>Windows 10 x64 (18363.900)</h4><br>
<h2>_WHEA_GENERIC_ERROR_DESCRIPTOR_V2</h2>
<font face="arial"> +0x000 Type : Uint2B<br>
+0x002 Reserved : UChar<br>
+0x003 Enabled : UChar<br>
+0x004 ErrStatusBlockLength : Uint4B<br>
+0x008 RelatedErrorSourceId : Uin... | Java |
var async = require('async');
function captainHook(schema) {
// Pre-Save Setup
schema.pre('validate', function (next) {
var self = this;
this._wasNew = this.isNew;
if (this.isNew) {
this.runPreMethods(schema.preCreateMethods, self, function(){
next();
});
} else {
this.ru... | Java |
/**
* Copyright (c) <2016> granada <afernandez@cookinapps.io>
*
* This source code is licensed under the MIT license.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software wi... | 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 |
<?php
function formatBytes($bytes, $precision = 2) {
$units = array('B', 'KB', 'MB', 'GB', 'TB');
$bytes = max($bytes, 0);
$pow = floor(($bytes ? log($bytes) : 0) / log(1024));
$pow = min($pow, count($units) - 1);
$bytes /= pow(1024, $pow);
return round($bytes, $precision) . ' ' . $unit... | Java |
# LearningAkkaJava
A distributed key value database.
My journey through the Learning Akka book by Jason Goodwin.
| Java |
# Namespace for library
module P3
module TV
# Settings for P3 TV
class Settings
attr_accessor :path
DEFAULT_PATH = File::expand_path( "~/.p3tv/p3tv" )
EPISODES_JSON = 'episodes.json'
DEFAULTS = {
:library_path => '~/Movies/P3TV',
:download_path => '~/Downloads',
... | Java |
import * as React from 'react';
function CubeIcon(props) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
{...props}
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
... | Java |
<ion-header>
<ion-navbar>
<ion-title>{{'Wallet Color' | translate}}</ion-title>
</ion-navbar>
</ion-header>
<ion-content class="wallet-color-count wallet-color-default">
<ion-list radio-group [(ngModel)]="currentColorIndex">
<ion-item *ngFor="let i of colorCount">
<ion-label>
<span class... | Java |
INCLUDE "hardware.inc"
INCLUDE "header.inc"
SECTION "Main",HOME
;--------------------------------------------------------------------------
;- Main() -
;--------------------------------------------------------------------------
Main:
ld a,$80
ld ... | Java |
# module Hello
class Identity < ActiveRecord::Base
module Password
extend ActiveSupport::Concern
included do
validates_presence_of :email, :password, if: :is_password?
# email
validates_email_format_of :email, if: :is_password?
validates_uniqueness_of :email,
... | Java |
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<script src="http://code.angularjs.org/1.2.16/angular.min.js"></script>
<script src="http://code.angularjs.org/1.2.16/angular-route.min.js"></script>
<script src="/ng-tools/src/module.js"></script>
<script src="/ng-tools/src/mark-current-links.js"></script>
... | Java |
var repl = require('repl');
var server = repl.start({});
var con = server.context;
con.name='zfpx';
con.age = 5;
con.grow = function(){
return ++con.age;
}
| Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_92) on Sat Oct 22 19:44:39 CEST 2016 -->
<title>Uses of Package com.vangav.backend.exceptions</title>
<meta name="date" content="2016-10-22">
<... | Java |
---
layout: page
title: Library Students
categories: []
tags: []
status: draft
type: page
published: false
meta:
_edit_last: '1'
---
[nggallery id=8]<br /><br />
| Java |
//
// Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
// LICENSE: Atomic Game Engine Editor and Tools EULA
// Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
// license information: https://github.com/AtomicGameEngine/AtomicGameEngine
//
#include <Atomic/Core/ProcessUtils.h>
#i... | Java |
/*
* boatWithSupport.cpp
*
* Created on: 16 de Abr de 2013
* Author: Windows
*/
#include "BoatWithSupport.h"
BoatWithSupport::BoatWithSupport(int extraCapacity) :
Boat() {
extraCap = extraCapacity;
lastMaxCap = 0;
lastTransported = 0;
}
BoatWithSupport::BoatWithSupport(int capacity, i... | Java |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "corponovo.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that th... | Java |
import time
t1=.3
t2=.1
path="~/Dropbox/Ingenieria/asignaturas_actuales"
time.sleep(t2)
keyboard.send_key("<f6>")
time.sleep(t2)
keyboard.send_keys(path)
time.sleep(t1)
keyboard.send_key("<enter>")
| Java |
package org.bitbucket.ytimes.client.main;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Created by andrey on 27.05.17.
*/
public class Main {
public static void main( String[] args ) throws Exception {
ClassPathXmlApplicationContext ctx =
new ClassPath... | Java |
require 'oplogjam/noop'
require 'oplogjam/insert'
require 'oplogjam/update'
require 'oplogjam/delete'
require 'oplogjam/command'
require 'oplogjam/apply_ops'
module Oplogjam
InvalidOperation = Class.new(ArgumentError)
class Operation
def self.from(bson)
op = bson.fetch(OP, UNKNOWN)
case op
... | Java |
from charmhelpers.core.hookenv import (
config,
unit_get,
)
from charmhelpers.contrib.network.ip import (
get_address_in_network,
is_address_in_network,
is_ipv6,
get_ipv6_addr,
)
from charmhelpers.contrib.hahelpers.cluster import is_clustered
PUBLIC = 'public'
INTERNAL = 'int'
ADMIN = 'admin'... | Java |
# js-base | Java |
package alexp.blog.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import alexp.blog.repository.*;
import alexp.blog.model.Schedule;
@Service("ScheduleService")
public class ScheduleServiceImpl implements ScheduleService{
@Autowired
private... | Java |
export default {
queryRouteList: '/routes',
queryUserInfo: '/user',
logoutUser: '/user/logout',
loginUser: 'POST /user/login',
queryUser: '/user/:id',
queryUserList: '/users',
updateUser: 'Patch /user/:id',
createUser: 'POST /user',
removeUser: 'DELETE /user/:id',
removeUserList: 'POST /users/dele... | Java |
import Controller from '@ember/controller';
import { debounce } from '@ember/runloop';
import fetch from 'fetch';
import RSVP from 'rsvp';
export default class extends Controller {
searchRepo(term) {
return new RSVP.Promise((resolve, reject) => {
debounce(_performSearch, term, resolve, reject, 600);
})... | Java |
<html>
<head>
<title>User agent detail - Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.11) /Kyocera-E4000</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Materi... | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_24) on Mon Apr 01 21:56:34 EDT 2013 -->
<TITLE>
BooleanExpressionType (ATG Java API)
</TITLE>
<META NAME="date" CONTENT="2013-04-01">
<LINK REL ="s... | Java |
import controller from './controller';
import template from './template.pug';
routes.$inject = ['$stateProvider', '$urlRouterProvider'];
export default function routes($stateProvider, $urlRouterProvider){
$stateProvider.state('main.item', {
url: '/:id/item',
template: template,
controllerAs: 'ctrl',
contro... | Java |
import { OnInit, SimpleChanges, OnChanges } from '@angular/core';
import { Validator, AbstractControl } from '@angular/forms';
export declare class NotEqualValidator implements Validator, OnInit, OnChanges {
notEqual: any;
private validator;
private onChange;
ngOnInit(): void;
ngOnChanges(changes: S... | Java |
html, body{
width: 100%;
height: 100%;
padding: 0px;
margin: 0px;
font: 14px 'Merriweather', 'serif';
color: rgb(20, 20, 20);
}
body, header{
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}
body{
flex-flow: row wrap;
-webkit-box-pack: fle... | Java |
var config = require('./config')
var webpack = require('webpack')
var merge = require('webpack-merge')
var utils = require('./utils')
var baseWebpackConfig = require('./webpack.base.conf')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var FriendlyErrors = require('friendly-errors-webpack-plugin')
// add hot-r... | Java |
var margin = {top: 0, right: 0, bottom: 0, left: 130},
width = 1500 - margin.right - margin.left,
height = 470 - margin.top - margin.bottom;
var i = 0,
duration = 750,
root;
var tree = d3.layout.tree()
.size([height, width]);
var diagonal = d3.svg.diagonal()
.projection(function(d) { return [... | Java |
require 'rubygems'
gem 'rspec', '>= 1.2.8'
require 'spec'
require File.join(File.dirname(__FILE__), '..', 'lib', 'almaz')
require 'base64'
require 'timecop'
require 'logger'
Spec::Runner.configure do |config|
config.before(:all) {
result = RedisRunner.start_detached
raise("Could not start redis-server, abort... | Java |
import { EventBus } from '../wires/event_bus';
class EventStore {
constructor(storeAdapter) {
this.adapter = storeAdapter;
}
appendToStream(streamId, expectedVersion, events) {
if (events.length === 0) {
return;
}
events.forEach(function(event) {
thi... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
namespace _02_Convert_from_base_N_to_base_10
{
public class ConvertFromBaseNToBase10
{
public static void Main()
{
string[] parameters = Consol... | Java |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Collections;
using System.Threading;
namespace Joddgewe
{
public partial class Form1 : Form
{
private stri... | Java |
package com.jnape.palatable.lambda.optics.prisms;
import org.junit.Test;
import java.util.HashMap;
import java.util.LinkedHashMap;
import static java.util.Arrays.asList;
import static java.util.Collections.singleton;
import static java.util.Collections.singletonMap;
import static testsupport.assertion.PrismAssert.as... | Java |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 15l-5-5h3V9h4v4h... | Java |
(function () {
'use strict';
angular
.module('app.home')
.config(appRun);
/* @ngInject */
function appRun($stateProvider) {
$stateProvider
.state('root.home', {
url: '/',
templateUrl: 'app/home/home.html',
controller: 'Home',
controllerAs: 'vm',
});
}
... | Java |
using OTransport.Factory;
using OTransport.Serializer.protobuf;
namespace OTransport.Serializer.protobuf
{
public static class ObjectTransportAssemblyLine_protobufExtension
{
/// <summary>
/// Use Protobuf Serialization to serialize objects
/// </summary>
/// <returns></returns... | Java |
import React from 'react';
import {
Text,
View,
TextInput,
} from 'react-native';
import newChallengeStyles from '../../styles/newChallenge/newChallengeStyles';
import mainStyles from '../../styles/main/mainStyles';
import ItemSelectView from './ItemSelectView';
const propTypes = {
onChallengeUpdate... | Java |
# tuff
One More Web Framework
| Java |
/*
* Copyright (c) 2012 M. M. Naseri <m.m.naseri@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
* without restriction, including without limitation the rights to use, copy, m... | Java |
/*
* The MIT License
*
* Copyright 2014 Kamnev Georgiy (nt.gocha@gmail.com).
*
* Данная лицензия разрешает, безвозмездно, лицам, получившим копию данного программного
* обеспечения и сопутствующей документации (в дальнейшем именуемыми "Программное Обеспечение"),
* использовать Программное Обеспечение без огра... | Java |
import React, {PropTypes} from 'react';
import L from 'leaflet';
import gh from '../api/GitHubApi';
import RaisedButton from 'material-ui/RaisedButton';
const REPO_TIMESPAN = {
ALLTIME: 0,
THIRTYDAYS: 1,
SIXTYDAYS: 2,
ONEYEAR: 3
};
const defaultMapConfig = {
options: {
center: [
... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.