text stringlengths 3 1.05M |
|---|
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" default="true">
<output url="file://$PROJECT_DIR$/out" />
</component>
<component name="masterDetails">
<states>
<state key="GlobalLibrariesConfigurable.UI">
<settings>
<sp... |
import unittest
import traceback, sys, os
from xformmanager.tests.util import *
from xformmanager.storageutility import Query, XFormDBTableCreator, XFormDBTablePopulator
from xformmanager.storageutility import StorageUtility as SU
from xformmanager.manager import XFormManager as XFM
from _mysql_exceptions import Operat... |
.mdc-top-app-bar {
color: var(--mdc-theme-on-primary);
}
.mdc-drawer .mdc-list-item--activated {
color: var(--mdc-theme-primary);
}
.mdc-list-item--activated > .mdc-list-item__graphic {
color: var(--mdc-theme-primary) !important;
} |
using System;
using System.Collections.ObjectModel;
namespace ModernDynamicData.Abstractions.DataProviders
{
/// <summary>
/// Provides a base class for Dynamic Data model providers.
/// </summary>
public abstract class DataModelDescriptor
{
/// <summary>
/// When overridden in a d... |
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { PropTypes, Component } from 'react';
import styles from './App.css';
import withContext from '../../decorators/withContext';
import withStyles from '../../decorators/withStyles';
import Header from '../Header';
import Feedback fro... |
import tornado.ioloop
import tornado.web
import tornado.netutil
import tornado.httpserver
import threading
from os import path
import socket
from .utils import ArtifactResolver
# pylint: disable=attribute-defined-outside-init,too-many-instance-attributes
class ArtifactServer(object):
def __init__(self, root_di... |
Sarielsaz version 0.6.3 is now available for download at:
http://sourceforge.net/projects/sarielsaz/files/Sarielsaz/sarielsaz-0.6.3/
This is a bug-fix release, with no new features.
Please report bugs using the issue tracker at github:
https://github.com/sarielsaz/sarielsaz/issues
CHANGE SUMMARY
Fixed a serious... |
FROM balenalib/imx6ul-var-dart-debian:jessie-run
# A few reasons for installing distribution-provided OpenJDK:
#
# 1. Oracle. Licensing prevents us from redistributing the official JDK.
#
# 2. Compiling OpenJDK also requires the JDK to be installed, and it gets
# really hairy.
#
# For some sample build time... |
import os
import subprocess
import shutil
import tempfile
from chempy import Reaction, ReactionSystem, Substance
from ..graph import rsys2dot, rsys2graph
from ..testing import requires, skipif
try:
dot_missing = subprocess.call(["dot", "-?"]) != 0
except OSError:
dot_missing = True
def _get_rsys():
r1 =... |
<footer class="footer">
<small>
© <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time>. All rights reserved.
</small>
</footer>
|
package util
import (
"github.com/ohsu-comp-bio/funnel/config"
"testing"
)
func TestMergeConfigFileWithFlags(t *testing.T) {
serverAddress := "test:9999"
flagConf := config.Config{}
flagConf, err := ParseServerAddressFlag(serverAddress, flagConf)
if err != nil {
t.Fatal("unexpected error", err)
}
result, e... |
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
import Text.JSON
import Database.HDBC
import "mtl" Control.Monad.Trans (liftIO)
import Database.HDBC.Sqlite3
import Network.HTTP
import Control.Applicative
import Control.Arrow
import qualified Data.ByteString as BS
import Network.Curl.Download
... |
namespace XSharp.Project
{
partial class XLanguagePropertyPagePanel
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </sum... |
package org.elasticlib.common.json.schema;
import static com.google.common.base.CaseFormat.LOWER_CAMEL;
import static com.google.common.base.CaseFormat.UPPER_UNDERSCORE;
import com.google.common.base.Function;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import static java.util.Objects.requi... |
namespace OpenTelemetry.Instrumentation.MassTransit.Implementation;
internal class MassTransitSemanticConventions
{
public const string AttributeMessagingMassTransitInitiatorId = "messaging.masstransit.initiator_id";
public const string AttributeMessagingMassTransitCorrelationId = "messaging.masstransit.correl... |
/*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Heiko Strathmann, Pan Deng, Soumyajit De, Bjoern Esser, Viktor Gal
*/
#include <gtest/gtest.h>
#include <shogun/lib/common.h>
#include <shogun/lib/SGVector.h>
#include <shogun/lib/SGMatrix.h>
#include <shogun/mathematics/... |
<?php
namespace Kitpages\CmsBundle\Form\Handler;
use Doctrine\Bundle\DoctrineBundle\Registry;
use Kitpages\CmsBundle\Entity\Block;
use Kitpages\CmsBundle\Entity\Page;
use Kitpages\CmsBundle\Entity\ZoneBlock;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormTypeInterface;
use Symfony\Component\... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>square-matrices: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap... |
<?php
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead... |
package org.elasticsearch.xpack.ml.inference.ingest;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.message.ParameterizedMessage;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.ElasticsearchStatusException;
import org.elas... |
/****************************************************************************
* Author: Thomas E. Dickey <dickey@clark.net> 1996,1997 *
****************************************************************************/
/* $Id: nc_alloc.h,v 1.2 2001-11-08 22:03:52 berk Exp $ */
#ifndef NC_ALLOC_includ... |
<!DOCTYPE html>
<html>
<head>
<link href="css/awsdocs.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/awsdocs.min.js"></script>
<meta charset="utf-8">
</head>
<body>
<div id="content" style="padding: 10px 3... |
<?php
use Mockery as m;
class EncryptedSessionStoreTest extends PHPUnit_Framework_TestCase {
public function tearDown()
{
m::close();
}
public function testSessionIsProperlyEncrypted()
{
$session = $this->getSession();
$session->getEncrypter()->shouldReceive('decrypt')->once()->with(serialize([]))->andR... |
package jp.manavista.lessonmanager.facade.impl;
import android.util.Log;
import android.view.View;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import io.reactivex.Observable;
import io.reactivex.disposables.Disposable;
import jp.manavista.lessonmanager.facade.MemberLessonScheduleListFa... |
<!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_151) on Wed Jul 17 13:50:51 MST 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.s... |
#include <map>
#include "gazebo/gazebo.hh"
#include "gazebo/common/common.hh"
#include "gazebo/physics/physics.hh"
namespace gazebo
{
class AnimateJoints : public ModelPlugin
{
public: void Load(physics::ModelPtr _model, sdf::ElementPtr /*_sdf*/)
{
std::map<std::string, common::NumericAnimationPtr> ... |
<?php
/**
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
if (!defined('DS')) {
define('DS', DIRECTORY_SEPARATOR);
}
define('ROOT', dirname(__DIR__));
define('APP_DIR', 'src');
define('APP', rtrim(sys_get_temp_dir(), DS) . DS . APP_DIR . DS);
if (!is_dir(APP)) {
mkdir(APP, 0770, true... |
// Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
package com.alibaba.jstorm.daemon.supervisor;
import com.alibaba.jstorm.metric.JStormMetricsReporter;
import java.io.File;
import java.util.Map;
import java.util.UUID;
import java.util.Vector;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicBoolean;
import com.alibaba.jstorm.d... |
BSLS_IDENT_RCSID(bdlmt_signaler_cpp,"$Id$ $CSID$")
//-----------------------------------------------------------------------------
// IMPLEMENTATION NOTES
//
// The behavior is undefined if any method of 'Signaler_SlotNode',
// 'Signaler_SlotNode_Base', or 'Signaler_Node' is called by a threa... |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "product_uom".
*
* @property integer $id
* @property integer $create_uid
* @property string $create_date
* @property string $write_date
* @property integer $write_uid
* @property string $uom_type
* @property integer ... |
class CategoryFeaturedUsersSerializer < CategorySerializer
has_many :featured_users, serializer: BasicUserSerializer, embed: :objects
end
|
def includeme(config):
config.add_static_view('static', 'static', cache_max_age=3600)
config.add_route('about', '/about')
config.add_route('admin', '/admin/week{week_num}')
config.add_route('home', '/')
config.add_route('login-signup', '/login-signup')
config.add_route('logout', '/logout')
c... |
namespace Azure.ResourceManager.Cdn.Models
{
/// <summary> The ContinentsResponseCountryOrRegionsItem. </summary>
public partial class ContinentsResponseCountryOrRegionsItem
{
/// <summary> Initializes a new instance of ContinentsResponseCountryOrRegionsItem. </summary>
internal ContinentsRe... |
This mod gives an electrical revolution for Minecraft.
## Main features :
* _TODO (0%)_ Adds electricity that functions like in the real life.
* _TODO (0%)_ Adds a research system that regulate the evolution.
* _TODO (0%)_ Adds most of machines of today.
* _TODO (0%)_ Adds chemistry with oil, gas and more.
* _TODO (0... |
Available at https://webbluetoothcg.github.io/demos/bluetooth-racing-cars/
<img src="https://raw.githubusercontent.com/webbluetoothcg/demos/gh-pages/bluetooth-racing-cars/cars.jpg">
This web app demonstrates the use of the Web Bluetooth API for controlling BLE toy racing cars: https://youtu.be/Vg2e1jOug00
## Depende... |
['new', 'deliver', 'request', 'fail', 'cancel', 'confirm'].each do |code|
unless OrderStatus.find_by_code(code)
OrderStatus.create(code: code)
puts "Seeded order status '#{code}'"
end
end
['reprintsdesk', 'local_scan', 'tib'].each do |code|
unless ExternalSystem.find_by_code(code)
ExternalSystem.crea... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- From: file:/C:/Users/Administrator/Desktop/OCode/Code/spannable_demo/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.1.0/res/values-sq-rAL/values-sq-rAL.xml -->
<eat-comment/>
<string msgid="4600421777120114993" name="abc_action_ba... |
evennia.utils.optionclasses
==================================
.. automodule:: evennia.utils.optionclasses
:members:
:undoc-members:
:show-inheritance:
|
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Opegrapha rionegrensis Redinger
### Remarks
null |
<div class="registration">
<div>
<p>Registration</p>
</div>
<form class="form">
<mat-form-field class="full-width">
<input [formControl]="formControl.email" matInput name="email" placeholder="Email" type="email">
<mat-error *ngIf="formControl.email.hasError('email') && !formControl.email.hasE... |
<!DOCTYPE html>
<html>
<head>
<title>zingchart - html5beta</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-language" content="en">
<link rel="stylesheet" href="../style.css" />
<script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
<script ty... |
module L2ToL1.Compile where
import Data.List (isPrefixOf)
import Control.Monad.Identity
import Control.Monad.Error
import Control.Monad.Reader
import Glue
import qualified L2.AbsL as L2
import L2.PrintL
import L1.AbsL
import Spill.Spill
import Liveness.Liveness
import Graph.Interference
import Graph.Color
intBitWi... |
from pyomo.util.plugin import alias
from pyomo.core import Binary, value, as_numeric
from pyomo.core.base import Transformation, Var, Constraint, ConstraintList, Block, RangeSet
from pyomo.core.base.expr import _ProductExpression, _PowExpression
from pyomo.core.base.var import _VarData
from scipy.constants import gold... |
module Para
module AttributeField
class ImageField < AttributeField::Base
include ActionView::Helpers::AssetTagHelper
def value_for(instance)
style = attachment_thumb_style_for(instance)
if instance.send(:"#{ name }?")
image_tag(instance.send(name).url(style))
end
... |
var nano = require('..');
var test = require('tape');
test('pipe a thousand msgs between incompatible socket types', function(t){
var sent = 0, recv = 0;
var pub = nano.socket('pub', { tcpnodelay: true });
var sub = nano.socket('sub', { tcpnodelay: true });
var push = nano.socket('push');
var pull = nano.... |
module ClickSession
class FailureStatusReporter < StatusReporter
def initialize(
webhook = Webhook.new(ClickSession.configuration.failure_callback_url)
)
super(webhook)
end
def report(click_session)
raise ArgumentError unless click_session.failed_to_process?
super(click_sessi... |
docker-compose -f ../base/docker-compose.yml -f docker-compose.yml up -d
sleep 60
#generate sql and ttl files
docker-compose -f ../base/docker-compose.yml -f docker-compose.yml \
run base_bsbm_generator sh /bsbm/scripts/bsbm_generator/generateData.sh 250
sleep 60
docker-compose -f ../base/docker-compose.yml ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace EZOper.TechTester.JWTOAuthWebSI.Services
{
public interface ISmsSender
{
Task SendSmsAsync(string number, string message);
}
}
|
class CreateSports < ActiveRecord::Migration
def change
create_table :sports do |t|
t.string :sport
t.timestamps null: false
end
end
end
|
from __future__ import unicode_literals
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
try:
from django.urls import reverse
except ImportError:
from django.core.urlresolvers import reverse
from django.utils... |
package org.gradoop.flink.model.impl.operators.matching.common.functions;
import org.apache.flink.api.common.functions.RichFlatJoinFunction;
import org.apache.flink.api.java.functions.FunctionAnnotation;
import org.apache.flink.configuration.Configuration;
import org.apache.flink.util.Collector;
import org.gradoop.co... |
using System;
using Spruce.Attribs;
using XSharp.Tokens;
using XSharp.x86;
namespace XSharp.x86.Emitters
{
/// <summary>
/// Class that performs shift and rotate assmebly operations
/// </summary>
/// <seealso cref="XSharp.x86.Emitters.Emitters" />
public class ShiftRotate : Emitters
{
... |
title: POST destination
permalink: /post-destination
layout: default
---
# POST destination
## /services/:service_name/destinations
Add a destination to a service
## Options
Name | Type | Description
:--- | :--- | :---
name | string | Destination name
port | number | Destination port
host | ip | Destination ip add... |
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>qgis._gui.QgsSvgSelectorWidget</title>
<link rel="stylesheet" href="epydoc.css" type="text/... |
#ifndef GCC_OUTPUT_H
#define GCC_OUTPUT_H
/* Initialize data in final at the beginning of a compilation. */
extern void init_final (const char *);
/* Enable APP processing of subsequent output.
Used before the output from an `asm' statement. */
extern void app_enable (void);
/* Disable APP processing of subse... |
package org.sleuthkit.autopsy.discovery.search;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.LoadingCache;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;
import org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository;
import org.... |
RSpec.shared_examples 'pipeline status changes email' do
include Devise::Test::ControllerHelpers
let(:user) { create(:user, developer_projects: [project]) }
let(:project) { create(:project, :repository) }
let(:merge_request) { create(:merge_request, :simple, source_project: project) }
let(:pipeline) do
... |
from dynamic_scraper.spiders.django_checker import DjangoChecker
from tvshow_scraper.models import TVShow, Source
class TVShowChecker(DjangoChecker):
name = 'tvshow_checker'
def __init__(self, *args, **kwargs):
self._set_ref_object(TVShow, **kwargs)
self.scraper = self.ref_object.Source.scra... |
playtotv.define('app', [
'playtotv.analytics.GoogleAnalytics',
'playtotv.mvc.App',
'MinuteController',
'ProgressWidget'
], function(
GoogleAnalytics,
App,
MinuteController,
ProgressWidget
) {
/*global Handlebars*/
'use strict';
var { id } = this;
// Extra logging, e.g: if you want to see View changes in ... |
<!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 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class com.google.zxing.oned.rss.expanded.RSSExpandedReader (ZXi... |
package fake
import (
rest "github.com/hyperhq/client-go/rest"
testing "github.com/hyperhq/client-go/testing"
internalversion "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/settings/internalversion"
)
type FakeSettings struct {
*testing.Fake
}
func (c *FakeSettings) PodPresets(namesp... |
#pragma once
#include "envoy/extensions/upstreams/http/http/v3/http_connection_pool.pb.h"
#include "envoy/registry/registry.h"
#include "envoy/router/router.h"
namespace Envoy {
namespace Extensions {
namespace Upstreams {
namespace Http {
namespace Http {
/**
* Config registration for the HttpConnPool. @see Router... |
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Zend\\Diactoros\\' => array($vendorDir . '/zendframework/zend-diactoros/src'),
'XdgBaseDir\\' => array($vendorDir . '/dnoegel/php-xdg-base-dir/src'),
'Symfony\\Polyfil... |
/*send the client request with data in body. give examples of sending data in differnt formats listed below:
//1) form data (2 types: (1a) text, (1b) file)
2) x-www-form-urlencoded
3) raw data: json or any plain text formats
4) binary
5) multipart file attachment????? */
package main
import (
"bytes"
"fmt"
"io"
"... |
using System.ServiceModel;
using System.Threading.Tasks;
namespace SoapCore.Benchmark
{
[ServiceContract(Name="PingService", Namespace="http://example.org/PingService")]
public interface IPingService
{
[OperationContract(Action="http://example.org/PingService/Echo", Name="Echo", ReplyAction="http://example.org/Pi... |
"""Events Module
This module defines events shared by various componetns.
"""
from circuits import Event
class cmd(Event):
"""cmd Event"""
class broadcast(Event):
"""broadcast Event"""
class terminate(Event):
"""terminate Event"""
class signon(Event):
"""signon Event"""
|
'use strict';
angular.module( 'ngLetteringExplode', [] )
.directive( 'lettering', [ function ($compile) {
return {
restrict: 'A',
controllerAs:'letteringCtrl',
controller:function($scope, $element, $attrs ,$compile ,$window,$timeout){
windowHeight = $window.innerHeight;
windowWidth = $window.innerW... |
layout: post
title: FakeAgentUK Gorgeous amateur blonde loses anal cherry on casting couch
titleinfo: pornvd
desc: Watch FakeAgentUK Gorgeous amateur blonde loses anal cherry on casting couch. Pornhub is the ultimate xxx porn and sex site.
---
<iframe src="http://www.pornhub.com/embed/ph558817f542393" frameborder="0" ... |
'use strict';
/**
* @overview Provides logging utilities for Cycle.js applications.
* @author Daniel R Barnes
*/
import {format} from 'util';
import {trim, isEmpty, isString, toString} from 'lodash';
import {Loggers} from './Loggers';
import {LoggingEvent} from './LoggingEvent';
import {events} from './common';
... |
import threading
from time import sleep
class EventEmitter(object):
def __init__(self, *args, **kwargs):
self._observers = {}
def on(self, event, cb):
if event not in self._observers:
self._observers[event] = [cb, ]
else:
if cb not in self._observers[event]:
... |
<?php
namespace app\modules\admin;
use yii\base\BootstrapInterface;
use Yii;
class Bootstrap implements BootstrapInterface
{
public function bootstrap($app)
{
$app->i18n->translations['modules/admin/*'] = [
'class' => 'yii\i18n\PhpMessageSource',
'forceTranslation' => true,
... |
/*
Creator : Thomas Poulet
Date : 11/30/13
Name : camera.js
Description : Camera creation for illusion
*/
// Light Object
function Illusion_Camera( argument, width, height ){
argument = typeof argument !== "undefined" ? argument : new Object(); // Protect from no arguments
argument.fov = typeof argument.fov !... |
// TODO: add username in addition to email in server/models/User.js, client/src/containers/SignupPage.jsx, client/src/components/SignupForm.jsx
/** @file User.js - Sequelize class model for user */
const Sequelize = require('sequelize');
const bcrypt = require('bcrypt');
const SALT_ROUNDS = 10;
module.exports =
/*... |
@interface YPNetworkDemoTests : XCTestCase
@end
@implementation YPNetworkDemoTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocati... |
package Example.current;
import com.hosseini.persian.dt.PersianDT;
import com.hosseini.persian.dt.PersianDate.Generate;
import java.util.Date;
/**
* Created by abbas on 3/30/16.
*/
public class CustomYourdate {
public static void main(String[] strings) {
new CustomYourdate().date();
}
public... |
from django.conf.urls.defaults import patterns, url
from nepal.mail import views
urlpatterns = patterns('',
url('^$', views.listing, name = 'nepal-mail-list'),
url('^create/$', views.create, name = 'nepal-mail-create'),
url('^edit/(\d+)/$', views.edit, name = 'nepal-mail-edit'),... |
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import App from './components/app';
export default async function ssr({ streaming, ...props }) {
if (streaming) {
return ReactDOMServer.renderToNodeStream(<App {...props} />);
}
else {
return ReactDOMServer.renderToString(<App {...props} ... |
class Staff::SessionsController < Staff::Base
skip_before_action :authorize
def new
if current_staff_member
redirect_to :staff_root
else
@form = Staff::LoginForm.new
end
end
def create
@form = Staff::LoginForm.new(params[:staff_login_form])
if @form.email.present?
staff_m... |
// Derived from Inferno utils/6l/l.h and related files.
// http://code.google.com/p/inferno-os/source/browse/utils/6l/l.h
//
// Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
// Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net)
// Portions Copyright © 1997-1999 Vita Nuova Limited
... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Mycotaxon 92: 392 (2005)
#### Original name
Platythecium occultum Adaw. & Makhija
### Remarks
null |
package org.lbogdanov.poker.web;
import static org.lbogdanov.poker.util.Settings.*;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import javax.inject.Singleton;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import org.apache.shiro.config.IniFa... |
var React = require('react');
var Loading = require('../../');
var loadingStyle = {
textAlign: 'center',
padding: '10px 0'
};
var Example = React.createClass({
getInitialState: function () {
return {
loading: true
};
},
toggleLoading: function () {
this.setState({
loading: !this.sta... |
package com.example.qmain;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android de... |
package com.intellij.util.dom.generator;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.DialogWrapper;
import javax.swing.*;
import java.io.File;
/**
* @author Konstantin Bulenkov
*/
public class DomGenDialog extends DialogWrapper{
final DomGenPanel panel;
final JComponent comp;
... |
package jdk.internal.access;
import java.util.Locale;
import java.util.ResourceBundle;
/**
* Provides access to non-public methods in java.util.ResourceBundle.
*/
public interface JavaUtilResourceBundleAccess {
/**
* Sets the bundle's parent to the given parent.
*/
void setParent(ResourceBundle ... |
const title: string = unsafeWindow.document.title;
// GM.info
const scriptDescription: string = GM.info.script.description;
const scriptExcludes: string[] = GM.info.script.excludes;
const scriptIncludes: string[] = GM.info.script.includes;
const scriptMatches: string[] = GM.info.script.matches;
const scriptName: stri... |
<?php
require __DIR__ . '/../boot.php';
use Tester\Assert;
use Nette\Http;
use Nette\Application;
use Clevis\RestApi\RestRoute;
$url = new Http\UrlScript('http://doma.in/api/resource/1');
$request = new Http\Request(
$url,
NULL /*$query*/, NULL /*$post*/, NULL /*$files*/, NULL /*$cookies*/, NULL /*$headers*/,
Htt... |
<?php
namespace DeliciousBrains\WP_Offload_SES\Aws3\GuzzleHttp\Exception;
/**
* @method string getMessage()
* @method \Throwable|null getPrevious()
* @method mixed getCode()
* @method string getFile()
* @method int getLine()
* @method array getTrace()
* @method string getTraceAsString()
*/
interf... |
@interface PLYLostPasswordViewController () <PLYFormValidationDelegate, UITextFieldDelegate>
@end
@implementation PLYLostPasswordViewController
{
NSArray *_validators;
UIBarButtonItem *_rightButton;
}
- (void)viewDidLoad
{
[super viewDidLoad];
self.view.backgroundColor = [UIColor whiteColor];
UILabel *expla... |
<div ng-controller="repoController" ng-init="loadRepoPath()">
<ul ng-repeat="item in repo | filter:{type:'dir'}" class="dirs">
<li><a href="#/{{route.userId}}/{{route.repoId}}/{{item.name}}">{{item.name}}</a></li>
</ul>
<ul ng-repeat="item in repo | filter:{type:'file'}" class="files">
<li><a href="#/{{route.use... |
<!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... |
import { globalAdd, toGlobalAddOptions } from '../add';
import * as yarn from '../../../utils/yarn';
import { BoltError } from '../../../utils/errors';
jest.mock('../../../utils/yarn');
const dummyPath = '/dummyPattern/dummyPath';
test('bolt global add', async () => {
let tag = await globalAdd(
toGlobalAddOptio... |
layout: page
title: Barbara Olson's 44th Birthday
date: 2016-05-24
author: Cheryl Tyler
tags: weekly links, java
status: published
summary: Phasellus sit amet eleifend urna.
banner: images/banner/wedding.jpg
booking:
startDate: 08/24/2017
endDate: 08/28/2017
ctyhocn: APCSCHX
groupCode: BO4B
published: true
---
... |
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MainWindow ui;
app.setApplicationVersion (VERSION);
app.setApplicationName (APP_NAME);
if(ui.init())
{
ui.show();
return app.exec();
}
else
{
return 0;
}
}
|
_kiwi.view.Panel = Backbone.View.extend({
tagName: "div",
className: "panel",
events: {
},
initialize: function (options) {
this.initializePanel(options);
},
initializePanel: function (options) {
this.$el.css('display', 'none');
options = options || {};
//... |
import numpy
import scipy
from scipy.sparse.linalg import lobpcg
import pylab
from pyamg import smoothed_aggregation_solver
from helper import trimesh, graph_laplacian
meshnum = 2
if meshnum==1:
from pyamg.gallery import mesh
V,E = mesh.regular_triangle_mesh(20,6)
if meshnum==2:
from scipy.io import lo... |
"""Print the contents of the given files.
"""
from __future__ import print_function
import argparse
import sys
import fileinput
def filter_non_printable(s):
return ''.join([c if (31 < ord(c) < 127 or c in "\n\r\t\b") else ' ' for c in s])
def main(args):
p = argparse.ArgumentParser(description=__doc__)
... |
[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]
[![Sponsors][sponsors-badge]][collective]
[![Backers][backers-badge]][collective]
[![Chat][chat-badge]][chat]
[**unist**][unist] utility to create a mutable index mapping proper... |
package hbot
import (
"bytes"
"encoding/base64"
"strings"
"sync"
)
type saslAuth struct {
mu sync.Mutex
enable bool
user string
pass string
}
func (h *saslAuth) SetAuth(user, pass string) {
h.mu.Lock()
defer h.mu.Unlock()
h.user = user
h.pass = pass
}
func (h *saslAuth) IsAuthMessage(m *Message)... |