text stringlengths 27 775k |
|---|
package com.mobiledevpro.app.utils
import java.text.SimpleDateFormat
import java.util.*
fun Long.dateToSting(): String {
val dateFormat = SimpleDateFormat("MMM dd, yyyy | hh:mm", Locale.getDefault())
return dateFormat.format(this)
}
fun Long.toDayMonth(): String {
if (this <= 0) return ""
val dateFor... |
'use strict';
class UndirectedGraphNode {
constructor(label) {
this.label = label;
this.neighbors = [];
}
}
const cloneGraph = (graph) => {
// 1. first all nodes (BFS)
// 2. clone the node (hash map) {node: new_node}
// 3. clone the edge (using the hash map)
if (graph === null)... |
/*
* StreamDecoder.cpp
*
* Created on: Jun 21, 2017
* Author: a0229967
*/
/*
* TI Voxel Lib component.
*
* Copyright (c) 2017 Texas Instruments Inc.
*/
#include "CameraSystem.h"
#include "SimpleOpt.h"
#include "Common.h"
#include "Logger.h"
#include "UVCStreamer.h"
#include <ioman... |
module Jekyll
module HG
class Generator < Jekyll::Generator
safe true
priority :low
def check_config(config)
# Check github
if !config.key?('github')
Jekyll.logger.warn "'github' is not set"
return false
end
github = config['github']
i... |
#!/bin/bash
gcloud container clusters create kubecluster
gcloud container clusters get-credentials kubecluster
kubectl apply -f container_manifest.yaml
|
@if($recruits->count())
<ul class="list-group">
@foreach($recruits as $recruit)
<li class="list-group-item">
<h4 class="list-group-item-heading">
<a href="{{ route('recruits.show',[$recruit->id]) }}">
{{ $recruit->position }} | <small>襄阳 </small>
... |
from tkinter import *
"""
Essa classe personalizada cria uma entry com placeholder.
"""
class EntPlaceHold(Entry):
def __init__(self, master=None, placeholder='PLACEHOLDER', color='black'):
super().__init__(master)
self.placeholder = placeholder
self.placeholder_color = color
se... |
package lerna.testkit
import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpecLike
/** A test trait which improve consistency and reduce boilerplate in lerna testkit.
*
* @see [[https://www.scalatest.org/user_guide/defining_base_classes Defining base classes for your project]]
*/
... |
package com.vulture.entity;
public class CameraViewPlayer<x> {
public double xScroll=0;
private double yScroll=0;
public void cameraUpdate(double newXpos,double newYpos){
this.xScroll=newXpos;
this.yScroll=newYpos;
}
public double getxScroll(){
return this.xScroll;
}
... |
package com.ucsm.tylersai.amsteacher.adapter
import android.content.Context
import android.content.Intent
import android.database.DataSetObserver
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.ListAdapter
import android.wi... |
#include"FullyConnected.h"
#include"Optimizer.h"
#include"numeric.h"
#include<iostream>
#include<string>
FC_Layer::FC_Layer(int hnum, const char* init_mthd)
{
hidden_num = hnum;
init_method = std::string(init_mthd);
}
MATRIX FC_Layer::initialize(int N, int D, const char* init_mthd) {
using namespace... |
using System.ComponentModel.DataAnnotations;
using Microsoft.Extensions.Options;
namespace Stock.Infrastructure.Database.MongoDb.Settings
{
/// <summary>
/// Default implementation of <see cref="IStockDatabaseSettings"/>.
/// Store stock specific database settings for MongoDB.
/// </summary>
publi... |
package Blast::IPS::Data;
use strict;
use warnings;
# Blast data for symmetry='S', gamma=1.6
# For data definitions see the README file in Blast::IPS::Data.
our $rBlastData;
$rBlastData->{'S1x6'} = {
table_name => 'S1x6',
symmetry => 2,
gamma => 1.6,
data_source => 'S8000_G1x6/moc2_from_moc... |
%define USER_PROCESS 6
%define LOGIN_PROCESS 7
section .rodata
utmp_path db "/var/run/utmp", 0
section .bss
login resb 32
;struc stat
; st_dev resq 1 ;0..7, device
; st_ino resq 1 ;8..15, file serial number
; st_nlink resq 1 ;16..23, link count
; st_mode resd 1 ;24..27, file mode
; st_... |
module Cmor
module Tags
class NullTag
def name
'Not tagged'
end
end
end
end
|
#---------------------------- INSPECT DESIGN START --------------------------
#
# Test general
#
function design()
{
TREE_OPTIONS="-d"
#inspectIntro
#local target="me/$KMOM"
headerForTest "-- $DBW_COURSE $KMOM" "-- ${DBW_WWW}$DBW_COURSE/$KMOM"
checkKmomDir "me/anax-flat"
publishKmom
#viewF... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2017-2021 Argon Design Ltd. All rights reserved.
// This file is covered by the BSD (with attribution) license.
// See the LICENSE file for the precise wording of the license.
//
// DESCRIPTION:
// Simple Antlr base visito... |
#Update package manager
execute "apt-get-update" do
command "apt-get update"
ignore_failure true
end
#Install main packages
package 'vim'
package 'git'
package 'make'
#Create logs directory
directory '/data'
|
class Solution {
fun findKthLargest(nums: IntArray, k: Int): Int {
return nums.sortedArrayDescending()[k - 1];
}
} |
#!/usr/bin/env ruby
require 'find'
require 'nokogiri'
# finds all ColourIds declared in the juce source code
juce_dir = File.join Dir.pwd, "JUCE", "modules"
results = {}
def parse_class(lines)
end
Find.find(juce_dir) do |path|
next unless FileTest.file?(path) && File.extname(path) == ".h"
lines = File.readline... |
package com.jht.bleconnect.entity;
import com.jht.bleconnect.common.BaseUtils;
public class SupportedResistanceRange {
private final String TAG = "SupportedResistanceRange";
private static SupportedResistanceRange data;
private byte[] MinimumResistanceLevel = new byte[2];
private byte[] MaximumRes... |
---
layout: single
title: "C# Rookiss Part6 웹서버 : CSS"
categories: WebServer
tags: WebServer
author_profile: false
sidebar:
nav: "docs"
---
## 🙇♀️CSS
CSS : Cascading Style Sheets
### 🪐CSS
색상 변환 : <span style="color:blue;font-weight:bold"> </span>
* CSS Syntax
* selector property value의 형식을 가지고 있음
* ... |
class House
attr_accessor :name, :mascot, :headOfHouse, :houseGhost, :founder, :school, :members, :values, :colors, :characters
@@all = []
def initialize(attributes)
attributes.each do |key, value|
self.send(("#{key}="), value)
end
@characters = []
@@all << self
... |
<?php
namespace App\Entity;
use App\Repository\GameRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=GameRepository::class)
*/
class Game... |
package com.example.shared.model
import com.example.shared.data.source.remote.api.GitHubApiError
import com.example.shared.data.source.remote.api.response.header.GitHubApiRateLimit
import io.ktor.client.features.ServerResponseException
import io.ktor.client.statement.HttpResponse
import io.ktor.http.HttpStatusCode
imp... |
/**
* Problem 12 - Highly divisible triangular number
*
* @see {@link https://projecteuler.net/problem=12}
*
* The sequence of triangle numbers is generated by adding the natural numbers.
* So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28.
* The first ten terms would be:
*
* 1, 3, 6, 10, 15,... |
import 'package:flutter_webrtc/flutter_webrtc.dart' as rtc;
import 'dart:async';
import 'package:talk/database/database.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'session.dart';
import 'room_user.dart';
class Offer extends RoomUser {
String _answerGender;
int _answerAge;
Offer(String... |
<?php
/*
* @project Document of Ahmet
* @author Ahmet Taşhan
* @link https://github.com/ahmettashan
* @since Version 1.0.0
*
* Zamanımız ilerliyor, çalışmalarımız için sağlıklı ve işlevsel bir yol ve PHP
* için küçük bir kod parçacığı ve tarih ve saat ifadeleri sunuyoruz.
*
* normal = 18 Ağusto... |
# Configuration has Emplemented:
```diff
1.Change Hostname.
2.VTP Status.
3.Create VLAN Management & VLAN users.
4.Create Interface Management VLAN.
5.Set Password in different modes.
6.Configure Console & VTY lines.
7.Trunk Interface configuration.
8.Access Ineterface configuration.
9.Create User... |
declare module 'connect-livereload' {
function connectLivereload(options?: any): any;
module connectLivereload {}
export = connectLivereload;
}
|
var searchData=
[
['fastintegerdivide_2eh_7317',['FastIntegerDivide.h',['../_fast_integer_divide_8h.html',1,'']]],
['featurization_2eh_7318',['Featurization.h',['../_featurization_8h.html',1,'']]],
['findcalls_2eh_7319',['FindCalls.h',['../_find_calls_8h.html',1,'']]],
['findintrinsics_2eh_7320',['FindIntr... |
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: moby.filesync.v1.Auth in github.com/moby/buildkit/session/auth/auth.proto
package moby.filesync.v1
import com.squareup.wire.Service
import com.squareup.wire.WireRpc
public interface AuthBlockingServer : Service {
@WireRpc(
path = "/moby... |
#!/bin/bash
ENVIRONMENT=$1
if [ $ENVIRONMENT == dev ]; then
export KOPS_CLUSTER_NAME=development.worldwire-dev.io.k8s.local
export KOPS_STATE_STORE=s3://ww-kube-dev
ENVIRONMENT="dev"
elif [ $ENVIRONMENT == qa ]; then
export KOPS_CLUSTER_NAME=qa.worldwire-qa.io.k8s.local
export KOPS_STATE_STORE=s3://ww-kub... |
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');
module.exports = {
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
},
purge: ['./components/**/*.{js,ts,jsx,tsx}', './pages/**/*.{js,ts,jsx,tsx}'],
theme: {
colors: {
... |
const { InlineKeyboard } = require("node-telegram-keyboard-wrapper");
module.exports = {
/**
* Model a Telegram message and message options.
* @param {String} message - The text to be send.
* @param {Number} message_id - The id of a message to reply.
* @returns Telegram Message and Options
*/
reply(message... |
# frozen_string_literal: true
module Healthicons
module Rails
module ViewHelpers
# Allow the healthcare icon to be called in rails, so icons can be added to the views
#
# @param icon [String] icon image name
# @param options [Hash] additional attributes you want to apply to the SVG
... |
<?php
/* This class is part of the XP framework
*
* $Id$
*/
uses('scriptlet.xml.workflow.routing.Route');
/**
* Facade route
*
* @see xp://scriptlet.xml.workflow.routing.FacadeRouter
* @see xp://scriptlet.xml.workflow.routing.Route
* @purpose Route implementation
*/
class Facade... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Ads;
use Illuminate\Http\Request;
class AdsController extends Controller
{
public function index()
{
$ads = Ads::paginate(3);
return view('admin.ads.index', [
'ads' => $ads,
... |
/*
* WineCfg configuration properties
*
* Copyright 2002 Jaco Greeff
* Copyright 2003 Dimitrie O. Paun
* Copyright 2003 Mark Westcott
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Founda... |
$(function() {
$('a').each(function() {
if ($(this).attr("rel") == "external")
$(this).attr('target', '_blank');
});
OpenCity.CrimeInChicago.url = "http://www.crimeinchicago.org";
});
|
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2011-2016, 2degrees Limited <2degrees-floss@googlegroups.com>.
# All Rights Reserved.
#
# This file is part of djeneralize <https://github.com/2degrees/djeneralize>,
# which is subject to the provisi... |
# frozen_string_literal: true
require "rails_helper"
RSpec.describe "Admin::Schools", type: :request do
before do
user = create(:user, :admin)
sign_in user
end
describe "GET /admin/schools" do
it "renders the schools template" do
get "/admin/schools"
expect(response).to render_template... |
%% -*- mode: nitrogen -*-
-module(ss_url).
%% API
-export([url/1, url/2, url/3, url/4, url2/2]).
%% @doc 构建简单的url
%% url(project, post)
%% <<"/project/post">>
%% @end
url(T1) -> url2([T1], []).
url(T1, T2) -> url2([T1, T2], []).
url(T1, T2, T3) -> url2([T1, T2, T3], []).
url(T1, T2, T3, T4) ... |
#!/bin/bash
base_url="https://www.ecs.utdallas.edu/loizou/speech/noizeus/"
files=(
"train_0dB.zip"
"babble_0dB.zip"
"car_0dB.zip"
"exhibition_0dB.zip"
"restaurant_0dB.zip"
"street_0dB.zip"
"airport_0dB.zip"
"station_0dB.zip"
)
temp_dir="noise-data-temp"
for file in ${files... |
## Requirements:
This project requires SRTM v2 files (*.hgt) that need to be copied into data/srtm folder.
###Sources:
1. [https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Eurasia/](https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Eurasia/) |
; Highspeed80
; by CKtwo, https://www.forum64.de/index.php?thread/42485
;
; From: https://github.com/mist64/80columns
SECTION rodata_font
SECTION rodata_font_4x8
PUBLIC _zx7_font_4x8_highspeed80
PUBLIC _zx7_font_4x8_highspeed80_end
_zx7_font_4x8_highspeed80:
BINARY "font_4x8_highspeed80.bin.zx7"
_zx7_font_4x8... |
import {NextFunction, Request, Response} from "express";
import {Db} from "mongodb";
import {Formio} from "./Formio";
export interface FormioUpdate {
db: Db;
version: string;
/**
*
* @param cb
*/
initialize(cb: (err: unknown, db: any) => void): Promise<Formio>;
/**
*
* @param req
* @param... |
import React, { Component } from 'react'
import { Route } from 'react-router-dom';
import { Switch } from 'react-router';
import './App.css'
import BookSearch from './components/BookSearch';
import NoMatch from './components/NoMatch';
import Main from './components/Main';
import * as BooksAPI from './BooksAPI';
class... |
namespace BurgerJoint.Events.AzureEventHubs
{
public record EventHubsOrderEventPublisherSettings
{
public string ConnectionString { get; init; }
}
} |
class AddLocationToIncident < ActiveRecord::Migration[5.1]
def change
add_column :incidents, :status, :string
add_column :incidents, :cause, :string
add_column :incidents, :fuel_type, :string
add_column :incidents, :start_date, :date
add_column :incidents, :containment_date, :date
add_column :... |
import test from 'ava';
import { omit } from './omit';
test('omit test', (t) => {
const obj = {
orange: 120,
cherry: 300,
apple: 100,
};
t.deepEqual(omit(obj, ['cherry']), {
orange: 120,
apple: 100,
});
});
|
<?php
/**
* 运行时插件
*
* @global array
* @name $__ksg_rtk_hooks
* @var array
*/
$__ksg_rtk_hooks = [];
/**
* 已经排序的插件
*
* @global array
* @name $__ksg_sorted_hooks
* @var array
*/
$__ksg_sorted_hooks = [];
/**
* 正在触发的HOOKS
*
* @global array
* @name $__ksg_triggering_hooks
* @var array
*/
$__ksg_trig... |
#!/bin/bash
set -e
if [ -z $(which glide) ]; then
sudo add-apt-repository ppa:masterminds/glide && sudo apt-get update
sudo apt-get install glide
else
sudo apt-get update
fi
# Install Node.js
if [ -z $(which node) ]; then
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y nodej... |
package connectors.stubs
import com.github.tomakehurst.wiremock.client.WireMock.{aResponse, post, stubFor, urlMatching}
import com.github.tomakehurst.wiremock.stubbing.StubMapping
import play.api.libs.json.{JsObject, Json}
object VatSubmissionStub {
def stubVatSubmission(status: Int)(body: JsObject = Json.obj()):... |
# Docker-Bioconductor-Cytoscape
Docker file for kristiyanto/networkbma.
The package contains: Cytoscape, R, with Bioconductor packages (igraph, Rserve, and networkBMA).
A tutorial to get it run on Windows and Mac are available:
https://www.youtube.com/watch?v=FXOU2EZ4szI (Mac)
https://www.youtube.com/watch?v=Y1Ye5m... |
#!/bin/bash
function icon() {
# $1=letter, $2=letter's color (e.g. A red), $3=filename
./gen_icon.py ${3}.png 16 white black $2 $1
}
icon M green manifest
icon S blue sharedUserId
icon S red signature
icon P green package
icon I green instrumentation
icon F green functionalTest
icon H green h... |
#pragma warning disable 108 // new keyword hiding
#pragma warning disable 114 // new keyword hiding
namespace Windows.UI.Xaml.Controls.Maps
{
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
[global::Uno.NotImplemented]
#endif
public partial class MapElementPointerE... |
# -*- coding: utf-8 -*-
"""
Created on Sat Feb 16 23:40:22 2019
@author: Utente
"""
#Chapter 5 - Conditionals and recursion
#Conditional execution
x = -777
if x > 0 :
print('x is positive Sir, this is x:')
#Alternative conditions
else :
print('FUCK you Sir x is negative' )
#Chained... |
/*
*
* Copyright (c) 2006-2020, Speedment, 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 requi... |
package game.server
import game.common.Vec2i
import game.common.WsSnake
class Snake(
initialPosition: Vec2i,
val client: Client
) {
private val _segments = mutableListOf(initialPosition)
val segments: List<Vec2i> = _segments
val head: Vec2i
get() = _segments.first()
var velo... |
<?php
namespace Gridly\Schema\Filter\Provider;
use Gridly\Schema\Filter\FilterSet;
interface Provider
{
public function provide(): FilterSet;
} |
/*!
* JRaiser 2 Javascript Library
* dom-ready - v1.1.0 (2014-08-18T11:12:55+0800)
* http://jraiser.org/ | Released under MIT license
*/
define(function(require, exports, module) { 'use strict';
/**
* 本模块提供DOM Ready事件监听接口
* @module dom/1.1.x/dom-ready
* @catgory Infrastructure
* @ignore
*/
/**
* 添加DOM Ready... |
export const theme = {
colors: {
primary: '#265592',
secondary: '#10233c',
overlay: 'rgba(0,0,0,0.7)',
highlight: '#ABB1CC',
heading: '#DDE3F0',
white: '#FFF',
button: '#E51C44',
secondary100: '#0A1033',
secondary90: '#0D133D',
sec... |
#!/bin/bash
set -xe
KVER=$(cd /usr/src/linux; make kernelrelease)
# Dracut is needed on the host
EMERGE_FLAGS="--buildpkg --getbinpkg --update --jobs --deep --newuse"
eix -qI sys-kernel/dracut || emerge $EMERGE_FLAGS --usepkg --oneshot \
sys-kernel/dracut
dracut --no-compress -f /root/initramfs.cpio $KVER -i /roo... |
from flask import Blueprint
vpn_bp = Blueprint('vpn', __name__, url_prefix='/user/vpn/')
from . import vpn
|
from enum import IntEnum
class OpTypes(IntEnum):
Query = 1,
Edit = 2,
Delete = 3
|
// Decompiled with JetBrains decompiler
// Type: Reytec.JobCard.Core.frmPassword
// Assembly: JobCard, Version=1.0.0.2, Culture=neutral, PublicKeyToken=null
// MVID: 355A629F-A2FA-4599-879B-59162A296DD0
// Assembly location: C:\dev\Reytec JobCard\Reytec JobCard\JobCard.exe
using Microsoft.VisualBasic.CompilerServices... |
package dev.paulshields.aoc.day14
import assertk.assertThat
import assertk.assertions.isEqualTo
import org.junit.jupiter.api.Test
class BitmaskTest {
@Test
fun `should parse bitmask string`() {
val mask = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX1XXXX0X"
val result = Bitmask.fromString(mask)
as... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distr... |
using System;
using System.Collections.Generic;
namespace SurveyServiceApp.DataObjects.DataFactory
{
public class DataFactory
{
public static IEnumerable<SurveyQuestion> Questions
{
get
{
return new List<SurveyQuestion>
{
new ... |
#pragma once
class TipPositionLog {
struct Entry {
uint8_t x;
uint8_t y;
uint16_t z; // piezo position
uint16_t currentSignal; // 0xffff/3.3 V
uint32_t time; // µs since program start
};
static const int size_ = 1000;
Entry entries_[size_];
int head_ = 0;
void print();
public:
void ... |
/// <reference types="node" />
export interface ISize {
width: number | undefined;
height: number | undefined;
orientation?: number;
type?: string;
}
export interface ISizeCalculationResult extends ISize {
images?: ISize[];
}
export interface IImage {
validate: (buffer: Buffer) => boolean;
c... |
/*
Copyright (c) 2007-2008 FastMQ Inc.
This file is part of 0MQ.
0MQ is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version... |
<?php
namespace App\Http\Controllers\API;
use App\Config;
use Illuminate\Http\Request;
class ConfigController
{
public function getSettings()
{
$items = Config::all();
$result = [];
foreach($items as $item) {
if(strpos($item->value, ", ") !== false)
$item-... |
<?php
namespace Dynamic;
/**
* Personas
*
* Personas is people in spanish
*/
class Personas extends \Phalcon\Mvc\Model
{
public function initialize()
{
$this->useDynamicUpdate(true);
}
}
|
# gRPCForUE
gRPCForUE is plugin that to enable gRPC in UnrealEngine.
Example of using this plugin
- [gRPCForUE4ExampleProject](https://github.com/y-akahori-ramen/gRPCForUE4ExampleProject)
## Requirements
- Windows
- [Visual Stduio](https://visualstudio.microsoft.com/)
- [Git](https://git-scm.com/)
- [CMake](https://c... |
Basil.respond_to(/^shame *(.+)/) {
@msg.say "For shame #{@match_data[1]}, FOR SHAME!"
}.description = 'publicly shame someone or something'
|
import { styled } from '@styles';
export const ShelterMapContainer = styled.div`
width: 100%;
height: 300px;
margin-bottom: 20px;
`;
export const MapMarker = styled.div`
background-color: #aaa;
background-image: linear-gradient(
left,
hsla(0, 0%, 100%, 0.2),
hsla(0, 0%, 0%, 0.2)
);
display: ... |
#!/usr/bin/env bash
DEBIAN_CODENAME=`cat /etc/os-release | grep VERSION_CODENAME | cut -d "=" -f2`
ENTERPRISE_REPO_LIST="/etc/apt/sources.list.d/pve-enterprise.list"
FREE_REPO_LIST="/etc/apt/sources.list.d/pve.list"
FREE_REPO_LINE="deb http://download.proxmox.com/debian/pve $DEBIAN_CODENAME pve-no-subscription"
funct... |
#!/usr/bin/env bash
envconsul -consul-addr=10.10.10.11:8500 -prefix 'config/webserver' env
envconsul -consul-addr=10.10.10.12:8500 -prefix 'config/webserver' env
envconsul -consul-addr=10.10.10.13:8500 -prefix 'config/webserver' env
|
---
title: "How Enduro works"
linkTitle: "How Enduro works"
weight: 2
---
Generally speaking Enduro "watches" directories or object stores (like
Amazon's S3 or MinIO). When a file is copied into these watched
sources an event tells Enduro to start a **processing workflow** for
the file.
The processing workflow consis... |
import 'package:dartz/dartz.dart';
import 'package:firebase_auth/firebase_auth.dart' hide User;
import 'package:google_sign_in/google_sign_in.dart';
import 'package:injectable/injectable.dart';
import 'package:zawadi/domain/auth/auth_failure.dart';
import 'package:zawadi/domain/auth/i_auth_facade.dart';
import 'package... |
package org.apache.spark.sql.catalyst.analysis
import org.apache.spark.sql.catalyst.expressions.aggregate.{AggregateExpression, Count}
import org.apache.spark.sql.catalyst.plans.logical.{Aggregate, LogicalPlan}
import org.apache.spark.sql.catalyst.rules.Rule
/**
* Resolves COUNT(DISTINCT *) queries
* @param analyze... |
name "web-backend"
description "Role applied to all web/api backend servers"
default_attributes(
:apache => {
:mpm => "worker",
:worker => {
:max_requests_per_child => 10000
}
},
:logstash => {
:forwarder => {
:files => [
{ :paths => ["/var/log/apache2/access.log"], :fields =>... |
/*
* Copyright (c) 2013-2017, Jeremy Bingham (<jeremy@goiardi.gl>)
*
* 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 requi... |
#!/usr/bin/env bash
dockerLogin() {
user=$1
pass=$2
registry=$3
if [[ ${registry} == docker.io* ]]; then
echo found docker hub. remove registry
registry=""
fi
if [[ ${user} != "none" ]] && [[ ${pass} != "none" ]]; then
echo "Found docker password, docker login...."
echo ${pass} | docker l... |
#pragma once
#include "Core/Core.h"
namespace Evoke
{
enum class EFaceCulling : c8
{
Front,
Back,
FrontAndBack,
Disabled
};
enum class EPrimitiveType : c8
{
Point,
Line,
LineStrip,
Triangle,
TriangleStrip,
LineAdj,
LineStripAdj,
TriangleAdj,
TriangleStripAdj,
Patch1,
Patch2,
Patch... |
class OrdersController < ApplicationController
def index
@orders = nil
@orders = Order.where(email: current_user.email).order(created_at: :desc) if current_user
end
def show
@order = Order.find(params[:id])
end
def new
@order = Order.new
@cart = @current_cart
end
def create
@or... |
-- AsyncProcessingServiceInsert
-- 2014/11/22 日立 太郎
INSERT INTO
[AsyncProcessingServiceStatusManagementTable]
(
[UserId],
[ProcessName],
[Data],
[RegistrationDateTime],
[ExecutionStartDateTime],
[NumberOfRetries],
[CompletionDateTime],
[StatusId],
... |
package exceptions;
/**
* Exceptions indiquant qu'un compte n'existe pas.
* @author torguet
*
*/
public class CompteInexistant extends Exception {
}
|
package app.messages.config;
import app.messages.repository.MessageRepository;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.orm.hib... |
package com.m3.octoparts.hystrix
import com.m3.octoparts.model.config.HystrixConfig
import com.netflix.hystrix.HystrixCommand
import com.netflix.hystrix.HystrixCommand.Setter
import scala.concurrent.Future
/**
* Companion object for instantiating HystrixExecutors
*/
object HystrixExecutor extends HystrixSetterSupp... |
//
// Copyright (C) 2011 Tom Makin
// All rights reserved.
//
// The software in this package is published under the terms of the BSD
// style license a copy of which has been included with this distribution in
// the LICENSE.txt file.
//
//
//@COPYRIGHT@//
#include "BallManager.h"
#include "UserDetector.h... |
mdl_gradebook_report
====================
Queries a Moodle 2.x database for information about student course completion.
Requires Drupal 6.x as a dependency. Currently is installation specific for the NET Institute's Moodle install.
Copyright reserved; created under contact for the NET Institute by TechMission.
|
/**
* Add lpad(string, number) to String prototype
*
* Params:
* pad: character to prepend to string to make it length.
* l: length of string returned
* Returns:
* string of length >= l where pad character is prepended to string
* enough times to satisfy length requirement. If string.length >= l,
* ... |
namespace DynamicStrategyPattern
{
public enum OutputFormat
{
Markdown,
Html
}
}
|
# dissertation
PhD dissertation files in Latex, makefiles, and pertinent thesis data.
The page with thesis formatting guidelines:
http://grad.berkeley.edu/academic-progress/thesis/
I got the basic .cls file and latex documents from here:
https://math.berkeley.edu/~vojta/tex/ucbthesis-phd.html
I've committed a gener... |
# Check if a pull request has been merged
class Gitea::PullRequest::CheckService < Gitea::ClientService
attr_reader :user, :repo, :pull_request_id
# user: 用户
# repo: 仓库名称/标识
# pull_request_id: pull request主键id
def initialize(user, repo, pull_request_id)
super({token: user.gitea_token})
@user = user... |
package de.sscholz.connections
import com.badlogic.gdx.graphics.Color
import de.sscholz.ConnectionData
import de.sscholz.Global.settings
import de.sscholz.Person
abstract class Connection(val personA: Person, val personB: Person) {
abstract val type: Type
open val color: Color = settings.defaultConnectionColo... |
<!doctype html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang=""> <!--<![endif]-->
<head>
<meta ch... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.