text
stringlengths
27
775k
- deploy to home laptop - deploy to office laptop - copy Scripts to C:\Tools folder - modify path inside scripts e.g. 7z.exe path - modify FreeCommander settings - put the latest FreeCommander.fav.ini file into delivery - github create release
package au.com.codeka.warworlds.server.cron; import java.util.Map; import java.util.TreeMap; import au.com.codeka.common.Log; /** A registry of the cron jobs we have created. */ public class CronJobRegistry { private static final Log log = new Log("CronJobRegistry"); private static Map<String, Class<? extend...
package snd.unit.model import snd.BaseTest import snd.fixtures.CanvasFixtures import snd.model.CanvasState class CanvasStateSpec extends BaseTest with CanvasFixtures{ describe ("In CanvasState model"){ it ("apply should create a canvas of the desired size"){ val canvas = CanvasState(15,10) canvas.x...
<?php /** *------------------------------------------------------------------------------ * Configuration *------------------------------------------------------------------------------ */ // Do not forget to update your composer.json accordingly $appNamespace = 'MyApp'; // The function to resolve the controller ...
FactoryBot.define do factory :transport_survey do school run_on { Date.today } end end
DROP TABLE IF EXISTS employee; DROP TABLE IF EXISTS role; DROP TABLE IF EXISTS department; CREATE TABLE department( id INTEGER PRIMARY KEY AUTO_INCREMENT, name VARCHAR(30) ); CREATE TABLE role( id INTEGER PRIMARY KEY AUTO_INCREMENT, title VARCHAR(30) NOT NULL, salary DECIMAL(10,2) NOT NULL, department_id INTEGER, C...
using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using Sinergija21.Basic.Droid.Infrastructure; using System; using System.Collections.Generic; using System.Linq; using System.Text; using Google.AR.Core; using Android.Graphics; using System.IO...
using AoC.Helpers.Days; using System; using System.Collections.Generic; using System.Linq; namespace AoC.Y2016.Days { public class Day06 : BaseDay { public Day06() : base(2016, 6) { } public Day06(IEnumerable<string> inputLines) : base(2016, 6, inputLines) { } ...
# frozen_string_literal: true require 'test_helper' require 'sapi_client' module SapiClient class ApplicationTest < Minitest::Test describe 'Application' do let(:spec) { 'test/fixtures/unified-view/application.yaml' } let(:base_url) { "http://localhost:#{sapi_api_port}" } describe '#initializ...
--- title: Advanced objects in JavaScript author: azu layout: post itemUrl: 'http://bjorn.tipling.com/advanced-objects-in-javascript' editJSONPath: 'https://github.com/jser/jser.info/edit/gh-pages/data/2014/08/index.json' date: '2014-08-25T12:26:31Z' tags: - JavaScript - ECMAScript - tutorial relatedLinks: - ti...
#!/usr/bin/env python # coding=utf-8 """ tests for csvutils """ from __future__ import print_function, unicode_literals from .csvutils import rows_to_csv def test_rows_to_csv(): assert rows_to_csv([ ("abc", u"呵呵", 123), ("def", u"哈哈", 456), ]) == u"""\ abc,呵呵,123\r def,哈哈,456\r """
from __future__ import print_function from cloudmesh.shell.command import command from cloudmesh.shell.command import PluginCommand from cloudmesh.common.debug import VERBOSE class Shell3Command(PluginCommand): # noinspection PyUnusedLocal @command def do_shell3(self, args, arguments): """ ...
package cn.haohao.dbbook.data import cn.haohao.dbbook.data.entity.http.BookListResponse import cn.haohao.dbbook.data.entity.http.BookReviewsListResponse import cn.haohao.dbbook.data.entity.http.BookSeriesListResponse import retrofit2.Response import retrofit2.http.GET import retrofit2.http.Path import retrofit2.http.Q...
import { PlatformAddress } from "../classes"; import { Transaction } from "../Transaction"; import { NetworkId } from "../types"; export interface SetShardUsersActionJSON { shardId: number; users: string[]; } export class SetShardUsers extends Transaction { private readonly shardId: number; private re...
#ifndef SUDOKU_SAVER_H #define SUDOKU_SAVER_H #include <SDL/SDL.h> #include <SDL/SDL_image.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include "Imagery/Utils/image.h" #define IMAGE_DIRECTORY "Sudoku_Saver/Images" #define IMAGE_SIZE 28 /** * @brief * * @param grid * @param dest...
package provider // Provider represents a PSP (Payment Service Provider) type Provider struct { Name string }
# Association Rule Learning Recommender [Access to dataset](https://www.kaggle.com/mathchi/online-retail-ii-data-set-from-ml-repository) ***Business Problem:*** - Suggesting products to users at the basket stage. ***Dataset Story:*** - The data set named Online Retail II includes the sales of a UK-based onlin...
#!/usr/bin/env bash echo '* * * * * root yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm && rm -rf /etc/cron.d/ssmstart' > /etc/cron.d/ssmstart
; RUN: llc < %s -mtriple=thumbv6-apple-darwin | FileCheck %s %umul.ty = type { i32, i1 } define i32 @test1(i32 %a) nounwind { ; CHECK: test1: ; CHECK: muldi3 %tmp0 = tail call %umul.ty @llvm.umul.with.overflow.i32(i32 %a, i32 37) %tmp1 = extractvalue %umul.ty %tmp0, 0 %tmp2 = select i1 undef, i32 -1, i32 %tmp1 ...
DISTANCE_TOO_CLOSE = 30 DISTANCE_CLOSE = 20 DISTANCE_GOAL_CLOSE = 150 DISTANCE_MEDIUM = 30 DISTANCE_FAR = 10 EDGE_DISTANCE = 60
#!/usr/bin/env bash #### # Github pages release script #### # Base settings GH_ORG="cogment" GH_REPO="cogment-doc" GH_BRANCH="gh-pages" PUBLISH_AUTHOR_NAME="Artificial Intelligence Redefined" PUBLISH_AUTHOR_EMAIL="dev+cogment@ai-r.com" PUB_DIR="publish" OUT_DIR="public" # Utility functions ## join_by ## Examples: ##...
# git-together ![CI](https://github.com/kejadlen/git-together/workflows/CI/badge.svg) Following in the footsteps of [git-pair][gp] and [git-duet][gd], but without needing to change your existing git habits. [gp]: https://github.com/pivotal/git_scripts [gd]: https://github.com/git-duet/git-duet ## Installation ```b...
#!/bin/bash cd /tmp wget https://redirector.gvt1.com/edgedl/go/go1.9.2.linux-amd64.tar.gz sudo rm -rf /usr/local/go sudo tar -C /usr/local -xzf go1.9.2.linux-amd64.tar.gz sudo chown -R circleci /usr/local/go
import { Exception } from "@enterprize/exceptions"; /** * Exception indicating that an Array has a different number of dimensions than expected. * * @sinceVersion 1.0.0 * @author Giancarlo Dalle Mole * @since 06/03/2020 */ export class ArrayDimensionsOutOfRangeException extends Exception<ArrayDimensionsOutOfRang...
require 'fog/core' # This can be removed once fog-google fixes # https://github.com/fog/fog-google/issues/421, which will allow us to upgrade # fog-core to 2.2.4. original = Fog::Logger[:deprecation] Fog::Logger[:deprecation] = nil require 'fog/aliyun' # Hack until https://github.com/fog/fog-aliyun/pull/155 is merged...
class AddingSystemNames < ActiveRecord::Migration def self.up add_column :services, :system_name, :string add_column :plans, :system_name, :string Plan.reset_column_information Service.reset_column_information [ Plan, Service ].each do |clazz| clazz.find_each(:with_deleted => true) do |mod...
package com.jcl.exam.emapta.data.prefs import android.content.Context import android.content.SharedPreferences import com.jcl.exam.emapta.encryption.EncryptionUtil import javax.inject.Inject /** * Created by jaylumba on 05/16/2018. */ class SecuredPrefs @Inject constructor(context: Context) { private val SHAR...
<?php declare(strict_types=1); namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Ht...
package com.jfixby.r3.physics.body; import com.jfixby.r3.api.physics.BODY_SHAPE_TYPE; import com.jfixby.r3.api.physics.BoxBody; import com.jfixby.r3.physics.ShapeData; public class BoxBodyImpl extends BodyImpl implements BoxBody { public BoxBodyImpl () { super(new ShapeData(BODY_SHAPE_TYPE.BOX)); } }
--- order: 5 title: zh-CN: 新手教学 en-US: Onboarding --- ## zh-CN `MWindow` 使创建自定义组件(如不同样式的幻灯片)变得很轻松。 ## en-US `MWindow` makes it easy to create custom components such as a different styled stepper.
import { define } from '../common'; export class XFormat extends HTMLElement { connectedCallback() { this.type = this.getAttribute('type') || 'number'; // number, currency, or date this.locale = this.getAttribute('locale') || 'en-US'; // ko-KR, en-US, etc. this.maxDecimal = this.getAttribute('max-decimal...
/* * Author's name and email: Michael * Program description: Includes my.h and defines the functions * print_foo and print that were declared in my.h. * Latest version: 9:57 PM, 1/5/2020. * Older versions: */ #include <iostream> #include "my.h" // Prints the global foo variable that was declared in my.h // ...
using System; using System.Xml; using System.Text; namespace AIMLbot.AIMLTagHandlers { /// <summary> /// An element called bot, which may be considered a restricted version of get, is used to /// tell the AIML interpreter that it should substitute the contents of a "bot predicate". The /// value of a...
package trypp.support.math /** * Convert an input value (between 0.0 and 1.0) to an output value (also between 0.0 and * 1.0) but not necessarily at the same rate. */ interface Lerp { companion object { /** * Run from 0 - 1 linearly */ val LINEAR = object : Lerp { o...
/* * Copyright (c) 2021 HopeBayTech. * * This file is part of Tera. * See https://github.com/HopeBayMobile for further info. * * 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 * * ...
package main import ( "crypto/rand" "github.com/ismdeep/args" "math/big" ) // RandStr Generate Random String func RandStr(base string, length int64) string { letters := []rune(base) lettersLen := new(big.Int).SetInt64(int64(len(letters))) results := make([]rune, length) for i := range results { v, _ := rand....
{-# LANGUAGE TypeOperators, OverloadedStrings, DeriveGeneric #-} module DB ( Category(..) , Recipe(..) , getCategoriesIO , getRecipesIO ) where import GHC.Generics (Generic) import Database.Selda import Database.Selda.Generic import Database.Selda.SQLite import Paths_ex5 getDBPath :: IO FilePa...
part of xlsio; /// <summary> /// Class used for YearToken. /// </summary> class _YearToken extends _FormatTokenBase { /// <summary> /// Regular expression for minutes part of the format: /// </summary> final _yearRegex = RegExp('[yY]+'); /// <summary> /// Tries to parse format string. /// </summary> @...
/* * 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...
#!/bin/bash /sbin/iptables -F /sbin/iptables -X /sbin/iptables -A INPUT -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT /sbin/iptables -A INPUT -s 127.0.0.1 -j ACCEPT /sbin/iptables -A INPUT -s 114.114.114.114 -j ACCEPT /sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT /sbin/iptables -A OUTPUT -j ACCEPT /sbin...
import 'package:flutter/material.dart'; import 'package:flutter_board/flutter_board.dart'; import 'content_drawer.dart'; import 'content_markdown.dart'; /// Implements the basic material design visual layout structure of content /// pages in an flutter board simple theme application. class ContentPage extends Statele...
name := """vgrilo-moneytransfer""" version := "0.1" lazy val root = (project in file(".")).enablePlugins(PlayJava) scalaVersion := "2.11.11" // Set JS Engine to use //JsEngineKeys.engineType := JsEngineKeys.EngineType.Node //libraryDependencies += javaJdbc //libraryDependencies += cache libraryDependencies += java...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Grade extends Model { protected $fillable = [ 'grade', 'designation_id', 'leave_deduction', 'office_time', 'late_attendance_fee', ]; protected $table = 'grades'; }
# Changelog All notable changes to my ESLint config will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). <!-- ## [Unreleased] --> ## [6.0.0] - 2021-12-18 ### BREAKING CH...
//------------------------------------------------------------------------------ // <auto-generated> // Этот код создан по шаблону. // // Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения. // Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном ...
class ActivationsController < ApplicationController before_action :load_repo before_action :ensure_repo_allowed def create activator = ActivateRepo.new(@repo, current_user.github_token) if activator.call render :reload_repo else flash[:error] = activator.error_messages_formatted.p...
module PGNParser.PGNParser where import Prelude (String, read) import Protolude hiding (try, (<|>), many, option) import Text.ParserCombinators.Parsec import Text.Parsec.Prim hiding (try) import PGNParser.Data.Metadata import PGNParser.Data.Mo...
package tech.cryptonomic.conseil.api.routes.platform.data.tezos import akka.http.scaladsl.server.Route import endpoints.akkahttp.server.Endpoints import endpoints.algebra.Documentation import tech.cryptonomic.conseil.api.routes.validation.Validation.QueryValidating import tech.cryptonomic.conseil.api.routes.platform.d...
package main import ( "fmt" "os" "github.com/aws/aws-cdk-go/awscdk/v2" "github.com/aws/aws-cdk-go/awscdk/v2/awsapigateway" "github.com/aws/constructs-go/constructs/v10" "github.com/aws/jsii-runtime-go" "github.com/fogfish/scud" ) // func vsn(app awscdk.App) string { switch val := app.Node().TryGetContext(jsi...
import * as es6 from "../../assets/vita/es6.png"; import * as react from "../../assets/vita/react.png"; import * as redux from "../../assets/vita/redux.png"; import * as styled from "../../assets/vita/styled-components.png"; import * as css3 from "../../assets/vita/css3.png"; import * as webpack from "../../assets/vita...
module Data.Streaming.FileReadSpec (spec) where import Test.Hspec import qualified Data.ByteString as S import qualified Data.Streaming.FileRead as F import Control.Exception (bracket) spec :: Spec spec = describe "Data.Streaming.FileRead" $ do it "works" $ do let fp = "LICENSE" expected <- S.read...
<?php /** * @filesource index/views/ieedit.php * @link http://www.kotchasan.com/ * @copyright 2016 Goragod.com * @license http://www.kotchasan.com/license/ */ namespace Index\Ieedit; use \Kotchasan\Http\Request; use \Kotchasan\Html; use \Kotchasan\Language; /** * module=ieedit * * @author Goragod Wiriya <adm...
using IndirectTrajOpt using DifferentialEquations using StaticArrays using LinearAlgebra # Initialize BVP function ps = initCR3BPIndirectParams("Low Thrust 10 CR3BP") tspan = (0.0, 8.6404*24*3600/ps.crp.TU) # Error producing initial conditions y0 = @SVector [-0.0194885115, -0.0160334798, ...
module Todo.Web.View (view) where import Control.Lens ((<&>)) import Data.Bool import Data.Map import Miso (View, checked_, div_, h1_, img_, input_, p_, src_, style_, text, type_) import Miso.String hiding (length) view :: View a view = div_ [style_ containerStyle] [ h1_ [style_ titleStyle] ["Weekly Todo List (Si...
import { Component, OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core'; import { Vision } from '../models/vision'; import { FeedbackMessage } from '../models/feedbackMessage'; import { VisionService } from '../services/vision.service'; import { Title } from '@angular/platform-browser'; import { Subscription }...
namespace CoCo { internal static class Guids { public const string Package = "7ce8e307-18de-4056-91d0-c757b94fbbb9"; } }
import React from 'react'; import { Global } from '@emotion/react'; import { AppPropsRoot } from 'starter/core/model/common.model'; import App from 'starter/web/app'; import Layout from 'components/layout'; const globalStyles: any = { body: {}, }; const MyApp: React.FC<AppPropsRoot> = props => ( <> <Global s...
import numpy as np from math import sqrt def get_primes_below(n): # http://stackoverflow.com/questions/2068372/fastest-way-to-list-all-primes-below-n-in-python/3035188#3035188 """ Input n>=6, Returns a array of primes, 2 <= p < n """ sieve = np.ones(n/3 + (n % 6 == 2), dtype=np.bool) sieve[0] = False ...
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest from datadog_checks.amazon_msk import AmazonMskCheck from datadog_checks.amazon_msk.metrics import JMX_METRICS_MAP, NODE_METRICS_MAP @pytest.mark.usefixtures('mock_data') def test_node_che...
<?php namespace AdolphYu\FBMessenger\Facades; use AdolphYu\FBMessenger\Models\Messaging\Messaging; use Illuminate\Http\Request; USE Illuminate\Support\Facades\Facade; /** * @method static array send(Messaging $messaging) * @method static null receive(Request $request) * * @see \AdolphYu\FBMessenger\FBMSG */ class...
/* * Copyright (c) 2020, Twilio Inc. */ package com.twilio.security.crypto import com.twilio.security.crypto.key.signer.ECSigner import com.twilio.security.crypto.key.template.ECP256SignerTemplate import com.twilio.security.crypto.key.template.SignerTemplate import java.security.KeyPair import java.security.KeyPairG...
/* KenticoClearObjectVersionHistory.v11.sql */ /* Goal: Clean up data from objects */ /* Description: Truncates all version history */ /* that can bloat a database. Be very careful */ /* with this one, there is no coming back */ /* Intended Kentico Verison: 11.x */ /* Author: Brian McKeiver (mcbe...
package phpserialize import ( "bytes" "fmt" "reflect" "sort" "strconv" "strings" ) // MarshalOptions must be provided when invoking Marshal(). Use // DefaultMarshalOptions() for sensible defaults. type MarshalOptions struct { // If this is true, then all struct names will be stripped from objects // and "stdC...
use ate::prelude::*; use chrono::DateTime; use chrono::Utc; use serde::*; use super::*; /// Contracts are agreement between a consumer and provider for /// particular services. Only brokers may perform actions on /// active contracts #[derive(Serialize, Deserialize, Debug, Clone)] pub struct Contract { /// Refere...
const BIGINT_ROUNDER = 1000000; const TIMING_PRECISION = 3; export const getCurrentTime = () => { return typeof window !== undefined ? performance.now() : Number((Number(process.hrtime.bigint()) / BIGINT_ROUNDER).toFixed(TIMING_PRECISION)); };
module Hasura.SessionSpec (spec) where import Hasura.Generator () import Hasura.Prelude import Hasura.Server.Utils import Hasura.Session import Test.Hspec import Test.Hspec.QuickCheck spec :: Spec spec = describe "SessionVariable" $ do prop "Arbitr...
enum Color { Red, Green=2, Blue }; class test { static Color y = Color.Green; static test() {} public static void Main() { Color x = y; System.Console.WriteLine("{0}={1}", x, (int)x); } }
use crate::backend::renderer::Renderer; use crate::backend::targets::texture::TextureTarget; use crate::backend::targets::window::WindowTarget; use crate::entities::background::BackgroundColor; use crate::entities::render_target::internal::{PrepareRenderingAction, RenderAction}; use crate::internal::PrepareCaptureActio...
--- templateKey: blog-post title: Urali - Ghostology order: 12 image: /img/urali.jpg style: bow --- - - - **Urali - Ghostology** Illustration and design for the album _Ghostology_ by Urali. ![null](/img/zaw.gif) ![null](/img/ivan-mocknuovo.jpg) ![null](/img/cover-grande.jpg) ![null](/img/foglione.jpg)
/* Copyright Ⓒ 2013 Brett Smith 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 w...
/* Copyright (c) 2019-2021 Integrative Software LLC Created: 5/2019 Author: Pablo Carbonell */ using System; using System.ComponentModel; namespace Integrative.Lara { /// <summary> /// Meta element /// </summary> [Obsolete("Use HtmlMetaElement instead")] [EditorBrowsable(EditorBrowsableState.Neve...
<?php namespace plainframe\Controllers; class ControllerMock extends Controller { private $var = "isset"; public function index($params = array()) { } } ?>
using System; using System.IO; using System.Net.Http; namespace WebAnchor { public class StreamContentPart : ContentPartBase { public StreamContentPart(Stream content) : this(content, null, null) { } public StreamContentPart(Stream content, string name) ...
package com.benasher44.uuid internal expect fun getRandomUuidBytes(): ByteArray internal expect fun <T> T.freeze(): T
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AzureGuidance.Domain { public class Order { public Guid OrderId { get; set; ...
<?php class Errors extends Controller { function errors() { parent::Controller(); } function index() { $this->load->model('errors_model'); $site_id = "16"; $error = "Database unavailable"; $now = date("Y-m-d H:i:s"); $data = array( 'site_id...
<?php namespace App\Http\Controllers\Admin; use App\Models\Hotel; use App\Http\Controllers\Controller; use App\Http\Requests\MassDestroyRoomRequest; use App\Http\Requests\StoreRoomRequest; use App\Http\Requests\UpdateRoomRequest; use App\Models\Room; use App\Models\Booking; use App\Models\Coupon; use App\Models\RoomT...
#!/bin/sh cd /tmp export CCP4_MASTER=/dls_sw/apps/ccp4/x86_64/6.4.0/11oct2013/ export CINCL=$CCP4_MASTER/ccp4-6.4.0/include export CLIBD=$CCP4_MASTER/ccp4-6.4.0/lib/data export CCP4_SCR=/tmp export root=$CCP4_MASTER/ccp4-6.4.0/bin if [ $3 == 'dimple' ]; then $root/fft HKLIN $1 MAPOUT "/tmp/$2_dimple_2fofc.map.tmp" <...
/// <reference path="typings/index.d.ts" /> import Http = require('http'); class AuthorizationConfig { host: string = 'lrcmain.brainglass.com'; // API URL port: number = 80; path: string = '/oauth/chat-token'; // path for the getToken request // key and secret are credentials for access to Chat API. // ...
module Tokenable extend ActiveSupport::Concern def jwt_token(exp: 5.hour.from_now) payload = { resource_id: id, resource_type: self.class.to_s } respond_to?(:remember_me) && remember_me ? payload[:remember] = true : payload[:exp] = exp.to_i JWT.encode(payload, auth_token) end end
library ng_specs; import 'dart:html' hide Animation; import 'dart:js' as js; import 'package:angular/angular.dart'; import 'package:angular/mock/module.dart'; import 'package:unittest/unittest.dart' as unit; import 'package:guinness/guinness_html.dart' as gns; export 'dart:html' hide Animation; export 'package:uni...
#pragma once #include <type_traits> #include <random> #include <pttk/macroutils.h> class NumberGenerator { public: /*template<typename T> static T generateNumberBetween(T min, T max) { static_assert(std::is_fundamental_v<T>, "Type must be a fundamental type"); }*/ static int gener...
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Model\Day; use Session; class DayController extends Controller { public function view() { $countDay = Day::count(); $days = Day::all(); return view('admin.day.view-day',['...
# rubyConstructs ## Prerequisites 1. Ensure that ruby is installed. ``` brew install ruby ``` 2.git clone this repository ``` git clone https://github.com/bhagvank/rubyConstructs.git ``` 3. Run hello world ``` cd code ruby class.rb ``` ## blog ruby on rails app ## myapp basic ruby on rails app ## todo api rub...
<?php return [ 'clear_cache' => 'Очистить кэш', 'compile_template' => 'Компиляция шаблонов', 'check_email_services' => 'Проверка почтовой службы', 'variables_list' => 'Список переменных', 'key' => 'Ключ', 'value' => 'Значение', 'remove_variable' => 'Удалить переменную', 'create_variable...
import { mount, mock, collectCoverage } from 'griffin' describe('Profile Info', () => { it('renders authenticated', async () => { await mount('PROFILE_INFO') await expect(element(by.text('Authenticated!'))).toBeVisible() }) it('renders not authenticated', async () => { await mount('PROFILE_INFO') ...
@extends('layouts.app') @section('content') <main class="container w-75"> <h4 class="heading m-auto">Edit Your Project</h4> <form method="POST" action="{{ $project->path() }}" class="form-group mt-3"> @csrf @method('PATCH') @include('projects.partials.form', [ 'buttonT...
%% ------------------------------------------------------------------- %% %% xqerl - XQuery processor %% %% Copyright (c) 2017-2020 Zachary N. Dean All Rights Reserved. %% %% This file is provided to you under the Apache License, %% Version 2.0 (the "License"); you may not use this file %% except in compliance with th...
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file showBase.cxx * @author...
package net.gini.android.vision.review.multipage.thumbnails; /** * Created by Alpar Szotyori on 08.05.2018. * * Copyright (c) 2018 Gini GmbH. */ /** * Internal use only. * * @suppress */ public interface ThumbnailsAdapterListener { void onThumbnailMoved(); void onThumbnailSelected(final int position...
package uk.co.idv.method.entities.otp.simswap.eligibility; import uk.co.idv.method.entities.eligibility.Ineligible; public class SimSwapStatusNotAllowed extends Ineligible { public SimSwapStatusNotAllowed(String status) { super(String.format("sim swap status %s is not allowed", status)); } }
package com.fernandocejas.cognitive.chatbot.framework import android.os.Bundle import android.support.v4.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.fernandocejas.cognitive.chatbot.AndroidApplication import com.fernandocejas.cognitive.chatbot.di.App...
use amethyst::{ core::SystemDesc, ecs::{Entities, Join, Read, ReadExpect, System, World, WorldExt, Write, WriteStorage}, shred::{ResourceId, SystemData}, ui::{UiText, UiTransform}, window::ScreenDimensions, }; use camera_model::play::CameraZoomDimensions; use derivative::Derivative; use derive_new::...
package cn.edu.scu.dao; import cn.edu.scu.entity.Keyword; import org.apache.ibatis.annotations.Param; import java.util.List; public interface KeywordDao { int insertOne(@Param("keywordName") String keywordName); Keyword queryByKeywordName(@Param("keywordName") String keywordName); Keyword queryByKeywor...
$ echo '(jbuild_version 1)' > dune $ dune build File "dune", line 1, characters 0-18: 1 | (jbuild_version 1) ^^^^^^^^^^^^^^^^^^ Error: 'jbuild_version' was deleted in version 1.0 of the dune language [1] $ rm -f dune $ echo '(jbuild_version 1)' > jbuild $ dune build File "jbuild", line 1, cha...
import Vector2 from '@equinor/videx-vector2'; import { VectorLike } from '@equinor/videx-linear-algebra'; /** * Find the position along a line segment closest to a given point. * @param point Reference point * @param lineStart Start of line segment * @param lineEnd End of line segment * @returns Close...
using System; namespace VBessonov.GZip.Core.Compression { public interface IProcessorFactory { IProcessor Create(); } }
--- title: BARNECOTT is_name: true --- BARNECOTT
# ENV SPLINT_VERSION="0.0.8" VENDOR="francis94c" PACKAGE="ci-gmail" created=false for entry in ./* do echo ${entry} if [ $created = false ]; then mkdir -p travis-splint-${SPLINT_VERSION}/application/splints/${VENDOR}/${PACKAGE} $created = true fi if [ "x$entry" != "x./phpunit.xml" ] && [ "x$entr...
## Schema -- drops database if it already exists DROP DATABASE IF EXISTS burgers_db; -- creates database called burgers_db CREATE DATABASE burgers_db; -- switches to the burgers_db USE burgers_db; -- creates a table for 'burgers' that has an id, burger_name, and devoured column CREATE TABLE burgers( id INT NOT NU...