text stringlengths 3 1.05M |
|---|
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
using RazorReport.Pdf;
namespace RazorReport.Example {
public partial class Form1 : Form {
IReportBuilder<Example> builder;
IReportBuilder<Example> precompilingBuilder;
pu... |
<?xml version="1.0" encoding="UTF-8"?>
<!--L
Copyright Oracle Inc
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/cadsr-cgmdr-nci-uk/LICENSE.txt for details.
L-->
<cgMDR:Data_Element xmlns:cgMDR="http://www.cancergrid.org/schema/cgMDR" item_registration_authority_identifier=... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>semantics: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>graph-basics: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... |
if [ -n "$DRUID_INTEGRATION_TEST_SKIP_RUN_DOCKER" ] && [ "$DRUID_INTEGRATION_TEST_SKIP_RUN_DOCKER" == true ]
then
exit 0
fi
for node in druid-historical druid-coordinator druid-overlord druid-router druid-router-permissive-tls druid-router-no-client-auth-tls druid-router-custom-check-tls druid-broker druid-mid... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
module Slack
module Endpoint
module Mpim
#
# This method closes a multiparty direct message channel.
#
# @option options [Object] :channel
# MPIM to close.
# @see https://api.slack.com/methods/mpim.close
# @see https://github.com/aki017/slack-api-docs/blob/master/method... |
Name: socket
---
# Socket metatable
Provides access to raw socket connections.
- [socket:get(protocol, address, message)](#get)
# get
Opens a connection with the given `protocol` to the given `address`. On successful connection, `message` is written to the socket and the response is returned as a string. `address`... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using MvxDemo.Models;
namespace MvxDemo.WebApi.Controllers {
public class UserController : ApiController {
public User Get(string emailAddress, string password) {
... |
Scripts are used to help generating Files or Build databases, or run test, or packaging, or ...
Entrance: manage.py
Refs:
* [One Example](https://realpython.com/blog/python/flask-by-example-part-2-postgres-sqlalchemy-and-alembic/)
* django manage.py
* [flask-script](http://flask-script.readthedocs.org/en/latest/)
|
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QFileDialog>
#include <QPrinter>
#include <QPrintPreviewDialog>
//以下四个头文件已在tabcontent包含,适时删除此处头文件
#include <QUndoCommand>
#include <QUndoStack>
#include <QUndoView>
#include "imagedisplay.h"
#include "imagetrans.h"
#include "imgtransformdomai... |
export * from './InlineTextArea';
|
package cn.paxos.rabbitsnail;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.persistence.FlushModeType;
import javax... |
SELECT
samples.call.call_set_name AS sample_id,
gender,
population,
super_population,
COUNT(samples.call.call_set_name) AS num_variants_for_sample,
SUM(samples.af >= 0.05) AS common_variant,
SUM(samples.af < 0.05 AND samples.af > 0.005) AS middle_variant,
SUM(samples.af <= 0.005 AND samples.af > 0.001) ... |
layout: icon
title: Theatre
categories: recreation
icon-24: theatre-24.png
icon-18: theatre-18.png
icon-12: theatre-12.png
tags:
- recreation
- theatre
- theater
- entertainment
- play
- performance
---
|
class ChangePhoneNumberToNotRequired < ActiveRecord::Migration[5.0]
def change
change_column :users, :phone_number, :integer, :null => true, :limit => 8
end
end
|
import maya.cmds as cmds
from rgbTools.utils.scene import get_fdata
from rgbTools.utils.numbers import totalDistancesFromPointsList, floatrange
from rgbTools.utils.object import getShapeNodes
from rgbTools.utils.decorators import preserveOrigFrame, blockUiRefresh
def addCurveInfoNode (curve):
node = cmds.createNo... |
class AddItemTemplateToNodes < ActiveRecord::Migration
def change
change_table :nodes do |t|
t.integer :item_template_id
end
end
end
|
from flask_login import login_required, current_user
from flask import render_template, request, redirect, url_for, abort
from ...main import main, existing_service_content, new_service_content
from ... import data_api_client, flask_featureflags, convert_to_boolean
from dmutils.apiclient import APIError, HTTPError
fro... |
/**
* Test dependencies.
*/
const SubDocQuery = require('../../lib/subDocQuery')
const db = require('../helper/db')
const should = require('should')
describe('subDocQuery create tests', () => {
let subDocQuery
before(() => {
db.connect()
subDocQuery = new SubDocQuery(db.getModel('Article'))
})
afte... |
Get information about a [JIRA](https://www.atlassian.com/software/jira) issue directly in your [Slack](http://slack.com) channel.
It does the following:
- Appends a link to the mentioned JIRA issues, including the summary of the issue.
- Calculates the status of the JIRA issue from it's subtasks. This is customizable... |
package ohgi
import "github.com/hico-horiuchi/ohgibone/sensu"
func PostRequest(api *sensu.API, check string, subscribers []string) string {
err := api.PostRequest(check, subscribers)
checkError(err)
return "Accepted\n"
}
|
from django.test import TestCase
from ..models import Item
from .factories import EventFactory, EventPermissionFactory, ItemFactory, ItemTypeFactory, UserFactory, VendorFactory
class ItemDumpTest(TestCase):
def _addPermission(self):
EventPermissionFactory(event=self.event, user=self.user, can_see_account... |
#ifndef __VM_STACKFRAME_H__
#define __VM_STACKFRAME_H__
#include <saffire/vm/vmtypes.h>
#include <saffire/objects/hash.h>
#include <saffire/compiler/bytecode.h>
#include <saffire/vm/block.h>
#include <saffire/vm/codeblock.h>
#include <saffire/vm/context.h>
t_vm_stackframe *vm_create_empt... |
<?php
namespace OekraineBundle\Controller;
use AppBundle\Controller\AbstractChildController;
use OekraineBundle\Entity\Locatietijd;
use OekraineBundle\Form\LocatietijdType;
use OekraineBundle\Service\LocatietijdDaoInterface;
use JMS\DiExtraBundle\Annotation as DI;
use Symfony\Component\Routing\Annotation\Route;
use S... |
package ch.bind.philib.lang;
import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
public class CompareUtilTest {
@Test
public void equalityObjObj() {
Object a = "a";
Object b = "b";
boole... |
import React, {Component, PropTypes} from 'react';
import Helmet from 'react-helmet';
import {connect} from 'react-redux';
import {initialize} from 'redux-form';
import {SignupForm} from 'components';
@connect(
() => ({}),
{initialize})
export default class SignUp extends Component {
static propTypes = {
ini... |
package com.lukaszpiskadlo.Service;
import com.lukaszpiskadlo.Model.Actor;
import com.lukaszpiskadlo.Model.Movie;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
public interface MovieService {
Movie create(Movie movie);
List<Movie> findAll... |
<?php
namespace Vendor\UserBundle\Entity;
use FOS\UserBundle\Entity\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="Gallery_user")
*/
class User extends BaseUser
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
... |
using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Citrina
{
public class MessagesMessageAttachment
{
public AudioAudio Audio { get; set; }
public MessagesAudioMessage AudioMessage { get; set; }
public DocsDoc Doc { get; set;... |
import random
import subprocess
import time
import tempfile
from dtest import debug, Tester
from tools import new_node, query_c1c2, since, InterruptBootstrap
from assertions import assert_almost_equal
from ccmlib.node import NodeError
from cassandra import ConsistencyLevel
from cassandra.concurrent import execute_conc... |
namespace scratch {
class future_error : public detail::error_code_error<logic_error> {
public:
explicit future_error(future_errc ec) : detail::error_code_error<logic_error>(ec) {}
};
} // namespace scratch
|
'''
Calculate the distances from all pairs of C-alpha atoms
in a protein structure.
-----------------------------------------------------------
(c) 2013 Allegra Via and Kristian Rother
Licensed under the conditions of the Python License
This code appears in section 10.4.5 of the book
"Managing Biological ... |
package cloud_test
import (
"context"
"time"
"cloud.google.com/go/bigquery"
"cloud.google.com/go/datastore"
"cloud.google.com/go/pubsub"
"golang.org/x/oauth2/google"
"google.golang.org/api/option"
)
// To set a timeout for an RPC, use context.WithTimeout.
func Example_timeout() {
ctx := context.Background()
... |
import numpy as np
import errors
# TODO: Cache the covariance matrix
# TODO: Optionally warn, instead of error
# TODO: Check non-stationarity
# TODO: Dynamic threshold for condition number based on type?
def check(data=None, labels=None):
rng = np.random.RandomState()
init_rng_state = rng.get_state()
np.r... |
<?xml version="1.0" encoding="utf-8"?>
<com.balysv.materialripple.MaterialRippleLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/ripple_layout"
android:layout_width="match... |
title: Translate
overview: Translates a string
id: c2a2d391-bbea-4082-95a4-41db2b8d0dc7
parameters:
-
name: key
type: tagpart|string
description: The key of the translation string to find. Include both the filename and string key delimited with dots. Can be used as a tag part or a `key` parameter.
-
... |
<?php
session_start();
/**
* Get the relative path.
* @see https://raw.githubusercontent.com/kingscreations/farm-to-you/master/php/lib/_header.php FarmToYou Header
**/
require_once(dirname(dirname(__DIR__)) . "/root-path.php");
$CURRENT_DEPTH = substr_count($CURRENT_DIR, "/");
$ROOT_DEPTH = substr_count($ROOT_PATH, ... |
/*
* NaCl Simple/secure ELF loader (NaCl SEL).
*/
#ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_ARCH_X86_64_TRAMP_64_H__
#define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_ARCH_X86_64_TRAMP_64_H__
/*
* text addresses, not word aligned; these are .globl symbols from the
* assembler source, and there is no type... |
package fm.xml
import fm.common.{ClassUtil, Logging, Resource}
import java.io.{Closeable, InputStream, OutputStream, Reader, StringReader, StringWriter, Writer}
import javax.xml.bind.{JAXBContext, Marshaller, Unmarshaller}
import javax.xml.bind.annotation.XmlRootElement
import javax.xml.stream.{XMLInputFactory, XMLOu... |
bgo
===
Golang Baldur's Gate utilties
|
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
package com.github.tommykw.auto_permanent_plugin;
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 e... |
class Ey::Core::Client
class Real
def get_database_plan_usages(params={})
account_id = params["account_id"]
billing_month = params.fetch("billing_month", Date.today.strftime("%Y-%m"))
request(
:path => "accounts/#{account_id}/database-plan-usages/#{billing_month}"
)
end
e... |
package com.twu.authentication;
import com.twu.authentication.User;
import com.twu.biblioteca.BibliotecaAppView;
import java.util.ArrayList;
public class LoginAuthentication {
private ArrayList<User> users;
private BibliotecaAppView bibliotecaAppView;
public LoginAuthentication(ArrayList<User> users, Bi... |
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>AsymmetricDecryptCipher - </title>
<link rel="stylesheet" href="../../style.css">
</HEAD>
<BODY>
<a href="../index.html">com.github.rs3vans.krypto</a> / <a href=".">AsymmetricDecryptCipher</a><br/>
<br/>
<h1>AsymmetricDecryptCipher</h1>
<code><span class="keyword">c... |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
// inline help html. Only 'help_body' is used.
$lang['help_body'] = "<h4>Áttekintés</h4>
<p>A Változók modullal egyszerű változókat adhatsz hozzá és megjelenítheted őket az oldalon bárhol.</p>
<h4>Globális változók hozzáadása</h4>
<p>A Változók has... |
package com.toscaruntime.sdk.util;
import com.toscaruntime.sdk.model.DeploymentRelationshipNode;
import tosca.relationships.Root;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
@SuppressWarnings("unchecked")
public class Deplo... |
<!DOCTYPE html>
<html>
<head>
<title>Negative - Preferences</title>
<link rel="stylesheet" href="settings.css" />
</head>
<body>
<form>
<fieldset>
<legend>Tips</legend>
<div class="form-group">
<label>
... |
/**
* Created by sriharshakota on 3/10/17.
*/
var app = angular.module('myApp');
app.controller('listCtrl',function($scope, $location, crudservices){
$scope.employees = [];
$scope.employee = {};
$scope.loadEmployees = function(){
crudservices.loadEmployees();
$scope.employees = crudservi... |
require 'rules/action'
require 'resque'
require 'resque-scheduler'
module Rules
class Rule < ActiveRecord::Base
# include Rules::Versioning
include Rules::ModelEventEmitter
acts_as_paranoid
has_paper_trail ignore: [:created_at, :updated_at]
# If this is driven by a TimerEvent
after_create :... |
require 'test_helper'
class AlertsControllerTest < ActionController::TestCase
setup do
@alert = alerts(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:alerts)
end
test "should get new" do
get :new
assert_response :success
end
tes... |
package org.apache.spark.sql.hive
import java.util
import scala.collection.JavaConverters._
import org.apache.spark.sql._
import org.apache.spark.sql.catalyst.CarbonTableIdentifierImplicit._
import org.apache.spark.sql.catalyst.TableIdentifier
import org.apache.spark.sql.catalyst.analysis.UnresolvedRelation
import... |
module Filter
# Construct a query using Arel.
class Query
include Comparison
include Core
include Subset
include Projection
include Parse
include Validate
include Custom
attr_reader :key_prefix, :max_items, :initial_query, :table,
:valid_fields, :text_fields, :filter... |
Requires jQuery for size and color choosing options
currently available at http://jeffkynaston.com/projects/jsclock |
This example shows how to create a simple server application in Bokeh.
Running
=======
To run this application, use this command:
bokeh serve sliders_app.py
Now navigate to the following URL in a browser:
http://localhost:5006/sliders_app
|
<?php function reverie_comments($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?>>
<article id="comment-<?php comment_ID(); ?>">
<header class="comment-author">
<?php echo get_avatar($comment,$size='48'); ?>
<div class="author-meta">
<?php printf(__('<cite c... |
namespace NuGetGallery.FunctionalTests
{
using Microsoft.VisualStudio.TestTools.WebTesting;
using Microsoft.VisualStudio.TestTools.WebTesting.Rules;
using NuGetGallery.FunctionTests.Helpers;
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
/// <s... |
<?xml version="1.0" encoding="UTF-8"?>
<explore id="2021949032" type="SKI" xmlns="http://chvrga.org/explore">
<name>Nassfeld</name>
<country>Austria</country>
<description>Amazingly generous, vast, snow-reliable and almost unbeatable when it comes to the mountain panorama; anyone who comes to Nassfeld, one of Austria’s... |
CREATE TABLE alembic_version (
version_num VARCHAR(32) NOT NULL,
CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num)
);
-- Running upgrade -> bd380507518c
INSERT INTO alembic_version (version_num) VALUES ('bd380507518c');
-- Running upgrade bd380507518c -> 4c97401b8961
CREATE TABLE collection (
c... |
/**
* Priority level reserved for system services.
* @constant
* @type Number
*/
cc.PRIORITY_SYSTEM = (-2147483647 - 1);
/**
* Minimum priority level for user scheduling.
* @constant
* @type Number
*/
cc.PRIORITY_NON_SYSTEM = cc.PRIORITY_SYSTEM + 1;
/**
* Verify Array's Type
* @param {Ar... |
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org |
// | C... |
Activate unity window and Run from command line.
# one-liner
$ osascript -l JavaScript -e 'var app = Application("Unity"); app.activate(); delay(0.15); sys = Application("System Events"); sys.keystroke("p", { using: "command down"});'
|
<!DOCTYPE html>
<html>
<head>
<title>Rho.Database</title>
<meta name="viewport" content="initial-scale=1.0, width=device-width"/>
<script src="/public/jquery/jquery-3.2.1.min.js" type="text/javascript"></script>
<script src="/public/jquery/jquery.json-2.3.min.js" type="text/javascript"></script>
<sc... |
#ifndef TENSORFLOW_CORE_KERNELS_REDUCTION_OPS_H_
#define TENSORFLOW_CORE_KERNELS_REDUCTION_OPS_H_
// Functor definitions for Reduction ops, must be compilable by nvcc.
#include <iostream>
#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
#include "tensorflow/core/framework/op_kernel.h"
#include "tensorfl... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
require 'spec_helper'
describe DataForge::File::RecordFileReader do
describe ".for" do
it "should return a record reader for the specified file definition" do
definition = instance_double DataForge::File::CSV::CSVRecordFileDefinition
expect(DataForge::File::CSV::CSVRecordFileReader).to receive(:new... |
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/tools">
<item android:id="@+id/action_year"
android:orderInCategory="100"
android:title="@string/action_year"
app:showAsAction="never"/>
</menu> |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/daicoolb.iml" filepath="$PROJECT_DIR$/.idea/daicoolb.iml" />
</modules>
</component>
</project> |
//
// SMOPSyncProcess.m
// SM1Password Sync
//
// Created by sam on 3/18/13.
// Copyright 2013 Sam Marshall. All rights reserved.
//
#import "SMOPSyncProcess.h"
#import "NSAlert+Additions.h"
#import "SMOPContentsItem.h"
#import "JSMNParser.h"
#import "ZipArchive.h"
void* callbackSelf;
uint32_t percentCheck = 0;
/... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public interface IBuyer
{
string Name { get; set; }
string Age { get; set; }
int Food { get; set; }
void BuyFood();
}
|
package net.sf.jasperreports.engine.fill;
import net.sf.jasperreports.engine.JRBreak;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JRExpressionCollector;
import net.sf.jasperreports.engine.JRPrintElement;
import net.sf.jasperreports.engine.JRVisitor;
import net.sf.jasperreports.e... |
from __future__ import absolute_import
from exam import mock
from sentry.models import Integration
from sentry.testutils import AcceptanceTestCase
from tests.acceptance.page_objects.organization_integration_settings import (
OrganizationIntegrationSettingsPage,
ExampleIntegrationSetupWindowElement,
)
class ... |
package com.ncode.android.apps.schedo.ui;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.ncode.android.apps.schedo.Config;
import com.ncode.android.apps.schedo.R;
import com.ncode.android.apps.schedo.util.Pref... |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>mobi.cangol.web</groupId>
<artifactId>cm</artifact... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var Dialog_1 = require('./Dialog');
var S... |
/*
* program: Graph partition via Kernighan-Lin, modified
* Kernighan-Lin, or Kernighan-Schweikert
*
* author: Todd M. Austin
* ECE 756
*
* date: Thursday, February 25, 1993
*/
#include <stdio.h>
#include <stdlib.h>
#include <str... |
#include <algorithm>
#include <iostream>
#include <vector>
#include "autotune/autotune.hpp"
#include "autotune/parameter.hpp"
#include "autotune/tuners/bruteforce.hpp"
// defines kernel, put in single compilation unit
AUTOTUNE_KERNEL(int(int), add_one, "examples/kernel_minimal")
int main(void) {
// register parame... |
from vnpy.app.cta_strategy import (
CtaTemplate,
StopOrder,
Direction,
TickData,
BarData,
TradeData,
OrderData,
BarGenerator,
ArrayManager,
)
class TurtleSignalStrategy(CtaTemplate):
""""""
author = "用Python的交易员"
entry_window = 20
exit_window = 10
atr_window = ... |
set -o errexit
set -o nounset
set -o pipefail
SWAGGER_JAR_URL="http://search.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.6/swagger-codegen-cli-2.4.6.jar"
SWAGGER_CODEGEN_JAR="hack/python-sdk/swagger-codegen-cli.jar"
SWAGGER_CODEGEN_CONF="hack/python-sdk/swagger_config.json"
SWAGGER_CODEGEN_FILE="pkg/apis/pytor... |
''' view_pdf_deep worker '''
import pprint
class ViewPDFDeep(object):
''' ViewPDFDeep: Generates a view for PDF files '''
dependencies = ['meta', 'strings']
def execute(self, input_data):
''' Execute the ViewPDFDeep worker '''
# Just a small check to make sure we haven't been called on th... |
package alluxio.client.cli.fs.command;
import alluxio.AlluxioURI;
import alluxio.cli.fs.command.DistributedLoadCommand;
import alluxio.client.cli.fs.AbstractFileSystemShellTest;
import alluxio.client.file.FileSystemTestUtils;
import alluxio.client.file.URIStatus;
import alluxio.exception.AlluxioException;
import all... |
<!DOCTYPE html>
<html class="no-js">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<link rel="stylesheet" href="css/poole.css">
<link rel="stylesheet" href="css/syntax.css">
<link rel="stylesheet" href=... |
<?php
namespace Nazdrave\Model;
use Slim\Container;
class UserDrinkModel extends BaseModel {
protected $tableName = 'user_drink';
public function checkIn($userId, $drinkId, $venueId, $description, $rating) {
$data = [
'user_id' => $userId,
'drink_id' => $drinkId,
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace HTLib2
{
using Env = HTLib2.HEnvironment;
public partial class Matlab
{
/// using(new Matlab.NamedLock(""))
/// {
/// ...
/// }
public class NamedLock : HTLib2.NamedLock
... |
module RecursiveUpdate
module Utils
class << self
##
# Drop nested values from a hash
def drop_nested_values(h)
h.each do |k, v|
h.delete k if [Hash, Array, HashWithIndifferentAccess, ActionController::Parameters].include? v.class
end
end
##
# V1::Goo... |
'''
This is a functional test that has some external preconditions:
- a valid ~/.restforce credentials file
- a RESTful Apex resource named 'hello' ... something like:
@RestResource(urlMapping='/hello/*')
global class HelloResource {
@HttpGet
global static String doGet() { r... |
/**
*/
package org.wso2.developerstudio.datamapper.impl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EC... |
@extends('app')
@section('title')
Home
@stop
@section('content')
<!-- Login card -->
@include('errors._list')
<div class="mdl-card mdl-shadow--2dp mdl-cell mdl-cell--6-col mdl-cell--12-col-tablet mdl-cell--12-col-phone">
<div class="mdl-card__title">
<h2 class="mdl-card__title-text">L... |
from __future__ import unicode_literals
from django.conf.urls import url
from django.test import TestCase, override_settings
from rest_framework.compat import NoReverseMatch
from rest_framework.reverse import reverse
from rest_framework.test import APIRequestFactory
factory = APIRequestFactory()
def null_view(requ... |
import fs from "fs";
import * as transport from "./raygun.transport";
import { SendOptions, SendOptionsWithoutCB } from "./types";
// Read stdin synchronously
const data = fs.readFileSync(0, "utf-8");
const options: SendOptionsWithoutCB = JSON.parse(data);
const sendOptions = { ...options, callback };
transport.sen... |
require File.dirname(__FILE__) + '/../spec_helper'
describe 'Image model: Image' do
before do
@image = Image.new
end
it 'should be valid' do
image = new_image
image.should be_valid
end
# Basic requirements
it 'should have a content type' do
@image.should have(2).errors_on(:content_typ... |
require_relative 'spec_helper' # Use the RSpec framework
# Load the class under test
require_relative '../toml_datatype'
describe TOMLBoolean do
subject { TOMLBoolean.new('true') }
context 'Initialization:' do
it "should be initialized with 'true' or 'false' text" do
expect { TOMLBoolean.new('true') }.... |
var path = require('path'),
through = require('through2'),
minimatch = require('minimatch');
module.exports = function appendify (file, opts) {
// Check if configuration properties are set.
if (!(opts && opts.glob && opts.string)) {
throw new Error('Could not find configuration for appendify');
}
... |
layout: post
title: "Getting the URL of a Featured Image in Wordpress"
date: 2011-06-03 06:32:39
comments: true
categories:
---
Recently I was displaying the featured image of posts in a gallery format and wanted to show the larger version of the image in a shadow box. I needed to get the url of the large size image.... |
<?php
namespace Common;
use Frontend\Core\Engine\Model as FrontendModel;
/**
* This is our extended version of SpoonCookie
*/
class Cookie extends \SpoonCookie
{
/**
* Stores a value in a cookie, by default the cookie will expire in one day.
*
* @param string $key A name for the cookie.
... |
<!DOCTYPE html>
<html lang="es" ng-app="paredazosApp">
<head>
<title>El Huevo - Aldea los Paredazos</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/app.js"></script>
<script sr... |
class SpreeGoogleMerchantHooks < Spree::ThemeSupport::HookListener
insert_after :admin_configurations_menu do
%(<%= configurations_menu_item(t("google_merchant"), admin_google_merchants_path, t("google_merchants_description")) %>)
end
end |
<?php
namespace Fanta\ManagerBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Fanta\ManagerBundle\Entity\FantaTeam
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="Fanta\ManagerBundle\Entity\FantaTeamRepository")
*/
class FantaTeam
{
/**
* @var integer $id
*
* @ORM\Column(name="id", type=... |
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/vainglory`. To experiment with that code, run `bin/console` for an interactive prompt.
TODO: Delete this and the text above, and describe your gem
## In... |