code stringlengths 4 1.01M |
|---|
using System;
namespace Oragon.Architecture.MessageQueuing
{
public interface IQueueConsumerWorker : IDisposable
{
bool ModelIsClosed { get; }
void DoConsume();
void Ack(ulong deliveryTag);
void Nack(ulong deliveryTag, bool requeue = false);
}
} |
{% extends "app_layout.html" %}
{% set active_page = "users" %}
{% block content %}
<h3>Hello! {{ g.user.full_name() }}</h3>
{% endblock %}
|
<?php
class Input {
public static $is_parsed = false;
public static $params = [];
/**
* Парсит и сохраняет все параметры в переменной self::$params
*
* @access protected
* @return $this
*/
protected static function parse() {
if (filter_input(INPUT_SERVER, 'argc')) {
$argv = filter_inpu... |
#include "pch.hpp"
#include "default_log.hpp"
#include "service_log.hpp"
#include "service_helpers.hpp"
namespace be {
///////////////////////////////////////////////////////////////////////////////
bool default_log_available() {
return check_service<Log>();
}
/////////////////////////////////////////////////////... |
/**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.clients.commerce.orders;
import java.util.List;
import java.util.ArrayList;
import com.mozu.api.MozuClient;
import com.mozu.... |
//
// VariableValueReference.cs
//
// Author:
// Lluis Sanchez Gual <lluis@novell.com>
//
// Copyright (c) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to de... |
{% load cobweb_look %}
{% load jargon %}
{% load i18n %}
{% if link_url %}
<a href="{{ link_url }}" class="btn btn-primary">
+ Add a {% term "nomination" %}
</a>
{% endif %} |
---
title: 'txt2re: Regular Expression Generator'
date: '2011-10-10T03:56:00.000-07:00'
tags:
- Regex
- Utilities
modified_time: '2011-10-10T05:14:47.941-07:00'
blogger_id: tag:blogger.com,1999:blog-3456458686961244994.post-7064012350422304264
blogger_orig_url: http://blog.kieranties.com/2011/10/txt2re-regular-express... |
//
// MenuViewController.h
// MBXMapKit
//
// Created by Gevorg Ghukasyan on 2/9/15.
// Copyright (c) 2015 MapBox. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MenuViewController : UIViewController
@end
|
<?php
return array(
/*
|--------------------------------------------------------------------------
| Module Language Lines
|--------------------------------------------------------------------------
|
| This file keeps the language lines of the related module.
|
*/
'receiver' ... |
/**
* Copyright 2015 aixigo AG
* Released under the MIT license.
* http://laxarjs.org/license
*/
require( [
'laxar',
'laxar-application/var/flows/embed/dependencies',
'json!laxar-application/var/flows/embed/resources.json'
], function( ax, mainDependencies, mainResources ) {
'use strict';
window.laxa... |
// Langevin.h -- The Velocity Verlet molecular dynamics algorithm.
// -*- c++ -*-
//
// Copyright (C) 2001-2011 Jakob Schiotz and Center for Individual
// Nanoparticle Functionality, Department of Physics, Technical
// University of Denmark. Email: schiotz@fysik.dtu.dk
//
// This file is part of Asap version 3.
//
/... |
package com.tommytao.a5steak.glocation;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
... |
#include <check.h>
#include "check_ace_string.h"
#include "../src/ace_string.h"
// unit tests ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
START_TEST (join_two_strings)
{
char *result = ace_str_join_2 ("hello", " world");
ck_assert_str_eq (result, "hello world");
}
END_TEST
START_TEST (join... |
=begin
#The Plaid API
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
The version of the OpenAPI document: 2020-09-14_1.79.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.1.0
=end
require 'date'
require 'time'
module Plaid
# An object containing liability... |
<?php
namespace Delr3ves\RestApiBundle\Tests\Unit\Unmarshalling;
use Delr3ves\RestApiBundle\Unmarshalling\ContentTypeUtils;
use Delr3ves\RestApiBundle\Unmarshalling\FormatNotSupportedException;
class ContentTypeUtilsTest extends \PHPUnit_Framework_TestCase {
/**
* @var ContentTypeUtils
*/
protected... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace dona.Forms.Dependencies
{
public interface INetworkInformation
{
string GetNetworkOperatorName();
}
}
|
<!DOCTYPE html>
<!--[if IE 6]> <html id="ie ie67 ie6" dir="ltr" lang="en-US"> <![endif]-->
<!--[if IE 7]> <html id="ie ie67 ie7" dir="ltr" lang="en-US"> <![endif]-->
<!--[if IE 8]> <html id="ie ie678 ie8" dir="ltr" lang="en-US"> <![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!--> <html dir="ltr" lang="en-US"> <... |
# roadie-rails
[](https://github.com/Mange/roadie-rails/actions/workflows/main.yml)
[](https://codeclimate.com/github/Mange/roadie-rails)
[![Code ... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>module Taxcalendario::Client::Entities - RDoc Documentation</title>
<link href="../../fonts.css" rel="stylesheet">
<link href="../../rdoc.css" rel="stylesheet">
<script type="text/javascript">
var rdoc_rel_prefix = "../../";
</script>
<script src="../..... |
# Nginx Log Tools
Every time something crops up I find myself writing a tool to chop up the log files and
find out what was happening. These are the more general of the tools that I have created
over the years so I know where to find them in the future
## What data is reported
The application can report three thin... |
package parser_test
import (
"fmt"
"testing"
"github.com/ngdinhtoan/hari/parser"
)
func TestParse(t *testing.T) {
data := []byte(`
{
"name": "Toan",
"age": 30,
"active": true,
"children": [{
"name": "Hachi",
"age": 3
},
{
"name": "Yuri",
"age": 2
}],
"... |
#!/usr/bin/php -q
<?php
/*
The MIT License (MIT)
Copyright (c) 2015 Gary Smart www.smart-itc.com.au
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 limitati... |
<?php
namespace Recurrence\Validator;
use Recurrence\Model\Frequency;
use Recurrence\Model\Recurrence;
use Recurrence\Constraint\ProviderConstraint\EndOfMonthConstraint;
use Recurrence\Model\Exception\InvalidRecurrenceException;
/**
* Class RecurrenceValidator
* @package Recurrence\Validator
*/
class RecurrenceVa... |
#!/bin/bash -u
set -e
#
# Copyright (c) 2012 Tresys Technology LLC, Columbia, Maryland, USA
#
# This software was developed by Tresys Technology LLC
# with U.S. Government sponsorship.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# Lice... |
import React from 'react';
import Tap from '../hahoo/Tap';
class BtnUpLevel extends React.Component {
static propTypes = {
onItemClick: React.PropTypes.func
}
state = {}
render() {
const { onItemClick, ...rest } = this.props;
return (<Tap
onTap={onItemClick}
className="btn btn-defaul... |
#ifndef QMLTAB_H
#define QMLTAB_H
#include <QWidget>
#include <QLayout>
#include <QQuickView>
#include <QQmlEngine>
#include <QQuickItem>
#include <QQmlComponent>
#include <QVariantList>
#include <QApplication>
#include <memory>
#include "dbi/dbi.h"
class QmlTab : public QWidget
{
Q_OBJECT
public:
explicit Qm... |
package org.openforis.collect.web.manager;
import java.util.HashMap;
import java.util.Map;
import org.openforis.collect.manager.CachedRecordProvider;
import org.openforis.collect.model.CollectRecord;
import org.openforis.collect.model.CollectRecord.Step;
import org.openforis.collect.model.CollectSurvey;
public class... |
"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
var _graphqlRelay = require("graphql-relay");
var _EnsayoType = _interopRequireDefault(require("./EnsayoType"));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}var _default... |
<?php
class Controller
{
private $project;
private $request;
private $response;
private $user;
private $template_engine;
public function __construct(BaseProject $project, Request $request=null)
{
$this->project = $project;
$this->request = $request;
}
public function getActionName($action)
{
return... |
---
layout: post
title: 后缀数组总结
tags: [about, Jekyll, theme, responsive]
comments: true
image:
feature: 4.jpg
---
最近接触到了后缀数组,可以说是我至今为止遇到的最复杂的数据结构了,从查资料到把他搞懂花了两天的时间,现把它做一个小小的总结。后缀数组是一种非常强大的处理字符串问题的数据结构,目前有两种方法构造后缀数组,一种是倍增算法,时间复杂度为O(NlogN)。优点是实现简单,内存较少。另一种是DC3算法,时间复杂度为O(N),但是常数较大而且所占内存较大。实际上,由于倍增算法便于实现,时间复杂度也并不比DC3算法差多... |
<!DOCTYPE html>
<html>
<head>
<title>Type Magic</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
body { font-family: 'Palatino'; line-height: 2.5em; }
h1, h2, h3 {
font-family: 'Palatino';
font-weight: normal;
}
img ... |
/**
* @author Phuluong
* Feb 13, 2016
*/
/** Exports **/
module.exports = new Config();
/** Imports **/
var fs = require("fs");
var util = require(__dir + '/core/app/util');
/** Modules **/
function Config() {
var configContainer = {};
/**
* Get config value by key
* @param {String} key
* @par... |
class AddObserveIdFromPeriods < ActiveRecord::Migration
def change
add_reference :periods, :user, index: true
end
end
|
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
/**
* @return array
*/
public function registerBundles()
{
return array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new ... |
<!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... |
namespace GridCity.Fields.Buildings {
using System;
using System.Collections.Generic;
using People;
internal class WorkBuilding : OccupationalBuilding {
//---------------------------------------------------------------------
// Constructors
//---------------------------------... |
/* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'addressbook-app',
environment: environment,
baseURL: '/',
locationType: 'auto',
emberPouch: {
localDb: 'dentone-addressbook',
remoteDb: 'https://wasilleptichandfurningio:6c01f93f266bb3cf6dfd579... |
<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<div class="sf_admin_form">
<?php echo form_tag_for($form, '@jt_users') ?>
<?php echo $form->renderHiddenFields(false) ?>
<?php if ($form->hasGlobalErrors()): ?>
<?php echo $form->renderGlobalErrors() ?>
<?php endif;... |
import math
class Point:
def __init__(self, x, y):
self.x = x
self.y = y
def rssToEstimatedDistance(rss):
freq = 2462 # freq of WiFi channel 6
origDBm = -20 # estimate this value
loss = abs(origDBm - rss)
dist = 10 ** ( ( loss + 27.55 - 20 * math.log10(freq) )... |
---
layout: single
title: "2020-09-03 - Orchestration in Event Driven architecture"
date: 2020-09-03 17:00:00 +0000
comments: true
published: true
categories: ["events"]
tags: ["Events"]
author: Maarten Balliauw
---
Service Bus, Event Hub and Event Grid - all can be used in Event Driven Architecture. Let's look at the... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Web 2.0</title>
<meta name="author" content="raesene">
<!-- Enable responsive viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script s... |
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInitfbfcde531df662d1e2394a96c22298b7::getLoader();
|
package _04MordorsCrueltyPlan;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Wizard {
private static final Map<String, Integer> FOODS = new HashMap<String, Integer>() {{
put("cram", 2);
put("lembas", 3);
put("apple", 1);
put("melon", 1);
... |
red = gr.material({0.8, 0.1, 0.1}, {0.5, 0.5, 0.5}, 25)
blue = gr.material({0.0, 0.0, 1.0}, {0.5, 0.5, 0.5}, 25)
rblue = gr.smaterial({0, 0, 0}, {1, 1, 1}, 50, 1, 1.65, 0)
blue = gr.material({0.0, 0.1, 1}, {0.5, 0.5, 0.5}, 25)
green = gr.material({0.0, 1.0, 0.0}, {0.5, 0.5, 0.5}, 25)
rgreen = gr.material({0.0, 0.1, 0.0... |
/* global describe, before, it */
require('mocha')
require('should')
var async = require('async')
var testUtils = require('./testUtils')
var errorMessage = require('../errorMessages/errorMessages')
var mongo_dcms_core = require('../index')
describe('should get file Content by file id', function () {
var filepath = '... |
<section>
<h2>About</h2>
<p>
This is an Angular version of an Ember blog app with a Rails API.
</p>
</section>
|
import { Behavior } from '@aelea/core'
import { $text, component, style } from '@aelea/dom'
import { $card, $column, $row, $seperator, $TextField, $VirtualScroll, layoutSheet, ScrollRequest, ScrollResponse } from '@aelea/ui-components'
import { pallete } from '@aelea/ui-components-theme'
import { at, debounce, empty, ... |
/* Definitions of target machine for GNU compiler. MIPS version.
Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
Free Software Foundation, Inc.
Contributed by J. Grosbach, james.grosbach@microchip.com
Changes by J. Kajit... |
package loki_test
import (
"bytes"
"encoding/json"
"fmt"
"testing"
"time"
"github.com/andviro/goldie"
"github.com/andviro/grayproxy/pkg/loki"
"github.com/prometheus/common/model"
)
type testHandler bytes.Buffer
func (t *testHandler) Handle(ls model.LabelSet, ts time.Time, s string) error {
buf := (*bytes.B... |
* Ask about a timeline
* Start thining about the timeline - calculate backwards starting from the launch date.
* What ressources do you have / do you need to acquire?
** Project Managers, Designer, Web Developer, UX Experts, Testers, Content People, Createive Agencies, Specialised E-Commerce Agencies
* Benchmarking the... |
/**
* Lawnchair!
* ---
* clientside json store
*
*/
var Lawnchair = function () {
// lawnchair requires json
if (!JSON) throw 'JSON unavailable! Include http://www.json.org/json2.js to fix.'
// options are optional; callback is not
if (arguments.length <= 2 && arguments.length > 0) {
var... |
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("HealthMonitoring.AcceptanceTests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HealthMonitoring.AcceptanceTests")]
[assembly: AssemblyCopy... |
require 'test_helper'
class EmailsControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end
|
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative sou... |
(function(){function h(a){return function(){return this[a]}}var k=this;function n(a){return"string"==typeof a}function p(a,c){var b=a.split("."),d=k;!(b[0]in d)&&d.execScript&&d.execScript("var "+b[0]);for(var e;b.length&&(e=b.shift());)!b.length&&void 0!==c?d[e]=c:d=d[e]?d[e]:d[e]={}};var q="constructor hasOwnProperty... |
module Hanami
module Utils
# HTML escape utilities
#
# Based on OWASP research and OWASP ESAPI code
#
# @since 0.4.0
#
# @see https://www.owasp.org
# @see https://www.owasp.org/index.php/Cross-site_Scripting_%28XSS%29
# @see https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting... |
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include "targetver.h"
#define AWS_UTIL_EXPORT __declspec(dllexport)
///#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff fr... |
package org.distributedproficiency.dojo.dto;
import org.distributedproficiency.dojo.domain.KataContent;
public class KataSaveRequest {
private KataContent newContent;
public KataSaveRequest() {
super();
}
public KataSaveRequest(KataContent c) {
super();
this.newContent = c;
... |
/**
* drcProcess
* Created by dcorns on 1/2/15.
*/
'use strict';
var RunApp = require('./runApp');
var Server = require('./server');
var parseInput = require('./parseInput');
var CommandList = require('./commandList');
var runApp = new RunApp();
var cmds = new CommandList();
cmds.add(['ls', 'pwd', 'service', 'ps']);... |
/*****************************************************************************
The following code is derived, directly or indirectly, from the SystemC
source code Copyright (c) 1996-2006 by all Contributors.
All Rights reserved.
The contents of this file are subject to the restrictions and limitations
... |
"use strict";
const tester = require("./framework");
const repeatAsyncUntil = require("../source/regularly");
module.exports = tester.run([
tester.make("repeatAsyncUntil() should repeat calls to λ while predicate returns false", async () => {
let executionsCount = 0;
const λ = a... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>WebGL Tutorial Series</title>
<script src="webgl4j_tutorial_series/webgl4j_tutorial_series.nocache.js" type="text/javascript"></script>
</head>
<body>
</body>
</html> |
import {ATTACHMENTS} from "../constants";
export default (...args) => {
// Use one or the other
const attachments = args.length ? args : ATTACHMENTS;
return {
props: {
attach: {
type: String,
validator: value => value === "" || attachments.includes(value)
}
},
computed: {... |
#!/bin/bash
cd /Users/chester_huang/Documents/HTC/htc-prototype/wip/estore-event
grunt prod
|
require 'rails_helper'
describe "Describing Model", model: true do
context "Data Validation" do
end
context "Associations" do
before :each do
@describing = build(:describing)
end
it "has a description" do
expect(@describing).to respond_to :description
end
it "has a describa... |
<!-- Homework Assingment: Basic Portfolio Page Contact Page-->
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>Contact Melissa Wolowicz</title>
<meta charset="utf-8">
<!-- Linking the normalize.css FIRST, and then my own CSS -->
<link rel="stylesheet" type="text/css" href="assets/css/normalize.css">
<link rel=... |
#import "MOBProjection.h"
@interface MOBProjectionEPSG4966 : MOBProjection
@end
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using gView.Framework.Data;
using gView.Framework.Offline;
namespace gView.Framework.Offline.UI
{
public partial class FormAddReplicationID : Form,IFe... |
/**\file
*
* \copyright
* Copyright (c) 2008-2014, Kyuba Project Members
* \copyright
* 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 ... |
# Overview
Application start-up helper to initialize things like an IoC container, register mapping information or run a task.
[](https://ci.appveyor.com/project/LoreSoft/kickstart)
| Package | Version |
| :--- | :--- |
| [KickStart](https:... |
<?php
$this->load->view("header");
$this->load->view($view_name);
$this->load->view("footer");
?> |
'use strict';
module.exports = Source;
const inherits = require('util').inherits;
const Stream = require('../stream');
const Chunk = require('../chunk');
const Compose = require('../through/compose');
const Break = require('../through/break');
const Filter = require('../through/filter');
const Map = require('../throu... |
# Thyme
## An Evergreen Labs Concoction
|
{
"posts": [
{
"url": "/chat/gossiping/2018/01/02/GossipingM.1514855667.A.579.html",
"title": "「大家覺得五月天能紅過其他台灣樂團的秘訣」?鄉民這樣說。",
"image": "http://img5.cna.com.tw/www/WebPhotos/800/20170329/46790509.jpg",
"push": "77",
... |
using System;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Json;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Models;
namespace Services
{
public interface IArticlesService
{
Task<Section[]> GetSections();
Task<Section> GetSection(string sectionRe... |
<?php
class itemModel extends CI_Model
{
public function insertItem()
{
$itemName = $this->input->post('itemName');
$this->db->where('item_name',$itemName);
$result=$this->db->get('shop_item');
if($result->num_rows()>0) {
$this->session->set_flashdata('Error','Ite... |
public class ASTStringLiteral extends SimpleNode
{
String val;
public ASTStringLiteral(int id)
{
super(id);
}
public ASTStringLiteral(ParfA p, int id)
{
super(p, id);
}
public void interpret()
{
ParfANode.stack[++ParfANode.p] = new String(val);
}
} |
require 'one_gadget/gadget'
# https://gitlab.com/david942j/libcdb/blob/master/libc/libc0.1-2.21-9/lib/i386-kfreebsd-gnu/libc-2.21.so
#
# Intel 80386
#
# GNU C Library (Debian GLIBC 2.21-9) stable release version 2.21, by Roland McGrath et al.
# Copyright (C) 2015 Free Software Foundation, Inc.
# This is free software... |
using System.Windows.Controls;
namespace mze9412.ScriptCompiler.Views
{
/// <summary>
/// Interaction logic for SettingsView.xaml
/// </summary>
public partial class SettingsView : UserControl
{
public SettingsView()
{
InitializeComponent();
}
}
}
|
import pytest
from swimlane.exceptions import ValidationError
def test_getattr_fallback(mock_record):
"""Verify cursor __getattr__ falls back to AttributeError for unknown cursor + list methods"""
with pytest.raises(AttributeError):
getattr(mock_record['Text List'], 'unknown_method')
def test_set_v... |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... |
Rails.application.routes.draw do
# Mount the physiqual engine
mount Physiqual::Engine => '/physiqual'
get 'welcome/index'
get 'welcome/example'
get 'welcome/example_data'
root 'welcome#index'
# Omniauth
get '/auth/:provider/callback', :to => 'sessions#create'
get '/auth/failure', :to => 's... |
// Idea and initial code from https://github.com/aomra015/ember-cli-chart
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'canvas',
attributeBindings: ['width', 'height'],
onlyValues: false,
chartData: {},
didInsertElement: function(){
var context = this.get('element').getCo... |
/**
* This module defines the `tslint-json` project task.
*
* @module project-tasks/tslint-json
* @internal
*/
/** (Placeholder comment, see TypeStrong/typedoc#603) */
import { Furi, join as furiJoin } from "furi";
import Undertaker from "undertaker";
import { DEFAULT_UNTYPED_TSLINT_CONFIG } from "../options/tsl... |
require 'spec'
require 'rr'
require File.join(File.dirname(__FILE__), '/../lib/chawan')
require File.join(File.dirname(__FILE__), '/provide_helper')
def data(key)
path = File.join(File.dirname(__FILE__) + "/fixtures/#{key}")
File.read(path){}
end
|
#include "ParticleData.h"
#include <algorithm>
#include <cassert>
namespace {
template<typename T>
void ResizeVector(T& obj, size_t size) {
obj.clear();
obj.resize(size);
obj.shrink_to_fit();
}
template<typename T>
size_t STLMemory(T& obj) {
using Type = typename T::value_type;
return obj.capacity() * sizeof(T... |
package commandParsing.drawableObectGenerationInterfaces;
import gui.factories.ShapePaletteEntryFactory;
import java.util.HashMap;
import java.util.Map;
import workspaceState.Shape;
import drawableobject.DrawableObject;
/**
* This class generates the actual ShapePaletteUpdate drawableObjects to give to the GUI.
*
... |
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* 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
* ... |
using System;
using System.Collections.Generic;
using System.Text;
namespace WilliamWsy.RegexGenerator
{
public abstract class RegexLookaroundAssertionNode
: RegexNode
{
public RegexLookaroundAssertionNode(string pattern, int? min = null, int? max = null, RegexQuantifierOption quantifierOption... |
<?php
namespace Franklin\test\Soundcloud\TrackInfo\test;
use
Franklin\test\Soundcloud\TrackInfo\TrackInfo,
Franklin\test\Soundcloud\TrackInfo\Config
;
/**
* @group Tests
* @group Soundcloud
*/
class TrackInfoTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
$config = new Config(array(
... |
import { autoBindMethodsForReact } from 'class-autobind-decorator';
import { HotKeyRegistry } from 'insomnia-common';
import React, { PureComponent } from 'react';
import { AUTOBIND_CFG, DEBOUNCE_MILLIS, SortOrder } from '../../../common/constants';
import { hotKeyRefs } from '../../../common/hotkeys';
import { execut... |
package com.mansonheart.data;
import java.util.Objects;
/**
* Created by alexandr on 18.09.16.
*/
public class Repository {
public Object get() {
return new Object();
}
public void add(Object object) {
}
}
|
# Configure Botkit and Cisco Webex Teams
Setting up a bot for Cisco Webex Teams is one of the easiest experiences for bot developers! Follow these steps carefully to configure your bot.
### 1. Install Botkit
You will need to [install Botkit](../platforms/webex.md#get-started) and run it before your bot can be config... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.MixedReality.Toolkit.Utilities.Editor;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
namespace Microsof... |
<?php
namespace AppBundle\Service\OAuth\UserResponseHandler;
use HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface;
use Symfony\Component\Security\Core\User\UserInterface;
/**
* Interface ResponseHandlerInterface
* @package AppBundle\Service\OAuth\UserResponseHandler
*/
interface ResponseHandlerInterfac... |
/*!
@file stddebug_windows_ntddk.c
@abstract Common debugging utilities
@copyright (c) 1997-2017 by Matt Slot <mattslot@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 wi... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#if NETFX_CORE
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI;
using Windows.UI.Xaml.Media;
#else
using System.Windows;
using System.Windows.Data;
... |
{% extends "base.html" %}
{% set active_page = "admin" %}
{% block title %}Edit Schedules - BearStatus{{title}} {% endblock %}
{% block head %}
{{ super() }}
{% endblock %}
{% block content %}
<div id="content">
<div class="container">
{% if is_special == True %}
<div class="alert alert-danger" role="alert"... |
<!doctype html>
<!--#if expr="$HTTP_COOKIE=/fonts\-loaded\=true/" -->
<html lang="en-GB" class="fonts-loaded">
<!--#else -->
<html lang="en-GB">
<!--#endif -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.