text
stringlengths
27
775k
package org.odk.collect.android.preferences.screens import android.content.Context import android.content.DialogInterface import android.content.Intent import android.os.Bundle import androidx.appcompat.app.AlertDialog import androidx.preference.Preference import org.odk.collect.android.R import org.odk.collect.androi...
# Istio ## Release page: https://github.com/istio/istio/releases/ ## Extract the Istio release Istio doesn't provide a helm registry and they provide the releases in a release package. Download the release you want to use, and extract it to this directory followed by the version number so the folder is in this patt...
namespace GodelTech.StoryLine.Contracts { public interface IExpectationBuilder { IExpectation Build(); } }
(ns api.emailer.sendgrid (:require [clj-http.client :as http])) (defonce ^:private sendgrid-public-api "https://api.sendgrid.com/v3/mail/send") (defn send-email [{:keys [from to subject content dynamic-template-data template-id api-key print-mode?]}] (if (and (not api-key) (not print-mode?)) (thr...
library tavern.utils; import 'package:path/path.dart' as path; const String metadataExtension = '.metadata.json'; const String templatesPath = 'web/templates/'; String getMetadataPath(String p) { var dirname = path.dirname(p); var basename = path.basenameWithoutExtension(p); var filename = basename + metadataE...
package act.app.event; import act.app.App; import act.event.ActEvent; public abstract class AppEvent extends ActEvent<App> { private int id; public AppEvent(AppEventId id, App source) { super(source); this.id = id.ordinal(); } public int id() { return id; } }
package com.arshadshah.nimaz.prayerTimeApi.internals import com.arshadshah.nimaz.prayerTimeApi.internals.Astronomical.apparentObliquityOfTheEcliptic import com.arshadshah.nimaz.prayerTimeApi.internals.Astronomical.apparentSolarLongitude import com.arshadshah.nimaz.prayerTimeApi.internals.Astronomical.ascendingLunarNod...
import Vue from 'vue' import swal from 'sweetalert2/dist/sweetalert2' Vue.prototype.$swal = swal
import glob headers = glob.glob('./fdacoefs_*.h') target = open("fdacoefs.h", "w") target.write(''' #ifndef AUDIO_PLAYER_FDACOEFS_H #define AUDIO_PLAYER_FDACOEFS_H #include "tmwtypes.h" ''') print(headers) for header in headers: with open(header, "r") as f: band = int(header.split("_")[1].split(".")[0])...
/* * Copyright 2013 newzly 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 required by applicable law or agreed to ...
using AdminLTE.Models; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using System.Security.Claims; using AdminLTE.Common.Extensions; using AdminLTE.Common; using AdminLTE.Data; namespace AdminLTE.ViewComponents { public class NoteViewComponent : ViewComponent { private readonly App...
package com.piggybank; public class Penny extends Money { public Penny(int amount){ super("Penny", amount, 0.01); } public Penny(){ super("penny", 1, 0.01); } }
package com.limpygnome.daemon.remote.service.auth; import com.limpygnome.daemon.api.Service; import com.limpygnome.daemon.common.rest.RestRequest; /** * An interface for an auth provider, which authenticates a REST handler request. */ public interface AuthTokenProviderService extends Service { /** * All i...
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2019/12/9 * Time: 14:21 */ namespace app\index\service\excel; use PhpOffice\PhpSpreadsheet\Writer\Xls; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; use PhpOffice\PhpSpreadsheet\IOFactory; class ExportDocService { // sheet 对象 protected $spreads...
import 'dart:io'; import 'dart:ui'; import 'package:Okuna/widgets/theming/smart_text.dart'; import 'package:dcache/dcache.dart'; import 'package:flutter/material.dart'; import 'package:http_parser/http_parser.dart'; import 'package:mime/mime.dart'; /// Temporal until https://github.com/dart-lang/mime/issues/13 hits i...
shared_examples "Add Non Person Things: Test Menu Management" do it "Test Menu Management" do end it "Must be logged out" do end it "Must login as site admin" do vivo_login_from_home_page_as("testAdmin@mydomain.edu", "Password") end it "Navigate to Menu Management" do $browser.find_element(:lin...
import { ethers } from 'ethers' /** * Buy a NFT with BNB * @param contract * @param collectionAddress * @param tokenId * @returns transaction hash, or null */ export const buyTokenUsingBNB = async ( contract: ethers.Contract, collectionAddress: string, tokenId: number, ): Promise<string> => { try { c...
@file:JvmName("RandomUtility") package net.kibotu.kotlin.presentation fun foo() {}
/*==================================================================== 出力ルーチン S.Kurohashi 91. 6.25 S.Kurohashi 93. 5.31 $Id$ ====================================================================*/ #include "knp.h...
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE RankNTypes #-} module General.TestAPI where import Test.Tasty.HUnit (assertFailure) import Control.Monad ((>=>)) import ...
-- copied from https://github.com/QuickChick/Luck/blob/master/luck/examples-template/C.hs -- MIT License -- -- Copyright (c) 2016 QuickChick -- -- 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 Sof...
# # Cookbook Name:: pdftk # Recipe:: default package "pdftk" do action :install end
package book import ( "context" "time" "github.com/calmato/gran-book/api/server/book/pkg/database" ) // Repository - Bookリポジトリ type Repository interface { List(ctx context.Context, q *database.ListQuery) (Books, error) ListBookshelf(ctx context.Context, q *database.ListQuery) (Bookshelves, error) ListReview(ct...
#pragma once #include <cstdint> #include <string> #include <vector> namespace beluga { class tls_extension { public: using extension_type = std::uint16_t; enum { SERVER_NAME = 0x0000, ELLIPTIC_CURVES = 0x000a, EC_POINT_FORMATS = 0x000b, RENEGOTIATION_INFO = 0xff01, UNKNOWN, ...
/* Copyright (c) 2021 DeflatedPickle under the MIT license */ package com.deflatedpickle.mmf.util import com.deflatedpickle.bellatrix.Vector4 import com.deflatedpickle.mmf.util.serializer.VectorDoubleSerializer import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.SerialName import ko...
package dev.vini2003.hammer.gui.api.common.util import dev.vini2003.hammer.core.api.client.util.InstanceUtils import dev.vini2003.hammer.gui.api.client.util.extension.* import net.minecraft.client.gui.hud.InGameHud import net.minecraft.entity.player.PlayerEntity object InGameHudUtils { val INSTANCE: InGameHud? get...
{-- 9. Pack consecutive duplicates of list elements into sublists. If a list contains repeated elements they should be placed in separate sublists. --} module Exercises.Lists1.Exercise9 ( pack ) where import Data.List(group) pack :: (Eq a) => [a] -> [[a]] pack = group
using Bridge.Test.NUnit; namespace Bridge.ClientTest.Batch3.BridgeIssues { public struct Bridge608A { public readonly string field; public Bridge608A(string field) { this.field = field; } public override bool Equals(object obj) { return ...
export * from './admin' export * from './info' export * from './autorole' export * from './etc' export * from './help-channels' export * from './reminders' export * from './unfurling'
export default ({ colors }) => ({ errorText: { color: colors.RED, } });
import 'dart:async'; import 'package:astra/bloc/auth/auth_bloc.dart'; import 'package:astra/data/model/auth.dart'; import 'package:astra/data/auth_repository.dart'; import 'package:bloc/bloc.dart'; import 'package:meta/meta.dart'; import 'package:equatable/equatable.dart'; part 'login_state.dart'; part 'login_event....
const path = require('path') const StudyData = require('./StudyData') function ScanStudy(options) { const {directoryName, deduplicatedRoot, deduplicatedInstancesRoot} = options; return async function (dir,studyInstanceUid) { const studyPath = path.join(directoryName, 'studies', studyInstanceUid) ...
package typingsSlinky.azdata.mod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait ActionDescriptor extends StObject { /** * Name of the clickable actio...
package de.htwg.se.menschaergerdichnicht.controller.controllerComponent import de.htwg.se.menschaergerdichnicht.aview.gui.SwingGui import de.htwg.se.menschaergerdichnicht.aview.tui.Tui import scala.util._ import de.htwg.se.menschaergerdichnicht.controller.controllerComponent.GameState._ import de.htwg.se.menschaerger...
#!/bin/bash echo $(($(date +%s%N)/1000000)) $1 $2 $3 $4 >> /opt/monerodarchive/reorgnotify.log exit 0
#!/bin/zsh #quick utility to get git status gbst() { git status }
using System.Linq; using CoreDdd.Nhibernate.TestHelpers; using IntegrationTestsShared; using IntegrationTestsShared.TestEntities; using NUnit.Framework; using Shouldly; namespace CoreDdd.Nhibernate.Tests.Conventions { [TestFixture] public class when_persisting_parent_entity_with_child_entity_not_referencing_p...
package com.gitlab.daring.image.command.transform import com.gitlab.daring.image.command.Command import com.gitlab.daring.image.command.CommandRegistry import com.gitlab.daring.image.command.SimpleCommand import com.gitlab.daring.image.util.ImageUtils.smat import org.bytedeco.javacpp.opencv_core.inRange import org.byt...
%%%---------------------------------------------------------------------- %%% File : yaws.erl %%% Author : Claes Wikstrom <klacke@bluetail.com> %%% Purpose : %%% Created : 16 Jan 2002 by Claes Wikstrom <klacke@bluetail.com> %%%---------------------------------------------------------------------- -module(yaws). -a...
<?php namespace App\Repositories; use App\Models\FaqsModel; /** * Class FaqsModel * @package App\Repositories * @author Richard Guevara */ class FaqsRepository { /** * Get all instances * * @return App/Models/FaqsModel; */ public function showAllfaqs() { $faqs = FaqsModel:...
/*! ****************************************************************************** * * Hop : The Hop Orchestration Platform * * http://www.project-hop.org * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the "License"); * you ...
.\" Copyright (c) 1983, 1993, 1994 .\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the a...
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe // SPDX-License-Identifier: MIT #pragma once #include <Tests/Test.h> #include <Physics/Constraints/SixDOFConstraint.h> class SixDOFConstraintTest : public Test { public: JPH_DECLARE_RTTI_VIRTUAL(SixDOFConstraintTest) virtual void Initialize() override; virtual void...
import invariant from "invariant"; import {NativeModules} from "react-native"; const {UIManager} = NativeModules; const {GLCanvas} = UIManager; invariant(GLCanvas, `gl-react-native: the native module is not available. Make sure you have properly configured it. See README install instructions. NativeModules.UIManager.G...
C---------------------------------------------------------------------- subroutine ftuscm(input,np,scaled,scale,zero,output) C unscale the array of complex numbers, prior to writing to the FITS file C input d array of complex numbers (pairs of real/imaginay numbers) C np i total numbe...
import * as uuid from 'uuid'; import { AuthCredentials } from '../models/auth.model'; import { AuthenticationError, UnauthorizedError, NotFoundError } from 'tree-house-errors'; import { comparePassword, createJwt } from 'tree-house-authentication'; import { jwtConfig } from '../config/auth.config'; import { logger } fr...
import IsUID from '../../chess/IsUID.js'; import IsChess from '../../chess/IsChess'; import GetChessUID from '../../chess/GetChessUID.js'; import IsTileXY from '../../utils/IsTileXY.js'; var ChessToTileXYZ = function (chess) { // chess: chess object, UID, or tileXYZ if (IsUID(chess) || IsChess(chess)) { // UID...
/** * Copied (and slightly modified) from here: * https://github.com/cypress-io/cypress/issues/915#issuecomment-344389511 * * This works because cypress commands are not promises. * They're executed sequentially, never in parallel. * * See here: https://docs.cypress.io/guides/core-concepts/introduction-to-cypres...
class Comfy::Admin::ApiActionsController < Comfy::Admin::Cms::BaseController before_action :ensure_authority_to_manage_api before_action :set_api_action, except: :new def new @index = params[:index] @type = params[:type] @api_action = ApiAction.new(type: params[:type].classify, position: @index) ...
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :list_item do index 1 order 0 title "Great list item" list_type "item" factory :list_item2 do index 2 order 1 title "Another great list item" end factory :list_item3 do ...
#!/bin/sh export SETTINGS='dev' export POSTGRES_USER='postgres' export POSTGRES_PASSWORD='password' export POSTGRES_HOST='172.16.42.43' export POSTGRES_PORT=5432 export POSTGRES_DB='register_data' export LOGGING_CONFIG_FILE_PATH='logging_config.json' export FAULT_LOG_FILE_PATH='/var/log/applications/digital-register-ap...
package com.example.base_bottom.baidu_dingwei.network import retrofit2.await object BusNetWork { private val service = RetrofitCreator.create(GetBusData::class.java) suspend fun getAllBus()= service.getAllBus().await() suspend fun getBusRoute(busId: String)= service.getBusRoute(busId).await() }
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ package com.example.splitties.main import android.content.Context import android.util.AttributeSet import androidx.appcompat.app.AppCompatActivity import com.example.splitties.R import splitties.dimens...
name = cookbook_name.to_s n = node[name] ############################################################################### # Initial setup and pre-requisites ############################################################################### apt_repository 'nginx' do uri "#{n["release_bases"][n["release"]]}/#{Nginx.get_o...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; class ProductRequest extends FormRequest { public function authorize() { return \Auth::check(); } public function rules() { $id = (isset($this->product->id)) ? $this->p...
/* * Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file * for details. All rights reserved. Use of this source code is governed by a * BSD-style license that can be found in the LICENSE file. */ /** * @description Tests autofocus when a modal dialog is opened. */ import "dart:html"; import...
package com.tcwong.pattern.singleton; /** * 枚举 */ public enum EnumSingleton { INSTANCE; public static EnumSingleton getInstance() { return INSTANCE; } }
/* * Copyright 2021 4Paradigm * * 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...
INSERT INTO `items` (`name`, `label`, `limit`, `rare`, `can_remove`) VALUES ('lockpick', 'Lock Pick', -1, 0, 1), ('darknet', 'Dark Net', 1, 0, 1), ('drill', 'Drill', 1, 0, 1), ('binoculars', 'Binoculars', 1, 0, 1), ('oxygen_mask', 'Oxygen Mask', -1, 0, 1), ('bulletproof', 'Bullet-Proof Vest', -1, 0, 1), ('firsta...
module Lunch module Sql class Group < Sequel::Model one_to_many :memberships many_to_many :restaurants, join_table: :memberships end end end
/* * BSD 2-Clause License * * Copyright (c) 2017, Redis Labs * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, t...
using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using Object = UnityEngine.Object; namespace NF.ObjectPooling.Runtime { public sealed class Pool { private const int INITIAL_INSTANCES_SIZE = 128; private readonly Action<GameObject, Pool> _on...
#!/bin/bash set +e FINGERPRINT=`node -e "console.log(JSON.parse(require('fs').readFileSync('$HOME/hyperledger-fabric-network/.hfc-org1/user1', 'utf8')).enrollment.identity.certificate)" | openssl x509 -fingerprint -noout | cut -d '=' -f2` echo "Setup Organizations" read -r -d '' basicOrganizations << EndOfMessage [ ...
using System; using System.Collections.Generic; using System.Linq; using MBran.Components.Attributes; using MBran.Components.Models; using Umbraco.Core; using Umbraco.Core.Services; namespace MBran.Components.Helpers { public class DocTypesHelper { private DocTypesHelper() { ...
package vrouter import ( apps "k8s.io/api/apps/v1" core "k8s.io/api/core/v1" meta "k8s.io/apimachinery/pkg/apis/meta/v1" ) //GetDaemonset returns DaemonSet object for vRouter func GetDaemonset() *apps.DaemonSet { var labelsMountPermission int32 = 0644 var trueVal = true var contrailStatusImageEnv = core.EnvVar...
package com.andreapivetta.blu.ui.timeline import com.andreapivetta.blu.R import com.andreapivetta.blu.data.model.Tweet import com.andreapivetta.blu.data.twitter.TwitterAPI import com.andreapivetta.blu.ui.base.BasePresenter import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.disposables.Composi...
import aiohttp import asyncio loop = asyncio.get_event_loop() async def _call(http_method=None, url=None, *args, **kwargs): session = aiohttp.ClientSession() async with eval('session.' + http_method)(url) as response: assert response.status == 200 return await response.text() def _serializer...
#!/bin/bash set -e name=${1::-4} docker build -t lc3compiler compiler/ docker run --rm -it -v $(pwd):/data lc3compiler /data/$name.asm rm -f $name.sym mv -f $name.obj programs/bin
class DownloadGitRevisionController < ApplicationController include XitoliteRepositoryFinder before_filter :find_xitolite_repository before_filter :can_download_git_revision before_filter :set_download before_filter :validate_download helper :redmine_bootstrap_kit def index begin send_data(...
#!/usr/bin/env bash set -euo pipefail # Shared variables used in other scripts exports () { # The directory of this file local DIR DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" export PROJ_ROOT="${DIR}/.." export CHANGES="${PROJ_ROOT}/CHANGES.md" export RELEASE_NOTES...
//SAMPLE FUNCTION - DON'T CHANGE int multiply_numbers(int num1, int num2); //write factorial function prototype here int factorialize(int value);
/* This file is part of GNUnet. Copyright (C) 2009-2013, 2016 GNUnet e.V. GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later versi...
//navbar active class change $(document).ready(function() { var pathname = window.location.pathname; $('.navbar-nav > li > a[href="'+pathname+'"]').addClass('active'); $( ".mr-auto .nav-item" ).bind( "click", function(event) { window.location.href = $(event.target).attr('href'); var clickedItem...
package br.com.itau.casadocodigo.casadocodigoAPI.config.validacao; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.persistence.Query; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import org.sp...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\User; use DB; use Hash; use Validator; use Session; use Route; use Spatie\Permission\Models\Role; use Spatie\Permission\Models\Permission; class UserController extends Controller { public function __const...
// Copyright (C) 2011-2012 the original author or authors. // See the LICENCE.txt file distributed with this work for additional // information regarding copyright ownership. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You ...
// dropdown menu show $(document).on('show.bs.dropdown', '.dropdown', function() { var $dropdownMenu = $('.dropdown-menu', $(this)), $dropdownToggle = $('[class*="dropdown-toggle"]', $(this)), dropdownPadding = $('a', $dropdownMenu).css('padding-left').replace('px', ''), dropdownWidth; if ($drop...
require 'observer' class LeaderboardView include(Observable) def initialize(window) @window = window # Reference to the application window end def draw(leaderboard) scroll_window = Gtk::ScrolledWindow.new content_box = Gtk::Box.new(:vertical, 10) grid = Gtk::Grid.new grid.set_column_homog...
# This library was merged to Rails 4.1. # # Prefer Active Support's implementation if it's available. # # This allows libraries which support multiple Rails versions to depend on # `concerning` without worrying about implementation collision. This lib # will step aside if it sees its work is done. require 'active_supp...
namespace SciColorMaps.WinForms { partial class ColorSetupForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ModulesParser { /// <summary> /// Parses an Enum element /// </summary> public class EnumParser : Parser, IDeclaration { public bool Flags; public Dictionary<string, EnumValueParser> EnumValues = new Dict...
# redis-demonstration redis-demonstration is a Python application that allows for the presentation of Redis features. ## Basic setup Install the requirements: ``` $ pip install -r requirements.txt ``` Run the application: ``` $ python -m redis-demonstration --help ``` To run the tests: ``` $ pytest ``` # redis...
import { Coins } from "@arkecosystem/platform-sdk"; import { Input, InputAddon, InputAddonStart, InputGroup } from "app/components/Input"; import { NetworkIcon } from "domains/network/components/NetworkIcon"; import React from "react"; type Props = { network?: Coins.Network; suggestion?: string; } & React.InputHTMLA...
const styles = { primary_theme: { dark: false, colors: { primary: "rgb(255, 45, 85)", background: "rgb(242, 242, 242)", card: "rgb(255, 255, 255)", text: "rgb(28, 28, 30)", border: "rgb(199, 199, 204)", notification: "rgb(255, 69, 58)", primaryGreen: "#14793F", ...
--- layout: "post" title: "웹 기반 WYSIWYG 에디터 Summernote 사용하기" date: 2016-12-19 19:34:31 category: frontend-jQuery tags: [javascript,jQuery,Summernote] draft: false --- WYSIWYG 에디터 Summernote 사용방법을 정리합니다. <!--more--> ###### 1. CDN 추가 ```html <link href="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.2/summernote...
""" doc(fname, title="", width=800, height=600) Display the contents of file name `fname` in a browser (webview) window. Alternatively, `fname` can be a URL address. Example, display the contents of the README.md file located in current dir. doc("README.md") to display the contents of the `examples.md` file l...
#ifndef APPLOG_PRI_ #define APPLOG_PRI_ #include <stdint.h> #include <stdio.h> #ifdef __cplusplus extern "C" { #endif /** 示例 void* dataIn = xxx; size_t data_size = xxx; size_t bufferSize = applog_decorated_buffer_min_size(data_size); uint8_t *buffer = malloc(sizeof(uint8_t) * bufferSize); applog_decorated(d...
package data data class AppDrawerState( val inboxProject: AppProject, val projects: List<AppProject>, val labels: List<AppLabel>, val isFavoritesOpened: Boolean = true, val isProjectsOpened: Boolean = true, val isLabelsOpened: Boolean = false, )
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Store } from '@ngrx/store'; import { BehaviorSubject } from 'rxjs'; import { Observable } from 'rxjs/internal/Observable'; import { catchError, tap, map } from 'rxjs/operators'; import { IRootState } from '../+store'...
import React, {FunctionComponent} from 'react'; import { GappedStack, Title, useConcessionHoursImage, useConcessionSignupLink, useConcessionsLocation, useDirectorOfConcessionsMailLink } from '../common'; import {TreatTickets} from './TreatTickets'; import {ConcessionStandDutyAndSignup} from './Conce...
package pl.elpassion.eltc.recap import android.annotation.TargetApi import android.app.* import android.content.Context import android.content.Intent import android.support.v4.app.NotificationCompat import android.support.v4.content.ContextCompat import pl.elpassion.eltc.Build import pl.elpassion.eltc.R import pl.elpa...
use strict; use warnings; use Test::More; BEGIN { require Dancer; plan skip_all => 'Dancer 1 tests' if Dancer->VERSION >= 2; } plan tests => 1; use lib 't/apps/Foo/lib'; use Foo; use Dancer::Test appdir => 't/apps/Foo/yadah'; # ... this ain't right response_content_like [GET => '/'], qr/&lt;esca...
import puppeteer from 'puppeteer' import lighthouse from 'lighthouse' import devices from 'puppeteer/DeviceDescriptors' import auditSite from './helpers' import PuppeteerHar from 'puppeteer-har' import fs from 'fs' let browser let page const homepage = 'https://www.google.com.mx/' const iphone = devices['iPhone 6'] d...
class SyncsController < ApplicationController respond_to :js def create Sync.new(current_user).perform @user = current_user.reload respond_with @user end end
import { PageBaseModel } from './page-base-model'; /** * Article Class */ export class ArticleModel extends PageBaseModel { }
# Mapo Tofu ![040104](https://user-images.githubusercontent.com/50277379/140747077-f9e430de-012c-4c02-a920-b28a8fac7ee4.jpg)
using System.Collections.Generic; using System.ComponentModel; namespace Gimela.Presentation.Controls.Timeline { /// <summary> /// 元素结束时间比较器 /// </summary> internal class TimelinePanelChildEndTimeComparer : IComparer<TimelinePanelChild> { /// <summary> /// 元素结束时间比较器 /// </s...
import { STRING, Optional, Model } from 'sequelize' import sequelize from './index' interface RoomAttributes { roomId: string roomName: string createdByUserId: string } interface RoomCreationAttributes extends Optional<RoomAttributes, 'roomId'> {} interface RoomInstance extends Model<RoomAttributes, RoomCrea...
#!/bin/bash -eu source /home/u6k/.env curl -v -f http://${MYDNS_USER}:${MYDNS_PASS}@www.mydns.jp/login.html
# # Landing page # PAGETITLE = "ASF Roster Tool" # Wvisible:projects _html do _link rel: 'stylesheet', href: "stylesheets/app.css?#{cssmtime}" _body? do _whimsy_body( title: PAGETITLE, breadcrumbs: { roster: '.' } ) do person = ASF::Person.find(env.user) _table.counts...