text
stringlengths
27
775k
package pl.kamilszustak.read.model.domain import kotlinx.parcelize.Parcelize import pl.kamilszustak.model.common.id.VolumeId import java.util.* @Parcelize data class Volume( override val id: VolumeId, val title: String, val subtitle: String?, val author: String?, val description: String?, val ...
var express = require('express'); var routes = express.Router(); var userController = require('./../controllers/userController') var validation = require('../middlewares/userValidationMiddleware'); routes.route('/').get(validation.userAuth,userController.get) routes.route('/:username').get(validation.userAuth,userCo...
-- This script creates ZIPFILE_PROCESSING_STARTED events for those files that -- don't have them, yet, but have other events. This helps create -- reports for dates when this event wasn't created by the service. INSERT INTO process_events (container, zipfilename, createdat, event) SELECT container, zipfilename, min(cr...
--- title: "Teaching" permalink: /teaching/ author_profile: true --- {% include base_path %} ## Teaching (undergraduate tutorials) at the University of St Andrews ### 2021 - 2022 Tutor for MT2502 Analysis (two groups), Autumn. ### 2020 - 2021 Tutor for MT2505 Abstract Algebra (two groups), Spring. Tutor for MT250...
<?php /** * Created by PhpStorm. * User: Ivan * Date: 2016/8/29 * Time: 9:44 */ namespace RCorpWechat\Message; class Video extends AbstractMessage { protected $type = 'video'; protected $safe = 0; protected $properties = [ 'title', 'media_id', 'description', ]; public...
using UnityEngine; using System.Collections; public class FollowPlayer : MonoBehaviour { private Transform player; private Vector3 offset = Vector3.zero; private bool haveChangeOffset = false; public float moveSpeed = 4; void Awake() { player = GameObject.FindGameObjectWithTag(...
"""Disease Ontology ETL module.""" from .base import OWLBase import requests from pathlib import Path from disease import PROJECT_ROOT, PREFIX_LOOKUP, logger from disease.schemas import SourceMeta, SourceName, NamespacePrefix from disease.database import Database from datetime import datetime import owlready2 as owl fr...
docker stop bet docker rm bet docker build . -t bet365node docker run -it -d -p 3000:3000 --name bet bet365node docker logs bet
package org.jetbrains.plugins.scala package finder import com.intellij.ide.highlighter.{JavaClassFileType, JavaFileType} import com.intellij.openapi.fileTypes.{FileType, FileTypeRegistry, LanguageFileType} import com.intellij.openapi.module.Module import com.intellij.openapi.project.Project import com.intellij.openapi...
export BrickletNFCReaderGetTagIDLowLevel struct BrickletNFCReaderGetTagIDLowLevel tag_type::Integer tag_id_length::Integer tag_id_data::Vector{Integer} end export BrickletNFCReaderGetState struct BrickletNFCReaderGetState state::Integer idle::Bool end export BrickletNFCReaderReadNDEFLowLevel st...
module ThreeScale module Backend module Logging class Middleware describe TextWriter do let(:logger) { object_double(STDOUT) } subject { described_class.new(logger) } let(:fixed_fields_success_response) { 20 } let(:fixed_fields_error_response) { 13 } ...
(load "my-cons.lisp") (defun my-cdr (my-cons) (funcall my-cons :cdr))
require_relative 'voucher_code/version' require_relative 'voucher_code/config' # Generate voucher code module VoucherCode class << self def generate(config = {}) config = @defaults if @defaults configuration = Config.new(config) configuration.generate end # Set global defaults for gen...
using System; namespace MyLab.DockerPeeker.Tools { class PseudoFileFormatException : Exception { /// <summary> /// Initializes a new instance of <see cref="PseudoFileFormatException"/> /// </summary> public PseudoFileFormatException(string msg): base(msg) { ...
using MVC.Runtime.Screen.Enum; using MVC.Runtime.Screen.View; using UnityEngine; namespace MVC.Runtime.Screen { public interface IScreenDataContainer { IScreenDataContainer SetManagerIndex(int managerIndex = 0); IScreenDataContainer SetLayer(ScreenLayerIndex layerIndex = ScreenLayerIndex.Layer_...
// // PEIntroLayer.h // Alchemy // // Created by Kyounghwan on 2014. 2. 10.. // // #ifndef __Alchemy__PEMain__ #define __Alchemy__PEMain__ #include "../Common.h" class PEStageBtn : public Node { public: static PEStageBtn* create(int index, bool valid); int get_stage_stars(void); void set_stag...
<?php declare(strict_types = 1); namespace Maksi\LaravelRequestMapper\Validation\BeforeType\Laravel; use LogicException; /** * Class ValidationRuleTypeException * * @package Maksi\LaravelRequestMapper\Validation\BeforeType\Laravel */ class ValidationRuleTypeException extends LogicException { }
export const features = [ 'accelerometer', 'ambientLightSensor', 'autoplay', 'battery', 'camera', 'displayCapture', 'documentDomain', 'documentWrite', 'encryptedMedia', 'executionWhileNotRendered', 'executionWhileOutOfViewport', 'fontDisplayLateSwap', 'fullscreen', 'geolocation', 'gyroscop...
package com.github.mdr.mash.editor import com.github.mdr.mash.repl.LineBufferTestHelper.lineBuffer import org.scalatest.{ FlatSpec, Matchers } class QuoteTogglerTest extends FlatSpec with Matchers { // ▶ or ◀ points to the cursor position (and is removed from the string) "foo bar▶ baz" ==> """foo "bar"▶ baz""" ...
class RemoveEsRecentFields < ActiveRecord::Migration[4.2] def change # Remember the last project media we need to work on since once this code is deployed, # all subsequent new project medias will not include recent_activity and recent_added fields Rails.cache.write('check:migrate:remove_es_recent_fields:...
package io.iohk.ethereum.crypto.zksnark trait FiniteField[A] { def zero: A def one: A def add(a: A, b: A): A def mul(a: A, b: A): A def sub(a: A, b: A): A def inv(a: A): A def neg(a: A): A def sqr(a: A): A = mul(a, a) def dbl(a: A): A = add(a, a) def isZero(a: A): Boolean def isValid(a: A): Boole...
package canoe.methods.chats import canoe.marshalling.codecs._ import canoe.methods.Method import canoe.models.{ChatId, InputFile} import io.circe.generic.semiauto.deriveEncoder import io.circe.{Decoder, Encoder} /** * Use this method to change the description of a supergroup or a channel. * * The bot must be an...
use serde::{Deserialize, Serialize}; use crate::page::anchor::Anchor; use crate::page::category::Category; /// Collection of Anchors and Categories for a Wikipedia page. #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct Page { pub title: String, pub id: String, pub anchors: Vec<Anchor>, ...
#pragma once #include "lib/header.h" class CsvParser { public: CsvParser(shared_ptr<istream> stream, char delim = ',', char quote = '\"'); CsvParser(const string& filename); bool readHeader(); bool readLine(); size_t size() const; const StringVector& header() const; const string& get(s...
import os os.getcwd() os.mkdir("/tmp/os_mod_explore") os.listdir("/tmp/os_mod_explore") os.mkdir("/tmp/os_mod_explore/test_dir1") os.listdir("/tmp/os_mod_explore") os.stat("/tmp/os_mod_explore") os.rename("/tmp/os_mod_explore/test_dir1/", "/tmp/os_mod_explore/test_dir1_renamed") os.listdir("/tmp/os_mod_explore"...
<?php namespace App\Services; use App\Library\Service; class ExampleService extends Service { }
package model import play.api.libs.json.{JsPath, Json, Reads, Writes} import play.api.libs.functional.syntax._ import scala.collection.mutable import scala.util.Random case class Id[T](id: String) /* Challenge is identified by a random String. Once both candidates have added the same name to the candidate name list...
function findOcurrences(text, first, second) { const res = []; const arr = text.split(' '); for (let i = 0; i < arr.length - 2; i++) { if (arr[i] === first && arr[i + 1] === second) { res.push(arr[i + 2]); } } return res; }
{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE Trustworthy #-} -- | -- Module : Criterion.Report -- Copyright : (c) 2009-2014 Bryan O'Sullivan -- -- Lice...
/* * Copyright 2016 Spotify AB. * * 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 ...
@using Microsoft.AspNetCore.Identity @using Highway.DriversEd @using Highway.DriversEd.Models @using Highway.DriversEd.Models.AccountViewModels @using Highway.DriversEd.Models.ManageViewModels @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
package ru.z13.imgtags.utils import android.content.Context import android.content.res.Resources import android.support.annotation.StringRes import android.widget.Toast import ru.z13.imgtags.BuildConfig /** * @author Yura F (yura-f.github.io) */ class YToast { companion object { fun showText(context: Co...
#!/bin/bash set -e cd $(dirname "$BASH_SOURCE") if [ ! -d third-party ]; then mkdir third-party fi if [ ! -d third-party/vcpkg ]; then pushd third-party git clone https://github.com/Microsoft/vcpkg.git popd pushd third-party/vcpkg ./bootstrap-vcpkg.sh popd fi third-party/vcpkg/vcpkg install libxml...
function solution(A) { let minIndex = -1; let min = Infinity; for (let i = 0; i < A.length - 1; i++) { const avgOf2 = (A[i] + A[i + 1]) / 2; let avgOf3 = Infinity; if (A[i + 2] !== undefined) { avgOf3 = (A[i] + A[i + 1] + A[i + 2]) / 3; } let minAvg = Math.min(avgOf2, avgOf3); if...
#!/bin/bash # Quick script, count UPS power failures extracted with ups_extract.sh # Author: Jan Polák shopt -s globstar set -euo pipefail dir="$1" find "$dir" -type f -name 'ups-*.txt' |while read -r fname; do # number of failures num=$(grep -c "power failed" "$fname") # ups name name=$(basename -s ...
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Ludiq; using UnityEngine; namespace Bolt.Addons.Community.Fundamentals { public abstract class ComparisonBranch : Unit, IBranchUnit { public ComparisonBranch() : base() { } /// <summary> /// T...
// Referrence:https://qastack.cn/software/44929/color-schemes-generation-theory-and-algorithms export const rgb2Hex = (r: number, g: number, b: number): string => { return `#${r.toString(16).padStart(2, "0")}${g .toString(16) .padStart(2, "0")}${b.toString(16).padStart(2, "0")}`; }; export function HSVtoRGB...
package com.example.pong import android.annotation.SuppressLint import android.content.Context import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import android.text.TextPaint import android.util.AttributeSet import android.view.MotionEvent import android.view.SurfaceHolder impo...
package com.ggu.avd.data import androidx.recyclerview.widget.DiffUtil import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.PrimaryKey import java.text.SimpleDateFormat import java.util.* @Entity(tableName = "keywords") class SearchKeyword( @PrimaryKey @ColumnInfo(name = "keyword")...
<h1>Vota Cultura</h1> <p> Seu cadastro foi realizado com sucesso! </p> <p> <b> CNPJ: </b> {{ $organizacao->nu_cnpj }} </p> <p> <b> Nome da Organização/Entidade: </b> {{ $organizacao->no_organizacao }} </p> <p> <b> Telefone: </b> {{ $organizacao->telefone_f...
angular.module('badminton').service('$login', function ($q, $rootScope, $http) { this.doLogin = function (data) { var deferred = $q.defer(); $http({ url: 'https://a94g53rtf8.execute-api.ap-south-1.amazonaws.com/prod/login', method: "GET", params: data }...
# frozen_string_literal: true # # Controller for import and import status actions. # class ImportController < ApplicationController before_action :logged_in_user, only: %i[upload import] def info # show some stats @player_male_count = Ranking.select(:dtb_id).where('dtb_id >= 10000000 AND dtb_id < 20000000...
# term-bcrypt > bcrypt in terminal [![install size][package-size]][package-size-url] [![code style: prettier][prettier]][prettier-url] [![npm][npm-download]][npm-dl-url] [![contributions welcome][contri]][contri-url] [![License: MIT][license]][license-url] [![screenshot][screenshot]][screenshot-url] ## Install ```...
import stainless.lang._ import stainless.annotation._ import scala.annotation.meta.field import scala.collection.concurrent.TrieMap object ExternField { case class TrieMapWrapper[K, V]( @extern theMap: TrieMap[K, V] ) { @extern @pure def contains(k: K): Boolean = { theMap contains k }...
/** * Date: 2015-10-05 * Author: Kasper Søfren <soefritz@gmail.com> (https://github.com/kafoso) * * A truncation feature, where the ellipsis will be placed at a section within * the URL making it still somewhat human readable. * * @param {String} url A URL. * @param {Number} truncateLen The maximum leng...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.Caching; namespace MemoryCacheSample { class Program { static void Main(string[] args) { //diccionario de permisos var permissions = new Dictiona...
# pdf + [pdfPage_options](pdf/pdfPage_options.1) + [pdfGlobal_options](pdf/pdfGlobal_options.1) + [pdfDecoration](pdf/pdfDecoration.1) + [logo_html](pdf/logo_html.1) + [makePDF](pdf/makePDF.1) convert the local html documents to pdf document.
// Copyright (c) Andrew Fischer. See LICENSE file for license terms. #include <cairo/cairo.h> #pragma once void set_cairo_context(caValue* value, cairo_t* context); void cairo_native_patch(caNativePatch* module);
import React,{ Fragment } from 'react'; import { Route } from 'react-router-dom'; import ClothCategory from './ClothCategory'; import ListCloth from './Clothes'; import Dryer from './Dryer'; import Washer from './Washer'; import UnitPrice from './UnitPrice'; const GeneralManagement = ({match}) => ( <div className...
package org.batfish.representation.juniper; import java.io.Serializable; import java.util.Map; import java.util.TreeMap; public class NodeDevice implements Serializable { private static final long serialVersionUID = 1L; private final Map<String, Interface> _interfaces; public NodeDevice() { _interfaces =...
module Requests (createSessionAPI, makeMoveAPI) where import Control.Monad.IO.Class import qualified Data.HashMap.Strict as H import Data.Text (Text, pack, unpack) import Data.Char (isDigit) import Network.HTTP.Req import Data.Aeson hiding (Error) import qualified Data.HashMap.Strict as H import Data.Maybe (fromJust...
require 'sinatra' require 'sinatra/json' require 'sinatra/reloader' require 'rack/rest_api_versioning' require 'json' class Api < Sinatra::Application set :environments, %w{development test production staging} use Rack::MethodOverride require 'newrelic_rpm' configure :development do require 'pry' regi...
--- # layout: post title: "Humidificador Pure Aroma 150 Yin" # author: sal # categories: [ Jekyll, tutorial ] category: "it" image: https://images-na.ssl-images-amazon.com/images/I/51ifC3LQWFL._AC_SX425_.jpg affiliateurl: "https://amzn.to/3p6s1pS" amazon: true features: [Reduce la sequedad ambiental , Función difusor ...
#!/usr/bin/env python import argparse import os import re import subprocess from tabulate import tabulate parser = argparse.ArgumentParser(prog="forces", description='''A script that parses an OUTCAR file to compute a the net positive and...
package de.briemla.clockradio; import java.io.IOException; import java.io.Writer; import java.time.LocalDateTime; import java.time.LocalTime; import java.util.Optional; import javafx.beans.property.ObjectProperty; import javafx.beans.property.Property; import javafx.beans.property.SimpleBooleanProperty; im...
module Fl::Framework # Namespace for test support code. module Test end end require 'fl/framework/test/attachment_test_helper' require 'fl/framework/test/captcha_test_helper'
package ru.otus.otuskotlin.backend.repository.dynamodb import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClientBuilder import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBScanExpression import com.amazonaws.services.dynamodbv2.model.At...
/////////////////////////////////////////////////////////////////////////////// // // Microsoft Research Singularity // // Copyright (c) Microsoft Corporation. All rights reserved. // // Note: // This file wraps a cassini Request object so it is callable through // the Microsoft.Singularity.WebApps.IH...
import config from './config' import RecycleScroller from './components/RecycleScroller.vue' import DynamicScroller from './components/DynamicScroller.vue' import DynamicScrollerItem from './components/DynamicScrollerItem.js' import { version } from '../package.json' export { RecycleScroller, DynamicScroller, D...
using System; using Avalonia.Input; #nullable enable namespace Avalonia.Platform { /// <summary> /// Represents a platform implementation of a <see cref="Cursor"/>. /// </summary> public interface ICursorImpl : IDisposable { } }
<?php namespace Rede; use JsonSerializable; interface RedeSerializable extends JsonSerializable { }
# Ubuntu Post Install Scripts Scripts to make your life easier after installing Ubuntu :) ## Usage You can run the script from the root of the source folder: ```console ./post-install.sh ``` Or just run this command: ```console wget https://raw.githubusercontent.com/tmneth/ubuntu-post-install/main/post-install.sh && b...
import { CollectionReference, Query, QuerySnapshot, QueryDocumentSnapshot, DocumentReference, WriteResult } from "@google-cloud/firestore"; import * as admin from "firebase-admin"; import { ContextToken, IdToken, Platform, Key, AccessToken, Nonce } from "./interfaces"; require("@firebase/firesto...
part of bson; /** Number BSON Type **/ const _BSON_DATA_NUMBER = 1; /** String BSON Type **/ const _BSON_DATA_STRING = 2; /** Object BSON Type **/ const _BSON_DATA_OBJECT = 3; /** Array BSON Type **/ const _BSON_DATA_ARRAY = 4; /** BsonBinary BSON Type **/ const _BSON_DATA_BINARY = 5; /** undefined BSON Type **/ c...
import { Swiper, SwiperSlide } from 'swiper/react' import { SlidePrevButton, SlideNextButton } from './SlidesButton' import { useTranslation } from 'react-i18next' // Import Swiper styles import 'swiper/css' import './index.css' function Photos() { const { t } = useTranslation() return ( <section cla...
module UtilsParsers where import Data.Char import Parser -- | Parses the first character of the input, taking the remaining chars into a list item :: Parser Char item = P (\inp -> case inp of [] -> [] (x:xs) -> [(x, xs)]) -- | Parses the first character if it satisfies th...
{-# LANGUAGE TemplateHaskell #-} module Lib where import Control.Lens import Data.List (foldl') import Data.Tuple (swap) import qualified Data.IntMap as IM type Tower = ([Int], [Int], [Int]) type Move = (Int, Int) data MoveP = MP {_re :: [Move], _nt :: [Move], _ars :: (Move, Move)} deriving Show makeLenses ''MoveP ...
export default function CommaQualityFromString(value: string) : Map<string, number> { const splits : [string, number][] = value.split(',').map(value=>{ const parts = value.split(';', 2); let quality: number; if(parts[1]) { let temp : string = parts[1]; let value :...
/* * Copyright (C) 2020 Tony Guyot * * 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...
#!/usr/bin/env ruby # # Nagios check for HBase cluster health # Copyright Infochimps, 2011 # Author: Chris Howe (howech@infochimps.com) EXIT_OK = 0 EXIT_WARNING = 1 EXIT_CRITICAL = 2 EXIT_UNKNOWN = 3 f = File.popen("echo status | hbase shell") result = f.readlines.select{|line| line =~ /\d+ servers, \d+ dead, \d+(\....
require 'spec_helper' describe Exporters::OrganizationMembershipsExporter do before do FactoryBot.create_list(:competitor, 5) end it "outputs some rows" do exporter = described_class.new(Registrant.all) expect(exporter.headers).to include("Id") expect(exporter.headers).to include("Manual Organiz...
package com.yh.demo import android.app.Application import android.util.Log import android.widget.Toast import com.yh.appinject.IBaseAppInject import com.yh.appinject.ext.isMainProcess import com.yh.appinject.logger.LogsManager import com.yh.appinject.logger.logE import com.yh.libapp.Lib1 /** * Created by CYH on 2020...
#!/usr/bin/env bash if [ -z "$1" ] then echo "Cloud must be specified" >&2; exit 1 fi if [ -z "$2" ] then echo "Mongo version must be specified" >&2; exit 1 fi if [ -z "$3" ] then echo "Config count must be specified" >&2; exit 1 fi if [ -z "$4" ] then echo "Mongos count must be specified" >&2;...
package xyz.nulldev.ts.api.java.model.catalogue import eu.kanade.tachiyomi.data.database.models.Manga data class CataloguePage(val manga: List<Manga>, val currentPage: Int, val nextPage: Int?)
-module(pi). -export([calculate/1]. %calculate(0) -> % spawn N time: PiElementActor = spawn(pi pi_element_actor:loop/0). %calculate(N) when N > 0 -> N % spawn N time: PiElementActor = spawn(pi pi_element_actor:loop/0).
drop table if exists MB_ACCT_EVENT_REGISTER; /*==============================================================*/ /* Table: MB_ACCT_EVENT_REGISTER */ /*==============================================================*/ create table MB_ACCT_EVENT_REGISTER ( INTERNAL_KEY Decimal(...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { useState, useCallback, useMemo } from 'react'; import { isExampleDa...
using System; using Fpm.ProfileData.Entities.Profile; namespace Fpm.ProfileData { public class DefaultProfileContentWriter { public const string ContentDescription = "<p>Please change this description in FPM</p>"; public const string ContentIntroduction = "<h2>Introduction</h2><p>Please change...
#!/bin/sh # # Manual script to get index page footprint/RAM figures. # set -e #set -x ARCHOPT=-m32 #ARCHOPT="-mthumb -march=armv7-a" echo "" echo "***" echo "*** default" echo "***" echo "" rm -rf /tmp/duk-index-tmp rm -f /tmp/hello python2 tools/configure.py \ --source-directory src-input \ --output-directory /...
Ansible roles ============= [![Build Status](https://travis-ci.org/ome/ansible-roles.svg)](https://travis-ci.org/ome/ansible-roles) A super-repository collecting of all the existing OME Ansible roles including those released on [Galaxy](http://galaxy.ansible.com/ome/). Update ------ The [update.py](scripts/update....
# frozen_string_literal: true module SidekiqUniqueJobs # Shared module for dealing with redis connections # # @author Mikael Henriksson <mikael@zoolutions.se> module Connection def self.included(base) base.send(:extend, self) end # Creates a connection to redis # @return [Sidekiq::RedisC...
#pragma once #include <windef.h> // for HINSTANCE typedef void* mmm_hook; typedef struct mmm_api { // Don't touch this void* _mmm_bookkeeping_; // Insert an instruction at `orig_address` that JMPs to the given // `hook_address`. mmm_hook (*hook_jmp)(size_t orig_address, size_t hook_address); // Insert an ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Appraisal extends Model { protected $fillable = [ 'company_id', 'employee_id', 'department_id', 'designation_id', 'customer_experience', 'marketing', 'administration', 'professionali...
Pod::Spec.new do |spec| spec.name = "AlgoliaSearchClient" spec.module_name = 'AlgoliaSearchClient' spec.version = "8.11.0" spec.summary = "Algolia Search API Client written in Swift." spec.homepage = "https://github.com/algolia/algoliasearch-client-swift" spec.license = { :type =...
// Copyright (c) 2017-2021 VMware, Inc. or its affiliates // SPDX-License-Identifier: Apache-2.0 package greenplum_test import ( "errors" "os/exec" "path/filepath" "reflect" "testing" "github.com/greenplum-db/gpupgrade/greenplum" "github.com/greenplum-db/gpupgrade/idl" "github.com/greenplum-db/gpupgrade/step...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObstaclesMoves : MonoBehaviour { public float speed; public float delayAddSpeed; public float AddSpeed; public float speedStore; int itung =0; public bool gerak; void Start () { StartCoroutine (addObstacleSpeed ()); ...
#include "maths.h" #include <algorithm> #include <cassert> float4x4 float4x4::rotation(const float3& axis, double angle) { assert(isfinite(axis)); assert(std::isfinite(angle)); assert(equal(length(axis), 1.0)); double cos = std::cos(angle); double sin = std::sin(angle); float3 tmp = axis * (1...
#!/bin/bash exists() { type -t "$1" > /dev/null 2>&1; } sudo apt-get install libx11-dev libxkbfile-dev sudo apt-get install libsecret-1-dev sudo apt-get install fakeroot rpm sudo apt-get install imagemagick if ! exists python; then sudo apt install python fi if ! exists jq; then sudo apt-get install -y jq fi # i...
package com.shetj.diyalbume.ppttest import android.os.Bundle import com.alibaba.android.arouter.facade.annotation.Route import com.google.android.material.snackbar.Snackbar import com.jakewharton.rxbinding3.view.clicks import com.shetj.diyalbume.R import com.zhouyou.http.EasyHttp import com.zhouyou.http.cache.model.Ca...
package models import java.util.Date import models.FileStatus.FileStatus import play.api.libs.json.{JsObject, Json, Writes} /** * Uploaded files. * * */ case class File( id: UUID = UUID.generate, loader_id: String = "", filename: String, originalname: String = "", author: MiniUser, uploadDate: Date, ...
<?php namespace Squids\Base\Module; use Squids\Objects\IAction; use Squids\Prepared\NewAction; /** * @skeleton */ interface IActionsFS { /** * @return IAction[] */ public function get(): array; /** * Create the directories for new Action. * @param NewAction $newAction */ public function init(NewAc...
--this is the query to use to recompute what spatial_refs to exclude from backup --it computes the where clause to put in mark_editable_objects.sql.in WITH s AS -- our series (SELECT srid As n FROM spatial_ref_sys ), -- get start ranges (numbers where next is not next + 1) n1 AS (SELECT n AS start_n FROM s ...
# Lock And Key Lock and Key is a Forge mod for Minecraft that adds locks and keys for doors and chests. It is heavily inspired by the [BetterStorage](https://github.com/copygirl/BetterStorage) mod by CopyGirl. ## Design Goals 1. Minecraft 1.8 compatible * Consider 1.9 compatibility when Forge is released 2. Support...
require 'simple-rss' require 'open-uri' module SonicPi module Mods module Feeds # def self.included(base) # base.instance_exec {alias_method :sonic_pi_mods_feeds_initialize_old, :initialize} # base.instance_exec do # define_method(:initialize) do |*splat, &block| # ...
import React, { useEffect, useRef, useState } from 'react'; import { Portal, Typography } from '../..'; export default { title: 'Atoms / Portal', parameters: { component: Portal, }, }; export const defaultStory = () => ( <Portal> <Typography type="primary" as="p"> This element is moved to the bo...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Post; use DB; use Auth; use Sentry; use App\Models\User; class PostController extends Controller { public function viewPost() { $post=DB::table('posts') ->select( 'posts.id', 'po...
//------------------------------------------------------------------------------ // <auto-generated> // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator // version 1.2.0 // from Assets/Inputs/TankControls.inputactions // // Changes to this file may cause incorrect behavior ...
@extends('chuckcms-module-order-form::pos.layout') @section('content') <div class="wrapper container-fluid p-0 d-flex" id="cof_orderFormGlobalSection" data-site-domain="{{ URL::to('/') }}"> <div class="main col-8"> @include('chuckcms-module-order-form::pos.includes.header') @include('chuck...
using System.Collections.Generic; using GameDevTV.Inventories; using UnityEngine; namespace RPG.Inventories { public class CoolDownManager : MonoBehaviour { Dictionary<string, ItemInCooldown> itemsInCoolDown = new Dictionary<string, ItemInCooldown>(); private class ItemInCooldown { ...
from django.shortcuts import get_object_or_404 from apps.canvas_auth.models import User from apps.suggest.models import get_suggested_tags from apps.tags.models import Tag from canvas import bgwork, models from canvas.api_decorators import api_decorator from canvas.exceptions import ServiceError from canvas.metrics im...