text
stringlengths
27
775k
class RemoveSystemFromSpreeOrderRules < ActiveRecord::Migration def self.up remove_column :spree_order_rules, :system end def self.down add_column :spree_order_rules, :system, :boolean end end
package humanlog import ( "bufio" "bytes" "io" ) var ( eol = [...]byte{'\n'} ) // Scanner reads logfmt'd lines from src and prettify them onto dst. // If the lines aren't logfmt, it will simply write them out with no // prettification. func Scanner(src io.Reader, dst io.Writer, opts *HandlerOptions) error { in ...
#!/usr/bin/perl # # Copyright (c) 2012, Vitaliy Krutko, asmxforce@gmail.com # # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software # without restriction, including without limitation the rights ...
package com.seanshubin.kotlin.tryme.domain.calculator.arithmetic import com.seanshubin.kotlin.tryme.domain.cursor.RowColCursor import com.seanshubin.kotlin.tryme.domain.parser.* object CalculatorTokenMatchers { private val digit = OneOfChar("digit", "0123456789") private val number = OneOrMore( "numbe...
using System; using System.Globalization; using System.Windows.Data; using System.Windows.Media; using Captura.Base.Services; using Captura.Core.Models; namespace Captura.ValueConverters { public class StateToRecordButtonGeometryConverter : OneWayConverter { public override object Convert(object value,...
CREATE PROCEDURE [auth].[auth_Roles_GetByUserSystemId] @userSystemId bigint AS select r.[Id], r.[Name], r.[Title], r.[IsHidden], r.[Type], r.[CreatedDate], r.[CreatedByUserId], r.[CreatedByClientId], r.[UpdatedByUserId], r.[UpdatedByClientId], r.[UpdatedDate] from [Roles] r, [ApiUserRoles] acr, [ApiUsers] au ...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" @interface VNGMoatOnOff : NSObject { } + (_Bool)isDevelopmentEnvironment; // IMP=0x0000000100b142d8 + (void)onResurrectionDo:(CDUnknownBlockType)arg1 withQueu...
import React, { Component } from "react"; import { CSSTransition } from "react-transition-group"; import styles from "./App.module.css"; import ContactForm from "./contactForm/ContactForm"; import ContactList from "./contactList/ContactList"; import Filter from "./filter/Filter"; import popTransition from "./transition...
import json import numpy as np import matplotlib.pyplot as plt from baselines.common import plot_util as pu exp_id='payload_empty_her100_demo' results = pu.load_results('../policies/{}'.format(exp_id))[0] epoch = results.progress["epoch"] trainscs = results.progress["train/success_rate"] testscs = results.progress["te...
/* * Copyright 2014-2016 CyberVision, Inc. * * 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 o...
/* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2021 minecraft-dev * * MIT License */ package com.demonwav.mcdev.platform.forge.inspections.sideonly data class SideAnnotation( val annotationName: String, val enumName: String, val clientValue: String, val serverVa...
require 'rvm/capistrano/base' require 'rvm/capistrano/helpers/with_rvm_group' rvm_with_capistrano do namespace :rvm do desc "Show rvm info" rvm_task :info do run_rvm("info") end desc "List rvm rubies" rvm_task :list do run_rvm("list") end desc "Show info and list rubies" ...
module Game (runGame) where import Control.Monad.Trans.State import Data.List import System.Random.Shuffle (shuffleM) type Card = Int type Score = Int type Hand = [Card] type Stock = [Card] type Player = String -- 山札から指定した枚数のカードを引く -- 状態は山札、返り値は手札 drawCards :: Int -> State Stock Hand drawCards n = do deck <- get...
/* * Copyright (C) 2017 Fluence Labs Limited * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This ...
inherit "obj/monster"; reset(arg) { ::reset(arg); set_mage(); set_level(20); set_name("wraith"); set_short("A wraith of a dead citizen of Jericho"); set_long("This wraith hovers 2 feet in the air.\n"); set_al(0); set_spell_chance(100, "exs brr blt"); set_aggressive(0); set_undead(1); ...
# actualizer ## cli ### list *Options* - `--start` :: `datetime` - `--end` :: `datetime` - `--username` :: `str` By default, lists all log entries in the past week ### get-nutrition-info *Options* - `--day` :: `date` Returns ordered dict mapping `datetime` of entry to `calories` and `food` ### log *Options* -...
require('rspec') require('palindrome') require('pry') describe('String#palindrome?') do it('identifies a word that is not a palindrome') do expect("gherkin".palindrome?()).to(eq(false)) end it('identifies a word is a palindrome') do expect("racecar".palindrome?()).to(eq(true)) end end
import React from 'react'; import classNames from 'classnames'; import { Link } from 'react-router-dom'; import { Icon } from 'utils'; import './skills.css'; const elements = { phy: "Physical", col: "Cold", fir: "Fire", psn: "Poison", lit: "Lightning", hol: "Holy", arc: "Arcane", }; const SkillView = ...
class BazaModels::Autoloader def initialize(args) @models = args.fetch(:models) @model_class = @models.first.class @autoloads = args.fetch(:autoloads) @db = args.fetch(:db) @debug = args[:debug] debug "Autoloading #{@autoloads} on #{@model_class.name} with ID's: #{@models.map(&:id)}" if @debu...
#include "unittest.h" #include "boost/asio.hpp" #include "OpcUaStackCore/BuildInTypes/BuildInTypes.h" #include "OpcUaStackCore/BuildInTypes/OpcUaIdentifier.h" #include "OpcUaStackCore/SecureChannel/MessageHeader.h" #include "OpcUaStackCore/SecureChannel/SequenceHeader.h" #include "OpcUaStackCore/ServiceSet/Extens...
{# FETCH FUNCTIONS depending upon SOURCE TYPE and TARGET TYPE IN CAST #} SELECT proname || '(' || pg_catalog.pg_get_function_identity_arguments(p.oid) || ')' as proname, nspname, proargtypes FROM pg_proc p JOIN pg_namespace n ON n.oid=p.pronamespace WHERE proargtypes[0] = (SELECT t.oid FROM pg_type...
package com.temp.calculator.the.game.calc; public abstract class AbstractCalculate implements Calculate { protected Integer input; protected Integer input2; protected String input3; protected String input4; AbstractCalculate() {} protected AbstractCalculate(int input) { this....
from werkzeug.exceptions import NotFound from flask import jsonify, request from flask.ext.classy import FlaskView from blog.lib.database import db class View(FlaskView): def json(self, obj, status=200): return jsonify(data=obj), status class RestView(View): Model = None def index(self): ...
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
<?php /** * This file is part of the macos-build package. * * Copyright (c) 2019-2021, Thomas Mueller <mimmi20@live.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types = 1); namespace MacosBuildTest; use Mac...
import 'package:flutter/widgets.dart'; extension ColorFromHex on String { Color fromHex(){ final buffer = StringBuffer(); if (length == 6 || length == 7) buffer.write('ff'); buffer.write(replaceFirst('#', '')); return Color(int.parse(buffer.toString(), radix: 16)); } }
package de.innfactory.play.controller abstract class ErrorResult() extends ResultStatus { def message: String def additionalInfoToLog: Option[String] def additionalInfoErrorCode: Option[String] def statusCode: Int }
package cache // Cache that looks in the first cache first etc. // Images are stored in every cache type HybridCache []Cacher type Cacher interface { GetBlob(string) ([]byte, bool) AddBlob(string, []byte) } func (caches HybridCache) GetBlob(string string) ([]byte, bool) { for i, cache := range caches { if blob,...
package me.tiagomota.getflickred.data.remote; import me.tiagomota.getflickred.data.model.PhotoInfo; import me.tiagomota.getflickred.data.model.PhotoSize; import me.tiagomota.getflickred.data.model.PhotosList; import me.tiagomota.getflickred.data.model.User; import retrofit2.http.GET; import retrofit2.http.Query; impo...
// // SslClient.cs // // Copyright (C) 2019 Ultz Limited // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. // #region using System.IO; using System.Net; using System.Net.Security; using System.Security.Authentication; using System.Securit...
#!/bin/sh cd `dirname $0` while true do ./lora_pkt_fwd killall lora_pkt_fwd 2> /dev/null done exit 0
package ru.nekit.android.qls.lockScreen.mediator import android.content.Context import android.view.View import android.view.ViewGroup import android.widget.Button import android.widget.TextView import io.reactivex.Completable import ru.nekit.android.qls.R import ru.nekit.android.qls.domain.useCases.TransitionChoreogr...
#!/usr/bin/env bash # Copyright (c) 2015 Samsung Electronics Co., Ltd. # # 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 require...
export OS_USERNAME=admin export OS_AUTH_URL=http://openstack-controller.avi.local:5000/v3 export OS_PASSWORD=avi123 export OS_PROJECT_DOMAIN_NAME=default export OS_USER_DOMAIN_NAME=default export OS_PROJECT_NAME=admin export OS_IDENTITY_API_VERSION=3 export OS_IMAGE_API_VERSION=2
[CmdletBinding()] Param( [switch]$NoInit, [Parameter(Position=0,Mandatory=$false,ValueFromRemainingArguments=$true)] [string[]]$BuildArguments ) Set-StrictMode -Version 2.0; $ErrorActionPreference = "Stop"; $ConfirmPreference = "None"; trap { $host.SetShouldExit(1) } $PSScriptRoot = Split-Path $MyInvocatio...
--- layout: post title: MRI results categories: comics then-this-happened --- ![MRI results](/public/images/may-31-2017-comic.png) The surgery day is getting closer.
#!/usr/bin/env bash #==============================================================================# # FORTE # A script to run Fortran code/snippets dynamically # #------------------------------------------------------------------------------# # USAGE # There are 4 ways to use this script: # # - From a pipe (Useful...
require 'spec_helper' require 'embork/sprockets/helpers' describe 'Embork::Sprockets::helpers' do let(:context_class) do class Context include Embork::Sprockets::Helpers extend Embork::Sprockets::Helpers::ClassMethods end Context.new end context '#javascript_include_tag' do it 'buil...
-- lotto data analysis ---------------------- -- create 'lotto_master' table CREATE TABLE lotto_master ( seq_no NUMBER NOT NULL, -- 로또회차 draw_date DATE, -- 추첨일 num1 NUMBER, num2 NUMBER, num3 NUMBER, num4 NUMBER, num5 NUMBER, num6 NUMBER, bonus NUMBER ); -- create 'lotto_detail' table CREATE TABLE lotto_detail ( seq_...
import FS from 'fs'; import YAML from 'js-yaml'; import geoJSONUtils from 'geojson-utils'; import { osmBaseLayerQuery, osmFeaturesQuery } from './utils/osm.js'; const useCache = process.argv.indexOf('--cache') !== -1; const noShow = process.argv.indexOf('--noshow') !== -1; const updateLocation = process.argv.indexOf('...
<?php namespace Abe\EmailMTGBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * email_info * * @ORM\Table("email_info") * @ORM\Entity(repositoryClass="Abe\EmailMTGBundle\Entity\emailInfoRepository") */ class emailInfo { /** * @var integer * * @ORM\Column(name="id", type="integer") * @O...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # MIT License # Copyright (c) 2020 Stɑrry Shivɑm // This file is part of AcuteBot # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE A...
/* * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.fir.declarations.impl import org.jetbrains.kotlin.fir.FirSourceElement import or...
import { styled } from '@linaria/react'; interface ContentGridColumnProps extends React.HTMLAttributes<HTMLDivElement> { columns: number; gutter: number; } export const ContentGridColumn = styled.div<ContentGridColumnProps>` padding-left: ${(props) => props.gutter / 2}px; padding-right: ${(props) => props.gu...
import os import re import subprocess efiles = [] etext = [] def read_lines(filename): with open(filename) as f: return [s.rstrip("\n") for s in f] def write_lines(filename, lines): with open(filename, "w") as f: for s in lines: f.write(s + "\n") def emit(f0, e): print(f0)...
{-# LANGUAGE OverloadedStrings #-} import Network.HTTP.Types (status200) import Network.Wai (Application, responseFile) import Network.Wai.Handler.Warp (run) import Network.Wai.Middleware.Gzip (def, gzip) main :: IO () main = run 8080 $ gzip def app ...
var _ = require('lodash') var lt = require('long-timeout')// makes it possible to have a timeout longer than 24.8 days (2^31-1 milliseconds) var cuid = require('cuid') var schedule = require('node-schedule') module.exports = function (conf) { var currTimeout var cronById = {} var mostRecentUpdateId var clearC...
/* Copyright (c) 2014, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope...
package com.example.imeeting.modules.homepage.presenter; import com.example.imeeting.base.presenter.BasePresenter; import com.example.imeeting.modules.homepage.contract.Contract; import javax.inject.Inject; /** * description: * created by wangbin on 2019/6/3 */ public class HomePagePresenter extends BasePresenter...
package dev.vaibhav.quizzify.data.models.local import androidx.recyclerview.widget.DiffUtil data class AvatarItem( val avatar: String = "", val isSelected: Boolean = false ) { companion object { val diff = object : DiffUtil.ItemCallback<AvatarItem>() { override fun areItemsTheSame(oldI...
-- 109 Number of persons with continuous observation in each year -- Note: using temp table instead of nested query because this gives vastly improved performance in Oracle WITH op_date_range AS (select min(observation_period_start_date) op_start_date, max(observatio...
{-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE PartialTypeSignatures #-} module NSHaskell where import Prelude hiding (lookup) import Control.Applicative import Control.Monad.State.Strict import Control.Monad.Trans.Maybe import Control.Monad.IO.Class import Bindings.Objc import F...
class Api::V1::TeamsController < Api::V1::BaseController def index respond_with Team.all end def create respond_with :api, :v1, Team.create(team_params) end def destroy respond_with Team.destroy(params[:id]) end def update team = Team.find(params["id"]) team.update_attributes(team_params) respond...
package koma.matrix.jblas import koma.* import koma.matrix.common.* import koma.matrix.jblas.backend.* import org.jblas.DoubleMatrix class JBlasMatrixFactory : DoubleFactoryBase<JBlasMatrix>() { override fun zeros(rows: Int, cols: Int) = JBlasMatrix(koma.matrix.jblas.backend.zeros(rows, cols)) override fun cr...
export { default as AlignCenterIcon } from './AlignCenterIcon'; export { default as AlignLeftIcon } from './AlignLeftIcon'; export { default as AlignRightIcon } from './AlignRightIcon'; export { default as BoldIcon } from './BoldIcon'; export { default as CloseIcon } from './CloseIcon'; export { default as CodeIco...
require 'rails_helper' describe Work do describe "get_datetime_from_input" do it 'year' do date = "2015" result = Work.get_datetime_from_input(date) expect(result).to eq("2015-01-01T00:00:00Z") end it 'year month' do date = "2015-10" result = Work.get_datetime_from_input(da...
#include "Stack.h" #include <stdlib.h> struct StackElement { int value; struct StackElement* next; }; struct Stack { struct StackElement* head; }; struct Stack* createStack(void) { struct Stack* newStack = malloc(sizeof(struct Stack)); if (newStack != NULL) { newStack->head = NULL; } return newStack; } b...
using socks5.Controller; using socks5.Model; using System; using System.Collections.Generic; using System.Net; using System.Net.NetworkInformation; using System.Net.Sockets; using System.Runtime.CompilerServices; using System.Timers; internal class d { public interface b { bool a(byte[] A_0, int A_1,...
// Copyright (c) 2021 Mantano. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:mno_shared/publication.dart'; extension PublicationLists on Publication { /// Provides navigation to positions in the Publication content that c...
/** * 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...
# DC prediction [TOC] <!--* # Document freshness: For more information, see go/fresh-source. freshness: { owner: 'janwas' reviewed: '2019-02-22' } *--> ## Background After the DCT integral transform, we wish to reduce the encoded size of DC coefficients (or original pixels if the transform is omitted). pik/dc_predi...
#!/usr/bin/env bash # ----------------------------------------------------------------------------------------------------- # Copyright (c) 2006-2022, Knut Reinert & Freie Universität Berlin # Copyright (c) 2016-2022, Knut Reinert & MPI für molekulare Genetik # This file may be used, modified and/or redistributed under...
import { default as RadioCore } from "./Radio"; export { RadioCore };
package com.github.joschi.nosqlunit.elasticsearch.http; import com.github.joschi.nosqlunit.elasticsearch.http.parser.DataReader; import java.io.InputStream; import java.util.Map; public class DefaultElasticsearchInsertionStrategy implements ElasticsearchInsertionStrategy { private final boolean createIndices; ...
module CortexReaver class PageparentsSchema < Sequel::Migration def down alter_table :pages do # Can't undo this cleanly yet. Fracking mysql. :/ # drop_index :page_id # drop_column :page_id end end def up alter_table :pages do add_foreign_key :page_id, :pages...
# selenium-testing Selenium WebDriver with C# for Beginners (Udemy) # Page Object Model (POM) | Design Pattern https://medium.com/tech-tajawal/page-object-model-pom-design-pattern-f9588630800b
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.Linq; using System.Threading.Tasks; using Accord.Imaging; using Starship.Imaging.Extensions; using Starship.Imaging.Wrappers; namespace Starship.Imaging.Detection { public class FastImageMatcher { ...
package com.prembros.stateawareepoxycontroller import com.prembros.swapi.sample_components.* import com.prembros.swapi.sample_components.ui.SwapiMainActivity /** * Prem's creation, on 31/12/20 */ class SwecMainActivity : SwapiMainActivity() { override fun onFilmsClick() { SwecListActivity.launch(this, LIST_F...
# Parasitologia-PI6 Projeto voltado para doenças parasitarias Projeto PHP BDPI arquivo do banco de dados exportado.
<?php use GuzzleHttp\Client; use function GuzzleHttp\json_decode; class Heatmap_model extends CI_Model { private $_client; public function __construct() { $this->_client = new Client([ 'base_uri' => 'http://hadds.id/rest/index.php/api/heatmap/' ]); } public fun...
module I2P; module BOB ## # **I2P Basic Open Bridge (BOB) client.** # # @example Connecting to the I2P BOB bridge (1) # bob = I2P::BOB::Client.new(:port => 2827) # # @example Connecting to the I2P BOB bridge (2) # I2P::BOB::Client.open(:port => 2827) do |bob| # ... # end # # @example G...
using System; using System.Globalization; using System.Windows.Data; namespace Carnation { internal class ContrastRatioToRatingConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var contrast = (double)value; ...
package de.orolle.bigsense.server.ssh; import org.vertx.java.core.Handler; import org.vertx.java.core.eventbus.Message; import org.vertx.java.core.json.JsonObject; import org.vertx.java.platform.Verticle; /** * Makes synchronous SSHClient functionality available in asynchronous vert.x. * * It can handle the flowi...
# frozen_string_literal: true require 'rails_helper' RSpec.describe Course::AnnouncementNotifier, type: :mailer do let!(:instance) { Instance.default } with_tenant(:instance) do describe '#new_announcement' do let(:course) { create(:course) } let!(:course_user) { create(:course_manager, course: co...
module QuestionAttributeHelper def stimulus_html_attributes(question) attribs = [ numeric_question_html_attributes(question), conditional_html_attributes(question), ] merge_controller_attributes(*attribs) end private def numeric_question_html_attributes(question) return {} if questio...
import React from 'react'; import Paragraph from '../paragraph.jsx'; describe('Paragraph component', () => { it('should render with default props', () => { expect( render(<Paragraph />) ).toMatchSnapshot(); }); it('should render with content when passed', () => { expec...
use crate::types::Datatype; use std::fmt::{self, Debug, Display, Formatter}; use std::num::ParseIntError; use std::str::FromStr; use thiserror::Error; /// An error encountered while parsing the value or format of a property. #[derive(Clone, Debug, Error, Eq, PartialEq)] pub enum ValueError { /// The value of the p...
package com.losers.news.data.database.repository.options import com.losers.news.data.network.News import io.reactivex.Observable import io.reactivex.Single interface NewsRepo { fun isOptionsRepoEmpty(): Observable<Boolean> fun insertOptions(options: News): Observable<Boolean> fun loadOptions(questionI...
# sigctx Porting of os/signal#NotifyContext https://golang.org/issue/37255 https://go-review.googlesource.com/c/go/+/219640/
#!env perl use strict; use warnings FATAL => 'all'; use MarpaX::Languages::C::AST; use Log::Log4perl qw/:easy/; use Log::Any::Adapter; use Log::Any qw/$log/; use Data::Dumper; # # Init log # our $defaultLog4perlConf = <<DEFAULT_LOG4PERL_CONF; log4perl.rootLogger = INFO, Screen log4perl.appender.Screen ...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; namespace GarageManager.Domain { public class ServiceIntervention : BaseEntity { public ServiceIntervention() { this.Id = Guid.NewGuid().ToString(); this.Par...
/* * Copyright (C) 2015 Christoph Kutza * * Please refer to the LICENSE file for license information */ using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Luz.ULib.Net { /// <summary> /// Type of the received network event. /// </summary> public enum ...
# Change Log The following is a curated list of changes in the Enact agate module, newest changes on the top. ## [1.1.0] - 2020-12-22 ### Added - `agate/Button` prop `iconOnly`, `iconPosition`, and `minWidth` - `agate/Checkbox` prop `disabled`, `indeterminate`, and `indeterminateIcon` - `agate/CheckboxItem` prop `d...
require 'test_helper' class SimpleNoteTest < Test::Unit::TestCase context SimpleNote do setup do @simplenote = SimpleNote.new end should "log in, list notes and fetch a note" do VCR.use_cassette('get_index', :record => :none) do login notes = @simplenote.get_index as...
package org.opentesting.util.exceptions; public class ConnectFailedException extends Exception { public ConnectFailedException(String message) { super(message); } }
import Head from "next/head"; import Link from "next/link"; export default function Home() { return ( <div> <Head> <title>Aave api</title> <link rel="icon" href="/favicon.ico" /> </Head> Welcome to the unofficial Aave api! <br /> Watch this space - soon there will be...
<?php /* * @copyright Leyun internet Technology(Shanghai)Co.,Ltd * @license http://www.dzzoffice.com/licenses/license.txt * @package DzzOffice * @link http://www.dzzoffice.com * @author zyx(zyx@dzz.cc) */ define('APPTYPEID', 9); define('CURSCRIPT', 'dzz'); define('DZZSCRIPT', 'index.php');...
require "rails_helper" RSpec.feature "Searching cases", :with_elasticsearch, :with_stubbed_mailer, type: :feature do let(:user) { create :user, :activated, has_viewed_introduction: true } let(:product) do create(:product, name: "MyBrand washing machine", category: "kitchen appliances", ...
#!/usr/bin/env bash # create a docker-based development setup # generate protobuf code ./proto/hack/generate_proto || exit 1 # start a docker container with maven installed. # usage: # 1. cd /app/data-plane # 2. mvn <command-to-execute> docker run -ti --rm \ -v ~/.m2:/var/maven/.m2 \ -v "$(pwd)":/app \ --user ...
#!/bin/bash cd / && tar -xf /broker.tar.gz && rm broker.tar.gz chmod +x /broker/init.sh /bin/bash -c /broker/init.sh while getopts ":u:p:e:" opt; do case $opt in u) echo "-u was triggered, Parameter: $OPTARG" >&2 echo $OPTARG > /google_cred ;; p) echo "-p was triggered, Parameter: $...
// <copyright file="ChannelHandlerIntegration.cs" company="Datadog"> // Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License. // This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc. // </copyright> #if NETFRAME...
package com.kienht.gapo.dashboard.menu.viewmodel import androidx.lifecycle.* import com.kienht.gapo.dashboard.domain.usecase.news.FetchNewsFeedsListUseCase import com.kienht.gapo.dashboard.news_feeds.model.NewsFeedViewData import com.kienht.gapo.dashboard.news_feeds.model.mapToViewData import com.kienht.gapo.shared.qu...
/* Write a function which will replace num of bits starting from LSB (least significant bit) position with data in the regData. For example: if the regData is 100 (0x64), lsbPosition is 4, numOfBits is 4, data is 15 (0xf) then your program should return 244 (0xF4). */ #include <stdint.h> #include <stdio.h> #i...
# Codewars3-2021Q3 ## Functional Programming and HOF * Beta https://www.codewars.com/kata/uncurrying * 7 kyu https://www.codewars.com/kata/currying-functions-multiply-all-elements-in-an-array * 7 kyu https://www.codewars.com/kata/the-wheat-slash-rice-and-chessboard-problem * 7 kyu https://www.codewars.com/kata/funct...
import { IndexesOptions } from 'sequelize/types'; export const getIndexes = (indexes: readonly IndexesOptions[] = []) => { const keys: any = {}; for (const index of indexes) { keys[index.name!] = index; } return keys; };
module RSpec::RubyContentMatchers module ActiveRecord module Migration def have_remove_column(name) have_call 't.remove', ":#{name}" end def have_add_column(name, type='string') have_call "t.#{type}", ":#{name}" end alias_method :have_column, :have_add_column ...
module Svenbot # A subversion repository on the filesystem. class Repo # The directory the repository lives in. attr_reader :dir # Create a new Repo. def initialize(dir) @dir = dir end # Return a directory within the repository for use by svenbot. Defaults # to a subdirectory "sv...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Web; namespace OnlineTechnicalSupport.Models.ViewModels { public class OverViewModel { public int MissedReportCount { get; set; } public int MissedChatCount { get; set; } public...
# Minicurso introdutório de Arduino Repositório com arquivos do minicurso introdutório de Arduino feito para a Expotec do IFRN-JC 2019.2 O diretório `code` contém alguns códigos uteis durante o curso. É possível visualizar alguns circuitos dentro do diretório `assets/circuitos`.
require "health_seven/version" require 'active_support/core_ext' module HealthSeven # Your code goes here... autoload :V2_3, "health_seven/v2_3.rb" autoload :V2_3_1, "health_seven/v2_3_1.rb" autoload :V2_4, "health_seven/v2_4.rb" autoload :V2_5, "health_seven/v2_5.rb" autoload :V2_5_1, "health_seven/v2_5_1...