text stringlengths 27 775k |
|---|
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class TagihanApiController extends Controller
{
public function getTagihan(Request $request){
$tagihan = DB::table('tagihan')
->join('pembayaran','p... |
require 'acme_plugin/challenge_store'
module AcmePlugin
class FileStore < ChallengeStore
def initialize(challenge_content, challenge_dir_name)
super(challenge_content)
@challenge_dir_name = challenge_dir_name
end
def store_content
full_challenge_dir = File.join(Rails.root, @challenge_d... |
-- Restricts uuid, created_at, user_id
-- for these three columns we never let the caller control the contents
CREATE OR REPLACE FUNCTION mappa.override_survey_response_columns()
RETURNS TRIGGER AS $$
BEGIN
IF NEW.uuid IS NOT NULL THEN
RAISE EXCEPTION 'You must not send uuid field';
ELSE
NEW.uuid = mappa.u... |
import { ICommand } from '../../../common/commands';
export class UpdateEmployeeTags implements ICommand {
employeeId: number;
tags: string;
constructor(employeeId: number, tags: string) {
this.employeeId = employeeId;
this.tags = tags;
}
}
|
tasks {
register("delete", Delete::class.java) {
delete(buildDir)
}
} |
# -*- coding: utf-8 -*-
import unittest
import os
import re
try:
from mock import patch, MagicMock
except ImportError:
from unittest.mock import patch, MagicMock
from .context import pydatajson
from pydatajson.federation import *
from ckanapi.errors import NotFound
SAMPLES_DIR = os.path.join("tests", "sampl... |
package migrate
import java.io.BufferedWriter
import java.io.File
import java.io.FileWriter
import scala.meta.XtensionTokenizeInputLike
import scala.meta.io.AbsolutePath
import org.scalatest.FunSuiteLike
import scalafix.internal.patch.PatchInternals
import scalafix.testkit._
class RuleSuite extends AbstractSemantic... |
---
title: Bitte schreiben Sie mir keine E-Mails.
layout: presentation.11ty.js
slideClasses: statement
status: ok
---
Ich hab schon genug davon!
|
package types
import (
"fmt"
sdk "github.com/okex/exchain/libs/cosmos-sdk/types"
govtypes "github.com/okex/exchain/x/gov/types"
"strings"
)
const (
// proposalTypeManageTreasures defines the type for a ManageContractTreasures
proposalTypeManageTreasures = "ManageTreasures"
// RouterKey uses module name for ro... |
# Abandoned project, never finished
Idea was to have TLS-like simple stateful encrypted protocol, and hard-to-misuse library
See TODO file
|
package com.gudnam.bringluck.common;
import java.util.ArrayList;
import android.support.v4.app.FragmentActivity;
public class BLFragmentActivity extends FragmentActivity{
public static ArrayList<FragmentActivity> frgActList = new ArrayList<FragmentActivity>();
}
|
enum DemoInstrument {
EtherealPad = "Ethereal Pad",
MoodyPad = "Moody Pad",
WavyPad = "Wavy Pad",
}
export { DemoInstrument };
|
import { PersonAction } from './person-action';
import { SimpleDate } from '../simple-date';
import { PersonSituation } from '../person-situation';
import { Rental } from '../rental';
export class RentPropertyAction implements PersonAction {
constructor(public date: SimpleDate, public rental: Rental) {
th... |
// jshint esversion: 6
// jshint node: true
"use strict";
/**
* Proofs if the array-parameter is a valid string array
* @param {*} array
* @param {String} parametername
* @returns {boolean}
*/
const stringArrayValid = function (array, parametername) {
if (!Array.isArray(array)) {
return {error: 'Param... |
# ==================================================================================
# Useful effects
# Part of GameObject
#
# Useful objects to add more fancy in certain segments. Here are sample of
# animation effects when enemies got hit and when they're dead.
#
# What else Orange needs when on stage? :P
# ====... |
package cmd
import (
"context"
"math/rand"
"time"
"github.com/golang/protobuf/ptypes/timestamp"
"github.com/jozuenoon/message_bus/collector"
"github.com/spf13/cobra"
)
var trafficCmdDetectorIDs []string
var trafficCmdDeviceIDs []string
var trafficCmdRate int64
// trafficCmd represents the traffic command
var... |
package com.roundeights.isred
/**
* Parses an Int response
*/
private[isred] class IntParser extends ParserWrap[IntReply] (
new ParseUntil(
Parser.ENDLINE,
(bytes: Array[Byte]) => IntReply(
Integer.parseInt( Parser.asStr(bytes) )
)
)
)
/**
* Parses a String (Bulk) reply
... |
#!/bin/bash
TESTS="t1 t2 t3"
# Note that both t1.pl and t2.pl test code in rules.pl.
# Unit tests are usually longer than the tested code.
# So it is common to test one source file with multiple
# unit test files.
LF=$'\n'
PASS=""
FAIL=""
echo "#### TEST_SRCDIR = ${TEST_SRCDIR}"
if [ "${TEST_SRCDIR}" == "" ]; then... |
export default class CancellationToken {
constructor() {
this.cancelled = false;
}
get() {
return this.cancelled;
}
set(value) {
this.cancelled = value;
}
}
|
module AwesomeTranslations::ViewsHelper
def helper_t(key, args = {})
AwesomeTranslations::GlobalTranslator.translate(key, helper: true, caller_number: 1, translation_args: [args])
end
end
|
#!/bin/sh
# Actual users
drush mim upgrade_d6_user
# User contact settings
drush mim upgrade_d6_user_contact_settings
|
//! env module
use super::{parser, Pattern};
use super::{Infix, Interface, ModuleName, Name, Type, TypeConstructor, UnionType};
use crate::utils::collect_accumulate;
use log::trace;
use std::collections::HashMap;
#[derive(Debug)]
pub enum ValueType {
Local,
TopLevel,
Foreign(ModuleName, Type),
Foreign... |
package dev.emrizkiem.covid19.di
import dev.emrizkiem.covid19.data.source.remote.ApiConfig
import dev.emrizkiem.covid19.data.source.remote.DataSource
import org.koin.dsl.module
fun networkModule() = module {
single { ApiConfig.createNetworkApi() }
single { DataSource() }
} |
Gem::Specification.new do |s|
s.platform = Gem::Platform.new(['x86_64', 'darwin']) # at least Mountain Lion
s.name = 'dns'
s.version = '0.0.5'
s.date = '2013-10-26'
s.summary = "A gem for configuring DNS on OS X"
s.description = "A gem for configuring DNS on OS X"
s.required_ruby... |
<?php
use tests\codeception\_pages\LoginPage;
use tests\codeception\_pages\AccountPage;
/* @var $scenario Codeception\Scenario */
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that login works');
$loginPage = LoginPage::openBy($I);
$I->amGoingTo('try to login with correct credentials');
$loginPage->login... |
#include "utils.h"
using namespace UW;
long int UW::getColor(std::string _color, const int screen, Display* display) {
const char* color = _color.c_str();
XColor c;
Colormap map = DefaultColormap(display, screen);
if (!XAllocNamedColor(display, map, color, &c, &c)) {
return 0;
}
return c.pixel;
}
|
import { ZlibWasmParser } from './web/index';
export * from './web/types';
export declare const zlib: ZlibWasmParser;
|
package model
import (
"encoding/json"
)
// action from DMAction-T
const (
ActFlushDM = "flush" // 刷新弹幕缓存
ActReportDel = "report_del" // 删除举报弹幕
ActAddDM = "dm_add" // 新增弹幕
ActFlushDMSeg = "dm_seg_flush" // 刷新分段弹幕缓存
)
// Action action message
type Action struct {
Action string `... |
module Ikra
module RubyIntegration
# No need to do type inference or code generation, if a method is called on an
# on an instance of one of these classes.
INTERPRETER_ONLY_CLS_OBJ = [Ikra::Symbolic.singleton_class]
def self.is_interpreter_only?(type)
if !type.is_a?(Typ... |
#pragma once
#include <iostream>
class Complex
{
private:
double re;
double im;
public:
Complex(double re = 0, double im = 0);
Complex(const Complex& complex);
~Complex();
double getRe();
void setRe(double re);
double getIm();
void setIm(double im);
void set(double re, double im);
void operator=(const ... |
package com.jumbo.javacore.Oexepcion.checkedexption.teste;
import com.jumbo.javacore.Oexepcion.checkedexption.classes.Funcionario;
import com.jumbo.javacore.Oexepcion.checkedexption.classes.PessoaP;
public class SubescreteTeste {
public static void main(String[] args) {
Funcionario f = new Funcionario();
... |
<nav class="Nav Nav-main" role="navigation">
<div class="Nav-wrapper container">
<div class="Nav-title">
SITIOWEB
</div>
<art-user-control>
<ul class="Nav-actions" slot="loginlinks">
<li><a href="{{ route('login') }}" id="loginlink">{{ __('Login') }}</a></li>
<li><a href="{{ r... |
module Highrise
class Person < Subject
include Pagination
include Taggable
def self.find_all_across_pages_since(time)
find_all_across_pages(:params => { :since => time.utc.to_s(:db).gsub(/[^\d]/, '') })
end
def company
Company.find(company_id) if company_id
end
def n... |
using System;
namespace JsonRocket
{
internal static class Literals
{
static Literals()
{
DotBuffer = new[] { Dot };
ArrayStartBuffer = new[] { ArrayStart };
ArrayEndBuffer = new[] { ArrayEnd };
NumberElements = new NumberElement[byte.MaxValue];
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class PlayerInfo : MonoBehaviour
{
public int win_condition_;
public GameObject playerInfoUI;
public TMPro.TMP_Text coin_count_text_;
public TMPro.TMP_Text win_text_;
public GameObject coin... |
<?php
namespace App\Http\Controllers\AttendanceMonitoring;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App;
use Auth;
use Carbon\Carbon;
class TOController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function index()
... |
import {
createJob,
getJobById,
getJobs,
updateJob,
deleteJob,
getJobsCount,
// getJobsPostedByUser,
// getJobsAppliedByUser,
} from "../index";
import { Job, jobs, PartialJob } from "../model";
export const jobTests = (): void => {
describe("job contract methods", () => {
it("creates a job", () ... |
def name
"import_entities_csv"
end
def pretty_name
"Import Entities CSV"
end
## Returns a string which describes what this task does
def description
"This is a task to import entities from a csv."
end
## Returns an array of types that are allowed to call this task
def allowed_types
[ Entities::ParsableFile... |
package net.officefloor.tutorial.dipojohttpserver;
/**
* Logic for the <code>template.woof.html</code>.
*
* @author Daniel Sagenschneider
*/
// START SNIPPET: tutorial
public class TemplateLogic {
public Pojo getTemplateData(Pojo dependency) {
return dependency;
}
}
// END SNIPPET: tutorial |
#[macro_export]
macro_rules! cb {
(($($arg:ident),*) $closure:expr) => {{
let closure = enclose::enc!(($($arg),*) $closure);
// return the closure using the cloned Rc
yew::Callback::from(closure)
}};
}
|
import express, { NextFunction, Request, Response } from 'express';
import cors from 'cors';
import { Server } from 'http';
import { FileController } from './controllers/file.controller';
import fileUpload from 'express-fileupload';
class Server1 {
app: express.Application;
server: Server;
constructor() {... |
# django-stack-list
Django 开发栈列表
## 资源列表
+ 官方网站:https://www.djangoproject.com/
+ 扩展包聚合:https://djangopackages.org/
+ 开源包、库、框架:https://libraries.io/
+ Awesome-List:./awesome-list.md
## Route
### Python基础
+ 基础语法是否熟悉
+ 有哪些关键字
+ 有哪些内置方法
+ 解释一下什么是动态语言?动态强类型
+ 是否有编码规范的概念?
+ 解释一下什么是深拷贝和浅拷贝
+ lambda的用法以及使用场景
+ 闭包及其作用
+... |
<?php
use Illuminate\Support\Facades\Route;
Route::group(['namespace' => 'App\Http\Controllers'], function () {
include 'api/auth.api.php';
include 'api/front.api.php';
Route::group(['middleware' => 'auth:api'], function () {
include 'api/user.api.php';
include 'api/admin.api.php';
include ... |
#!/usr/bin/env bash
# @file String
# @brief Functions for string operations and manipulations.
# @description Strip whitespace from the beginning and end of a string.
#
# @example
# echo "$(string::trim " Hello World! ")"
# #Output
# Hello World!
#
# @arg $1 string The string to be trimmed.
#
# @exitcode 0 ... |
package main
import (
"fmt"
"time"
"github.com/davecheney/junk/clock"
)
func main() {
rt, pt := clock.Realtime.Now(), clock.Process.Now()
time.Sleep(time.Second)
fmt.Printf("Wall clock time: %v, process CPU time: %v\n", clock.Realtime.Now().Sub(rt), clock.Process.Now().Sub(pt))
}
|
const moo = require('moo')
const IndentationLexer = require('./')
describe('IndentationLexer', () => {
let mooLexer
let lexer
beforeEach(() => {
mooLexer = moo.compile({
WS: /[ \t]+/,
comment: /\/\/.*?$/,
number: /0|[1-9][0-9]*/,
string: /"(?:... |
from base import AbstractLogicalFile, AbstractFileMetaData # noqa
from generic import GenericFileMetaData, GenericLogicalFile # noqa
from raster import GeoRasterFileMetaData, GeoRasterLogicalFile # noqa
from netcdf import NetCDFFileMetaData, NetCDFLogicalFile # noqa
|
require 'rmonitor'
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :authenticate_user!,
:set_locale
protected
def set_locale
# TODO, verif if the language exist
# I18n.locale = current_user.locale.to_sym || Setting.default_language.to_sym || I18n.... |
import os
from thorpy.elements.text import OneLineText
from thorpy.elements.clickable import Clickable
from thorpy.miscgui.storage import h_store
from thorpy.miscgui import functions, style
class PathElement(OneLineText):
def __init__(self, father, abspath,finish=True):
OneLineText.__init__(self)
... |
import { Component, Inject } from '@angular/core';
import { NavigationEnd, Router } from '@angular/router';
import { PostMessagesService } from '@services/post-messages.service';
import { DOCUMENT } from '@angular/common';
import { PostMessageActions } from '@shared/enums/post-message-actions.enum';
import { delay, fil... |
import tw from 'tailwind-styled-components';
export const SettingsContainer = tw.div`
flex
flex-col
justify-start
align-middle
w-full
px-9
mt-8
mb-4
`;
export const PlatformSettingsHeader = tw.div`
font-sans
font-bold
subpixel-antialiased
text-2xl
text-gray-600
... |
#=
organizational script for defining the LPBasic module
=#
"""
LPBasic Module
Julia module implementing the LPBasic line planning problem.
This includes:
- defining structs for containing the relevant problema data
- implementing IO functionality to read relevant data from GTFS data into such structs
-... |
import Promise from 'bluebird';
import request from 'request-promise';
import { strip } from 'eskimo-stripper';
// We create conversions using clickId (affiliateRef)
// and map the stripe charge id with externalId in tapfiliate
// so it would be easier to find and dissapprove existing
// conversions on refunded charg... |
#
# (C) Copyright IBM Corp. 2021, 2021
#
# SPDX-License-Identifier: Apache-2.0
#
#!/bin/sh
# Must match SERVER_NAME value in Dockerfile
LIBERTY_SERVER_NAME=cohortServer
export LIBERTY_SERVER_NAME
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
echo "DIR is '$DIR'"
.${DIR}/setupLiberty.sh
.${... |
module ScalarTime
import Dates
include("ExpressionSets.jl")
using .ExpressionSets
# import ExpressionSets: morse_code
export morse_code
export supdog
#export binary, senary, decimal, alphanumeric, modgin_int, modgin_fract
io = IOBuffer()
dt = Dates.format(Dates.now(), "H:MM e, Y-m-d")
greeting = " 'Sup, Dog? ... |
require_relative '../panos_static_route_base'
# Implementation for the panos_ipv6_static_route type using the Resource API.
class Puppet::Provider::PanosIpv6StaticRoute::PanosIpv6StaticRoute < Puppet::Provider::PanosStaticRouteBase
def initialize
super('ipv6')
end
end
|
//! The random color distortion algorithm.
use crate::common::*;
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct ColorJitterInit {
pub hue_shift: Option<R64>,
pub saturation_shift: Option<R64>,
pub value_shift: Option<R64>,
}
impl ColorJitterInit {
pub fn build(self) -> ColorJitter {
... |
import io.mockk.Runs
import io.mockk.every
import io.mockk.just
import io.mockk.mockk
import io.mockk.verify
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
class SocialNetworkShould {
/*
private val messageRepository: MessageRepository = mockk()
private val messagePublisher = domain.Me... |
import { JWTEngine } from '../common';
import { WebCryptoJWT } from './webcrypto-jwt';
export * from '../common';
export * from './webcrypto-jwt';
export function createJWTEngine() : JWTEngine { return new WebCryptoJWT(); };
export const JWT = createJWTEngine(); |
package com.abed.kotlinrecycleradapter
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide
@BindingAdapter("binding:src")
fun setImageResource(imageView: ImageView, src: Int) {
Glide.with(imageView.context).load(src).into(imageView)
}
|
import 'package:exercicio_final_lista_filmes/model/filme.dart';
import 'package:exercicio_final_lista_filmes/utility/util.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:smooth_star_rating/smooth_star_rating.dart';
class TelaDetalhesFilme extends StatefulWidget {... |
//>>built
define("dojox/encoding/crypto/RSAKey-ext",["dojo/_base/kernel","dojo/_base/lang","./RSAKey","../../math/BigInteger-ext"],function(_1,_2,_3,_4){
_1.experimental("dojox.encoding.crypto.RSAKey-ext");
function _5(d,n){
var b=d.toByteArray();
for(var i=0,_6=b.length;i<_6&&!b[i];++i){
}
if(b.length-i!==n-1||b[i]!==... |
# homotopico.com
This is Santiago Quintero's personal website. Uses Jekyll and TeXt theme.
TeXt Theme is [MIT licensed](https://github.com/kitian616/jekyll-TeXt-theme/blob/master/LICENSE).
|
module P3 where
-- The prime factors of 13195 are 5, 7, 13 and 29.
-- What is the largest prime factor of the number 600851475143 ?
pf :: Integer -> [Integer]
pf 1 = []
pf n
| even n = 2 : pf (div n 2)
| otherwise = go 3 n
where
go i n
| mod n i == 0 = i : pf (div n i)
| otherwise = go ... |
import { APIGatewayProxyResult } from 'aws-lambda';
import Boom from '@hapi/boom';
import { getApiGatewayEvent } from '../../../helpers/events';
import {
algoliaSearchApiKey,
auth0SharedSecret as secret,
} from '../../../../src/config';
import { identity } from '../../../helpers/squidex';
import { fetchUserByCodeHa... |
/*
* Copyright 2013 Twitter 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 or agreed to... |
package com.getbux.simplebux.kmm.shared
class BuxRepository {
private val buxAPI = BuxAPI()
suspend fun fetchProducts(): List<Product> {
return listOf(buxAPI.fetchProducts())
}
} |
<?php
declare(strict_types=1);
namespace Spiral\RoadRunnerLaravel\Listeners;
use Spiral\RoadRunnerLaravel\Events\Contracts\WithApplication;
/**
* @link https://github.com/laravel/octane/blob/1.x/src/Listeners/FlushAuthenticationState.php
*/
class FlushAuthenticationStateListener implements ListenerInterface
{
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using Microsoft.Azure.Management.Compute;
using Microsoft.Azure.Management.Compute.Models;
using Microsoft.Azure.... |
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:watch_clock/models/time.dart';
import 'package:watch_clock/shared/utils/screen_size.dart';
import 'package:watch_clock/shared/widgets/clock_container.dart';
enum TimeDisplay { hour, minute }
class TimeText extends Statele... |
using Microsoft.DotNet.Interactive;
using Microsoft.DotNet.Interactive.CSharp;
namespace TAO3.Internal.Extensions;
internal static class KernelInvocationContextExtensions
{
public static CSharpKernel GetCSharpKernel(this KernelInvocationContext context)
{
return (CSharpKernel)context.HandlingKernel.F... |
/*
* Copyright 2019 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package load
import "time"
//TaskMetadata https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v2.html#task-metadata-endpoint-v2-response
type TaskMetadata struct {
// The name of... |
<?php
namespace MyPromo\Connect\SDK\Repositories\Designs;
use Exception;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\RequestOptions;
use MyPromo\Connect\SDK\Exceptions\DesignException;
use MyPromo\Connect\SDK\Models\Design;
use MyPromo\Connect\SDK\Repositories\Repository;
use Psr\Cache\InvalidArgumentExc... |
using System;
using System.ComponentModel.DataAnnotations;
namespace PenmanApi.Dtos.Chapters
{
[Serializable]
public class DeleteChapterDto
{
[Required]
public long ChapterId { get; set; }
[Required]
public long AuthorId { get; set; }
public override ... |
//!
//! # GDSII Conversion Module
//!
//! Converts between Layout21's "raw" layout data-model and [gds21] structures.
//!
// Std-Lib
use std::collections::{HashMap, HashSet};
use std::convert::{TryFrom, TryInto};
use std::hash::Hash;
// Crates.io
use slotmap::{new_key_type, SlotMap};
// Local imports
use crate::util... |
using System.Collections.Generic;
using ESFA.DC.Data.DAS.Model;
namespace ESFA.DC.ILR.ReportService.Service.Comparer
{
public sealed class DasCommitmentsComparer : IEqualityComparer<DasCommitments>
{
public bool Equals(DasCommitments x, DasCommitments y)
{
if (x == null && y != nul... |
# PiFlow大数据流水线管理系统 Web 端
支持pc端自适应。
[English](./README.md) | 简体中文
### 项目初始化
```
npm install
```
### 启动开发环境
```
npm run dev
```
### 项目打包上线
```
npm run build
```
### 项目优化可视化分析
```
npm run analyzer
```
### Lints和fixes文件
```
npm run lint
```
### 已安装的包 || 模块
```json
{
"dependencies": {
"axios": "^0.19.2",
"... |
Go driver for MariaDB/MySQL server
=======
* A native Go driver for MariaDB/MySQL database server.
* License : The MIT License (MIT)
* SSL support.
* Compression support.
* Support for Prepared Statements (PS).
* Binlog API to access replication binary logs.
* Extended error handling support.
* Wiki : https://github.c... |
RSpec.describe Vote, type: :model do
describe 'associations' do
it { should belong_to(:user) }
it { should belong_to(:votable) }
end
describe 'validations' do
it { should validate_inclusion_of(:vote).in_array([Vote::AGAINST, Vote::FOR]) }
context 'uniqueness of (user, votable)' do
let!(:us... |
package co.paystack.android.api.service
import co.paystack.android.api.model.ChargeResponse
import co.paystack.android.api.model.TransactionInitResponse
import co.paystack.android.api.service.converter.NoWrap
import co.paystack.android.model.AvsState
import retrofit2.Call
import retrofit2.http.*
internal interface Pa... |
# frozen_string_literal: true
require "rails_helper"
describe "event calendar", js: true do
let(:actor) { create(:user) }
before do
use_user_subdomain(actor)
login_as(actor, scope: :user)
end
context "with a meal event and a non-meal event" do
let!(:calendar1) { create(:calendar, name: "Foo Room... |
# frozen_string_literal: true
require 'brother_escp'
doc = BrotherEscp::Document.new
doc.sequence(:LANDSCAPE_OFF)
doc.image(file_name: 'examples/small.png')
doc.image(file_name: 'examples/small.png', density: :high_density)
doc.image(file_name: 'examples/small.png', density: :higher_density)
doc.sequence(:CTL_FF)
... |
---
title: EP9 - 3 เคล็ดลับ สร้างแรงจูงใจให้ทีมงาน
description: AMP - Autonomy, Mastery, Purpose
reference: https://soundcloud.com/user-643868388/ep9-3
--- |
package com.sharkaboi.mediahub.modules.anime_details.util
import com.sharkaboi.mediahub.data.api.enums.AnimeStatus
data class AnimeDetailsUpdateClass(
val animeStatus: AnimeStatus?,
val score: Int?,
val numWatchedEpisode: Int?,
val totalEps: Int,
val animeId: Int
)
|
package ru.nowandroid.youtube.rostselmash.charts
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.github.mikephil.charting.animation.Easing
import com.github.mikephil.charting.data.PieData
import com.github.mikephil.charting.data.PieDataSet
import com.github.mikephil.charting.data.Pi... |
package kt.schors.vertx.telegram.bot.api.methods
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
import kt.schors.vertx.telegram.bot.api.types.Markup
import kt.schors.vertx.telegram.bot.api.types.ParseMode
data class SendMessage
@JsonCreator constructor(
... |
import Ember from 'ember';
import moment from 'moment';
export default Ember.Component.extend({
totalSpent: Ember.computed('expenses', function() {
let ret = this.get('expenses').reduce((previousValue, item) => previousValue + item.get('amount'),0);
return ret;
}),
getDates() {
return this.get('exp... |
/**
* @fileOverview controller base
* @author huangtonger@aliyun.com
*/
import Util = require('../util/');
class Base {
getDefaultCfg() {
return {};
}
constructor(cfg) {
const defaultCfg = this.getDefaultCfg();
Util.mix(this, defaultCfg, cfg);
this._init();
}
_init() {}
destroy() {}
}
... |
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:impossiblocks/controller/sound_controller.dart';
import 'package:impossiblocks/localizations/impossiblocks_localizations.dart';
import 'package:i... |
void Animation::Initialize() {
m_animation_map = NULL;
m_index = 0;
m_id = 0;
m_time = 0.0f;
}
void Animation::Add(int id, Range range) {
hmput(m_animation_map, id, range);
}
inline void Animation::SetAnimation(int id) {
if (m_id != id) {
m_id = id;
m_time = 0;
}
}
void Animation::Update(float ... |
using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Collections.Generic;
using System.IO.Compression;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Mono.Unix;
namespace SS14.Watchdog.Componen... |
package io.gitlab.arturbosch.grovlin.ast.symbols
/**
* @author Artur Bosch
*/
class LocalScope(override val name: String,
override val enclosingScope: Scope) : BaseScope()
|
require 'spec_helper'
describe 'pupmod::master::generate_types' do
shared_examples_for 'generate_types' do
it { is_expected.to compile.with_all_deps }
it { is_expected.to create_file('/usr/local/sbin/simp_generate_types') }
it { is_expected.to create_file('/var/run/simp_generate_types') }
it { is_exp... |
package edu.nwpu.ad.handle;
import edu.nwpu.ad.index.IndexAware;
import edu.nwpu.ad.mysql.constant.OpType;
import lombok.extern.slf4j.Slf4j;
/**
* 1.索引之间存在着层级的划分,也就是依赖关系的划分
* 2.加载全量索引其实是增量索引,“添加”的一种特殊实现
* 3.
*/
@Slf4j
public class AdLevelDataHandler {
private static <K,V> void handleBinlogEvent(
... |
# downloadTMS
> 下载TMS规则的地图瓦片
## 项目简介
``` bash
downloadTMS.py 主程序
config.json 配置文件(配置下载相关参数)
```
## config.json 说明
```bash
{
"baseUrl":"http://mt1.google.cn/vt/lyrs=y&hl=zh-CN&gl=CN&src=app&x={x}&y={y}&z={z}&s=G",//TMS地图服务地址
"pictureType":".png",//下载后的图片格式
"zoomMin":10,//地图缩放级别
... |
{-# LANGUAGE FlexibleInstances #-}
module Hoops.SegPath (
SegPath,
mkSegPath,
toString,
isAbsolute,
isRelative,
isFromRoot,
isFromAlias,
isFromKey,
expandAlias
) where
import Control.Exception (assert)
import Data.Char (toLower, isSpace, isAlphaNum)
import Data.List (intercalate)
... |
# EMFileStream
A file operation tool developed by Swift 3 working on iOS, macOS and Linux.
# 中文介绍
你可以在[「这里」](http://enumsblog.com/post?pid=16011)找到中文介绍。
# Integration
Clone the repo and copy the framework to your project.
If you need archive your object to a Data object, you can use [「EMDataStream」](https://gith... |
---
first_name: Daniel
last_name: Jiang
image: /img/contributors/daniel-jiang.png
github_handle: reasonerjt
---
Technical Lead |
package fssi
package types
package json
import fssi.base.BytesValue
import fssi.types.biz._
import fssi.types.implicits._
import io.circe._
import io.circe.syntax._
import io.circe.generic.auto._
import json.implicits._
trait BizTransactionJsonCodec {
implicit val bizTransactionIdEncoder: Encoder[Transaction.ID] =
... |
using System.Collections.Generic;
using System.Linq;
namespace Challenges.Strings
{
public class firstNonRepeatChar
{
public static char firstNotRepeatingCharacter(string s)
{
char[] charArray = s.ToCharArray();
Dictionary<char, int> HT = new Dictionary<char, int>();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.