text stringlengths 27 775k |
|---|
/****************************************************************
* 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... |
set :stage, :production
set :branch, "master"
# used in case we're deploying multiple versions of the same
# app side by side. Also provides quick sanity checks when looking
# at filepaths
set :full_app_name, "#{fetch(:application)}_#{fetch(:stage)}"
server 'web1.makeitwithcode.com', user: 'deploy', roles: %w{web ap... |
package no.nav.familie.integrasjoner.helse
import no.nav.familie.http.health.AbstractHealthIndicator
import no.nav.familie.integrasjoner.client.rest.DokdistRestClient
import org.springframework.stereotype.Component
@Component
internal class DokdistHelsesjekk(dokdistRestClient: DokdistRestClient)
: AbstractHealthI... |
package com.example.ktzhihudaily.event
/**
* Created by xingzhijian on 2016/3/15.
*/
class NewsDetailEvent {
} |
package org.openrndr.draw
import org.openrndr.internal.Driver
import org.openrndr.utils.buffer.MPPBuffer
import java.nio.ByteBuffer
actual abstract class VertexBuffer {
actual abstract val session: Session?
actual companion object {
actual fun createDynamic(format: VertexFormat, vertexCount: Int, ses... |
require 'rails_helper'
describe 'Attributions', type: :model, group: :attribution do
let(:class_with_attribution) { TestAttributionable.new }
let(:person) { FactoryBot.create(:valid_person) }
context 'associations' do
specify 'has_one attribution 1' do
expect(class_with_attribution).to respond_to(:at... |
require '_h2ph_pre.ph';
no warnings qw(redefine misc);
unless(defined(&_SYS_VMEM_H_)) {
eval 'sub _SYS_VMEM_H_ () {1;}' unless defined(&_SYS_VMEM_H_);
require 'sys/types.ph';
if(defined(&_KERNEL)) {
eval 'sub VMEM_ADDR_MIN () {0;}' unless defined(&VMEM_ADDR_MIN);
eval 'sub VMEM_ADDR_MAX () {(~( &vmem_ad... |
const
gulp = require('gulp')
plumber = require('gulp-plumber')
pug = require('gulp-pug')
sass = require('gulp-sass')
autoprefixer = require('gulp-autoprefixer')
uglify = require('gulp-uglify')
rename = require('gulp-rename')
webserver = requir... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace PetFinder.Services.Comments
{
public interface ICommentsService
{
bool AddSearchPostComment(string comment, string searchPostId, string userId);
bool AddResourcePostComment(string commen... |
const { expect } = require('./chai');
const path = require('path');
const { fileExists, glob, readFile, readJson } = require('../../src/util/fs');
describe('util/fs', () => {
describe('#fileExists', () => {
it('resolves if the file exists', () => {
const file = path.resolve(__dirname, '../views/TestPage.ht... |
<?php
/**
* Created by PhpStorm.
* User: aliduman
* Date: 24/03/2017
* Time: 22:11
*/
return [
'news_manager' => 'Haber Yönetimi',
'news' => 'Haberler',
'news_categories' => 'Haber Kategorileri',
'news_settings' => 'Haber Ayarları',
'future_news' => 'Zamanlanmış Haberler',
'news_source' =>... |
module Git::Lighttp
class Treeish < Application
set :authenticate, false
helpers GitHelpers
before do
authenticate! if settings.authenticate
end
get %r{/(.*?)/(.*?/{0,1}.*)} do |name, path|
content_type :json
path = path.split('/')
ref = path.shift
tree = re... |
#!/bin/bash
set -eu -o pipefail
outdir=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM
mkdir -p "$outdir"
mkdir -p "$PREFIX"/bin
cp -R * "$outdir"/
cp "$RECIPE_DIR"/mpa-server.py "$outdir"/mpa-server
ln -s "$outdir"/mpa-server "$PREFIX"/bin
# mysql
sql_subdir=mysql
# write config file
cat <<EOF > "$outdir"/config... |
<div class="nav-scroller bg-white shadow-sm">
<nav class="nav nav-underline container">
<a class="nav-link" href="#CivilDefense">الدفاع المدني</a>
<a class="nav-link" href="#Ambulance">الإسعاف</a>
</nav>
</div>
|
$ProgressPreference = 'SilentlyContinue'
$sw = [System.Diagnostics.Stopwatch]::StartNew()
$Configuration = 'Debug'
$Platform = 'x64'
$BaseIntermediateOutputPath = "obj\$Configuration\$Platform"
$OutputPath = "bin\$Configuration\$Platform"
$Random = [System.Random]::new();
$CommonCompilerFlags = @(
'/nologo',
... |
package Polimorfismo;
/**
* Created by dds on 15/11/2016.
*/
public class principal {
public static void main(String[] args){
PoliUno poliUno = new PoliUno();
PoliDos poliDos = new PoliDos();
poliUno.musica();
poliDos.musica("metal","Pantera");
}
}
|
#! /usr/bin/env bash
#
# Copyright (c) 2018 Nat! - Mulle kybernetiK
# 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 not... |
package models
type IAPIRequest interface {
}
type APIRequest struct {
AccessToken string `json:"-"`
ComponentAccessToken string `json:"-"`
}
//返回码
// https://developers.weixin.qq.com/doc/ministore/minishopopencomponent/API/return/errcode.html
type APIResponse struct {
Errcode int64 `json:"errcode"`
Er... |
//! Periodic clock implementations
use super::{set_clock_gate, ClockGate, Disabled, Handle, Instance, PerClock, CCGR_BASE};
use crate::ral;
/// Peripheral instance identifier for GPT
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum GPT {
GPT1,
GPT2,
}
/// Periodic clock frequency (Hz)
///
/// This may b... |
/**
* Copyright 2011-2021 Asakusa Framework Team.
*
* 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... |
package controllers
import (
"api/src/authentication"
"api/src/banco"
"api/src/messages"
"api/src/models"
"api/src/repository"
"api/src/security"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"strconv"
)
// Login -> authenticate the user
func Login(w http.ResponseWriter, r *http.Request) {
corpoRequisicao,... |
def is_valid_email( email ):
from django.core.validators import validate_email
from django.core.exceptions import ValidationError
try:
validate_email(email)
return True
except ValidationError:
return False
|
# U: the dimension of the universe
# D: the dimension of the manifold
# N: the number of vertices
# T: the type of the coordinates
# C: the complimentary dimension (should always be U-D)
struct SphereChart{P,T}
center::P
radius::T
end
volume(p::SphereChart) = 4π * p.radius^2
coordtype(ch::Type{SphereChart{P,... |
// -*-c++-*-
/*!
\file parser_json.cpp
\brief rcg v6 (JSON format) parser Source File.
*/
/*
*Copyright:
Copyright (C) Hidehisa AKIYAMA
This code is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation;... |
"use strict";
export {
ArchiveWriter,
scanArchive
} from "./lib4bottle/archive";
export {
bottleTypeName,
readBottle,
writeBottle,
TYPE_FILE,
TYPE_HASHED,
TYPE_ENCRYPTED,
TYPE_COMPRESSED
} from "./lib4bottle/bottle_stream";
export {
decodeFileHeader,
encodeFileHeader,
writeFileBottle,
write... |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text;
using System.Threading;
//using System.Threading.Tasks;
namespace Utilities
{
public class ThreadPoolFiber : IFiber
{
public int fiberid = -1;
FiberPool fp = null;
internal void Atta... |
'use strict';
var should = require('should');
var application = require('..');
describe('app data', function () {
var app = null;
describe('.namespace()', function() {
beforeEach(function () {
app = new application.App();
});
it('should namespace data using the `:basename` of the file.', funct... |
<div class="content-centered">
<div class="row text-center">
<h3>
Twoje hasło zostało zresetowane!
</h3>
<h3>
<b>Kliknij <a asp-action="Login">TU</a> by się zalogować.</b>
</h3>
</div>
</div> |
# frozen_string_literal: true
module ServiceNow
class Identify < Table
class << self
def reconcile_enhanced(params, body, auth)
exec :post, "reconcile/enhanced?#{build_query(params)}", body, auth
end
private
def url(auth)
"https://#{auth[:host]}/api/now/identify"
e... |
# Protospace Logon Tracker
Tracks users who log onto a certain computer and POSTs it to the portal.
Windows 7 file location:
`C:\ProgramData\Microsoft\Windows\Start Menu\Programs`
|
#!/bin/sh
uploader="./dropbox_uploader.sh -f .dropbox_uploader"
subfolder_name="$TRAVIS_BUILD_NUMBER-$TRAVIS_COMMIT_RANGE-$TRAVIS_BRANCH"
defaultoutfilename="platformake-$TRAVIS_BUILD_NUMBER-$COMPILER_NAME"
newestoutfilename="platformake-$COMPILER_NAME"
curl -Os "https://raw.githubusercontent.com/andreafabrizi/Dropb... |
/*
* System Interface Library for games
* Copyright (c) 2007-2020 Andrew Church <achurch@achurch.org>
* Released under the GNU GPL version 3 or later; NO WARRANTY is provided.
* See the file COPYING.txt for details.
*
* src/sysdep/opengl/primitive.c: Primitive rendering functionality for
* OpenGL-based platforms... |
#pragma once
#include "Lamp/Objects/Entity/Base/BaseComponent.h"
#include "Lamp/Event/EntityEvent.h"
namespace Lamp
{
class DirectionalLightComponent final : public EntityComponent
{
public:
DirectionalLightComponent();
~DirectionalLightComponent();
//////Base//////
virtual void Initialize() override;
v... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
{-# LANGUAGE OverloadedStrings #-}
{-| Simple program running Lua code.
-}
module Main where
import HsLua.Core
import qualified Data.ByteString as B
main :: IO ()
main = do
putStrLn "Calling Lua to output some Fibonacci numbers."
luaStatus <- run $ do
openlibs -- load the default Lua packages
d... |
CREATE INDEX idx_trips_on_start_station ON trips (start_station_id);
CREATE INDEX idx_trips_on_end_station ON trips (end_station_id);
CREATE INDEX idx_trips_on_dow ON trips (EXTRACT(DOW FROM start_time));
CREATE INDEX idx_trips_on_hour ON trips (EXTRACT(HOUR FROM start_time));
CREATE INDEX idx_trips_on_date ON trips (d... |
---
layout: default
title: About
---
# About Me
I'm currently a software engineer working in the Philadelphia metro area.
Professionally, I develop service-oriented applications with Java and Ruby on
Rails. My work is mostly back end, but I have some experience in developing
responsive web content with React and Boots... |
package me.hsgamer.bettergui.action;
import co.aikar.taskchain.TaskChain;
import me.hsgamer.bettergui.api.action.CommandAction;
import org.bukkit.Bukkit;
import java.util.Optional;
import java.util.UUID;
public class PlayerAction extends CommandAction {
/**
* Create a new action
*
* @param string the acti... |
using UnityEngine;
using System.Linq;
using System.Collections.Generic;
using Zenject;
namespace MistRidge
{
public class StandardChunkFeaturePickingStrategy : IChunkFeaturePickingStrategy
{
private readonly Generator generator;
private HashSet<ChunkFeature> pickedUniqueChunkFeatures;
... |
package com.seigneur.gauvain.wowsplash.data.local
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.seigneur.gauvain.wowsplash.data.model.user.User
import io.reactivex.Maybe
import io.reactivex.Single
@... |
package node
//meant for chechking chain validity and functions related to the chain
import(
"fmt"
"math/big"
)
func CreateChain(genBlock Block) []Block{
return []Block{genBlock};
}
func IsChainValid(bc []Block) bool {
for i := 0; i < len(bc); i++ { //deal with error of genesis block
//check if previous ... |
export interface User {
email: string;
expires: number;
validAt: any;
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace marvelReset.Command
{
public class CommandHandler : ICommand
{
#pragma warning disable 0067
public event EventHandler CanExecuteChanged;
#pragma war... |
import React, {
forwardRef,
useImperativeHandle,
useRef,
useState,
} from "react";
import { ScrollView, View } from "react-native";
import {
CarouselIndicatorRendererProps,
CarouselProps,
CarouselRef,
} from "../index.d";
import { Indicator } from "./Indicator";
import { range } from "./range";
const de... |
#!/bin/sh
. $(dirname "$0")/init.sh
# All tests so far had input with a trailing linebreak on the last line.
# An otherwise identical file without that final linebreak should
# result in the same output:
define expectedOutput <<-EOT
[["c1","c2"]
,["v1","v2"]]
EOT
assertCmdEq "( cat $SAMPLE/noeol.csv ; echo ) | $CS... |
require 'active_support/concern'
module TypedAssociated
extend ActiveSupport::Concern
include Typed
included do
before_action :set_associated, except: [:index, :download_csv]
end
private
def set_associated
instance_variable_set(
typed_associated_name,
@type.constantize.find(as... |
using Disguise.Behaviors;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using WUG.BehaviorTreeVisualizer;
namespace Disguise.Behaviors.Decorators
{
public class Delay : Decorator
{
private float m_StartTime;
... |
import { styled, css } from 'bumbag/styled'
import { breakpoint, space } from 'bumbag/utils/theme'
const ArticleHeader = styled.header`
max-width: 680px;
margin: 0 auto;
margin-bottom: ${space(6, 'major')}rem;
display: flex;
text-align: left;
flex-direction: column-reverse;
h1 {
margin: 0;
font-... |
import { Archives, Spec, SpecType } from './Archives';
import request, { RequestPromiseAPI } from 'request-promise';
import { SocksProxyAgent } from 'socks-proxy-agent';
import { inject, injectable } from 'tsyringe';
import { ok } from 'assert';
export interface RestArchivesOptions {
insecure?: boolean;
timeout?: ... |
#!/bin/sh
# Note: Script must be run like this `. .init_env.sh` to setup variables for your current shell
# define relative paths
DistPath="tauri/test/fixture/dist"
SrcPath="tauri/test/fixture/src-tauri"
echo "Setting up enviromental Variables"
# check if relative paths exist
if [ -d "$DistPath" ]||[ -d "$SrcPath" ]... |
//! Provides `ChunkProducer`, which creates chunk proofs for full replication of
//! a Merk.
use super::Merk;
use crate::proofs::{chunk::get_next_chunk, Node, Op};
use crate::{Error, Result};
use ed::Encode;
use rocksdb::DBRawIterator;
/// A `ChunkProducer` allows the creation of chunk proofs, used for trustlessly
/... |
##
# This file is part of WhatWeb and may be subject to
# redistribution and commercial restrictions. Please see the WhatWeb
# web site for more information on licensing and terms of use.
# http://www.morningstarsecurity.com/research/whatweb
##
# Version 0.3 #
# Update version detection and added cookie and javascript ... |
<?php
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* The main class for the Legend Item
*
*/
class WPBS_Legend_Item extends WPBS_Base_Object {
/**
* The Id of the legend item
*
* @access protected
* @var int
*
*/
protected $id;
/**
* The legend item type
*
* @acce... |
RSpec.describe ERBB do
it "has a version number" do
expect(ERBB::VERSION).to eq('0.1.0')
end
describe '#new' do
it 'constructs an ERBB::Parser' do
parser_args = [double,double,double,double]
expect(ERBB::Parser).to receive(:new).with(*parser_args)
ERBB.new(*parser_args)
end
end
en... |
<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>PHP Mondai 11</title>
</head>
<body>
<!-- クラス定義 -->
<?php
// 並び替え、最大値、最小値を計算するクラス
class Calcurator {
public function getMaxNumber($numbers) {
return max($numbers);
... |
#!/usr/bin/env bash
# Disable the Datadog Agent for datadog drain run machines
if [ "$DYNOTYPE" == "run" ]; then
DISABLE_DATADOG_AGENT="true"
fi
# Comment out Datadog agent default host tags-- we have our own
sed -i 's/- dyno:/# - dyno:/' "$DATADOG_CONF"
sed -i 's/- dynotype:/# - dynotype:/' "$DATADOG_CONF"
|
/// Returns the version of this crate in the format `MAJOR.MINOR.PATCH`.
pub fn version() -> &'static str {
// TODO: There's also an optional _PRE part
concat!(
env!("CARGO_PKG_VERSION_MAJOR"),
".",
env!("CARGO_PKG_VERSION_MINOR"),
".",
env!("CARGO_PKG_VERSION_PATCH"),
)
}
|
typedef struct Process {
int pid;
enum { New, Ready, Running, Terminated } state;
int arrival_time;
int cpu_burst;
int wait_time;
int time_left;
int termination_time;
} Process;
int create_pcb(Process process_table[]){
int n = 0;
char* filename = "process.csv";
char* delimiter ... |
import { ClassTransformer, ClassTransformOptions } from "class-transformer";
export function TransformArrayOfClassesToPlainArray(params?: ClassTransformOptions) {
return (target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => {
const classTransformer = new ClassTransformer();
cons... |
class CreateAuctions < ActiveRecord::Migration
def change
create_table :auctions do |t|
t.integer :auc, :limit => 8
t.integer :item
t.string :owner
t.string :original_realm
t.integer :bid, :limit => 8
t.integer :buyout, :limit => 8
t.integer :quantity
t.string :time... |
from .client import client
from .util import output
from .permissions import isrole, isbanned, bantypes
import re
import logging
import asyncio
logger = logging.getLogger(__name__)
chatlogger = logging.getLogger("chat")
commands = {}
help_cache = {}
always_commands = []
unsafe_always_commands = []
is_command_re = Non... |
# This file is part of Patsy
# Copyright (C) 2011-2012 Nathaniel Smith <njs@pobox.com>
# See file LICENSE.txt for license information.
# http://www.ats.ucla.edu/stat/r/library/contrast_coding.htm
# http://www.ats.ucla.edu/stat/sas/webbooks/reg/chapter5/sasreg5.htm
from __future__ import print_function
# These are ma... |
using Api.Models;
using FluentValidation;
namespace Api.Validators
{
public class BValidator : AbstractValidator<B>
{
public BValidator()
{
RuleFor(x => x.Property).NotEmpty();
}
}
}
|
namespace Bistrotic.Application.Repositories
{
using System;
public sealed class RepositoryMetadata : IRepositoryMetadata
{
public string? CausationId { get; set; }
public string? CorrelationId { get; set; }
public DateTime SystemUtcDateTime { get; set; }
public DateTimeOff... |
#!/usr/bin/env python3
from flask import render_template, jsonify
import connexion
app = connexion.App(__name__, specification_dir='./')
# Read the swagger.yml file to configure the endpoints
app.add_api('swagger.yml')
# To put in view.py
@app.route("/")
def home():
return "Home page"
@app.route("/dashboard... |
package com.twitter.inject.thrift.integration.inheritance
import com.twitter.finagle.Service
import com.twitter.inject.Logging
import com.twitter.inject.thrift.integration.AbstractThriftService
import com.twitter.util.Future
import com.twitter.serviceA.thriftscala.ServiceA
import com.twitter.serviceB.thriftscala.Servi... |
class String
define_method(:word_count) do |word|
count = 0
sentence = self
while (sentence.include? word)
count += 1
sentence.sub!(word, "")
end
return count
end
end
|
using System;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
namespace System.Reactive.Subjects
{
class SynchronizedSubject<T> : ISubject<T>
{
object gate;
ISubject<T> sub = new Subject<T> ();
public SynchronizedSubject (object gate)
{
this.gate = gate;
}... |
package lib
import (
"net"
"strings"
)
// IPRangeStrFromRangeStr returns the two IP parts (start and end) of an IP
// range string.
// The string must be of any of these forms:
// <ip_range_start>-<ip_range_end>
// <ip_range_start>,<ip_range_end>
func IPRangeStrFromRangeStr(r string) (string, string, error) {
idx ... |
#!/bin/bash
# Should run from the Raspberry Pi.
python3 -m venv ./venv
source venv/bin/activate
python3 -m pip install -r requirements.txt
|
export const FaaSEventListener = Symbol('FaaSEventListener');
export interface FaaSEventListener<T, R> {
onTrigger(event: T): Promise<R>;
}
|
---
slug: actioncontrelafaim
title: "Action Contre la Faim"
header_image_url: https://miro.medium.com/max/788/1*M79kQTi5T6PB2Kk65gplpw.png
tags: [Saison 8,Open Data]
description: ""
keywords:
- Data For Good
github:
website:
slack:
---
# Action Contre la Faim |
<?php
if (!class_exists('rcmail_install', false) || !is_object($RCI)) {
die("Not allowed! Please open installer/index.php instead.");
}
?>
<form action="index.php" method="get">
<?php
$required_php_exts = array(
'PCRE' => 'pcre',
'DOM' => 'dom',
'Session' => 'session',
'XML' =>... |
package com.twu.biblioteca;
/**
* Created by hjing on 4/24/16.
*/
public class BookList {
private Books[] bookList;
private String AllBookList="";
BookList() {
bookList = new Books[6];
bookList[0] = new Books("Head First Java","Kathy Sierra & Bert Bates",2015);
bookList[1] = new B... |
---
title: wu-sheng
description: Beijing(China), SF(US)
github_id: 5441976
---
吴晟
[GitHub 主页](https://github.com/wu-sheng)
### 主要贡献项目
* <https://github.com/apache/skywalking>
* <https://github.com/apache/skywalking-satellite>
* <https://github.com/apache/skywalking-website>
* <https://github.com/apache/skywalking-ro... |
use bbecs::{
components::CastComponents,
data_types::point::Point,
query,
world::{DataWrapper, World},
};
use eyre::Result;
use crate::names::component_names::ComponentNames;
use super::game_entity::GameEntity;
pub fn query_camera(world: &World) -> Result<Option<GameEntity>> {
let query;
let ... |
# GREASE Issue Template _replace with your issue title_
###### USE THIS TEMPLATE FOR YOUR ISSUE!
* Primary Contact: [Your Name Here](your.name@email.tld)
* Team: Your Team Name
### Abstract
Provide a general statement here about the feature/bug/request
you have here
### Supporting Elements
Provide any suppor... |
package tk.woppo.sunday.widget;
import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;
import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;
import tk.woppo.sunday.model.city.BaseCityModel;
import tk.woppo.sunday.model.c... |
# frozen_string_literal: true
module AcaEntities
module Medicaid
module Curam
module Variances
module Commands
# Create Variance command
class CreateVariance < Sequent::Command
attrs variance: Curam::Variances::VarianceValueObject
end
# Update co... |
# Lab 06 Report - Virtualization
## Example 00

## Example 01


## Example 02


## Example 03
![flask... |
"""
Copyright 2021 Daniel Afriyie
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 law or agreed to in writing... |
/**
* Copyright (c) 2019 The StreamX Project
* <p>
* 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 Apac... |
using System.Collections.Generic;
using Laobian.Share.Model.Jarvis;
namespace Laobian.Admin.Models;
public class NotePostUpdateViewModel
{
public Note Post { get; set; }
public List<NoteTag> Tags { get; } = new();
} |
class RemoveUnusedTables2 < ActiveRecord::Migration
def self.up
#drop_table :exhibit_page_types
#drop_table :exhibit_section_types
#drop_table :exhibit_section_types_exhibit_types
#drop_table :exhibit_types
drop_table :exhibit_sections
#drop_table :exhibited_pages
#drop_table :exhibited_propertie... |
package registry
type ValueWatcher interface {
GetValue() ([]byte, int32)
GetError() error
GetPath() string
}
type ChildrenWatcher interface {
GetValue() ([]string, int32)
GetPath() string
GetError() error
}
|
/*
* Copyright 2017-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.serialization.encoding
import kotlinx.serialization.*
import kotlinx.serialization.builtins.*
import kotlinx.serialization.descriptors.*
import kotlinx.serialization.modules.*
/**
* Encoder ... |
//A second example for CFile::Open.
//This function uses CFile to copy binary files.
bool BinaryFileCopy(LPCTSTR pszSource, LPCTSTR pszDest)
{
// constructing these file objects doesn't open them
CFile sourceFile;
CFile destFile;
// we'll use a CFileException object to get error information
CFileExcepti... |
package fi.ketjusovellus.ketjupilotti.utils
import android.app.AlertDialog
import android.content.Context
import android.content.DialogInterface
class DialogUtils {
companion object {
fun showOkDialog(
context: Context?,
title: String?,
message: String?,
on... |
package com.github.fabiosoaza.infrastructure.client.dataprovider.yahoofinance
import com.github.fabiosoaza.core.domain.ExchangeCode
import com.github.fabiosoaza.core.domain.Price
import com.github.fabiosoaza.core.domain.Quote
import com.github.fabiosoaza.infrastructure.client.dataprovider.QuoteApi
import org.eclipse.m... |
// web server modules
const express = require('express');
const bodyParser = require('body-parser');
const compression = require('compression');
// MongoDB module
//const mongoose = require('mongoose');
// face-detection module
// read requirements for installing node-canvas: https://github.com/Automattic/node-canvas... |
const RE = /(^(?:const|var|let)\s+\{?\s*NG_MODULES\s*\}?\s*=\s*global(?:\.NG_MODULES)?\s*;?\s*(?:\/\/.*)?$)/m;
const BLOCKS = `
function NG_MODULES(includes = []) {
const context = require.context('./', true, /.*\.(?:component|config|controller|directive|factory|run|service)$/);
const requiredContext = includes.len... |
#include "system_includes.h"
#include "mobcal_state_struct.h"
#include "mobcal_parse_atomtype_params.h"
#include "mobcal_read_coords_header.h"
#include "mobcal_alloc1.h"
#include "mobcal_read_coords_masses_charges.h"
#include "mobcal_set_properties.h"
#include "mobcal_compute_centroid.h"
#include "mobcal_save_pos.h"
#i... |
<?php
namespace Database\Seeders;
use App\Domain\Shop\Models\Bundle;
use App\Domain\Shop\Models\Purchasable;
use Illuminate\Database\Seeder;
class BundleSeeder extends Seeder
{
public function run()
{
/** @var Bundle $bundle */
$bundle = Bundle::factory()->create();
Purchasable::quer... |
package com.se.pranita.termproject.model;
import com.google.gson.GsonBuilder;
/**
* Created by Pranita on 22/4/16.
*/
public class Alumni {
@Override
public String toString() {
return toJSON();
}
public String getName() {
return name;
}
public void setName(String name) {
... |
package mage.cards.p;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
imp... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "BaseFormVc.h"
#import "CSTkpBtnPanelDelegate.h"
#import "CSTkpFormPanelDelegate.h"
#import "CSTkpMenuPanelDelegate.h"
@class CSTkpBtnPanel, CSTkpFormPanel, CSTkpMenuPanel... |
import webapp2
import jinja2
import os
jinja_environment = jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(__file__)))
class BaseHandler(webapp2.RequestHandler):
"""Contains convenience and other methods that we generally want access to across all handlers."""
def out(self, data):
self.respo... |
<?php
/**
* Created by PhpStorm.
* User: Tom
* Date: 12.11.2018
* Time: 17:52
*/
namespace bookkeeping\forms\manage\bookkeeping;
use bookkeeping\entities\Account;
use bookkeeping\entities\User;
use yii\base\Model;
class AccountForm extends Model
{
public $userId;
public $wealth;
private $_account;... |
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
before_action :set_locale
before_action :set_lists, if: :signed_in?
private
def set_lists
@lists = cur... |
/*
Copyright (c) 2018 Dieter Schmidt
API data structures
*/
package feinstaubgoapi
const UrlSensorAPI_1 = "http://api.luftdaten.info/v1/sensor/"
const ValTypeTemp = "temperature"
const ValTypeHum = "humidity"
const ValTypePM10 = "P1"
const ValTypePM25 = "P2"
type SensorDataValue struct {
Value_type string `js... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.