text
stringlengths
27
775k
<span class="files-count"> @if (Model.Count == 0) { @T("No files") } else { int count = Model.Count; <span>@count</span> <span>&nbsp;@T("files")</span> } </span>
# frozen_string_literal: true $LOAD_PATH.push File.expand_path('lib', __dir__) # Maintain your gem's version: require 'kanaui/version' # Describe your gem and declare its dependencies: Gem::Specification.new do |s| s.name = 'kanaui' s.version = Kanaui::VERSION s.authors = 'Kill Bill core team' ...
import { AnimatePresence } from 'framer-motion'; import { useSnackbar } from 'notistack'; import React from 'react'; import Box from '@material-ui/core/Box'; import CircularProgress from '@material-ui/core/CircularProgress'; import Alert from '@material-ui/lab/Alert'; import AlertTitle from '@material-ui/lab/AlertTitle...
<?php class MKleine_LanguageRoutes_Model_Core_Url extends Mage_Core_Model_Url { /** * @return MKleine_LanguageRoutes_Model_Translation */ protected function getTranslationModel() { return Mage::getSingleton('mk_languageroutes/translation'); } public function getRouteFrontName() ...
/* jshint esversion: 6, asi: true, node: true */ // util.js // private require('colors'); // allow for color property extensions in log messages const debug = require('debug')('WebSSH2'); const Auth = require('basic-auth'); const defaultCredentials = { username: null, password: null, privatekey: null }; exports.setD...
; CPUID Assembly Program ; This program simply discovers information about the processor and dumps it. ; (c) 2016 Travis M Ervin ; Built using NASM on Ubuntu Linux ; Debug assemble: nasm -f elf64 -F dwarf -g cpuid.asm && ld -m elf_x86_64 -o cpuid cpuid.o ; Release assemble: nasm -f elf64 cpuid.asm && ld s -o cpuid cpui...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.Its.Recipes; namespace Microsoft.Its.Domain { /// <summary> /// Provides methods for working with commands. /// </summary> public stat...
<?php namespace RestApiBundle\Resource\Filtering; use Doctrine\ORM\QueryBuilder; interface ResourceFilterInterface { public function getResources($filter); public function getResourceCount($filter); }
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} module Main where import Control.Monad.IO.Class (liftIO) import Control.Monad.Trans.Class (lift) import Control.Monad.Trans.Reader import qualified Data.Text.Lazy as T import Data.Yaml (decodeFileThrow) import Network.HTTP.Types (status403, statu...
require 'active_record' class Cube < ActiveRecord::Base validates :time, presence: true validates :base_currency, presence: true validates :counter_currency, presence: true validates :rate, presence: true end
package org.carlspring.strongbox.cron.jobs; import org.carlspring.strongbox.config.MavenIndexerEnabledCondition; import org.carlspring.strongbox.cron.domain.CronTaskConfigurationDto; import org.carlspring.strongbox.cron.jobs.fields.*; import org.carlspring.strongbox.providers.io.RepositoryPath; import org.carlspring.s...
package main import ( "io" "bufio" "strings" "bytes" "github.com/garyburd/redigo/redis" ) func main() { rl, err := New(":6379", "testlog") if err != nil { panic(err) } defer rl.Close() io.Copy(rl, strings.NewReader("hello world!\nhello world...!")) } type RedisLogger struct { c redis.Conn logKey strin...
import 'package:flutter/material.dart'; import 'package:flutter_novel/app/novel/entity/entity_novel_detail.dart'; import 'package:flutter_novel/app/novel/entity/entity_novel_info.dart'; import 'package:flutter_novel/app/novel/view/novel_book_reader.dart'; import 'package:flutter_novel/app/novel/view_model/view_model_no...
<?php return [ 'validate_otp' => [ 'otp_invalid' => '認証コードが間違っています。', 'phone_not_exist' => 'Phone not exist.', 'user_not_found' => 'User not found !', ], 'referral' => [ 'wrong_referral_code' => '招待コードが間違っています。', ], 'email' => [ 'payment_request' => [ ...
use std::collections::HashMap; use std::path::PathBuf; use syn::{self, UseTree}; pub fn concat_module_parts(prefix: &[String], suffix: &[String], crate_name: &str) -> Vec<String> { let mut full_parts = prefix.to_vec(); for part in suffix { match part { _ if part == "crate" || part == crate_...
个人学习,用于夯实开发基础,后续更多完善: 1 、参考了https://roadmap.sh/frontend的学习路线 [^1]: [整体参数考](https://roadmap.sh/frontend) ![Alt](./basicImg/frontend.png)
import { CodeGenerator, FileData } from '../generator.js'; import { EntityGenerator } from './entityGenerator.js'; import { TypeDefGenerator } from './gql/typeDefGenerator.js'; import { QueryGenerator } from './gql/queryGenerator.js'; import { ResolverGenerator } from './gql/resolverGenerator.js'; import { MutationGene...
import styled from "styled-components"; import { device } from '../../../theme' export const SectitonWrap = styled.section` padding-top: 100px; padding-bottom: 91px; @media ${device.medium}{ padding-top: 80px; padding-bottom: 21px; } @media ${device.small}{ padding-top: 60px...
<?php defined('BASEPATH') or exit('No direct script access allowed'); class MKodeStokSelepan extends CI_Model { public function getData() { $data = $this->db->query('select * from tb_kode_stok')->result_array(); return $data; } public function addData($data_array) { $res = ...
/* eslint-disable @typescript-eslint/no-unused-vars */ import { WorkspaceAppAuth, WorkspaceInfo } from '@api'; import { getWorkspaceInfo } from './responses'; export class MockWorkspaceService { public async getWorkspaceInfo(workspaceType: string): Promise<WorkspaceInfo> { return getWorkspaceInfo; } public ...
#!/bin/bash # 依赖项自动安装 ## curl 安装 ### Centos echo -e "你使用的是 Centos 么?(y/n)" read answer if [ "$answer" = "y" ] then echo "请安装redhat-lsb" sudo yum install redhat-lsb fi ## curl 安装 ## 字体安装' if (which curl) then echo "你的系统已经安装过 curl 将自动进行下一步安装" else echo "你的系统未安装 curl 下面将进行安装: curl" sys=$( lsb_release -a ...
--- title: Selection and Navigation author: Boris Zaitsev legacyId: 16765 --- # Selection and Navigation This section describes how to navigate the schedule. Topics in this section: * [Navigate Dates in the Scheduler](selection-and-navigation/navigate-dates-in-the-scheduler.md) * [Navigate Scheduler Time Cells](select...
<?php declare(strict_types=1); namespace Emonkak\Di\Inspector; interface ParameterResolverInterface { public function resolveKey(\ReflectionParameter $parameter): string; public function resolveClass(\ReflectionParameter $parameter): ?\ReflectionClass; }
import { PlayerColor } from "src/app/models/game/player-color.enum"; import { MatchSettings } from "./match-settings"; export class MatchInfo { public availableColors: PlayerColor[]; public round: number; public settings: MatchSettings; }
import React, {FC} from 'react'; import {useParams} from 'react-router-dom'; import {AppUrlParams} from 'types/apps'; import AppsHome from './containers/AppsHome'; import AppDetails from './containers/AppDetails'; const AppStore: FC = () => { const {slug} = useParams<AppUrlParams>(); if (slug) { return <App...
package com.dividezero.stubby.core.js import org.scalatest.FunSuite import com.dividezero.stubby.core.model.StubRequest import com.dividezero.stubby.core.model.StubResponse import com.dividezero.stubby.core.model.StubExchange import com.dividezero.stubby.core.model.StubParam import com.dividezero.stubby.core.util.Opti...
#ifndef CELSIUS_TO_FAHRENHEIT_TEST_HPP #define CELSIUS_TO_FAHRENHEIT_TEST_HPP #include <UnitTest++.h> #include "temp_conversion.hpp" SUITE(TemperatureConversionTests) { TEST(test_celsius_to_fahrenheit) { CHECK(celsius_to_fahrenheit(15) == 59.0); } } #endif // CELSIUS_TO_FAHRENHEIT_TEST_HPP
#![allow(non_upper_case_globals)] #![allow(non_camel_case_types)] #![allow(non_snake_case)] include!("bindings.rs"); #[cfg(test)] mod tests { use super::*; use std::ffi::CString; #[test] fn connect_smoke_test() { unsafe { let mut handle: NISysCfgSessionHandle = std::ptr::null_mut(...
#!/usr/bin/perl use strict; use warnings; use lib '.'; use Test::More tests => 18; use DateTime; use t::lib::helper; use DateTime::Format::Flexible; my $curr_year = DateTime->now->year; # http://www.dummies.com/how-to/content/mastering-the-calendar-and-dates-in-german.html # http://german.about.com/library/anfang...
/* * Copyright 2021 HM Revenue & Customs * * 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 a...
--- layout: article title: Thin Film Technology permalink: /courses/junior/ic-fabrication/thin-film-technology mathjax: true mermaid: false chart: false mathjax_autoNumber: false mode: normal tags: 集成电路 key: 3-thin-film-technology nav_key: courses show_edit_on_github: false show_date: false sidebar: nav: ic-fabricati...
#!/bin/bash pkill -f get_address_stats.py pkill -f get_pool_stats.py pkill -f pkt-mining-stats.py echo "PKT-mining-stats switched off"
package com.example.mear.models data class PlayCount(val id: Int, val playCount: Int, val trackId: Int) { }
<?php declare(strict_types=1); namespace Chrif\Bundle\DockerLogsBundle\Logging; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; /** * * Example config: * * chrif_docker_logs: * channels: ["app","request"] * * * Changes to container after bui...
require 'rest-client' require 'json' require 'ostruct' require File.dirname(__FILE__) + '/ticksy_api/client' require File.dirname(__FILE__) + '/ticksy_api/comment' require File.dirname(__FILE__) + '/ticksy_api/ticket' require File.dirname(__FILE__) + '/ticksy_api/error'
// Create a class for the element class ExpandingList extends HTMLUListElement { constructor() { // Always call super first in constructor // Return value from super() is a reference to this element self = super(); // Get ul and li elements that are a child of this custom ul element // li element...
# Free-fall calculation This isn't homework, but I did it anyways, lol. # The results ![the t-a figure should be here](t-a-figure.png "the t-a figure") ![the t-v figure should be here](t-v-figure.png "the t-v figure") ![the t-y figure should be here](t-y-figure.png "the t-y figure")
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.findAndPushToEnd = void 0; function findByPredicate(arr, filter) { for (const [index, value] of arr.entries()) { if (filter(value)) { return { index, value }; } } return undefined; } function fin...
package org.cloudio.morpheus.square /** * Created by zslajchrt on 12/03/16. */ trait Graphics { def drawRect(x: Double, y: Double, w: Double, h: Double): Unit def drawCircle(x: Double, y: Double, r: Double): Unit }
// Copyright 2019 Yunion // // 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 writi...
import 'package:encrypt/encrypt.dart'; import 'package:meta/meta.dart'; import 'package:store_x/src/encryption.dart'; import 'package:store_x/src/healpers/print.dart'; @internal class EncryptionImpl extends Encryption { late Key key; final iv = IV.fromLength(16); late Encrypter encrypter; String password = 'Fl...
""" Client wrapper for pymemcache memcache library https://pypi.python.org/pypi/pymemcache """ from __future__ import absolute_import from vishnu.backend.client import Base from vishnu.backend.client import PickleableSession import pickle from pymemcache.client.base import Client as PyMemcacheClient class Client(Ba...
package com.jetbrains.edu.learning.codeforces import com.intellij.execution.process.* import com.intellij.openapi.util.Key /** * Capturing adapter that removes ANSI escape codes from the output */ class AnsiAwareCapturingProcessAdapter : ProcessAdapter(), AnsiEscapeDecoder.ColoredTextAcceptor { val output = Proce...
require 'utility/logging' require 'utility/storage' module Utility module Main include Logging include Storage #Print method list. def help self.methods end #Read STDIN, or ignore it if program is not being piped to. def get_piped_data STDIN.isatty ? nil : STDIN.read end #Send me an a...
/* * 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 ...
namespace EDXLNet.Models { public enum StatusKindDefaultValues { Actual, Exercise, System, Test } }
xjcCommandLine += "-verbose" xjcCommandLine += "-p" xjcCommandLine += "com.sbt.generated" xjcBindings += "src/main/resources/bindings.xjb"
dado = [] geral = [] maior = menor = 0 while True: dado.append(str(input('Insira o nome: '))) dado.append(int(input('Insira o peso: '))) if len(geral) == 0: maior = menor = dado[1] else: if dado[1] > maior: maior = dado[1] if dado[1] < menor: menor = dado[...
var mongoose = require('mongoose'); module.exports.loadCommentsSchema = function () { var commentSchema = new mongoose.Schema({ line: Number, votes: Number, text: String, createdOn: Date }); var Comment = mongoose.model('comments', commentSchema); //var exampleComment ...
//Copyright (C) 2013 Potix Corporation. All Rights Reserved. //History: Fri, Aug 09, 2013 12:12:22 PM // Author: tomyeh library ripple_plugin; import "dart:async" show Future; import "package:logging/logging.dart"; import "package:rikulo_commons/logging.dart"; import "ripple.dart" show RippleConnect; /** The authent...
{-# LANGUAGE FlexibleContexts #-} module Day.Day17 where import Control.Lens import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Maybe (mapMaybe) import Linear parseAsciiMap :: (Char -> Maybe a) -> String -> Map (V2 Int) a parseAsciiMap f = ifoldMapOf (asciiGrid <. folding f) Map.s...
--- chapter: Rebase layout: slide title: '' tags: ['rebase'] categories: ['slidecontent'] --- git rebase <branch> {% include hydeslides/notes-open.html %} __Retrieve upstream changes__, __relocate__ your local changes to the end git pull --rebase The same as git checkout master git rebase origin/master g...
module.exports.load = function (mod) { mod.controller('ClientIndexController', ClientIndexController); }; /** @ngInject */ function ClientIndexController() { }
d = {'a': 10, 'b': 1, 'c': 22, 'e': 25, 'd': 2} t = sorted(d.items()) for k, v in sorted(d.items()): print(k, v) d = {'a': 10, 'b': 1, 'c': 22, 'e': 25, 'd': 2} tmp = list() for k, v in d.items(): tmp.append((v, k)) print(tmp) tmp = sorted(tmp, reverse=True) print(tmp) handle = open('mbox-short.txt') counts...
#!/bin/bash set -x polycubectl fw del polycubectl firewall add fw polycubectl firewall fw chain INGRESS set default=DROP polycubectl firewall fw chain EGRESS set default=DROP polycubectl attach fw br:port1 echo "Firewall reconfigured"
// Copyright 2015-2016 Google Inc. All Rights Reserved. // Licensed under the Apache License Version 2.0. using Google.Apis.SQLAdmin.v1beta4; using Google.Apis.SQLAdmin.v1beta4.Data; using System.Management.Automation; using Google.PowerShell.Common; using System.Collections.Generic; namespace Google.PowerShell.Sql ...
#### Outline - Static Site Generators & Progressive Web Applications - Brief background on Gatsby - Benefits of using Gatsby - Demo
use std::fmt::{self, Debug, Formatter}; use std::mem::drop; use std::mem::forget; use std::mem::ManuallyDrop; use crate::support::CxxVTable; use crate::support::FieldOffset; use crate::support::Opaque; use crate::support::RustVTable; use crate::support::UniqueRef; // class Task { // public: // virtual ~Task() = de...
import { AppointmentTypes } from '@packages/communication'; import { AppContext } from '@packages/koa-kafka'; import { AppointmentsService } from '@root/services'; export async function appointmentDeletedHandler(ctx: AppContext): Promise<void> { const event: AppointmentTypes.AppointmentDeletedEvent = ctx.data; c...
<?php namespace App\Services\Contracts; interface WebshopServiceInterface { /** * Returns information about the shop like the status, domain, email etc. * * @return array */ public function shop(); /** * Installs the external services and webhooks. * * @return bool ...
package com.xresch.cfw.pipeline; import java.util.ArrayList; import java.util.Arrays; import java.util.concurrent.CountDownLatch; import java.util.concurrent.LinkedBlockingQueue; import java.util.logging.Logger; import com.xresch.cfw.features.analytics.TaskCPUSampling; import com.xresch.cfw.logging.CFWLog; public cl...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.Events; public interface IDamageable<T> { UnityEvent TookDamage { get; } bool isInvincible { get; } bool TakeDamage(T damageToTake, bool triggerInvin); }
import h5py import numpy as np from PIL import Image def rotate_image(image): return image.rotate(-90, expand=True) class LabeledDataset: """Python interface for the labeled subset of the NYU dataset. To save memory, call the `close()` method of this class to close the dataset file once you're done u...
package pl.edu.agh.mobilecodereviewer.dto; import java.util.Date; /** * Class represent data returned from gerrit instance * about information of comment */ public class CommentInfoDTO { /** * Comment Identifier */ private String id; /** * Line of source code */ private int lin...
package tfr.korge.jam.roguymaze.renderer import com.soywiz.klogger.Logger import com.soywiz.korge.input.onClick import com.soywiz.korge.input.onOut import com.soywiz.korge.input.onOver import com.soywiz.korge.view.* import com.soywiz.korim.bitmap.BmpSlice import com.soywiz.korinject.AsyncInjector import com.soywiz.kor...
package util; import entity.user.Gender; import javax.persistence.AttributeConverter; import javax.persistence.Converter; /** * Created by guilherme on 12/02/16. */ @Converter public class GenderConverter implements AttributeConverter<Gender, String> { @Override public String convertToDatabaseColumn(Gende...
dia = float ( input (' Digite dia: ')) mes = float ( input (' Digite mes: ')) ano = float ( input (' Digite ano: ')) if ( mes <= 12 ) and ( dia <= 30 ): print ('Data válida !') else: print ('Data inválida ! ')
# Changelog ## [v0.1.3](https://github.com/shwilliam/gatsby-source-copy/commit/1a188db) - 23-07-2020 * reword by William Lindvall (<shwilliam@hey.com>) * add archieml parser dep by William Lindvall (<shwilliam@hey.com>) * note overlap with transformer plugin responsibilities by William Lindvall (<shwilliam@hey.com>) ...
import 'dart:async'; ///定时器工具类 /// ///another Fairy ///定时器回调 typedef void OnTimerCallback(int milliseconds); class TimerUtil { Timer? _timer; ///定时器每隔多久运行的时间,单位毫秒,默认1000毫秒(1秒) int duration; ///倒计时总时间 单位毫秒 int totalTime = 0; ///定时器回调 OnTimerCallback? callback; TimerUtil({ this.duration = Durat...
<?php namespace Cycle\Form; use Base\Form\FormBase; use Doctrine\Common\Collections\Criteria; use Doctrine\ORM\EntityManager; class Cycle extends FormBase{ public function __construct(EntityManager $objectManager) { parent::__construct('cycle', $objectManager); $this->setAttribute('enctype', 'mul...
<?php namespace Sonar200\Template\Collection; use Sonar200\Collection\CollectionSingleton; /** * Class StyleCollection * * @package Core\Base\Template * * @method Style|false next() * @method Style|false current() */ class StyleCollection extends CollectionSingleton { /** * @param mixed $value ...
using System.Collections.Generic; using System.Linq; using System.ServiceModel; using Microsoft.AspNet.SignalR; using PlayMe.Common.Model; using PlayMe.Web.Hubs; namespace PlayMe.Web.Services { [ServiceBehavior(AddressFilterMode = AddressFilterMode.Any)] public class SpotifyCallbackService : ISpotifyCallbackS...
const { sortMenuItems } = require('../src/menu-sort-helpers'); describe('contextMenu', () => { describe('dedupes separators', () => { it('preserves existing submenus', () => { const items = [{ submenu: [] }]; expect(sortMenuItems(items)).toEqual(items); }); }); describe('dedupes separators',...
package pro.devonics.push import android.annotation.SuppressLint import android.content.Context class AppContextKeeper { companion object { @SuppressLint("StaticFieldLeak") private lateinit var mContext: Context fun setContext(appContext: Context) { mContext = appContext ...
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
# coding: utf-8 class ONIX::AgentIdentifier < ONIX::Element xml_name "AgentIdentifier" onix_code_from_list :agent_id_type, "AgentIDType", :list => 92 end
package helpers // Number - type Number interface { ~int64 | ~float64 | ~int | ~float32 } // Max - func Max[T Number](a, b T) T { if a > b { return a } return b } // Min - func Min[T Number](a, b T) T { if a > b { return b } return a } // IsInt64PointersEqual - func IsInt64PointersEqual(a, b *int64) bool...
package com.gcrj.web.servlet import com.gcrj.web.bean.CheckUpdateBean import com.gcrj.web.bean.ResponseBean import com.gcrj.web.dao.CheckUpdateDao import com.gcrj.web.util.output import javax.servlet.ServletException import javax.servlet.annotation.WebServlet import javax.servlet.http.HttpServlet import javax.servlet....
require 'spec_helper' module Pageflow describe PageTypes do describe '#register' do let(:page_type_class_without_export_version) do Class.new(PageType) do def initialize(options) @name = options.fetch(:name) end attr_reader :name end end ...
@component('mail::message') # Hello, Some info here <br> <br> <br> <b>Email: </b> {{$anonymous->email}}<br> <hr> <b>Ethereum address: </b> {{$anonymous->ethereum_address}}<br> <hr> <b>Privacy: </b> {{$anonymous->privacy}}<br> <hr> <b>Type: </b> {{$anonymous->type}}<br> <hr> <b>Number: </b> {{$anonymous->number}}<br> ...
import { get, kebabCase, round } from 'lodash'; import { createAsyncActionType } from '../../client/helpers/stateHelpers'; import { getAuthorsChildWobjects, getCurrentHivePrice, searchObjects, } from '../../waivioApi/ApiClient'; import { getAuthenticatedUserName } from '../authStore/authSelectors'; import { getL...
package com.mars.aihuishou.flutter.mvp.presenter import com.google.gson.Gson import com.mars.aihuishou.flutter.base.BasePresenter import com.mars.aihuishou.flutter.http.DataTransformer import com.mars.aihuishou.flutter.mvp.model.HomeModel import com.mars.aihuishou.flutter.mvp.view.HomeView //负责View和Model之间的交互 即HomeVi...
unit HashStrings; { The unit is THashedStringList developed by Dmitry Boyarintsev 9/22/2012 * added fast key adjustement TStringHas.ModifyKeys * added changes handling for put, delete and insert functionality in THashedStringList } interface {$ifdef fpc}{$mode delphi}{$h+}{$endif} uses SysUtil...
require 'neo4j/core/cypher_session/adaptors' require 'neo4j/core/cypher_session/adaptors/has_uri' require 'neo4j/core/cypher_session/responses/http' require 'uri' # TODO: Work with `Query` objects module Neo4j module Core class CypherSession module Adaptors class HTTP < Base attr_reader :...
# @tigojs/dev-server This is a local dev server for tigo lambda, providing the same functions as the tigo server. ## Version Matches The current behavior of the local development server is the same as `@tigojs/faas@0.6.1`. Here's a version matches table: | Dev Server Version | tigo FaaS Module Version | | --------...
; RUN: llc -march=hexagon -O2 < %s ; REQUIRES: asserts target triple = "hexagon-unknown--elf" ; Function Attrs: nounwind define void @f0() #0 { b0: br i1 undef, label %b1, label %b4, !prof !3 b1: ; preds = %b3, %b0 br label %b2 b2: ...
package org.laeq; import griffon.core.artifact.GriffonModel; import griffon.metadata.ArtifactProviderFor; import javafx.beans.property.SimpleIntegerProperty; import javafx.beans.property.SimpleStringProperty; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import org.codehaus.griffon...
import { Entity, Column, PrimaryGeneratedColumn, OneToMany } from "typeorm"; import { Base } from "./Base"; import { Answer } from "./Answer.entity"; @Entity() export class Question { @PrimaryGeneratedColumn() id: number; @Column(type => Base) base: Base; @Column("text") text: string; @Column() typ...
package com.example.keepalivedemo import android.content.* import android.content.res.Configuration import android.os.Build import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.os.Handler import android.util.Log import com.example.keepalivedemo.daemon.DaemonManager import com.example...
#!/bin/bash echo -e "\e[32mInitializing mariadb..." docker stop xrengine_db docker rm xrengine_db docker-compose up
-- License: BSD3 (see LICENSE) -- Author: Dino Morelli <dino@ui3.info> {- | Data types for working with the metadata of epub documents This contains the manifest information from an epub document. -} module Codec.Epub.Data.Manifest ( Manifest (..) , ManifestItem (..) ) where import Codec.Epub.Data.Com...
%include "macros/patch.inc" %include "macros/datatypes.inc" %include "TiberianSun.inc" gbool AutoDeployMCV, false ; Makes starting units (the MCV on some scenarios) automatically deploy on game start hack 0x005DEE42 mov edx, dword[EBP] cmp byte[AutoDeployMCV], 1 jnz .out push 15 jmp 0x005DEE47 .o...
class RemoveTaskStatusAnnotations < ActiveRecord::Migration def change Rails.cache.write('check:migrate:remove_task_status_annotations', ProjectMedia.last&.id) end end
package com.wojdor.hearthstonecards.data.database import androidx.lifecycle.LiveData import androidx.room.Dao import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query import com.wojdor.hearthstonecards.domain.Card @Dao interface CardDao { @Query("SELECT * FROM card") fu...
use crate::{Name, Ty}; use ast::{AstNode, AstToken}; use interner::{Interner, Key}; use rustc_hash::{FxHashMap, FxHashSet}; use std::collections::hash_map::Entry; use syntax::SyntaxTree; use text_size::TextRange; #[derive(Clone)] pub struct Index { pub(crate) definitions: FxHashMap<Name, Definition>, pub(crate...
part of game; class EntityShadowComponent extends EntityComponent { bool cast, receive; EntityShadowComponent(bool this.cast, bool this.receive); void init(){ entity.sceneAttachment["castShadow"] = cast; entity.sceneAttachment["receiveShadow"] = receive; entity.advanceComponentIn...
import { Pharmacy } from '../../../../src/domain/entities/pharmacy/Pharmacy'; import { DeletePharmacyUseCase } from '../../../../src/domain/usecases/pharmacies/DeletePharmacyUseCase'; import { ApplicationError } from '../../../../src/shared/errors/ApplicationError'; import { fakePharmacyData } from '../../../mocks/enti...
using System; namespace ChannelEngineAssessment.Core.Infrastructure.Exceptions { public class InvalidHttpStatusCodeException : Exception { public InvalidHttpStatusCodeException(string message) : base(message) { } } }
{-# LANGUAGE ForeignFunctionInterface #-} import Foreign import Test.QuickCheck import Test.QuickCheck.Monadic import System.Process data Cmd = L Int Int | C Int Int | Q Int Int | X deriving (Show, Eq) data TestCase = TestCase { forestSize :: Int , command...
module Main where import HGE2D.Types import HGE2D.Datas import HGE2D.Colors import HGE2D.Shapes import HGE2D.Engine {- Very basic example showing a "Hello World" -} -------------------------------------------------------------------------------- --in here we are going to store all data of the game data GameState = G...