code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
function browserSupportsHtml5HistoryApi() {
return !! (history && history.replaceState && history.pushState);
}
$(document).ready(function() {
//_gaq.push(['_trackEvent', 'Citizen-Format-Smartanswer', 'Load']);
if(browserSupportsHtml5HistoryApi()) {
var formSelector = ".current form";
initializeHistory(... | Java |
.crystal-tooltip {
position: absolute;
z-index: 1030;
display: block;
padding: 5px;
font-size: 13px;
opacity: 0;
filter: alpha(opacity=0);
visibility: visible;
}
.crystal-tooltip.shown {
opacity: .8;
}
.crystal-tooltip.bottom {
margin-bottom: -3px;
padding-top: 9px;
}
.crystal-tooltip.top {
... | Java |
<?php
/*
* This file is part of the Symfony package.
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Tests\Component\Security\User;
use Symfony\Compo... | Java |
Ext.define('CustomIcons.view.Main', {
extend: 'Ext.tab.Panel',
xtype: 'main',
requires: [
'Ext.TitleBar',
'Ext.Video'
],
config: {
tabBarPosition: 'bottom',
items: [
{
title: 'Welcome',
iconCls: 'headphones',
... | Java |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _index = require('../../../_lib/setUTCDay/index.js');
var _index2 = _interopRequireDefault(_index);
var _index3 = require('../../../_lib/setUTCISODay/index.js');
var _index4 = _interopRequireDefault(_index3);
var _index5 = require(... | Java |
<script src='<?php echo base_url()?>assets/js/tinymce/tinymce.min.js'></script>
<script>
tinymce.init({
selector: '#myartikel'
});
</script>
<form action="<?php echo base_url('admin/Cartikel_g/proses_add_artikel') ?>" method="post" enctype="multipart/form-data">
<div class="col-md-8 whitebox">
<h3 cl... | Java |
// Copyright (c) 2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_SPAN_H
#define BITCOIN_SPAN_H
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#incl... | Java |
# frozen_string_literal: true
module ArrayUtil
def self.insert_before(array, new_element, element)
idx = array.index(element) || -1
array.insert(idx, new_element)
end
def self.insert_after(array, new_element, element)
idx = array.index(element) || -2
array.insert(idx + 1, new_element)
end
en... | Java |
<!DOCTYPE html>
<html lang="en-gb" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>List component - UIkit documentation</title>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link... | Java |
// get params
function getParams()
{
var params = {
initial_amount: parseInt($('#initial_amount').val(), 10) || 0,
interest_rate_per_annum: parseFloat($('#interest_rate_per_annum').val()) / 100 || 0,
monthly_amount: parseFloat($('#monthly_amount').val()),
num_months: parseInt($('#num_months').val(), 10)
};
... | Java |
using Lidgren.Network;
namespace Gem.Network.Handlers
{
public class DummyHandler : IMessageHandler
{
public void Handle(NetConnection sender, object args)
{ }
}
}
| Java |
define([
"dojo/_base/declare",
"dojo/_base/fx",
"dojo/_base/lang",
"dojo/dom-style",
"dojo/mouse",
"dojo/on",
"dijit/_WidgetBase",
"dijit/_TemplatedMixin",
"dojo/text!./templates/TGPrdItem.html",
"dijit/_OnDijitClickMixin",
"dijit/_WidgetsInTemplateMixin",
"dijit/form/Button"
], function(declar... | Java |
<?php
/**
* PHPUnit
*
* Copyright (c) 2002-2009, Sebastian Bergmann <sb@sebastian-bergmann.de>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code m... | Java |
const { ipcRenderer, remote } = require('electron');
const mainProcess = remote.require('./main');
const currentWindow = remote.getCurrentWindow();
const $name = $('.name-input');
const $servings = $('.servings-input');
const $time = $('.time-input');
const $ingredients = $('.ingredients-input');
const $directions = $... | Java |
require 'spec_helper'
module Sexpr::Matcher
describe Rule, "eat" do
let(:rule){ Rule.new :hello, self }
def eat(seen)
@seen = seen
end
it 'delegates to the defn' do
rule.eat([:foo])
@seen.should eq([:foo])
end
end
end
| Java |
/*
* Store drawing on server
*/
function saveDrawing() {
var drawing = $('#imagePaint').wPaint('image');
var imageid = $('#imageTarget').data('imageid');
var creatormail = $('input[name=creatorMail]').val();
//Add spinning wheel
var spin = $(document.createElement('div'));
spin.addClass('spin');
$(... | Java |
'use strict'
//Globals will be the stage which is the parrent of all graphics, canvas object for resizing and the renderer which is pixi.js framebuffer.
var stage = new PIXI.Container();
var canvas = document.getElementById("game");;
var renderer = PIXI.autoDetectRenderer(1024, 570, {view:document.getElementById("game... | Java |
import React, {Component} from 'react';
import {connect} from 'react-redux';
class MapFull extends Component {
constructor() {
super();
this.state = {
htmlContent: null
};
}
componentDidMount() {
this.getMapHtml();
}
componentDidUpdate(prevProps, prevState) {
if (!this.props.map... | Java |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jas... | Java |
# AsylumJam2016
Projet VR sur mobile.
| Java |
---
description: An example using the Auth0 Quickstart for a SPA implementation with Auth0 Universal Login.
classes: video-page
---
# Authenticate: SPA Example
See an example using the Auth0 Quickstart for a single-page application (SPA) implementation and learn how Auth0's Universal Login feature does most of the aut... | Java |
<div class="container">
<div class="row">
<sd-toolbar></sd-toolbar>
</div>
<div class="row">
<sd-navbar></sd-navbar>
</div>
<div class="row">
<router-outlet></router-outlet>
</div>
</div>
| Java |
from ab_tool.tests.common import (SessionTestCase, TEST_COURSE_ID,
TEST_OTHER_COURSE_ID, NONEXISTENT_TRACK_ID, NONEXISTENT_EXPERIMENT_ID,
APIReturn, LIST_MODULES)
from django.core.urlresolvers import reverse
from ab_tool.models import (Experiment, InterventionPointUrl)
from ab_tool.exceptions import (EXPERIMENT... | Java |
#-*- coding: utf-8 -*-
from flask import current_app, flash, url_for, request
from flask_admin import expose, BaseView
from logpot.admin.base import AuthenticateView, flash_errors
from logpot.admin.forms import SettingForm
from logpot.utils import ImageUtil, getDirectoryPath, loadSiteConfig, saveSiteConfig
import os... | Java |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Queues extends CI_Controller {
public function __construct()
{
parent::__construct();
date_default_timezone_set('Asia/Kolkata');
$this->is_logged_in();
}
public function index()
{
$data['pag... | Java |
SOURCES=$(shell find notebooks -name *.Rmd)
TARGETS=$(SOURCES:%.Rmd=%.pdf)
%.html: %.Rmd
@echo "$< -> $@"
@Rscript -e "rmarkdown::render('$<')"
%.pdf: %.Rmd
@echo "$< -> $@"
@Rscript -e "rmarkdown::render('$<')"
default: $(TARGETS)
clean:
rm -rf $(TARGETS)
| Java |
---
header: meta
example: Collection.meta
---
The `meta` attribute is a special attribute on a Collection which allows you to store additional information about the Collection instance. For example, you can save pagination data in `meta`.
The meta information is part of the information that is stored in the object w... | Java |
use std::ops::{Add, Mul};
use std::iter::Sum;
#[derive(Copy, Clone, Serialize, Deserialize)]
pub struct Color(pub f64, pub f64, pub f64);
pub const RED: Color = Color(1.0, 0.0, 0.0);
pub const GREEN: Color = Color(0.0, 1.0, 0.0);
pub const BLUE: Color = Color(0.0, 0.0, 1.0);
pub const WHITE: Color = Color(1.0, 1.0, 1... | Java |
<?php namespace Todohelpist\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class Inspire extends Command {
/**
* The console command name.
*
* @var string
*/
protected... | Java |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.10.... | Java |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Dn... | Java |
var f = require('fs');
var _ = require('underscore');
var r = {};
var cr = require('../config.json').resources;
var k = require('../config.json').plugins;
var b = require('../config.json').APIVARS.PLUGINS;
var n = __dirname.replace('/autoform', b.DIR);
var w = ['tokens', 'settings'];
var s = ['actions', 'login', 'recov... | Java |
SET DEFINE OFF;
ALTER TABLE AFW_13_PAGE_ITEM ADD (
CONSTRAINT AFW_13_PAGE_ITEM_FK2
FOREIGN KEY (REF_MESG_AIDE)
REFERENCES AFW_01_MESG (SEQNC)
ENABLE VALIDATE)
/
| Java |
// Copyright © 2014-2016 Ryan Leckey, All Rights Reserved.
// Distributed under the MIT License
// See accompanying file LICENSE
#ifndef ARROW_PASS_H
#define ARROW_PASS_H
#include <memory>
#include <string>
#include "arrow/generator.hpp"
namespace arrow {
class Pass {
public:
explicit Pass(GContext& ctx) : _ct... | Java |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
require_once("Auth.php");
class GameQuestion extends Auth {
public function __construct(){
parent::__construct();
$this->load->model("game_md");
$this->load->model("question_md");
}
public function index($game_id)
{
$data = arra... | Java |
---
date: 2015-05-09T16:59:30+02:00
title: "Exporting Your Mockups"
menu: "menugoogledrive3"
product: "Balsamiq Mockups 3 for Google Drive"
weight: 160
tags:
- "Exporting"
- "PDF"
- "PNG"
- "Printing"
- "Image"
include: "exporting"
editorversion: 3
aliases: /google-drive/exporting/
---
| Java |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.c :+: :+: :+: ... | Java |
/* ===========================================================
* bootstrap-modal.js v2.1
* ===========================================================
* Copyright 2012 Jordan Schroter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lice... | Java |
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
namespace Affixx.Core.Database.Generator
{
internal class SqlServerSchemaReader : SchemaReader
{
private DbConnection _connection;
public override Tables ReadSchema(DbConnection connection)
{
var result = new Tables();
_c... | Java |
<p align="center"><a href="https://godoc.org/github.com/volatile/response"><img src="http://volatile.whitedevops.com/images/repositories/response/logo.png" alt="response" title="response"></a><br><br></p>
Package [response](https://godoc.org/github.com/volatile/response) is a helper for the [core](https://godoc.org/gi... | Java |
<div class="row">
<div class="col-xs-4 form-group" validity-coordinator>
<label for="petname{{ctrl.index}}">Pet name</label>
<input validate ng-model="ctrl.pet.name" type="text" class="form-control" id="petname{{ctrl.index}}" />
<validity-indicator></validity-indicator>
</div>
<div class="col-xs-4 form-group">
... | Java |
<p><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="bc.css">
<script src="run_prettify.js" type="text/javascript"></script>
<!---
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js" type="text/javascript"></script>
-... | Java |
use SEPSLoader
go
-- Statement for schema creation
DECLARE @sql NVARCHAR(MAX)
SET @sql ='CREATE SCHEMA StackExchange AUTHORIZATION [dbo]'
IF NOT EXISTS(SELECT name FROM sys.schemas WHERE name = 'StackExchange')
begin
EXEC sp_executesql @sql;
end
-- NOTE: StackExchange is replaced by the name of the site
IF EXIST... | Java |
var AWS = require('aws-sdk');
var Policy = require("./s3post").Policy;
var helpers = require("./helpers");
var POLICY_FILE = "policy.json";
var schedule = require('node-schedule');
var Worker = function(sqsCommnad, s3Object, simpleData){
var queue = sqsCommnad;
var s3 = s3Object;
var simpleDataAuth = simpleData;... | Java |
# TODO When raising an exception pass a lambda function, the function being the module/path/name thing
ERROR = {'default': "Unknown engine error ({0})",
400: "Bad request sent to search API ({0})",
401: "Incorrect API Key ({0})",
403: "Correct API but request refused ({0})",
404: "B... | Java |
import React, { Component } from 'react'
import { Form, Grid, Image, Transition } from 'shengnian-ui-react'
const transitions = [
'scale',
'fade', 'fade up', 'fade down', 'fade left', 'fade right',
'horizontal flip', 'vertical flip',
'drop',
'fly left', 'fly right', 'fly up', 'fly down',
'swing left', 'swi... | Java |
#!/bin/bash
QBIN=$(which qdyn5_r8)
OK="(\033[0;32m OK \033[0m)"
FAILED="(\033[0;31m FAILED \033[0m)"
steps=( $(ls -1v *inp | sed 's/.inp//') )
for step in ${steps[@]}
do
echo "Running step ${step}"
if ${QBIN} ${step}.inp > ${step}.log
then echo -e "$OK"
cp ${step}.re ${step}.re.rest
else
echo -e "$FA... | Java |
# s-vertical-rhythm-class
Return the vertical-rhythm setting scope class
Return **{ [String](http://www.sass-lang.com/documentation/file.SASS_REFERENCE.html#sass-script-strings) }** The vertical-rhythm scope class from settings.vertical-rhythm.scope-class
Author : Olivier Bossel [olivier.bossel@gmail.com](mailto:oli... | Java |
export class Guest {
constructor(public name: String, public quantity: number){
}
} | Java |
FROM sameersbn/ubuntu:14.04.20150805
MAINTAINER sameer@damagehead.com
ENV REDMINE_VERSION=3.1.0 \
REDMINE_USER="redmine" \
REDMINE_HOME="/home/redmine" \
REDMINE_LOG_DIR="/var/log/redmine" \
SETUP_DIR="/var/cache/redmine" \
RAILS_ENV=production
ENV REDMINE_INSTALL_DIR="${REDMINE_HOME}/redmine" \
... | Java |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Dosen extends MY_Controller {
public $data = array(
'breadcrumb' => 'Dosen',
'pesan' => '',
'subtitle' => '',
'main_view' => 'viewDosen',
);
public function __construct(){
parent::__construct();
$this->load->model('Dosen_mod... | Java |
import {server} from './initializers'
module.exports = function startServer(){
server.listen(8080)
} | Java |
## Estrutura de diretórios para projetos AngularJS
* app/ -> arquivos da aplicação
+ css/ -> arquivos css
+ js/ -> componentes javascript da aplicação
+ controllers/ -> diretório para os controllers
+ directives/ -> diret... | Java |
# totem-enquete-ru
Versão Arduino para dar sua opinião sobre o cardápio do Restaurante Universitário da UFRN
| Java |
---
layout: page
title: Maddox - Oconnell Wedding
date: 2016-05-24
author: Emma Mcfarland
tags: weekly links, java
status: published
summary: Etiam eu accumsan lorem. Morbi faucibus velit nec.
banner: images/banner/meeting-01.jpg
booking:
startDate: 10/18/2017
endDate: 10/20/2017
ctyhocn: WINWVHX
groupCode: MOW... | Java |
using System;
using System.ServiceModel;
namespace SoapCore.Tests.Wsdl.Services
{
[ServiceContract]
public interface INullableEnumService
{
[OperationContract]
NulEnum? GetEnum(string text);
}
public class NullableEnumService : INullableEnumService
{
public NulEnum? GetEnum(string text)
{
throw new N... | Java |
var Game = {
map: {
width: 980,
height: 62 * 12
},
tiles: {
size: 62,
count: [100, 12]
},
sprite: {
8: 'LAND_LEFT',
2: 'LAND_MID',
10: 'LAND_RIGHT',
9: 'LAND',
5: 'WATER_TOP',
12: 'WATER',
4: 'STONE_WITH_MONEY',
11: 'STONE',
6: 'CACTUS',
13: 'GRASS',
... | Java |
# Demo mode
Smart meter has a demo mode that is intended to make demonstrating the product and system-level testing easier.
Demo mode allows creating situations that would be hard to create otherwise (e.g. connection to cloud is lost between
price request and parking event registering). Demo mode is to be used in de... | Java |
<!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"> <!--<![endif]-->
<head>
<meta chars... | Java |
#!/usr/bin/python
import os
import re
from lxml import etree as et
import pcbmode.config as config
from . import messages as msg
# pcbmode modules
from . import utils
from .point import Point
def makeExcellon(manufacturer='default'):
"""
"""
ns = {'pcbmode':config.cfg['ns']['pcbmode'],
'svg... | Java |
'use strict';
import _ from 'lodash';
import bluebird from 'bluebird';
import fs from 'fs';
import requireDir from 'require-dir';
import Logger from '../../logger';
bluebird.promisifyAll(fs);
function main() {
const imports = _.chain(requireDir('./importers'))
.map('default')
.map((importer) => importer.ru... | Java |
// FriendlyNameAttribute.cs created with MonoDevelop
// User: ben at 1:31 P 19/03/2008
//
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
//
using System;
namespace EmergeTk.Model
{
public class FriendlyNameAttribute : Attribute
{
string name;
public string Name {
get {
... | Java |
Ext.define('Category.view.GenericList', {
extend: 'Ext.grid.Panel',
alias: 'widget.genericlist',
store: 'Generic',
title: Raptor.getTag('category_header'),
iconCls:'',
initComponent: function() {
this.columns = [{
header:Raptor.getTag('category_name'),
da... | Java |
using System;
using static LanguageExt.Prelude;
namespace LanguageExt.UnitsOfMeasure
{
/// <summary>
/// Numeric VelocitySquared value
/// Handles unit conversions automatically
/// </summary>
public struct VelocitySq :
IComparable<VelocitySq>,
IEquatable<VelocitySq>
{
... | Java |
//
// Lexer.cpp
// lut-lang
//
// Created by Mehdi Kitane on 13/03/2015.
// Copyright (c) 2015 H4314. All rights reserved.
//
#include "Lexer.h"
#include <string>
#include <regex>
#include <iostream>
#include "TokenType.h"
#include "ErrorHandler.h"
using std::cout;
using std::endl;
using std::smatch;
using std::st... | Java |
#define NC0_As 0x0E
#define NC0_B 0x0D
#define NC1_C 0x15
#define NC1_Cs 0x1E
#define NC1_D 0x1D
#define NC1_Ds 0x26
#define NC1_E 0x24
#define NC1_F 0x2D
#define NC1_Fs 0x2E
#define NC1_G 0x2C
#define NC1_Gs ... | Java |
<?php
/**
* This file is part of the Redsys package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
namespace Redsys\Tests\Api;
use Redsys\Api\Titular;
class TitularTest extends \PHPUnit_Framework_TestCase... | Java |
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("KnowledgeCenter.Domain")]
[assembly: AssemblyDescription("")]
[assembly: Guid("34163851-767a-42f4-9f09-7d1c6af2bd11")] | Java |
repo_the_first
==============
| Java |
---
layout: page
title: Copeland King Trade Executive Retreat
date: 2016-05-24
author: Dennis David
tags: weekly links, java
status: published
summary: Vivamus facilisis sem a turpis volutpat.
banner: images/banner/leisure-05.jpg
booking:
startDate: 08/16/2017
endDate: 08/20/2017
ctyhocn: SFOCCHX
groupCode: CKT... | 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 |
# Update for Chrome 71
Due to abuse of users with the Speech Synthesis API (ADS, Fake system warnings), Google decided to remove the usage of the API in the browser when it's not triggered by an user gesture (click, touch etc.). This means that calling for example <code>artyom.say("Hello")</code> if it's not wrapped i... | Java |
#include "src/math/float/log10f.c"
#include "log.h"
int main(void)
{
test(log10f, log10);
}
| Java |
<?php
namespace XeroPHP\Reports;
class AgedReceivablesByContact
{
/**
* @var string[]
*/
private $headers;
/**
* @var mixed[]
*/
private $rows;
/**
* @param string[] $headers
* @param mixed[] $rows
*/
public function __construct(array $headers, array $rows =... | Java |
# mrb\_manager
[](https://gitter.im/rrreeeyyy/mrb_manager?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
mruby binary manager having a affinity for mgem
## Installation
Install it yourself as:
$ gem install mrb_manager
Afterwards y... | Java |
var searchData=
[
['nalloc',['NALLOC',['../dwarfDbgInt_8h.html#a30e913ccf93d7ea095a144407af0f9a5',1,'dwarfDbgInt.h']]],
['name',['name',['../structattrValues.html#ac7cb0154aaced069f3b1d24a4b40bf26',1,'attrValues']]],
['nextcompileunitoffset',['nextCompileUnitOffset',['../structcompileUnit.html#a1f5c469b922f6fcfe3... | Java |
<?php
namespace Mastercel\ChartBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Solicitudespagos
*
* @ORM\Table(name="SolicitudesPagos", indexes={@ORM\Index(name="Indice_1", columns={"DteSolicitud", "TmeSolicitud"}), @ORM\Index(name="Indice_2", columns={"DteActualizacion"}), @ORM\Index(name="Indice_3", colum... | Java |
const moment = require('moment')
const expect = require('chai').expect
const sinon = require('sinon')
const proxyquire = require('proxyquire')
const breadcrumbHelper = require('../../helpers/breadcrumb-helper')
const orgUnitConstant = require('../../../app/constants/organisation-unit.js')
const activeStartDate = mome... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ProjectData;
using Tools;
using ProjectBLL;
using System.Data;
using Approve.RuleCenter;
using System.Text;
using System.Collections;
using Approve.RuleApp;
public partial cl... | Java |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Test.Utilities;
using Xunit;
using VerifyCS = Test.Utilities.CSharpCodeFixVerifier<
Microsoft.CodeQuality.Analyzers.ApiDesignGuidelin... | Java |
/**
* Conversion:
* All dynamic tweaked dom id or class names are prefixed with 't-'.
*/
/**
* Config
*/
var PRIVATE_TOKEN = 'xYDh7cpVX8BS2unon1hp';
/**
* Globals.
*/
var autocompleteOpts,
projectOpts,
currentProjectID,
currentProjectPath;
$(function () {
initGlobals();
handleAll();
mapUrlHandle... | Java |
import axios from 'axios'
import pipelineApi from './api'
import { addMessage } from '../../../client/utils/flash-messages'
import { transformValueForAPI } from '../../../client/utils/date'
function transformValuesForApi(values, oldValues = {}) {
const data = {
name: values.name,
status: values.category,
}... | Java |
var global = require('../../global');
module.exports = function (data, offset) {
var items = data.items.map(invoiceNote => {
var invoiceItem = invoiceNote.items.map(dataItem => {
var _items = dataItem.items.map(item => {
dueDate = new Date(dataItem.deliveryOrderSupplierDoDate);... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coqffi: 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>bignums: 3 m 34 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel=... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>persistent-union-find: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootst... | Java |
//
// StoreAppleReceiptParser.hpp
// Pods
//
// Created by eps on 7/3/20.
//
#ifndef EE_X_STORE_APPLE_RECEIPT_PARSER_HPP
#define EE_X_STORE_APPLE_RECEIPT_PARSER_HPP
#include <string>
#include "ee/store/StoreFwd.hpp"
namespace ee {
namespace store {
class AppleReceiptParser {
public:
AppleReceiptParser();
... | Java |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.network;
import com.azure.core.http.rest.PagedIterable;
import com.azure.resourcemanager.network.models.DdosProtectionPlan;
import com.azure.resourcemanager.test.utils.TestUtilities;
import... | Java |
"""Run tests for the kmeans portion of the kmeans module"""
import kmeans.kmeans.kmeans as kmeans
import numpy as np
import random
def test_1dim_distance():
"""See if this contraption works in 1 dimension"""
num1 = random.random()
num2 = random.random()
assert kmeans.ndim_euclidean_distance(num1, num... | Java |
const multiples =
'(hundred|thousand|million|billion|trillion|quadrillion|quintillion|sextillion|septillion)'
const here = 'fraction-tagger'
// plural-ordinals like 'hundredths' are already tagged as Fraction by compromise
const tagFractions = function (doc) {
// hundred
doc.match(multiples).tag('#Multiple', her... | Java |
window._skel_config = {
prefix: 'css/style',
preloadStyleSheets: true,
resetCSS: true,
boxModel: 'border',
grid: { gutters: 30 },
breakpoints: {
wide: { range: '1200-', containers: 1140, grid: { gutters: 50 } },
narrow: { range: '481-1199', containers: 960 },
mobile: { r... | Java |
# phase-0-gps-1
GPS 1.1(pair with Tom Goldenberg)
| Java |
(function(app, undefined) {
'use strict';
if(!app) throw new Error('Application "app" namespace not found.');
//----------------------------------------------------------------------------
console.log( 'hello world' );
console.log( 'Application Running...' );
//------------------------------------------... | Java |
{-# LANGUAGE CPP #-}
module Database.Orville.PostgreSQL.Plan.Explanation
( Explanation
, noExplanation
, explainStep
, explanationSteps
) where
newtype Explanation =
Explanation ([String] -> [String])
#if MIN_VERSION_base(4,11,0)
instance Semigroup Explanation where
(<>) = appendExplanation
#endif
inst... | Java |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace KUI.Controls
{
public class FlatAccentButton : FlatButton
{
protected override void OnPaintBackground(PaintEventArgs pevent)
... | Java |
// crm114_config.h -- Configuration for CRM114 library.
// Copyright 2001-2010 William S. Yerazunis.
//
// This file is part of the CRM114 Library.
//
// The CRM114 Library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// ... | Java |
using MortgageCalc.Models;
using System;
using System.Collections.Generic;
namespace MortgageCalc.Calculators
{
public class InterestOnlyScheduleBuilder
{
private RateCalc _calc = new RateCalc(6); // initialize with 6 decimal places
private decimal _monthlyPayment;
private decimal _pri... | Java |
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>grapp-core-ajax tests</title>
<script src="../lib/web-component-tester/browser.js"></script>
</head>
<body>
<script>
WCT.loadSuites([
... | Java |
import Ember from 'ember';
import CheckboxMixin from '../mixins/checkbox-mixin';
export default Ember.Component.extend(CheckboxMixin, {
type: 'checkbox',
checked: false,
onChange: function() {
this.set('checked', this.$('input').prop('checked'));
this.sendAction("action", {
checked: this.get('chec... | Java |
@ParametersAreNonnullByDefault
package org.zalando.problem.spring.web.advice;
import javax.annotation.ParametersAreNonnullByDefault;
| Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.