text stringlengths 27 775k |
|---|
#!/bin/bash
host="10.0.50.24"
user="ubuntu"
app_name="docker-update"
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
echo "dir $DIR"
cd $DIR
echo "Removing previous building files"
ssh $user@$host "rm -rdf ~/docker-building"
echo "Pushing front files"
ssh $user@$host "mkdir -p ~/docker-building/... |
using System;
using System.Collections.Generic;
using System.Text;
namespace $safeprojectname$
{
public class Library
{
public bool DoThing()
{
return true;
}
}
}
|
<?php
namespace Encore\View\Parser\Style;
interface ParserInterface
{
/**
* Parse a style by path
*
* @param string $path
* @return \Encore\View\Style\StyleCollection
*/
public function parse($path);
} |
import { TrackerDefinition } from '../definition-interface';
export const definition: TrackerDefinition = {
id: 'mircrew',
name: 'MIRCrew',
description: 'MIRCrew is an ITALIAN Private Torrent Tracker for MOVIES / TV / MUSIC',
language: 'it-IT',
type: 'private',
encoding: 'UTF-8',
links: ['https://mircrew... |
(ns lucid.aether.remote-repo
(:require [hara.object :as object]
[lucid.aether.authentication])
(:import (org.eclipse.aether.repository RemoteRepository
RemoteRepository$Builder
RepositoryPolicy)))
(object/map-like
Repo... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Appointment extends CI_Controller
{
public function Appointment()
{
parent :: __construct();
$this->load->model('appointment_model');
}
public function get()
{
$accesstoken=$this->input->post('accesstoken');
$year=$this->uri->seg... |
#!/usr/bin/python
## -*- coding: utf-8 -*-
# Imports
import os
import math
# print/format demo
print('A little string with format placeholder for PI: {}.'.format(math.pi))
print('A little string with format placeholder for PI: {:5.4f}.'.format(math.pi))
print('A little string with format placeholder for PI: {:>15.4f}... |
require 'pathname'
__dir__ = Pathname(__FILE__).dirname.expand_path
# global first, then local to length validators
require __dir__.parent.parent + "spec_helper"
require __dir__ + 'spec_helper'
describe DataMapper::Validate::LengthValidator do
it "passes if a default fulfills the requirements" do
doc = BoatDock... |
import io
import numpy as np
from PIL import Image
def pil_to_bytes(img):
buf = io.BytesIO()
img.save(buf, 'jpeg')
return buf.getvalue()
|
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
addSbtPlugin("com.sandinh" % "sd-devops-oss" % "6.3.0")
addSbtPlugin("com.sandinh" % "sd-matrix" % "6.3.0")
// for example project only
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.8")
|
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BaseFormComponent } from "./base-form/base-form.component";
import { FormValidationComponent } from "./form-validation/form-validation.component";
impo... |
import { Connection } from "mongoose";
import { TicketSchema } from "src/schemas/ticket.schema";
export const ticketsProviders = [
{
provide: 'TICKET_MODEL',
useFactory: (connection: Connection) => connection.model('Ticket', TicketSchema),
inject: ['DATABASE_CONNECTION'],
},
{
... |
export MBED_USER_ID=mdc-api-python
cd mbed_connector_api/tests/bin
git clone https://github.com/BlackstoneEngineering/mbed-client-linux-ci.git
rm mbed-client-linux-ci/source/security.h
cp ./security.h mbed-client-linux-ci/source/security.h
ls
cd mbed-client-linux-ci
echo "{\"endpoint-lifetime\": 60}" > config.json
yott... |
import { solidity } from 'ethereum-waffle'
import { use, expect } from 'chai'
import { network, ethers, waffle } from 'hardhat'
import { BigNumber, Contract } from 'ethers'
import tokenWantABI from '../abi/tokenWant.json'
use(solidity)
describe('Deploy and test Radio Subscription', () => {
const provider = waff... |
SUBROUTINE HYDL_AG_CON(divtn,w,n,kappa_lam)
!
!-----Wavelength interpolation of Balmer line profiles from VCS data of
!-----Michael Lemke (1997, A&AS 122,285). Processed to include convolution with
!-----Doppler broadening, Ali & Griem resonance broadening, and radiation
!-----damping. Accounts for level fine str... |
package redisDB
type ReqTask struct {
ResChan chan ResTask
UID uint64
ID int16
Data []byte
}
type ReqTaskLogin struct {
UserID string
AuthCode uint64
}
|
# import config
# import alpaca_trade_api as tradeapi
# api = tradeapi.REST(config.API_KEY, config.SECRET_KEY, base_url=config.API_URL)
# barsets = api.get_barset(['AAPL', 'MSFT'], 'day')
# for symbol in barsets:
# print(f'Processing Symbol : {symbol}')
# for bar in barsets[symbol]:
# print(bar.t, bar.o, ... |
module MultistartOptimization
# NOTE: exports in included files
using ArgCheck: @argcheck
using Base.Threads: @spawn, fetch
using DocStringExtensions: FIELDS, FUNCTIONNAME, SIGNATURES, TYPEDEF
using Parameters: @unpack
using Requires: @require
using Sobol: SobolSeq, Sobol
include("generic_api.jl")
include("tiktak.jl... |
class Label < ActiveRecord::Base
belongs_to :d_system, :class_name => "System"
belongs_to :s_system, :class_name => "System"
belongs_to :d_section, :class_name => "Section"
belongs_to :s_section, :class_name => "Section"
belongs_to :d_device, :class_name => "Device"
belongs_to :s_device, :class_name => "Devi... |
package br.com.devsrsouza.kotlinbukkitapi.tooling.bukkript
import com.intellij.openapi.vfs.VirtualFile
import java.io.File
fun String.isBukkriptScript() = endsWith(".$BUKKRIPT_EXTENSION", true)
fun VirtualFile.isBukkriptScript() = name.isBukkriptScript()
fun VirtualFile.isScriptFolder(): Boolean {
if(name != "s... |
'use strict';
angular.module('orders').factory('orderService', ['$q', 'Products',
function($q, Products) {
var _self = this;
_self.order = {};
return {
create: create,
addProductsQtyByOrder: addProductsQtyByOrder,
minusProductsQtyByOrder: minusProductsQtyByOrder
};
function create(order) {
... |
<?php
return [
'pages' => [
'name' => 'Pages',
],
'types' => [
'name' => 'Page Types',
],
];
|
mod cancel;
mod info;
mod notify;
mod status;
pub use cancel::*;
pub use info::*;
pub use notify::*;
pub use status::*;
pub type NoticeProcessor = pq_sys::PQnoticeProcessor;
pub type NoticeReceiver = pq_sys::PQnoticeReceiver;
#[derive(Clone)]
pub struct Connection {
conn: *mut pq_sys::PGconn,
}
unsafe impl Send... |
package p5
import "math"
// 素数计算
type generatePrimes struct {
crossOut []bool
maxValue int
}
func NewPrimes(maxValue int) *generatePrimes {
return &generatePrimes{maxValue: maxValue}
}
func (g *generatePrimes) Gen() []int {
if g.maxValue >= 2 {
g.initializeArrayOfBooleans()
g.crossOutMultiples()
return g.p... |
import { Component } from '@angular/core';
import { NgxBaseComponent } from 'ngx3js';
@Component({
selector: 'app-webgl-loader-pdb',
templateUrl: './webgl-loader-pdb.component.html',
styleUrls: ['./webgl-loader-pdb.component.scss'],
})
export class WebglLoaderPdbComponent extends NgxBaseComponent<{
molecule: strin... |
1 37 56 60 64 70
2 35
3 5 9 12 42
4 13 15
5 6 25 28 71
6 21 34 42 77 79
7 25
8 45 61
9 5 47 49 63 66
10 27 34 59 61 63 70
11 13 30 75
12 23 24
13 34 50
14 10 29
15
16 42 55 72
17 14 22 74 76 77
18 4 23 65 73
19 15 21 44 61
20 9 15 16 21
21 25 63
22 53
23 16 26
24 14 26
25 8 38 52
26 8 39 58 75
27 33 71 74
28 8
29 45 79... |
(in-package :com.burhanloey.clock)
(defun create-alarm ()
(let ((alarm-sound (new (-audio "../audio/alarm.mp3"))))
(setf (getprop alarm-sound 'loop) t)
alarm-sound))
(defvar alarm (create-alarm))
(defvar walk-text (chain document (get-element-by-id "walk")))
(defvar gotit-button (chain document (g... |
{-# LANGUAGE ForeignFunctionInterface #-}
-- |
-- Module : Graphics.Formats.Assimp.Types
-- Copyright : (c) Joel Burget 2011-2012
-- License : BSD3
--
-- Maintainer : Joel Burget <joelburget@gmail.com>
-- Stability : experimental
-- Portability : non-portable
--
-- Corresponds to aiTypes.h
module Graphi... |
package ru.hyst329.openfool
/**
* Created by trolley813 on 20.06.17.
* Licensed under MIT License.
*/
import com.badlogic.gdx.Preferences
import kotlin.math.max
class RuleSet(var deuceBeatsAce: Boolean = false,
var loweredFirstDiscardLimit: Boolean = false,
var allowPass: Boolean = fal... |
module TimelineEvents
class CreateWebhookDataService
def initialize(submission)
@submission = submission
end
def data
{
id: @submission.id,
students: @submission.founders.pluck(:id),
created_at: @submission.created_at,
updated_at: @submission.updated_at,
... |
// Below I create an interface that will tell that my "variables" for the DTO
// to accept any object with a key that is a string and the content that can be
// both string or number
interface ITemplateVariables {
[key: string]: string | number;
}
export default interface IParseMailTemplateDTO {
file: string;
va... |
#!/bin/bash
#t1=$(date +"%s")
ALL_ARGS=$(eval echo '' $*)
ALL_ARGS=$(echo $ALL_ARGS | sed "s/%PSUBMIT_JOBID%/$PSUBMIT_JOBID/g")
ALL_ARGS=$(echo $ALL_ARGS | sed "s/%PSUBMIT_NP%/$PSUBMIT_NP/g")
if [ "$ALL_ARGS" == "--show-rank0-out" ]; then
echo "out.$PSUBMIT_JOBID.0"
elif [ "$ALL_ARGS" == "--show-rank0-err" ]; th... |
use super::*;
pub trait Primitive: Clone {
fn get(node: &NodeRef) -> Self;
fn empty() -> Self;
}
impl Primitive for String {
fn get(node: &NodeRef) -> Self {
node.as_string()
}
fn empty() -> Self {
String::new()
}
}
impl Primitive for PathBuf {
fn get(node: &NodeRef) -> ... |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneKindSignatures #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
module RestrictedIO.TypeLevel.Set (Contains, Elem, Difference) where
import Data.Kind ... |
# frozen_string_literal: true
module IntrovertDashboard::Components
class Matrix < IntrovertDashboard::BaseComponent
get '/' do
{
config: config
}.to_json
end
end
end
|
Generate a Standalone Executable
==================================================
## Using PyInstaller
A Golem standalone executable without any dependencies (including Python) can be generated using [PyInstaller](https://pyinstaller.readthedocs.io/).
Note: the executable must be generated in the same platform tha... |
/*
* Copyright 2018-2021 OVO Energy Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
package fs2.kafka.internal
import cats.effect.{Blocker, ContextShift, Resource, Sync}
import cats.implicits._
import fs2.kafka.{KafkaByteProducer, ProducerSettings, TransactionalProducerSettings}
import fs2.kafka.internal.synta... |
#warning This header is deprecated, #import <MK…+PromiseKit.h> instead.
#import <MKDirections+PromiseKit.h>
#import <MKMapSnapshotter+PromiseKit.h>
|
SYNOLOGY_DRIVE_FOLDER="${HOME}/synology_drive_folder"
DOCUMENTS_DIR="${HOME}/Documents"
BACKUP_DIR="${HOME}/file_sync_backup"
BACKUP_DOCUMENTS_DIR="${BACKUP_DIR}/Documents"
SYNCED_FOLDER="${SYNOLOGY_DRIVE_FOLDER}/Documents"
teardownScript(){
echo "${MODULES_DIR}/file_sync/teardown.sh"
}
setupScript(){
echo "${MOD... |
# Kolor Themer
This project for Color Themer Idea using css style
1. Using css extension
2. Only support css color node like:
```
With note
/* Background1 */
{
color:#FFFFF
}
With note and name (for parsing to application)
/* Background1 */
.at1{
color:#FFFFF
}
Mutilang:
/* Background1 */
/*cn:背景 */
/*vi:Mà... |
#include "duckdb/execution/operator/join/physical_rai_join.hpp"
#include "duckdb/common/vector_operations/vector_operations.hpp"
#include "duckdb/execution/index/rai/rel_adj_index.hpp"
#include "duckdb/storage/buffer_manager.hpp"
#include "duckdb/storage/storage_manager.hpp"
#include <iostream>
using namespace duckd... |
# `cargo-template`
Better alternative to `cargo new`.
## Installation
```
git clone https://github.com/aodhneine/cargo-template.git
cd cargo-template
sudo ./install.sh
```
## Usage
```sh
cargo template foo # creates a new binary project named 'foo'
cargo template --bin foo # same as the above
cargo templat... |
import { EventBus } from '../event-bus';
import DeveloperSetting from './DeveloperSetting';
import Form from './Form';
import HasTab from './HasTab';
export default Form.extend({
components: {
DeveloperSetting
},
mixins: [
HasTab
],
data() {
return {
selectedTa... |
package arma.ark.cartograph.mission.api
import arma.ark.cartograph.mission.data.Mission
import arma.ark.cartograph.mission.data.MissionDao
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMe... |
module ActiveMerchant #:nodoc:
module Shipping
class ShipmentEvent
attr_reader :name, :time, :location, :message, :status
def initialize(name, time, location, status=nil)
@name, @time, @location, @status = name, time, location, status
end
end
end
end
|
<?php declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use Zamasaur\PhpCoDec\UrlCoDec;
use Zamasaur\PhpCoDec\Base64CoDec;
final class CoDecTest extends TestCase
{
public function testUrlCoDec(): void
{
$urlCoDec = new UrlCoDec();
$this->assertEquals(
... |
program placa_milhar;
var placa, centena: integer;
begin
read(placa);
centena:= (placa mod 1000) div 100;
writeln(centena);
end.
|
{menudata}
<li class="nav-item {active}"><a class="nav-link" href="{link}">{! name !}</a></li>
{/menudata}
|
#[macro_use]
extern crate aoc_runner_derive;
pub mod utils;
// Modules for day solutions
pub mod day_01;
pub mod day_02;
pub mod day_03;
pub mod day_04;
pub mod day_05;
pub mod day_06;
pub mod day_07;
pub mod day_08;
pub mod day_09;
aoc_lib!{ year = 2016 }
|
+++
title = "exec"
description = "Generate an event from a command process stdout"
weight = 10
+++
{{% processordetails exec %}} |
<?php
/*
* This file is part of the badge-poser package.
*
* (c) PUGX <http://pugx.github.io/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PUGX\BadgeBundle\Tests\Controller;
use PUGX\BadgeBundle\Service\ImageCreato... |
package io.github.slupik.schemablock.javafx.element.fx.sheet
import io.github.slupik.schemablock.javafx.element.Element
/**
* All rights reserved & copyright ©
*/
interface Sheet {
fun addElement(element: Element)
fun removeElement(element: Element) =
removeElement(element.elementId)
fun remov... |
package PlugAuth::Role::Auth;
use strict;
use warnings;
use Role::Tiny;
# ABSTRACT: Role for PlugAuth authentication plugins
our $VERSION = '0.28'; # VERSION
requires qw( check_credentials );
sub all_users { () }
sub create_user
{
my $next_auth = shift->next_auth;
return 0 unless defined $next_auth;
$next... |
package dev.eastar.branch.presenter
import android.log.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dev.eastar.branch.model.BranchEntity
import dev.eastar.branch.repository.BranchRepository
import kotlinx.coroutines.launch
import net.... |
/*
* Copyright (2021) The Delta Lake Project Authors.
*
* 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... |
<?php
namespace App\Http\Controllers;
use App\Models\DineroCuenta;
use Illuminate\Http\Request;
class pagosController extends Controller
{
public function pagar(Request $request){
DineroCuenta::where("id_user",auth()->user()->id)->increment("monto",$request->cantidad);
}
}
|
package offer2
import java.util.*
fun validateStackSequences(pushed: IntArray, popped: IntArray): Boolean {
var i = 0
val stack = LinkedList<Int>() as Deque<Int>
for (v in pushed) {
stack.push(v)
while (stack.isNotEmpty() && stack.peek() == popped[i]) {
i++
stack.po... |
package com.hzy.water
/**
* Created by ziye_huang on 2018/12/29.
*/
data class Water(val id: Int, val content: String, var clickable: Boolean) |
import java.io.EOFException
import java.lang.Exception
fun main(args: Array<String>)
{
while (true) {
try {
val l = readLine()!!.toInt()
val v = readLine()!!.split(" ").run { map { it.toInt() } }
val sorted = v.toTypedArray()
sorted.sort()
... |
package com.luteapp.timerpx.timer_list
import android.content.Context
import android.content.Intent
import android.content.pm.ShortcutInfo
import android.content.pm.ShortcutManager
import android.graphics.drawable.Icon
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.v... |
package weft.game.map
import weft.display.Glyph
import weft.game.creatures.Creature
import weft.game.creatures.EntityList
import weft.game.creatures.Player
import weft.game.creatures.Projectile
import weft.game.map.generators.MapGenerator
import java.awt.Dimension
import java.awt.Point
class GameMap(generator: MapGen... |
#ifndef ST_H
#define ST_H
#include <string>
#include <hash_fun.h>
#include <ext/hash_map>
using namespace std;
class SymTabEntry;
struct string_eq {
bool operator()(const string& s1, const string& s2) const {
return s1==s2;
}
};
struct string_hash {
size_t operator() (const string& s1) const {
__gnu_cx... |
using System;
namespace Common.Models
{
public class Trade: BaseModel
{
public int TickerId { get; set; }
public Ticker Ticker { get; set; }
public DateTime TradeDate { get; set; }
public string TradeType { get; set; }
public int Quantity { get; set; }
... |
#define _CRT_SECURE_NO_WARNING
#include <iostream>
#include <chrono>
#include <iomanip>
#include <ctime>
#include <string>
using namespace std;
/*
希望能够处理 timer和clock在不同系统中可能不同的事实,同时也为了强化时间精准度
duration(时间段):指某时间单位上的一个明确的tick
timepoint(时间点): 一个duration和一个epoch(起始点)的组合
“2000 年新年午夜”时间点,它被描述为“自 1970 年 1 月 1 日开始的第1 262 300 ... |
/****************************************************************************
* Copyright (c) 2012-2013, the Konoha project authors. All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistr... |
/*
* Copyright © 2020 Treblereel
*
* 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 wri... |
import Vue from 'vue';
const focus = Vue.directive('focus', {
inserted: function (el) {
el.focus()
}
});
export {focus}
|
/*
* Copyright 2018 Lars Edenbrandt
*
* 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... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
// For more information on enabling Web API for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
namespace vs2015webapi.Controllers
{
[Route("api/[controller]")]
pub... |
CREATE DATABASE [PEDIDOS_VAZIO]
GO
USE [PEDIDOS_VAZIO]
GO
CREATE TABLE [dbo].[TB_COR](
[CODCOR] [smallint] NOT NULL,
[COR] [varchar](15) NULL,
CONSTRAINT PK_TB_COR PRIMARY KEY (CODCOR)
);
CREATE TABLE [dbo].[TB_DEPARTAMENTO](
[COD_DEPTO] [int] IDENTITY(1,1) NOT NULL,
[DEPTO] [varchar](25) NOT NULL,
CONSTRAINT ... |
// Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
// Licensed under the Apache License, Version 2.0 (see LICENSE).
package com.pants.examples.scala_with_java_sources;
import com.pants.examples.java_sources.Greet
object GreetEverybody {
def greetAll(everybody: Array[String]): Array[String] = {
... |
@src\bbl-dab-setup.sql
@src\bbl-dab-load.sql
@src\bbl-dab-writecsv.sql
@src\bbl-dab-teardown.sql
EXIT |
/* Copyright 2017 Google Inc. 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 applicable law or agreed to in ... |
module.exports.formulario_inclusao_noticia = (app, req, res) => {
res.render("admin/form_add_noticia", { noticia: {}, erros: {} });
}
module.exports.noticias_sallet = (app, req, res) => {
let noticia = req.body;
req.assert('titulo','Título é obrigatório').notEmpty();
req.assert('resumo','Resumo deve conter entre ... |
@{
'7zip' = @{
DependencyType = 'Chocolatey'
Source = 'dummy'
Version = '1.0'
}
} |
/**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.core.config.impl;
import static org.testng.Assert.assertEquals;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.Obje... |
const { GoodbyeSmallTalksDialog } = require('botfuel-smalltalks');
class Goodbye extends GoodbyeSmallTalksDialog {}
module.exports = Goodbye;
|
import 'package:flutter/material.dart';
import 'dart:async';
import 'dart:convert';
import 'package:dribbbledanimation/ObjectModels/CustomerTransaction.dart';
import 'package:dribbbledanimation/Screens/Planet/DataListFancy.dart';
import 'package:dribbbledanimation/Screens/Planet/FancyRow.dart';
import 'package:ht... |
package geeker
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strings"
"time"
"appengine"
"appengine/urlfetch"
//"github.com/PuerkitoBio/goquery"
//"code.google.com/p/mahonia"
xhtml "golang.org/x/net/html"
)
const (
API = "http://geek.csdn.net/service/news/get_news_list?type=hackern... |
"""
Runs tests and writes the results to the report.json file.
This should be executed inside Blender, not from normal Python!
"""
import glob
import json
import os
from timeit import default_timer as timer
import sys
import bpy
print('bpy.app.version:', bpy.app.version)
print('python sys.version:', sys.version)
b... |
package com.virtuary.app.screens.family
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.virtuary.app.R
import c... |
/*
* Copyright (c) 2011-2018 Genestack Limited
* All Rights Reserved
* This source code is distributed under the MIT license:
* https://github.com/genestack/JS-SDK/tree/master/LICENSE
*/
import SystemMessage from './system-message';
type HandleErrorMessageType = 'G$:handle-error';
export const HANDLE_ERROR_MESSA... |
package org.arrnaux.timetracker.model
open class AbstractActivity {
open val id: String? = null
// TODO: replace this with a Date when you can properly serialize a Date in GraphQL
open var startDate: String? = null
// TODO: replace this with a Date when you can properly serialize a Date in GraphQL
... |
import MapView from 'js/components/MapView';
import Header from 'js/components/Header';
import Filter from 'js/components/Filter';
import React, { Component } from 'react';
import { TEXT } from 'js/config';
export default class App extends Component {
displayName: 'App';
state = {
filter: ""
};
// Update... |
import React from "react";
import { Bullseye, Spinner } from "@patternfly/react-core";
import styled from "styled-components";
export const LoadingIndicator: React.FC<{ progress: string }> = ({
progress,
}) => (
<Bullseye style={{ paddingBottom: "24px" }}>
<Spinner isSVG size="lg" /> <Progress>{progress}</Prog... |
use crate::entity::HasEntityDef;
use crate::types::*;
use std::rc::Rc;
pub trait Column {
fn cols(&self) -> String;
fn col_count() -> usize;
}
impl<A, B: ToLiteral> Column for Rc<dyn HasValue<A, Output = B>> {
fn cols(&self) -> String {
self.to_sql()
}
fn col_count() -> usize {
1
... |
import 'package:flutter/material.dart';
import 'package:flutter_week_view/flutter_week_view.dart';
/// First plugin test method.
void main() => runApp(
MaterialApp(
home: _FlutterWeekViewDemoApp(),
),
);
/// The demo material app.
class _FlutterWeekViewDemoApp extends StatelessWidget {
@over... |
<?php
namespace SearchWP;
class LogicPartialTest extends \Codeception\TestCase\WPTestCase {
protected static $factory;
protected static $post_ids;
function _before() {
self::$factory = static::factory();
$post_ids[] = self::$factory->post->create( [
'post_title' => 'Partial test fishing post',
] );
se... |
### Operation Span Processing Script ###
### Author: James stone ###
### Version: 1.0 ###
### For use with the operation span task available at http://www.cognitivetools.uk/ ###
#set the working directory to the folder that is holding the data files from the operation span task
###function that takes the output file... |
/*
* Copyright (C) 2021 Seyed Ahmad Sarollahi
* All rights reserved.
*/
package com.aastudio.sarollahi.moviebox.views.fragments
import android.os.Bundle
import android.widget.Toast
import androidx.core.content.ContextCompat
import androidx.leanback.app.GuidedStepSupportFragment
import androidx.leanback.widget.Guid... |
using System.Collections.Generic;
namespace Vega.Schema
{
public struct Value
{
public string String;
public List<string> StringArray;
public static implicit operator Value(string String) => new Value { String = String };
public static implicit operator Va... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License... |
using Entity.Stage;
using System.Collections.Generic;
public class StateMachine
{
public List<State> stateList;
public StateMachine()
{
stateList.Add(new StartState());
stateList.Add(new EndState());
}
public void Update(Stage st)
{
}
} |
#include "common/mysql_helper.js"
/**
* Checks the table cache usage
*/
var TITLE="Table cache hitratio";
var ADVICE_WARNING= "Increase table_open_cache in"
" steps until this message disappears.";
var ADVICE_OK="Table_open_cache is configured to suit"
" the current load." ;
function main()
{
var hosts = c... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.ModelConfiguration;
using AutofacOwinAuth.WebAPI.Core.Domain;
namespace AutofacOwinAuth.WebAPI.Core.Data
{
public class ContactMap : EntityTypeConfiguration<Contact>
{
... |
package ru.dageev.compiler.domain.scope
import ru.dageev.compiler.domain.type.Type
/**
* Created by dageev
* on 10/30/16.
*/
data class LocalVariable(val name: String, val type: Type)
|
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- Note this is my own orphan, but I'm avoiding TH in common
module Backend.Data where
import Control.Exception ... |
// Debug.cs
// Copyright Karel Kroeze, -2019
using System.Diagnostics;
namespace PowerCleaner
{
public static class Debug
{
[Conditional("DEBUG")]
public static void Log( object msg )
{
Verse.Log.Message( $"PowerCleaner :: {msg}" );
}
}
} |
package org.librarysimplified.documents
/**
* The document configuration service.
*/
interface DocumentConfigurationServiceType {
/**
* @return The application privacy policy, if any.
*/
val privacyPolicy: DocumentConfiguration?
/**
* @return The application acknowledgements, if any.
*/
val ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.