text stringlengths 27 775k |
|---|
# sendgrid-email-proxy
A very simple email proxy which uses SendGrid's webhooks to redirect any incoming email to a specified email address.
## How to use
1. [Install Deno.](https://deno.land)
2. Clone this repo using `git clone https://github.com/realmayus/sendgrid-email-proxy`
3. `cd` to the cloned repository
4. If... |
# RxSpriteKit
RxSpriteKit (based on RxSwift)
See demo project RxSpriteGame (https://github.com/maxvol/RxSpriteGame) for reference.
Basic usage.
```swift
skView.rx.shouldRenderAtTime = { (view, time) -> Bool in true }
skScene
.rx
.update
.subscribe { event in
switch event {
case .next(le... |
package pl.touk.nussknacker.engine.process.runner
import org.apache.flink.core.fs.FileSystem
import org.apache.flink.configuration.{Configuration, CoreOptions, RestOptions, TaskManagerOptions}
import org.apache.flink.runtime.jobgraph.SavepointRestoreSettings
import org.apache.flink.runtime.minicluster.{MiniCluster, Mi... |
/// Base Url
const String BASE_URL_HTTP = "api.themoviedb.org";
const String BASE_URL_DIO = "https://api.themoviedb.org";
const String IMAGE_BASE_URL = "https://image.tmdb.org/t/p/w400/";
/// End Points
const String ENDPOINT_GET_NOW_PLAYING = "/3/movie/now_playing";
const String ENDPOINT_GET_POPULAR = "/3/movie/popula... |
-------------------------------------------------------------------------------
-- |
-- Module : Torch.Indef.Static.Tensor.Index
-- Copyright : (c) Sam Stites 2017
-- License : BSD3
-- Maintainer: sam@stites.io
-- Stability : experimental
-- Portability: non-portable
------------------------------------------... |
# How To Add Column At Grid Data
This documentation is for manual add column only instead by using Module Generator.
Open file controller that you want to add column at `app/Http/Controllers/AdminModuleController.php`
### Code Example
```php
$this->col[] = ['label'=>'Title','name'=>'title'];
```
### Legend
| Attribute... |
(PRODUCT-TYPE)
(SUM-NAME)
(SUM-PRODUCTS)
(SUM-RECOGNIZER)
(SYM-RECOGNIZER)
(PRODUCT-RECOGNIZER)
(DEFSUM-MUNGE-PRODUCT)
(DEFSUM-MUNGE-PRODUCTS)
(STRIP-EXTFNS)
(DEFSUM-MUNGE-INPUT)
(DEFSUMS-MUNGE-SUMS)
(DEFSUMS-MUNGE-INPUT)
(RECOGNIZER-NAME)
(RECOGNIZER-LIST)
(CONSTRUCTOR-CALL)
(PRODUCT-ACCESSOR-LIST)
(ACCESSOR-CALL-LIST... |
extern crate swear;
use swear::runqueue::make_runqueue;
use swear::runqueue::Queuer;
use swear::runqueue::Reactor;
use swear::schedule::Scheduler;
use swear::Swear;
use swear::make_swear;
#[derive(Clone)]
struct Runner<'a> {
q: Queuer<'a>,
}
// Hopefully it's not too much of a stretch of the imagination to imagi... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Magicallity.Shared;
using Magicallity.Shared.Models;
using Newtonsoft.Json;
namespace Magicallity.Server.Vehicle.Models
{
public class Vehicle
{
public Ses... |
# babypwn
Points: 100
```bash
➜ checksec babypwn
[*] '/home/squishy/Programs/ctf/2020/cyber_security_rumble/babypwn/baby-pwn-for-download/docker/babypwn'
Arch: amd64-64-little
RELRO: Partial RELRO
Stack: No canary found
NX: NX disabled
PIE: PIE enabled
RWX: Has RWX se... |
---
title: Laborariis
letter: L
permalink: "/definitions/bld-laborariis.html"
body: Au nncient writ against persons who refused to serve and do labor, and who had
no means of living; or against such as, having served in the winter, refus-ed to
serve in the summer. Reg. orig. 189
published_at: '2018-07-07'
source: B... |
---
id: unityatoms.editor
title: UnityAtoms.Editor
hide_title: true
sidebar_label: UnityAtoms.Editor
---
# Namespace - `UnityAtoms.Editor`
## `EditorIconPostProcessor`
Postprocessor that processes all scripts using the EditorIcon attribute and assigns the matching icon guid (matching the icon query name) to the scri... |
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
class CredibanCoGateway < Gateway
self.test_url = 'https://ecouat.credibanco.com/payment/rest/'
self.live_url = 'https://eco.credibanco.com/payment/rest/'
self.supported_countries = ['CO']
self.default_currency = 'COP' # 170
sel... |
namespace Test.Radical.Helpers
{
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SharpTestsEx;
using Topics.Radical;
[TestClass]
public class NumbersExtensionsTests
{
[TestMethod]
public void numbersExtensions_isEven_even_number_should_be_true()
{
Int32 target = 0;
Boolean a... |
package com.sleticalboy.learning.bean
import java.io.Serializable
/**
* Created on 18-2-12.
*
* @author leebin
* @version 1.0
* @description
*/
class AppInfo(var name: String, var category: String, var imgId: Int, var isGroup: Boolean) : Serializable
|
/*!
* Licensed under the MIT License.
*/
/* eslint-disable no-warning-comments */
import * as MRE from '../../mixed-reality-extension-sdk/packages/sdk/';
//import MusicModule from './backend/music_module';
//import Console from './backend/console';
//import Users from './backend/users';
//import Patcher f... |
using System;
namespace TradeTracker.Core.DomainModels.Transaction
{
public class TransactionFilterDomainModel
{
public int Page { get; set; }
public int PageSize { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public string... |
package org.ggye.customclassloader.common;
public interface ExternalInterface {
void doYourJob();
}
|
/// Access to gyroscope and accelerometer on the controller.
///
/// Compatible controllers including Playstation, Switch and Steam controllers include a gyroscope
/// and accelerometer to get the movement in space of the device.
///
/// Units used by SDL:
/// - Accelerometer is in m/s²
/// - Gyroscope is in radian per... |
package com.akexorcist.library.dialoginteractor.sample.dialog
import androidx.lifecycle.ViewModel
import com.akexorcist.library.dialoginteractor.DialogLauncher
import com.akexorcist.library.dialoginteractor.sample.dialog.alert.AlertMapper
import com.akexorcist.library.dialoginteractor.sample.dialog.confirm.ConfirmMapp... |
describe os.family do
it { should eq 'debian' }
end
describe filesystem('/') do
its('size_kb') { should be >= 50000 }
its('type') { should cmp 'ext' }
end
describe aws_ec2_instance(name: 'my-ptfe-instance') do
it { should be_running }
end
describe aws_ec2_instance(name: 'my-ptfe-instance') do
its('image_id... |
# A prototype using React
### The steps of making this happen
1. Setup the development environment `gulpfile` and `package.json`
2. Build the HTML, CSS and JavaScript accordingly (named `demo.*`)
3. Abstract each block into React components and utilize React functionalities
4. Set up the build process to compress the ... |
# Wireshark
Wireshark starten.
Im Menu: Tools -> Lua -> Evaluate
Code aus der Datei in das grosse Input field kopieren, Evaluate button druecken , Close button druecken.
In der Anzeigefilter Leiste sollte man nun nach Scribe Filtern koennen (Screenshot).
|
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of the
// License at
//
// https://opensource.org/licenses/BSD-3-Clause
//
// Unless req... |
use std::borrow::BorrowMut;
use anyhow::Result;
use modelfox_id::Id;
use sqlx::prelude::*;
pub struct GetOrganizationOutput {
pub id: Id,
pub name: String,
pub members: Vec<Member>,
}
pub struct Member {
pub id: Id,
pub email: String,
pub is_admin: bool,
}
pub async fn get_organization(
organization_id: Id,
... |
import { by, ElementFinder } from 'protractor';
import { LogItemGroup } from '../page-objects/log-item-group.pageobject';
export class OtherInstrumentationGroup extends LogItemGroup {
readonly instrumentationInput: ElementFinder = this.currentItemContainer
.element(by.css('textarea-input[contr... |
#!/bin/bash
fatal() {
echo "FATAL: $@"
exit 1
}
echo "Testing import..."
. ./ptp-sync-check
rc=$?
[[ $rc -eq 0 ]] || fatal "Could not import"
echo Ok
# Redefine functions that use system facilities
get_last_ptp_status(){
echo $MOCK
return 0
}
log_debug() {
:
}
mock(){
mock_const_part="stdout F ptp4l[81... |
#!/bin/bash
echo '=> Installing Wine'
# Enable multiarch to install both 64-bit and 32-bit applications
sudo dpkg --add-architecture i386
sudo apt update
# Import WineHQ repository’s GPG key
wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
# Add WineHQ repository
sudo apt install software... |
-- @testpoint:opengauss关键字Go(非保留),作为外部数据源名
--关键字不带引号-成功
drop data source if exists Go;
create data source Go;
drop data source Go;
--关键字带双引号-成功
drop data source if exists "Go";
create data source "Go";
drop data source "Go";
--关键字带单引号-合理报错
drop data source if exists 'Go';
create data source 'Go';
--关键字带反引号-合理报错
dr... |
package com.levibostian.tellerexample.repository
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.google.common.truth.Truth.assertThat
import com.levibostian.teller.error.ServerNotAvailableException
import com.levibostian.tellerexample.dao.ReposDao
import com.levibostian.tellerexample.mode... |
#include <pch.h>
#include <query/opPlan.h>
#include <util/logger.h>
#include <query/query.h>
#include <array/arrayMgr.h>
#include <array/memBlockArray.h>
namespace msdb
{
namespace core
{
opPlan::opPlan()
: parentPlan_(nullptr), inArrBitmap_(nullptr), outArrBitmap_(nullptr), inParamSet_(nullptr)
{
}
void opPlan::setP... |
using System;
using System.Collections.Generic;
using SystemMonitor.Domain.Interfaces;
using SystemMonitor.Domain.Interfaces.Tasks;
using SystemMonitor.Interfaces.Ioc;
namespace SystemMonitor.Application.Interfaces.Tasks
{
public interface IApplicationTaskFacade
: ISingletonDependency
{
Uri Get... |
import {expect} from 'chai';
import supertest from 'supertest-as-promised';
import find from 'lodash/find';
import {connect, disconnect, mongoose} from '../../libs/db';
import seed from '../../seed';
import seedTemplates from '../../seed/templates.json';
import seedUsers from '../../seed/users.json';
import app from '.... |
import 'package:flutter/material.dart';
class SearchButton extends StatelessWidget {
final Widget bottomSheetBody;
const SearchButton({
Key? key,
required this.bottomSheetBody,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return ElevatedButton.icon(
label: Text('Se... |
import 'package:flutterbuyandsell/api/common/ps_admob_banner_widget.dart';
import 'package:flutterbuyandsell/config/ps_config.dart';
import 'package:flutterbuyandsell/provider/blog/blog_provider.dart';
import 'package:flutterbuyandsell/repository/blog_repository.dart';
import 'package:flutterbuyandsell/ui/blog/item/blo... |
package com.beust.kobalt.app.remote
import com.beust.kobalt.Args
import com.beust.kobalt.api.IClasspathDependency
import com.beust.kobalt.api.ProjectDescription
import com.beust.kobalt.app.BuildFileCompiler
import com.beust.kobalt.internal.JvmCompilerPlugin
import com.beust.kobalt.internal.PluginInfo
import com.beust.... |
default['envbuilder']['base_dir'] = '/home/env'
default['envbuilder']['owner'] = 'env'
default['envbuilder']['group'] = 'env'
default['chef_client']['splay'] = 250
default['chef_client']['cron']['use_cron_d'] = true
default['chef_client']['cron']['hour'] = '*'
default['chef_client']['cron']['minute'] = '*/5'
default['... |
%%--------------------------------------------------------------------
%% Copyright (c) 2020 EMQ Technologies Co., Ltd. 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 a... |
import React, { ReactNode } from 'react';
import { ComponentDocs } from '../../../site/src/types';
import { ButtonLink, Stack, Text } from '../';
import { TextLink } from '../TextLink/TextLink';
const Container = ({ children }: { children: ReactNode }) => (
<div style={{ maxWidth: '300px' }}>{children}</div>
);
con... |
require 'spec_helper'
require 'refinery/menu'
require 'refinery/menu_item'
module Refinery
describe Menu do
it 'constructs a menu given items' do
Menu.new([{:id => 1}, {:id => 2}]).items.each {|item|
item.should be_kind_of MenuItem
}
end
it 'allows construction of a new menu from thi... |
(New-Object -ComObject WScript.Network).AddWindowsPrinterConnection("\\phlprint01\PHL0904-WC5755")
write-host 'complete' |
require 'test_helper'
class HeadersTest < MiniTest::Unit::TestCase
def test_case_insensitivity
headers = M2R::Headers.new({"Content-Type" => "CT"})
assert_equal "CT", headers['content-type']
assert_equal "CT", headers['Content-Type']
assert_equal "CT", headers['Content-type']
end
def test_symbol... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
public class TowerBehaviour : MonoBehaviour
{
[Header("Attributes")]
public float towerRange = 8f;
public GameObject bulletPrefab;
private GameObject bullet;
private GameManagerBehaviou... |
package mobi.upod.app.gui.episode.download
import android.content.Context
import com.escalatesoft.subcut.inject.BindingModule
import mobi.upod.app.data.EpisodeListItem
import mobi.upod.app.gui.episode.{BulkEpisodeAction, BulkEpisodeUpdate}
import mobi.upod.app.services.download.DownloadService
private[download] abstr... |
using Manage_multithreading.Exemplos.CancelandoTasks;
using Manage_multithreading.Exemplos.SincronizandoRecursos;
using System;
using System.Diagnostics;
namespace Manage_multithreading
{
class Program
{
static void Main(string[] args)
{
Process.Start("https://github.com/anderson... |
using HTTPv3.Quic.TLS;
using HTTPv3.Quic.TLS.Messages.Extensions;
using System;
using System.Collections.Generic;
using System.Text;
namespace HTTPv3.Quic.Security
{
class KeyManager
{
internal List<ApplicationKeys> applicationKeys = new List<ApplicationKeys>();
internal List<HandshakeKeys> ha... |
<?php
namespace App\Notifications;
use Benwilkins\FCM\FcmMessage;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;
class GenericNotification extends Notification
{
use Queueable;
private $title;
private $message;
private $cha... |
package fpinscala.applicative
import org.scalatest.{FreeSpec, Matchers}
import scala.language.reflectiveCalls
import scala.util.control.NonFatal
class ApplicativeSpec extends FreeSpec with Matchers {
import fpinscala.applicative.Applicative._
"sequence of a list of streams" in {
val list: List[Stream[Int]] ... |
import { BrowserWindow } from "electron";
let browserWindow: BrowserWindow;
export function SetBrowserWin(win: BrowserWindow) {
browserWindow = win;
}
export function GetBrowserWin() {
return browserWindow;
}
|
# forge-data-server
## How to Build
- Generate code: `make .codegen`
* If you are *regenerating* code, the controllers will be replaced. It may be
desired to revert changes to them.
* Tests should generally not be re-generated. Subsequent attempts will fail
because the OpenAPI utility tries to bury them i... |
package gol;
import javafx.scene.Scene;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.Border... |
#!/usr/bin/env bash
# Add any project specific stuff here
#echo "------------------------------------------------------------"
#echo "GIT CONFIG"
#echo "------------------------------------------------------------"
#echo "global git config"
#echo "Please enter first name & last name for git: "
#read input_gitname
#gi... |
# 第14章 凹语言
基于Go现有的语法树,我们裁剪出一个极小子集——凹语言,本章将综合之前章节的内容,一步一步的介绍它的解释执行。
---
因为出版社版权限制不方便全部公开新增内容,完整内容请参考 [实体书](https://www.epubit.com/bookDetails?id=UBc86f749c1eb7):
[](https://www.epubit.com/bookDetails?id=UBc86f749c1eb7)
|
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Customer\Model;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\App\RequestInterface;
use Magento\Framework\Url\EncoderInterface;
use Magento\Framework\UrlInt... |
# frozen_string_literal: true
module Renalware
module Accesses
class PlanPresenter < DumbDelegator
end
end
end
|
<!-- =========================== section About-->
<section class="section is-lg">
<div class="container">
<div class="row flex vcenter">
<div class="col-lg-6">
<div class="section-head">
<h5 class="section-subtitle ">Our Approach</h5>
<h2 c... |
# random
fun and dumb stuff ive coded
- conjugate/getconj.js: conjugate a french verb and display the result in lynx. `conjugate aller`
- dec: decode messages expressed as groups of 3 numbers. `dec 852 431 110 202`
- dfree: format `btrfs filesystem usage`, getting a list of paths from a dfree.conf file. `dfree`
- ... |
// Licensed to the LF AI & Data foundation 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 may not use th... |
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnDestroy, Outp... |
use prometheus::{IntCounter, IntCounterVec, Opts, Registry};
#[derive(Debug)]
pub struct Metrics {
pub http_response_total: IntCounterVec,
pub http_response_code_total: IntCounterVec,
pub http_response_body_size_total: IntCounterVec,
pub parse_error: IntCounter,
}
impl Metrics {
pub fn new(namespa... |
#!/bin/sh
# Entrypoint for the build container to create the rpms and yum repodata:
set -e
# Download sources if not already available
cd /root/rpmbuild/SPECS && spectool -gf kubelet.spec
/usr/bin/rpmbuild --define "_sourcedir /root/rpmbuild/SPECS/" -bb /root/rpmbuild/SPECS/kubelet.spec
mkdir -p /root/rpmbuild/RPMS... |
package com.lucianbc.receiptscan.domain.extract.rules
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.*
import kotlin.math.abs
private const val DIGIT_MISTAKES = "[\\doO]"
val formats = mapOf(
"$DIGIT_MISTAKES{8}" to "yyyyMMdd",
"$DIGIT_MISTAKES{2}/$DIGIT_MISTAKES{2}/$DIGIT... |
import numpy as np
from .Evaluate9Cells import Evaluate9Cells
from ..Base import *
class EvaluateNormal(Evaluate9Cells):
"""
score dict:
key : the board item number of array (dim:9) after _remove() function ,
if is a tuple,the tuple's second item means whether the edge is player_mine,
if True,need the lengt... |
package controllers.services
import controllers.utils.Utils
import controllers.utils.Utils.getFutureValue
import models.Logger
import models.db.Products.getProducts
import models.db.{Product, Products}
import play.api.db.slick.{DatabaseConfigProvider, HasDatabaseConfigProvider}
import slick.jdbc.JdbcProfile
import ja... |
<?php
namespace Backend\Modules\MediaLibrary\Actions;
use Backend\Core\Engine\Base\Action as BackendBaseAction;
use Backend\Core\Engine\Model;
use Backend\Modules\MediaLibrary\Domain\MediaFolder\Exception\MediaFolderNotFound;
use Backend\Modules\MediaLibrary\Domain\MediaItem\Command\DeleteMediaItem;
use Backend\Modul... |
## -*- coding: utf-8 -*-
"""
Created on Sun Apr 22 16:48:39 2018
@author: Administrator
"""
import random as rd
#radix sort is fun
#there are two ways to do it
#the first approach is we start from the right
#the second one is to start from the left
#in this context, i choose the first approach
#they are ... |
package apicl
import (
"fmt"
"gopkg.in/urfave/cli.v1"
)
func publish(l *cli.Context) error {
filename := l.String("filename")
apiname := l.String("api-name")
r, err := c.Publish(apiname, filename)
if err != nil {
return err
}
fmt.Println(r)
return nil
}
|
import { stateType } from "../../types/stateType";
const ro: stateType = {
state: 'Rondonia',
abbreviation: 'ro',
cities: [
"Alta Floresta d'Oeste",
'Alto Alegre do Parecis',
'Alto Paraíso',
"Alvorada d'Oeste",
'Ariquemes',
'Buritis',
'Cabixi',
'Cacaulândia',
'Ca... |
#!/bin/bash
if [ -z "${BUILD_ROOT}" ]; then
echo "You need to source buildenv first" 1>&2
exit 1
fi
MAIN_NAME=likewise
MAIN_VERSION=5.0.0
MAIN_RELEASE=1
MAIN_PREFIX_DIR="${BUILD_PREFIX}"
function __get_svn_last_changed_revision
{
local _path="$1"
local _rev=""
local _revFile="${BUILD_ROOT}/src/... |
using System.Runtime.CompilerServices;
namespace Psp
{
public static class Kernel
{
[MethodImpl(MethodImplOptions.InternalCall)]
extern public static void ExitGame();
}
}
|
@include('header')
<div id="chart-div"></div>
<?= Lava::render('DonutChart', 'nosVotes', 'chart-div') ?>
@include('footer') |
% ==============================================================================
% Chi-square distribution
% ==============================================================================
-module(chisq).
-export([pdf/2, cdf/2, invcdf/2]).
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-endif.
% ------------... |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"> </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="<?php echo kirby()->urls()->assets() ?>/js/scrollit-editan.js"></script>
<script src="<?php echo kirby()->ur... |
module PubSub
class Railtie < Rails::Railtie
rake_tasks do
Dir[File.join(File.dirname(__FILE__), 'tasks/*.rake')].each { |f| load f }
end
initializer 'pub_sub.initialize' do
PubSub.config.logger = Rails.logger
PubSub.config.log_level = :debug
require 'pub_sub/railties/active_recor... |
package com.marshalchen.common.demoofui.artbook;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import com.marshalchen.common.demoofui.R;
public class AboutActivity extends Activity {
@... |
1 48 57
2 13 54 63
3 21 38 59 76 84
4 20 35 42 46 73
5 44 61 79 86
6 13 37 44 68
7 19 24 51 52
8 30 45 49
9 11 81
10 20 33 52 55 85
11 9 14 24 27 56 67
12 21 23 37 45 71
13 6 48 63
14 9 24 50 82
15 8 26 30 40 45 62 77
16 17 40 45 66 83 89
17 46 60 76 88
18 32
19 7 29 35 39 52 65 75
20 25 35 73 75
21 23 59
22 28 41 56 6... |
require File.dirname(__FILE__) + '/test_helper.rb'
class TestJasmine < Test::Unit::TestCase
def setup
end
def test_stitch
root = File.dirname(__FILE__)
File.open(root + '/jasmine/index.js', 'w+') do |f|
f.write Stitch::Package.new(
:files => [root + '/fixtures/app/index.js'],
:root... |
using MediatR;
using Nova.Identity.Responses;
namespace Nova.Identity.Requests
{
public record EditRoleRequest : IRequest<EditRoleResponse>
{
public int Id { get; init; }
public string Name { get; init; } = "";
public string? LookupKey { get; init; }
public short? BoundaryId { g... |
package org.forpdi.planning.attribute.types;
import java.text.NumberFormat;
import javax.validation.UnexpectedTypeException;
import org.forpdi.core.properties.CoreMessages;
import org.forpdi.planning.attribute.AttributeType;
import org.forpdi.planning.attribute.AttributeTypeWrapper;
public class Percentage extends ... |
# frozen_string_literal: true
describe EncryptionService do
context 'current_salt' do
before(:each) do
EncryptionService.instance_variable_set(:@cache, {})
end
it { expect(EncryptionService.current_salt).to eq Time.now.strftime('%Y%W') }
it do
allow(Time).to receive(:now).and_return(1.w... |
use crate::camera::sensor::Sensor;
use crate::camera::Camera;
use crate::config::Config;
use crate::integrator::Integrator;
use crate::scene::Scene;
use crate::Image;
use image::{ImageBuffer, ImageFormat, Pixel, Rgb};
use serde::{Deserialize, Deserializer, Serialize};
#[derive(Serialize)]
pub struct Renderer {
pub... |
-- DROP DATABASE caixa;
CREATE DATABASE caixa;
USE caixa;
CREATE TABLE conta(
id_conta_user INT PRIMARY KEY AUTO_INCREMENT,
nome_empresa VARCHAR(100) NOT NULL,
endereco VARCHAR(150) NOT NULL,
bairro VARCHAR(50) NOT NULL,
cidade VARCHAR(50) NOT NULL,
uf VARCHAR(2) NOT NULL,
cep VARCHAR(10)... |
14 0 1 4 1 2 2 1 2 3 1 2 4 0 2 5 1 3 1 1 3 3 0 3 4 0 3 6 1 4 2 0 4 3 0 4 4 0 5 2 0 6 3 |
import type { ISO_3166_1 } from '../ISO_3166_1';
import { ISO_3166_1__MAP } from '../ISO_3166_1';
import type { ISO_3166_2, ISO_3166_2_CA, ISO_3166_2_US } from '../ISO_3166_2';
import {
ISO_3166_2__MAP,
ISO_3166_2_CA__MAP,
ISO_3166_2_US__MAP,
} from '../ISO_3166_2';
export const isISO_3166_1 = (
code: string |... |
# Sözlük
The dictionary desktop application in this repo were created in Python language with PyQt5 library.
|
@extends('dashboardUser.dash_master_layout')
@section('content')
<?php
if (strpos($_SERVER['REQUEST_URI'], 'home/preview') == true) {
echo "
<style>
#sider.dashfulright.col-lg-3.col-md-3.col-sm-12.col-xs-12.pull-right.mgnB15.nopaddingR {display: none !important;}
.innerwraperful.pdgT15.fulwidthm.left {margi... |
#
# Allow some application_helper methods to be used in the scoped form_for manner
#
class ActionView::Helpers::FormBuilder
def label(method, text = nil, options={})
@template.label(@object_name,method,text,options)
end
def field_container(method, options = {}, &block)
@template.field_container(@object_n... |
''' Kako - Manifest driven IoT honeypots. '''
from kako import config
from kako import messaging
from kako import processor
from kako import simulation
__version__ = '0.2.0'
|
# hmac sha256 sign
secimage sbi -out fabi.bin -hmac khmacsha256 -bl f.bin
cat add0.bin fabi.bin > final_symmetric_hmac.bin
rm -Rf fabi.bin
|
# Para rodar o programa, coloque o código no arquivo
# `ola-mundo.go` e use `go run`.
$ go run ola-mundo.go
Olá mundo
# Às vezes, queremos transformar nosso código
# fonte em um programa executável. Podemos fazer isso
# usando `go build`.
$ go build ola-mundo.go
$ ls
ola-mundo ola-mundo.go
# Agora, nós podemos ex... |
/// @file CameraPosition.h
/// @brief Displays the camera position on the screen.
#pragma once
#include <SimpleMath.h>
#include <trview.ui/Control.h>
#include <trview.ui/StackPanel.h>
#include <trview.ui/TextArea.h>
#include <trview.common/TokenStore.h>
namespace trview
{
/// Displays the camera position on the ... |
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
require_relative "base"
module NeverBounce; module API; module Response; module CreditsInfo
class Monthly < Base
# @!attribute monthly_api_usage
# @return [Integer]
oattr :monthly_api_usage, :scalar, type: :integer
# Always <tt>:monthly</tt>.
# @return [Symbol]
def subscription_type
... |
---
title: CSS environment variables
tags:
- css
---
[Browser support](https://caniuse.com/#feat=css-env-function)
```css
env('VARIABLE_NME', FALLBACK_VALUE);
env(safe-area-inset-top, 12px)
env(safe-area-inset-right, 12px)
env(safe-area-inset-bottom, 12px)
env(safe-area-inset-left, 12px)
```
A specific viewport m... |
require 'test_helper'
class SystemMailerTest < ActionMailer::TestCase
test "export_task_success" do
export_task = create :export_task
assert_difference "ActionMailer::Base.deliveries.count" do
SystemMailer.export_task_success(export_task.id).deliver
end
end
test "import_task_success" do
i... |
import {WAPPlugin} from '@wap/core';
export class WAPObjectUrl extends WAPPlugin<string> {
protected async _read(data: Uint8Array, type: string): Promise<string> {
let blob: Blob = new Blob([ data.buffer ], {type});
return URL.createObjectURL(blob);
}
}
export default WAPObjectUrl;
|
{-# LANGUAGE NoImplicitPrelude #-}
module Protocol.ROC.PointTypes.PointType174 where
import Data.Binary.Get (getByteString,
getWord8,
getWord16le,
Get)
import Data.ByteString (ByteString)
import Data.Word (Word8,Word16)
im... |
package `in`.obvious.android.starter
import `in`.obvious.android.starter.mobius.UiWorkRunner
class ImmediateUiWorkRunner : UiWorkRunner {
override fun post(work: () -> Unit) {
work()
}
}
|
SUBROUTINE SCRLM (SCURL, XXI, E, H, CONT, RP, ALF1, R1, LAM1,HF)
C
C THIS SUBROUTINE COMPUTES THE STRESS MATRIX IN FIELD COORDINATES
C FOR THE TOROIDAL RING ELEMENT
C
C
C NOTE THE DOUBLE SUBSCRIPTING USED IN THE SCRLM SUBROUTINE IS
C COMPATIBLE WITH THE CALLING PROGRAM. THE SEL ARRAY WILL RETURN WITH
C TH... |
---
title: Jazz
---
<!-- listed from _data/albums.yaml -->
{% include /collections/jazz.html list=site.data.albums %}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.