text stringlengths 3 1.05M |
|---|
<component name="CopyrightManager">
<copyright>
<option name="notice" value="The MIT License Copyright &#36;today.year Alexander Alexeev." />
<option name="keyword" value="Copyright" />
<option name="allowReplaceKeyword" value="" />
<option name="myName" value="mit" />
<option name="m... |
<?php
namespace Magento\Catalog\Model\Indexer\Product\Eav\Action;
/**
* Row reindex Test
*/
class RowTest extends \PHPUnit_Framework_TestCase
{
/**
* @magentoDbIsolation disabled
* @magentoAppIsolation enabled
* @magentoDataFixture Magento/Catalog/_files/product_simple.php
*/
public func... |
package org.fest.assertions.internal;
import static org.fest.assertions.error.ShouldStartWith.shouldStartWith;
import static org.fest.assertions.test.ErrorMessages.valuesToLookForIsEmpty;
import static org.fest.assertions.test.ErrorMessages.valuesToLookForIsNull;
import static org.fest.assertions.test.FailureMe... |
import type { Dispatch, AnyAction, MiddlewareAPI } from 'redux'
import type { ThunkDispatch } from 'redux-thunk'
import { createAction } from '../createAction'
import { nanoid } from '../nanoid'
import type {
ListenerMiddleware,
ListenerMiddlewareInstance,
AddListenerOverloads,
AnyListenerPredicate,
CreateLi... |
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| ... |
package com.texasgamer.zephyr.fragment;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.... |
.class public Lgov/nist/javax/sip/header/ims/PAssociatedURI;
.super Lgov/nist/javax/sip/header/AddressParametersHeader;
.source "PAssociatedURI.java"
# interfaces
.implements Lgov/nist/javax/sip/header/ims/PAssociatedURIHeader;
.implements Lgov/nist/javax/sip/header/ims/SIPHeaderNamesIms;
.implements Ljavax/sip/header... |
CKEDITOR.plugins.setLang( 'toolbar', 'en-au', {
toolbarCollapse: 'Collapse Toolbar', // MISSING
toolbarExpand: 'Expand Toolbar', // MISSING
toolbarGroups: {
document: 'Document',
clipboard: 'Clipboard/Undo',
editing: 'Editing',
forms: 'Forms',
basicstyles: 'Basic Styles',
paragraph: 'Paragraph',
links... |
//
// PWTimeZoneWrapper.h
// Patchworks
//
// Created by Jonathon Mah on 2005-10-09.
// Copyright 2005 Playhaus. All rights reserved.
// License information is contained at the bottom of this file and in the
// 'LICENSE.txt' file.
//
#import <Foundation/Foundation.h>
@interface PWTimeZoneWrapper : NSObject
{
... |
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.IO;
namespace Build.IO
{
/// <summary>
/// Interface that encapsulates *all* access to the filesystem.
/// </summary>
public interface IFileSystem
{
/// <summary>
/// The current directory.
/// Will be used when ... |
A tool to diff-mark HTML documents
|
import os
import subprocess
def up(config):
# c/c++ tokenizer
p1 = subprocess.Popen(['clang', '--version'], stdout=subprocess.PIPE)
p2 = subprocess.Popen(['grep', '-o', '[0-9]\.[0-9]\{1,\}'], stdin=p1.stdout, stdout=subprocess.PIPE)
p3 = subprocess.Popen(['head', '-1'], stdin=p2.stdout, stdout=subproc... |
/*************************************************************************/
/* property_editor.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
[](https://www.npmjs.com/package/oojs-ui) [](https://packagist.org/packages/oojs/oojs-ui) [](https://david-dm.... |
<?php
class Robinhq_Robin_Block_Adminhtml_Robinbackend extends Mage_Adminhtml_Block_Template {
protected function _prepareLayout()
{
$this->getLayout()->getBlock('head')->addCss('robin/robin.css');
return parent::_prepareLayout();
}
} |
/*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech-Cycleo
Description:
Host specific functions to address the LoRa concentrator... |
using System;
namespace Chloe.Server.Services.UploadHandlers
{
public class StreamHelper
{
public static byte[] ReadToEnd(System.IO.Stream stream)
{
long originalPosition = 0;
if (stream.CanSeek)
{
originalPosition = stream.Position;
... |
var path = require('path');
var fs = require('fs');
var req = require('request');
var cfg = require('config');
var ac = require('ac-server-ctrl');
var options = {
"url": cfg.get('vr.entrylist.url'),
"method": "GET",
"json": false
};
var getEntryList = function(parms, presetName, cb) {
if(options.url =... |
<?php
declare(strict_types=1);
namespace UMA\Tests\Psr7Hmac;
use PHPUnit\Framework\TestCase;
use UMA\Psr7Hmac\Internal\HashCalculator;
final class HashCalculatorTest extends TestCase
{
/**
* @dataProvider vectorProvider
*
* @param string $key
* @param string $data
* @param string $expec... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.0.5-master-437a308
*/
md-sidenav.md-THEME_NAME-theme {
background-color: '{{background-color}}'; }
|
class Ezreal : public IChampion
{
public:
void Menu() override
{
MainMenu = GPluginSDK->AddMenu("RyTaks_Ezreal");
ComboMenu = MainMenu->AddMenu("Combo Settings");
ComboQ = ComboMenu->CheckBox("Use Q", true);
ComboW = ComboMenu->CheckBox("Use W", true);
ComboE = ComboMenu->CheckBox("Use E", true... |
lychee.define('game.entity.menu.Button').includes([
'lychee.ui.Sprite'
]).exports(function(lychee, game, global, attachments) {
var _config = attachments["json"].buffer;
var _texture = attachments["png"];
var Class = function(settings) {
if (settings === undefined) {
settings = {};
}
settings.textur... |
<html class="reftest-wait">
<base href="/gen/third_party/webgpu-cts/src/webgpu/web_platform/reftests/" />
<title>WebGPU canvas_complex_rgba16float_copy</title>
<meta charset="utf-8" />
<link rel="help" href="https://gpuweb.github.io/gpuweb/" />
<meta
name="assert"
content="WebGPU canvas should have co... |
<!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_162) on Thu Sep 26 00:01:04 PDT 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JacksonXmlText (Jackson-dat... |
package com.github.ambry.store;
import com.codahale.metrics.JmxReporter;
import com.github.ambry.clustermap.ClusterMap;
import com.github.ambry.clustermap.StaticClusterAgentsFactory;
import com.github.ambry.config.ClusterMapConfig;
import com.github.ambry.config.VerifiableProperties;
import com.github.ambry.tools.uti... |
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<groupId>org.kie.workbench.screens</groupId... |
title: Debian 8. Install Linux, Nginx, MySQL, PHP (LEMP Stack)
description: ""
date: 2017-05-27
---
### Install vim
```
$ sudo apt-get install vim
```
### Install git
```
$ sudo apt-get install git
```
## Install LEMP
### Step 1. Install Nginx
```
$ sudo apt-get update
$ sudo apt-get install nginx
```
### Step ... |
<?php
use models\languageforge\lexicon\LiftImport;
use models\languageforge\lexicon\LiftMergeRule;
require_once dirname(__FILE__) . '/../../TestConfig.php';
require_once SimpleTestPath . 'autorun.php';
require_once TestPath . 'common/MongoTestEnvironment.php';
class TestLiftImportInfo
{
public $points;
publ... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/pink_300" >
<TextView
android:id="@+id/tv_se... |
<?php
namespace ElkArte;
/**
* Class \ElkArte\MetadataIntegrate
*
* OG and Schema functions for creation of microdata
*/
class MetadataIntegrate
{
/** @var array data from the post renderer */
public $data;
/** @var array attachment data from AttachmentsDisplay Controller */
public $attachments;
/** @var... |
For the creation of constructed languages or conlangs.
This project will eventually be a Python/Django web site that offers the user the ability to create a language online. We are still in the planning stages and feasibility still needs to be determined.
|
layout: page
title: Sobre
---
<p class="message">
Este grupo dedica-se a coisas discretas. Simples e complexas.
</p>
Queremos codificar um mundo mais discreto e mais perfeito.
## Novidades
Fique atento! |
import java.awt.Color;
import java.awt.FileDialog;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import javax.imageio.ImageIO;
i... |
using System;
namespace TeaDriven.Graphology.Visualization
{
public class DefaultGetNodeString : IGetNodeString
{
#region Dependencies
private readonly IGetDepthString _getDepthString;
private readonly IGetMemberTypesString _getMemberTypesString;
#endregion Dependencies
... |
#ifndef __CONFIG_BMIPS_BCM6338_H
#define __CONFIG_BMIPS_BCM6338_H
/* CPU */
#define CONFIG_SYS_MIPS_TIMER_FREQ 120000000
/* RAM */
#define CONFIG_NR_DRAM_BANKS 1
#define CONFIG_SYS_SDRAM_BASE 0x80000000
/* U-Boot */
#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE + 0x100000
#if defined(CONFIG_BMIPS_BOOT_RAM... |
package executor
import (
"strings"
apis "github.com/openebs/maya/pkg/apis/openebs.io/v1alpha1"
"github.com/openebs/maya/pkg/util"
"github.com/spf13/cobra"
"k8s.io/klog"
upgrader "github.com/openebs/maya/pkg/upgrade/upgrader"
errors "github.com/pkg/errors"
)
// JivaVolumeOptions stores information required... |
<?php
namespace Codeception\Module\Tests;
use Synaq\ZasaBundle\Exception\SoapFaultException;
class GetFilterRulesFromZimbraTest extends ZasaModuleTestCase
{
/**
* @test
* @throws SoapFaultException
*/
public function callsGetFilterRulesOnZimbraConnectorOnce()
{
$this->module->getFi... |
<!--
-->
<!-- Options Menu for SearchableActivity and EntryActivity.
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<!-- Search and G+ must always been shown since they are referred to by the tutorial. -->
<!-- We don't use app:s... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {graphql, compose} from 'react-apollo';
import Autosuggest from '../../../components/Autosuggest';
import Waypoint from 'react-waypoint';
import Button from '../../../components/Button';
import Card from '../../../components/Card';
impor... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Secken.ServerSdk.DemoSix</title>
<script src="/static/js/jquery/1.11.2/jquery.min.js"></script>
<script src="/static/js/push.js"></script>
</head>
<bod... |
require 'spec_helper'
RSpec.describe(Voting::App) do
context 'Logging in (feature)', type: :feature do
let(:user) { Fabricate(:user) }
it 'allows a valid user to login' do
visit '/login'
within('#login') do
fill_in 'Username', with: user.username
fill_in 'Password', with: user.p... |
/*
* 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 applicable law or agreed to in writing, software
* distribut... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
... |
/**
* This is a generated file. Do not edit or your changes will be lost
*/
#import "TkDmapTiCustomalertModuleAssets.h"
extern NSData* filterDataInRange(NSData* thedata, NSRange range);
@implementation TkDmapTiCustomalertModuleAssets
- (NSData*) moduleAsset
{
return nil;
}
@end
|
package org.codehaus.xfire.aegis.inheritance.intf;
public class ChildImpl implements IChild {
public String getChildName() {
return "child";
}
public String getParentName() {
return "parent";
}
}
|
package org.openid4java.server;
/**
* @author Marius Scurtescu, Johnny Bufu
*/
public interface NonceGenerator
{
public String next();
}
|
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE Te... |
<?php
namespace FelixOnline\Admin\Widgets;
interface Widget {
public function __construct($fieldName, $label, $currentValue, $readOnly, $required, $help, $otherProperties = array());
public function render();
} |
#ifndef RenderImage_h
#define RenderImage_h
#include "RenderImageResource.h"
#include "RenderReplaced.h"
namespace WebCore {
class HTMLAreaElement;
class HTMLImageElement;
class HTMLMapElement;
class RenderImage : public RenderReplaced {
public:
RenderImage(Node*);
virtual ~RenderImage();
void setIma... |
import {Component} from '@angular/core'
@Component({
selector: 'd-jrzsd',
template: `
<span [attr.aria-label]="msg" [hidden]="false">This is a dummy component for Jrzsd</span>
<div (click)="doNothing($event)"></div>
`,
})
export class Jrzsd {
msg: string = 'nothing to say';
doNothing(evt: any) ... |
<!DOCTYPE html>
<html>
<head>
<title>会员登录</title>
#parse("common/header.html")
<script charset="utf-8" src="${rc.contextPath}/js/randomimage.js?v=01291"></script>
<script charset="utf-8" src="${rc.contextPath}/js/login.js?v=01291"></script>
<script type="text/javascript">
var error = '';
</scr... |
package org.wso2.carbon.ml.core.impl;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.apache.commons.io.IOUtils;
import org.wso2.carbon.ml.core.exceptions.MLOutputAdapterExcepti... |
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
// Helper functions for implementing isEqual:
BOOL GTLR_AreEqualOrBothNil(id _Nullable obj1, id _Nullable obj2);
BOOL GTLR_AreBoolsEqual(BOOL b1, BOOL b2);
// Helper to ensure a number is a number.
//
// The Google API servers will send numbers >53 bits as ... |
package storage::netapp::restapi::mode::nodehardwarestatus;
use base qw(centreon::plugins::templates::counter);
use strict;
use warnings;
use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold);
sub custom_status_output {
my ($self, %options) = @_;
my $msg = sprintf("Status is '%s',... |
package builtins
import (
"fmt"
"net/mail"
"net/url"
"regexp"
"strings"
u "github.com/araddon/gou"
"github.com/mssola/user_agent"
"github.com/araddon/qlbridge/expr"
"github.com/araddon/qlbridge/value"
"github.com/araddon/qlbridge/vm"
)
var _ = u.EMPTY
// email a string, parses email and makes sure it is ... |
//
// AppDelegate.m
// 百思不得姐
//
// Created by MD313 on 15/9/1.
// Copyright (c) 2015年 xiaokai. All rights reserved.
//
#import "AppDelegate.h"
#import "XKTabBarController.h"
#import "XKShowGuideView.h"
#import "XKAdViewController.h"
@interface AppDelegate ()
@property (strong, nonatomic) UIWindow *topWindow;
@p... |
package com.navercorp.pinpoint.rpc.stream;
import com.navercorp.pinpoint.rpc.PinpointSocket;
import com.navercorp.pinpoint.rpc.PinpointSocketException;
import com.navercorp.pinpoint.rpc.RecordedStreamChannelMessageListener;
import com.navercorp.pinpoint.rpc.TestByteUtils;
import com.navercorp.pinpoint.rpc.cl... |
import { ExpoConfig, modifyConfigAsync } from '@expo/config';
import chalk from 'chalk';
import * as Log from '../log';
import { SilentError } from './errors';
/** Wraps `[@expo/config] modifyConfigAsync()` and adds additional logging. */
export async function attemptModification(
projectRoot: string,
edits: Part... |
<!DOCTYPE html>
<!--
Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.1
Version: 3.6
Author: KeenThemes
Website: http://www.keenthemes.com/
Contact: support@keenthemes.com
Follow: www.twitter.com/keenthemes
Like: www.facebook.com/keenthemes
Purchase: http://themeforest.net... |
package com.AandC.GemsCraft.Configuration;
import android.app.*;
import android.os.*;
import com.AandC.GemsCraft.*;
import com.AandC.GemsCraft.System.*;
import android.widget.*;
import org.json.*;
import java.io.*;
import android.view.*;
import android.nfc.*;
import com.AandC.GemsCraft.Exceptions.*;
public class Confi... |
class AddCityToCampaigns < ActiveRecord::Migration
def change
add_column :campaigns, :city, :text
end
end
|
Cucumber and Capybara
---------------------------------
What this example covers
========================
This example covers a simple setup for running Cucumber tests with Capybara, using Sauce Labs as the browsers behind Capybara.
It assumes a basic familiarity with how Cucumber and Capybara operate.
What this ex... |
.class final Ljava/nio/CharArrayBuffer;
.super Ljava/nio/CharBuffer;
.source "CharArrayBuffer.java"
# instance fields
.field private final arrayOffset:I
.field private final backingArray:[C
.field private final isReadOnly:Z
# direct methods
.method private constructor <init>(I[CIZ)V
.locals 2
.param p1, "... |
using namespace std;
// --------------------------------------------------------------------------
// The read thread will run independently, retrieving packets from the
// server and writing them to the console. When the main (write) thread
// shuts down the socket, we exit.
void read_thr(sockpp::tcp_socket rdSock)
... |
.. _reference.entry.content:
:py:attr:`entries[i].content`
=============================
A list of dictionaries with details about the full content of the entry.
Atom feeds may contain multiple content elements. Clients should render as
many of them as possible, based on the type and the client's abilities.
.. _r... |
class MdbConverter
# simple ruby class to export a MDB file
# into CSV using MDBTOOLS.
#
def initialize(mdb_file_path, export_path = "mdb_export_results")
@db = mdb_file_path
@export_path = File.join(Dir.home, "mdb_export_results")
unless Dir.exists? @export_path
Dir.mkdir(@export_path, 0700)
... |
<?php ///////////////////////////////////////////////////////
// ----------------------------------------------------------
// SNIPPET
// ----------------------------------------------------------
////////////////////////////////////////////////////////// ?>
<?php if($pagination && $pagination->hasPages()): ?>
<nav r... |
package org.drools.runtime.pipeline;
/**
*
* <p>This api is experimental and thus the classes and the interfaces returned are subject to change.</p>
*/
public interface Transformer
extends
Emitter,
Receiver,
Stage {
}
|
import System.Info.MAC
main = do
macs <- macs
case macs of _:_ -> mapM_ print macs
[ ] -> putStrLn "Failed to obtain MAC address."
|
<?php
/**
* [PHPFOX_HEADER]
*/
defined('PHPFOX') or exit('NO DICE!');
/**
*
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Miguel_Espinoza
* @package Phpfox_Component
* @version $Id: add.class.php 1146 2009-10-06 18:36:51Z Raymond_Benc $
*/
class Emoticon_Component_Controller_Admincp_Add extends Phpfox_... |
/*
* Source file for all GnuTLS-specific code for the TLS/SSL layer. No code
* but vtls.c should ever call or use these functions.
*
* Note: don't use the GnuTLS' *_t variable type names in this source code,
* since they were not present in 1.0.X.
*/
#include "curl_setup.h"
#ifdef USE_GNUTLS
#include <gnutls... |
int main(int argc, char ** argv)
{
@autoreleasepool
{
return UIApplicationMain(argc,argv,nil,NSStringFromClass([AppDelegate class]));
}
}
|
package org.springframework.aop.framework;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.HashMap;
/**
* Useful abstract superclass for counting advices etc.
*
* @author Rod Johnson
*/
public class MethodCounter implements Serializable {
/** Method name --> count, does not ... |
exports.config = {
allScriptsTimeout: 11000,
specs: [
'../tests-e2e/*.js'
],
capabilities: {
'browserName': 'chrome'
},
chromeOnly: true,
baseUrl: 'http://localhost:8000/',
framework: 'jasmine',
jasmineNodeOpts: {
defaultTimeoutInterval: 30000
}
};
|
Implement `int sqrt(int x)`.
Compute and return the square root of *x*.
|
#pragma once
#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
#include <aws/secretsmanager/model/FilterNameStringType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
... |
#include "cubicMesh.h"
#include "configFile.h"
#include "massSpringSystemFromCubicMesh.h"
#include "massSpringSystemFromCubicMeshConfigFile.h"
char * MassSpringSystemFromCubicMeshConfigFile::DuplicateString(const char * s)
{
// strdup sometimes didn't work well, so we used this
char * p = (char*) malloc (sizeof(... |
/**
* $Id$
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2007/08/07 12:05:11 bauerd
* *** empty log message ***
*
* Revision 1.1 2007/08/05 21:44:38 bauerd
* Initial Check in of reorganized components
*
* Revision 1.5 2007/01/04 03:14:49 dietrich
* Added code to protect against null values for getDisplayN... |
package com.argo.core.freemarker;
import freemarker.log.Logger;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
public class FreemarkerLoggingInitialiser implements ServletContextListener {
@Override
public void contextInitialized(ServletContextEvent sce) {
try... |
<?php
/**
* TOP API: taobao.product.propimg.delete request
*
* @author auto create
* @since 1.0, 2014-09-13 16:51:04
*/
class ProductPropimgDeleteRequest
{
/**
* 属性图片ID
**/
private $id;
/**
* 产品ID.Product的id.
**/
private $productId;
private $apiParas = array();
public function setId($id)
{
... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) 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:/... |
package helpers
type OutputBrandKey struct {
Key string `json:"key"`
}
func OutputBrandAPIKey(key string) *OutputBrandKey {
return &OutputBrandKey{
Key: key,
}
}
|
BUILD_PATH ?= .
CXX=g++
CPPFLAGS = -g -O2 -Wall
HIREDIS_INC ?= /home/albert/hiredis/include/hiredis
HIREDIS_LIB ?= /home/albert/hiredis/lib
UNITTEST_REDIS_SRC = redisClient.cpp redisManager.cpp unittest_redisClient.cpp
UNITTEST_REDIS_OBJ = redisClient.o redisManager.o unittest_redisClient.o
all : redis
redis : $... |
import os
from decouple import config, Csv
from dj_database_url import parse as dburl
########################################################################
# Basic configuration
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = config('SECRET_KEY')
DEBUG = config('DEBUG', defau... |
package org.apache.spark.sql.gpuenabler
import org.apache.spark.sql.Dataset
import org.apache.spark.sql.types.StructType
import org.apache.spark.internal.Logging
object CUDAUtils {
def DS = Dataset
type _ds[T] = Dataset[T]
def getLogicalPlan[T](ds: Dataset[T]) = {
ds.logicalPlan
}
def getAttributes... |
Contains different crawler for the sites YouTube, Socialblade and Google Image Search (not used).
All crawler are based on the [Scrapy](https://scrapy.org/) Framework.
*link
Needs valid YouTube API key!
Needs Scrapy to be installed!
scrapy_cron.sh:
- file to add to crontab for daily execution of the YouTube crawler
... |
/*
* This file is part of the Heritrix web crawler (crawler.archive.org).
*
* Licensed to the Internet Archive (IA) by one or more individual
* contributors.
*
* The IA licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
*... |
"""
This script is a trick to setup a fake Django environment, since this reusable
app will be developed and tested outside any specifiv Django project.
Via ``settings.configure`` you will be able to set all necessary settings
for your app and run the tests as if you were calling ``./manage.py test``.
"""
import sys
... |
<?php
namespace Coramer\Sigtec\ReportTechnicalBundle\Entity\Properties\ProductionLevel;
use Doctrine\ORM\Mapping as ORM;
/**
* Maquinaria
*
* @author Carlos Mendoza <inhack20@tecnocreaciones.com>
* @ORM\Table()
* @ORM\Entity
*/
class Machinery
{
/**
* @var integer
*
* @ORM\Column(name="id"... |
<?php
namespace Aop;
/**
* Interface Collection
*
* @inheritdoc
* @author Nicolas Tallefourtane <dev@nicolab.net>
*/
interface CollectionInterface extends \ArrayAccess
{
/**
* Get the name of the current Collection
*
* @return string The name, using "dot" notation for each segments of the name... |
#ifndef __LIGHT_COMM_H__
#define __LIGHT_COMM_H__
#include <Arduino.h>
#include <Stream.h>
#include <HardwareSerial.h>
//#define DEBUG_LC
#ifdef DEBUG_LC
#define LC_PRINTLN _ser->println
#define LC_PRINT _ser->print
#else
#define LC_PRINTLN //_ser->println
#define LC_PRINT //_ser->print
#endif
... |
cask 'sourcetree' do
version '2.7c'
sha256 'aa4036afdb9ef66179ac4f6f1236b941d5f8650d3a09e5278f1b317e94a4b27d'
# atlassian.com/software/sourcetree was verified as official when first introduced to the cask
url "https://downloads.atlassian.com/software/sourcetree/Sourcetree_#{version}.zip"
name 'Atlassian Sour... |
package ua.com.fielden.platform.web.view.master.api.widgets;
import ua.com.fielden.platform.entity.AbstractEntity;
import ua.com.fielden.platform.web.view.master.api.helpers.ISkipValidation;
import ua.com.fielden.platform.web.view.master.api.widgets.collectional.ICollectionalRepresentorConfig0;
/**
*
* A configurat... |
const paths = require('./paths');
const path = require('path');
const outputPath = path.join(__dirname, '../dist/');
const baseConfig = {
entry: ['./src/DateTime.js'],
mode: 'production',
resolve: {
extensions: ['.js']
},
externals: {
'react': 'react',
'react-dom': 'react-dom',
'moment': 'moment',
'm... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/compute/v1/compute.proto
package com.google.cloud.compute.v1;
/**
*
*
* <pre>
* Message containing what to include in the cache key for a request for Cloud CDN.
* </pre>
*
* Protobuf type {@code google.cloud.compute.v1.CacheKe... |
#import "SCLoginViewController.h"
#import "SCErrorHandler.h"
#import "SCSettings.h"
@implementation SCLoginViewController
{
BOOL _viewDidAppear;
BOOL _viewIsVisible;
}
#pragma mark - Object lifecycle
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
if ((self... |
<?php
/**
* Created by PhpStorm.
* User: Josh
* Date: 18/5/2014
* Time: 3:58 μμ
*/
namespace Schedule\Form;
use Zend\Form\Form;
class AddExceptionForm extends Form{
/**
* The add exception form constructor
*/
public function __construct(){
parent::__construct('addExceptionForm');
... |
echo "Adjusting plist for App Transport Security exception."
val=$(/usr/libexec/plistbuddy -c "add NSAppTransportSecurity:NSAllowsArbitraryLoads bool true" platforms/ios/BARTCordova/BARTCordova-Info.plist 2>/dev/null)
echo "Done" |
import sys
import platform
import imp
import time
import datetime
import html.parser
import subprocess
import os
import getopt
import xlsxwriter
import configparser
def update_repo_log(cfg, repos_id,status):
# Log a repo's fetch status
cfg.log_activity("Info","{} {}".format(status, repos_id))
log_message = ("INSERT... |
-- The math.floor(10000*aspect) trick is used to circumvent float precision problems.
local aspectRatioSuffix = {
[math.floor(10000*4/3)] = " 4_3",
[math.floor(10000*16/9)] = " 16_9",
[math.floor(10000*16/10)] = " 16_9"
}
--fall back on the 4:3 frame if we don't know about this aspect ratio at all
setmetata... |