text
stringlengths
27
775k
import { userEndpoint } from '@/api'; import { handleError, storage } from '../../utils'; import { setAuthHeader } from '../../api/httpClient'; import constants from '../../constants'; import store from '../index'; const initialState = () => ( { userCases: [], } ) const state = initialState(); const mutation...
# PowerToy ModuleTemplate # Introduction This project is used to generate the Visual Studio PowerToys Module Template # Instruction In Visual Studio from the menu Project->Export Template... generate the template. Set the name `PowerToys Module`, add a description `A project for creating a PowerToys module` and an ic...
package io.deniffel.bot; import io.deniffel.bot.remote.Http; import io.deniffel.bot.base.Message; import io.deniffel.bot.base.Response; import io.deniffel.bot.skyBot.RegistrationRequest; import io.deniffel.bot.skyBot.RegistrationResponse; public class HttpMock implements Http { public boolean wasCalled = false; ...
/* * Copyright 2015-2016 IBM Corporation * * 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 agree...
import { View } from "ui/core/view"; export declare class DrawingPad extends View { static penColorProperty: any; static penWidthProperty: any; static pointsProperty: any; constructor(); penColor: string; penWidth: any; points: any; clearDrawing(): void; getDrawing(): any; setPts...
--- title: Six Characteristics of Good APIs author: Google overview: link: principles: - principle: Be minimal - principle: Be complete - principle: Have clear and simple semantics - principle: Be intuitive - principle: Be easy to memorize - principle: Lead to readable code ---
## using_glmakie using GLMakie ## glmakie_lineplot f, ax, l = lines(1:10, 1:10) mktempdir() do path save(joinpath(path, "test.png"), f) end
<?php /** * Class Thim_Error * * @package Thim_Core_Admin * @since 0.3.1 */ class Thim_Error extends Exception { /** * @since 0.3.1 * * @var string */ private $how_to = ''; /** * List error code. * * @since 0.3.1 * * @var array */ public static $errors_code = array( '#000_UNKNOWN_...
# frozen_string_literal: true require 'spec_helper' require 'nanoci/messaging/message' RSpec.describe Nanoci::Messaging::Message do it '#initialize creates #attributes hash' do msg = Nanoci::Messaging::Message.new expect(msg.attributes).to be_instance_of(Hash) end it '#payload= accepts nil value' do ...
<?php namespace Aws\IotDataPlane; use Aws\AwsClient; /** * This client is used to interact with the **AWS IoT Data Plane** service. * * @method \Aws\Result deleteThingShadow( array $args = [] ) * @method \GuzzleHttp\Promise\Promise deleteThingShadowAsync( array $args = [] ) * @method \Aws\Result getThingShadow(...
--- title: Tinker Cad --- # TinkerCad notes First [projectStuff](miscStuff/projectStuff.md) was to create your own house ## Tips - 2 finger click and drag to change view - create a shape that is solid and another shape that is a hole and then group them to get more complex shapes -
// // Created by pycnick on 05.09.2020. // #ifndef WEBSERVER_FILEMANAGER_H #define WEBSERVER_FILEMANAGER_H #include <string> #include <fstream> #include <filesystem> #include <string_view> class FileManager { public: explicit FileManager(std::string path); ~FileManager(); bool isExists(); bool isFo...
export * from './rule'; export * from './preprocess';
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.EntityFrameworkCore.Benchmarks.Models.Orders; namespace Microsoft.EntityFrameworkCore.Benchmarks.Query { public class RawSqlQuerySql...
module Surikat class SessionManager def initialize @config = Surikat.config.app['session'] #puts "Session manager configured with #{@config.inspect}" case @config['storage'] when 'redis' @store = Redis.new url: @config['redis_url'] when 'file' @filename = @config['f...
#!/usr/bin/env bash set -x set -e hostname=$(puppet config print certname) && \ curl --fail \ --resolve "${hostname}:8140:127.0.0.1" \ --cert $(puppet config print hostcert) \ --key $(puppet config print hostprivkey) \ --cacert $(puppet config print localcacert) \ "https://${hostname}:8140/${PUPPET_HEALTHCHECK_E...
/* * Kth Element Tree */ int tree[17][65536]; void insert(int x) { for (int i = 0; i < 17; i++) { tree[i][x]++; x /= 2; } } void erase(int x) { for (int i = 0; i < 17; i++) { tree[i][x]--; x /= 2; } } int kThElement(int k) { int a = 0, b = 16; while (b--) { a *= 2; if (tree[b][a] ...
{-# LANGUAGE DataKinds #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE TemplateHaskell #-} -- | Toplevel module for types related to symb...
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond ...
class DelayedJobsOptimizations < ActiveRecord::Migration def change # add queue index add_index :delayed_jobs, [:queue], :name => 'delayed_jobs_queue' # add handy custom error column to store application errors # (e.g. response error for reverse matches creation) add_column :delayed_jobs, :error_...
class movingPointClass(a:Int,b:Int) { var x:Int = a; var y:Int = b; def move(dx:Int,dy:Int): Unit ={ x=x+dx; y=y+dx; println("value of x is : "+ x) println("value of y is : "+ y) } }
# Asylum Connect Catalog This project is a rewrite of https://catalog.asylumconnect.org ### Tech Stack - Nextjs - React - Redux - CSS Modules - More to come ### Tasks The scope of the project is tracked in the Issues tab ### Local development - Clone this repo - run `yarn` to install dependencies - duplica...
// // WorkoutSubView.h // SportsTracker // // Created by Venelin Petkov on 2/7/16. // Copyright © 2016 Venelin Petkov. All rights reserved. // #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> @interface WorkoutSubUIView : UIView @property (strong, nonatomic) IBOutlet UILabel *labelDate; @property (st...
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.clion.profiler import com.intellij.openapi.components.service import com.intellij.openapi.project.Project import com.intellij.profiler.api.BaseCallStackElement import com.intellij.profiler.model...
// // MLParameter.h // GameProject // // Created by shark on 2021/9/1. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN static NSString *MLBaseURL = @"http://api.sixthkingdoms.com"; static NSString *MLFaceBookLogin = @"facebook"; static NSString *MLGooleLogin = @"goole"; static NSString *MLAppleLogin...
/* Copyright (c) 2013-2020 Mahmoud Fayed <msfclipper@yahoo.com> */ extern "C" { #include "ring.h" } #include "glegendmarker.h" GLegendMarker::GLegendMarker(QtCharts::QLegendMarkerPrivate &parent,VM *pVM) : QtCharts::QLegendMarker(parent) { this->pVM = pVM; this->pParaList = ring_list_new(0); strcpy(this->cbrushCh...
# vizzu-workshops Repo for Vizzu workshop materials. Workshops: - 2021-10-09 MOME - EU problems - jsfiddle: https://jsfiddle.net/VizzuHQ/pdv178r2/ - hosted: http://vizzuhq.github.io/vizzu-workshops/2021-10-09-MOME/base-eu-problems/ - source: https://github.com/vizzuhq/vizzu-workshops/tree/main/2021-10-09-MOME/...
Pod::Spec.new do |spec| spec.name = 'PixelDust' spec.version = '0.1.5' spec.summary = 'PixelDust GPU image processing library' spec.platform = :ios spec.ios.deployment_target = '9.0' spec.source = { git: 'git@github.com:kstrat2001/pixel-dust.git', tag: "#{spec.version}" } spe...
require 'spec_helper' module CryptKeeperProviders describe Aes do subject { Aes.new(key: 'cake') } describe "#initialize" do let(:hexed_key) do Digest::SHA256.digest('cake') end it "should extract the key and digest it" do subject.key.should == hexed_key end i...
# frozen_string_literal: true require_all 'apps/example_bot/responders' require_relative 'controller.rb' module ExampleBot class Application < Telegram::AppManager::Application configure do |config| config.app_name = 'ExampleBot' config.telegram_bot = Telegram.bots[:example_bot] config.control...
import * as chai from "chai" import { MovementResolver } from "./../../src/standardRule/movement-resolver" import { standardRule } from "./../../src/standardRule" import { rule } from "./../../src/rule" import { standardMap } from "./../../src/standardMap" import { standardBoard } from "./../../src/standardBoard" cons...
//--------------------------------------------------------------------- // <copyright file="OperationAction.cs" company="Microsoft"> // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // </copyright> //-------------------------------------...
using System; using System.Collections.Generic; public class StartUp { static void Main() { List<Shape> shapes = new List<Shape> { new Rectangle(3.5, 4.3), new Rectangle(2.5, 7.6), new Rectangle(7.1, 6.8), new Circle(5.5), new Circle(...
using System; namespace GNARLI { public class FailPeriod { public DateTime FailTime; public DateTime ReturnTime; public FailPeriod(DateTime failTime) { FailTime = failTime; } } }
package domain.zeno.core.persistence.schema.jdbc.action.column; /* * COPYRIGHT_PLACEHOLDER */ import domain.zeno.core.persistence.generic.jdbc.IJdbcStatementBuilder; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; public class JdbcDropColumnStatement implements IJdbcSt...
require "kaminari" module Harbinger class Engine < ::Rails::Engine engine_name 'harbinger' config.to_prepare do # Because I don't want to auto-require all of the dependent channels Harbinger.default_channels.each do |channel_name| require "harbinger/channels/#{channel_name}_channel" ...
echo "dev wmt18 test wmt19" | while read alias orig; do for x in {{t2t,fairseq}-01/test,rtg-01-*/test_*}/$alias.out.detok; do echo $x; sacrebleu -l de-en -t $orig --short < $x done done
#include "executor.h" #include "algorithm.h" #include "device.h" #include "graph_utils.h" #include "device_registry.h" #include "base/register.h" #include <set> using namespace openmi; bool is_training = true; namespace openmi { Executor::Executor(proto::GraphDef& gdef) : gdef_(gdef), g_(nullptr), gradients_(nul...
// CHECK: for (t4=32*t1;t4<=(min(M-1,32*t1+31))-1;t4+=2) { // CHECK: for (t5=32*t3;t5<=(min(K-1,32*t3+31))-1;t5+=2) { // CHECK: lbv=32*t2; // CHECK: ubv=min(N-1,32*t2+31); // CHECK: #pragma ivdep // CHECK: #pragma vector always // CHECK: for (t6=lbv;t6<=ubv;t6++) { // CHECK: S1(t1,t2,t3,t4,t...
<?php namespace Dywee\OrderBundle\Form; use Dywee\OrderBundle\Entity\Shipment; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; class ShipmentType extends Abstrac...
--- title: My 2018 Book List summary: Books I read in 2018. date: 2018-12-31 categories: - literature tags: - books thumbnail: "images/stocksnap.io-C9E7B4U7QY.jpg" #https://stocksnap.io/photo/C9E7B4U7QY --- Unordered list of books I read during the year. [But What If We're Wrong?](https://www.amazon.com/But-What-If-W...
--- layout: post title: grpcio源码阅读 categories: [Coding] tags: [gRPC, Python] --- 问题: 1、grpc Python库的基本架构原理 2、grpc库的基本api 3、如何创建安装一个python库 ### grpc python库的基本用法 在`ubuntu`系统上,我们使用`sudo pip install groio`来安装python grpc库(需要先安装好python和pip),然后基于该库开发python grpc项目。 同时,还需要使用`sudo pip install grpcio-tools`来安装用来将protobuf文件转...
from setuptools import setup setup(name = 'quinoa', version = '0.1', description = 'A package for Covariance Kernel functions', author = 'Panagiotis Tsilifis', author_email = 'pantsili@gmail.com', keywords = ['covariance', 'kernel', 'squared exponential', 'matern'], packages = ['quinoa'])
/* * Copyright (C) 2021, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. * See file LICENSE for terms. */ package goucxtests import ( . "ucx" "unsafe" ) const selfEpTag uint64 = ^uint64(0) func memoryAllocate(entity *TestEntity, size uint64, memoryType UcsMemoryType) unsafe.Pointer { mmapParams := &UcpMm...
import React from 'react' import Nav from './Nav' import MobileNav from './MobileNav' const Header = () => { return ( <> <h1>Military Resources & Information</h1> <Nav /> <MobileNav /> </> ) } export default Header
<?php /** * Created by PhpStorm. * User: RTG * Date: 9/8/2017 * Time: 7:46 PM */ namespace RTG\Discord2MCPE; use pocketmine\command\Command; use pocketmine\command\CommandSender; use pocketmine\plugin\PluginBase; use pocketmine\utils\TextFormat as TF; class Loader extends PluginBase { public $config; ...
<?php /** * @license LGPLv3, https://opensource.org/licenses/LGPL-3.0 * @copyright Metaways Infosystems GmbH, 2014 * @copyright Aimeos (aimeos.org), 2015-2021 * @package MW * @subpackage Media */ namespace Aimeos\MW\Media; /** * Common interface for all media objects. * * @package MW * @subpackage Media ...
package com.pekwerike.what3words import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.Toast import com.pekwerike.lib.domain.CustomAutoSuggestRequest import com.pekwerike.lib.components.text.What3WordsEditText import com.pekwerike.lib.domain.Coordinates const val api_key = "2J...
статистика пользователей чата {command} (nick/jid) */{command} Хазам Алаказам покажет статистику Хазама Алаказама */{command} khazam@j.ru покажет статистику khazam@j.ru */{command} покажет вашу статистику
# java15-base-image-debian ## how to create your image based on the java15-base-image-debian ``` FROM nickdanil/java15-base-image-debian COPY target/java-15-example-0.0.1-SNAPSHOT.jar /opt/spring-boot/app.jar CMD java \ -jar /opt/spring-boot/app.jar \ ```
"use strict" const SelectPrompt = require("./select") class Quiz extends SelectPrompt { constructor(options) { super(options) if ( typeof this.options.correctChoice !== "number" || this.options.correctChoice < 0 ) { throw new Error( "Please specify the index of the correct answ...
# Preconditioners Many linear solvers can be accelerated by using what is known as a **preconditioner**, an approximation to the matrix inverse action which is cheap to evaluate. These can improve the numerical conditioning of the solver process and in turn improve the performance. LinearSolve.jl provides an inte...
package xyz.esion.blog.mapper; import org.apache.ibatis.annotations.Param; import xyz.esion.blog.entity.Article; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import xyz.esion.blog.global.KeyValue; import java.util.List; /** * @Entity xyz.esion.blog.entity.Article * @author Esion * @since 2021/11/16 */...
## C1801 (len-as-condition) ### :x: Problematic code: ```python array = [] if len(array): pass ``` ### :heavy_check_mark: Correct code: ```python array = [] if len(array) > 0: pass ``` ### Rationale: Occurs when `len(sequence)` is detected being used without explicit comparison inside a condition to deter...
package uk.gov.justice.digital.hmpps.deliusapi.integration import io.jsonwebtoken.Jwts import io.jsonwebtoken.SignatureAlgorithm import org.springframework.context.annotation.Bean import org.springframework.security.oauth2.jwt.JwtDecoder import org.springframework.security.oauth2.jwt.NimbusJwtDecoder import org.spring...
#include <cstddef> #include <cstdlib> #include <iostream> #include <sstream> #include <stdexcept> #include <type_traits> // Seq - class template for sequences that can be added and scalar-multiplied template<typename Index, typename Value, Index start, Index end> class Seq { public: inline const Value& operator[](...
// Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. use crate::datatypes::{HttpsSample, Phase}; use crate::diagnostics::{Diagnostics, Event}; use httpdate_hyper::HttpsDateErrorType; use parking_lot::Mutex; ...
package Solution func Solution(points [][]int, k int) [][]int { result := make([][]int, 0) for { m := kClosestPartion(points) if m == k-1 { result = append(result, points[:m+1]...) return result } if m < k { result = append(result, points[:m+1]...) points = points[m+1:] k -= m + 1 continue ...
subroutine Read_Rho3B_J0(ie,Rho3BJJ,lpr) USE VAPHFB_Par implicit none logical lpr INTEGER ie,id123,id456 real*8 cme real*8, DIMENSION(1:Rho3B%idx123_vmax,1:Rho3B%idx123_vmax) :: Rho3BJJ ! ............................... print *, ' -> reading Rho3B ...' 10 ...
#!/bin/bash #./replace.sh "https://img.risinghf.com" "https://img.juzuq.com" old=$1 new=$2 for file in ./*.md; do # -b to keep file line ending, or it will force use LF cat "$file" | sed -b "s,$old,$new,g" > tmp mv tmp "$file" done
<?php declare(strict_types=1); /* * This file is part of Shudd3r/Skeletons package. * * (c) Shudd3r <q3.shudder@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Shudd3r\Skeletons\Replacements\Replacement; use Shudd3r\Skelet...
package gettext import ( "fmt" "os" "strings" "sync" "time" ) type msgidLogger struct { msgids *sync.Map } var logger *msgidLogger = &msgidLogger{msgids: &sync.Map{}} func (s *msgidLogger) Log(msgid string) { if _, ok := s.msgids.Load(msgid); !ok { s.msgids.Store(msgid, true) } } //SaveLog save the keywo...
import ICalendarItem from "./calendar-item.interface"; export default interface ICalendarColumn { title: string; items: ICalendarItem[]; }
module.exports = require("@oclif/command"); const fse = require("fs-extra"); const os = require("os"); const { username, homedir } = os.userInfo(); const dir = `${homedir}/checklist-cli/src/data`; var dataObj = { todos: [], completetodos: [], }; dataObj.todos.push({ title: "Sample todo", priority: "low" }); da...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="assets/css/bootstrap.min.css"> <link rel="stylesheet" href="assets/css/style.css"> <title>Remote PC Lock</title> </head> <body> <nav class="navbar navbar-default" role="navigation"> <div class="container"> <!-- Brand a...
# The following is the stub to add to aspire annotations # IMPLEMENT STEPPING BEHAVIOR stepping_helper <- function(n, data, spek){ slowmo_base <- "http://example.com/slowmo#" step_back_data <- data %>% dplyr::filter(Month <= (max(Month) %m-% months(n))) results <- list() # Handle case where measure or data d...
import Benchmarks.Prelude import qualified CriterionPlus as Cri import qualified Benchmarks.GraphDB as Gra import qualified Benchmarks.Random as Ran import qualified Benchmarks.Model as Mod main = do gen <- Ran.newGen Cri.benchmark $ do Cri.standoff "Inserting" $ do let subject n = do sessi...
package com.lhjz.portal; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.support.SpringBootServletInitializer; public class ServletInitializer extends SpringBootServletInitializer { @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder...
package com.chrynan.video.ui.adapter.channel import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.chrynan.aaaah.Adapter import com.chrynan.aaaah.AdapterViewType import com.chrynan.aaaah.ViewType import com.chrynan.aaaah.from import com.chrynan.video.common.coroutine.Coro...
//***************************************************************************** //* * //* CGDK::buffer * //* ver 5.0 / release 2021.11.01 * ...
import { Command } from '../../../../../lib'; import { ImageOptions } from './ImageOptions'; import { ls } from './image/ls'; import { rm } from './image/rm'; const image: Command<ImageOptions> = { name: 'image', description: 'Manage images.', optionDefinitions: [], subcommands: { ls, rm }, handle ...
#!/bin/bash # Install Packages apt update apt install -y \ git \ python-spidev python3-spidev \ python-smbus python3-smbus \ python-sn3218 python3-sn3218 \ python-st7036 python3-st7036 \ python-psutil \ python-rainbowhat python3-rainbowhat # Clone and CD into it git clone https://github.co...
gmp.js ====== gmp.js is a port of the GNU Multiple-Precision Library (GMP), a library for arbitrary precision arithmetic, to JavaScript using Emscripten. GMP website: http://gmplib.org/ Steps to build -------------- * First run configure and make natively/normally. You will need some of the generated executables...
using UnityEngine; using codebycandle.util.algo; public class TestAlgo:MonoBehaviour { private int[] dataSorted = {1, 2, 5, 77}; private int[] dataUnsorted = {99, 7, 6, 33}; void Start() { RunTests(); } private void RunTests() { // algo // RunFibonacciTests(); R...
/** * This is auto-generated file, don't modify this file manually */ // groups_online_status_type /** * Type of online status of group */ export type GroupsOnlineStatusType = 'none' | 'online' | 'answer_mark';
-ifndef(IMEM_CLIENT_HRL). -define(IMEM_CLIENT_HRL, true). -include("imem.hrl"). -include("imem_meta.hrl"). -endif.
<?php namespace Chamilo\Application\Calendar\Component; use Chamilo\Application\Calendar\Manager; use Chamilo\Libraries\Architecture\Interfaces\DelegateComponent; use Chamilo\Libraries\Calendar\Renderer\Type\ViewRenderer; use Chamilo\Libraries\Format\Structure\Page; use Chamilo\Libraries\Format\Theme; /** * * @pack...
#!/bin/bash if [[ ! -f $1 ]]; then echo "Cant find config file: $1" echo "Usage: " echo " ./filter_peers.sh <config_file>" echo exit 1 fi function check_peer { eval nc -z -w 1 "$@" > /dev/null 2>&1 if [[ $? -eq 0 ]]; then echo "p2p-peer-address = ${1/ /:}" fi } grep -E "p2p-p...
/* * Copyright 2016 Scalified <http://www.scalified.com> * * 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 app...
using System; namespace kul.forbes.contracts { public class Optional<TData> { private readonly TData data=default; private readonly bool isEmpty=true; public Optional() { data = default; isEmpty = true; } public Optional(TData data) ...
import { t } from '../schema'; /** * The valign-image type is used to indicate vertical alignment for images and graphics, so it does not include a * baseline value. Defaults are implementation-dependent. * * {@link https://www.w3.org/2021/06/musicxml40/musicxml-reference/data-types/valign-image/} */ export const ...
package ru.surfstudio.android.core.mvi.sample.ui.screen.reactor_based.list import android.content.Context import android.content.Intent import ru.surfstudio.android.core.ui.navigation.activity.route.ActivityRoute /** * Роут экрана [ComplexListActivityView] */ class ComplexListActivityRoute : ActivityRoute() { o...
/* Copyright (C) 1995-2001 Activision, Inc. This library 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; either version 2.1 of the License, or (at your option) any later version. This library is distribu...
(function() { "use strict"; var app = angular.module("TendrlModule"); app.controller("headerController", headerController); /*@ngInject*/ function headerController($rootScope) { var vm = this; vm.notificationClose = notificationClose; $rootScope.notification = {...
import React from 'react'; import PropTypes from 'prop-types'; import Portal from './portal'; /** * `Panel` renders a React component into an Atom panel. Specify the * location via the `location` prop, and any additional options to the * `addXPanel` method in the `options` prop. * * You may pass a `getItem` func...
%% ------------------------------------------------------------------- %% %% xqerl - XQuery processor %% %% Copyright (c) 2019-2020 Zachary N. Dean All Rights Reserved. %% %% This file is provided to you under the Apache License, %% Version 2.0 (the "License"); you may not use this file %% except in compliance with th...
package com.xiong.appbase.social.wxapi import com.umeng.socialize.weixin.view.WXCallbackActivity /** * Created by xiong on 2018/4/19. */ class WXEntryActivity : WXCallbackActivity() { }
# Complexity report, 4/26/2019 * Mean per-function logical LOC: 14.294117647058824 * Mean per-function parameter count: 0.8823529411764706 * Mean per-function cyclomatic complexity: 3.588235294117647 * Mean per-function Halstead effort: 7379.131770793056 * Mean per-module maintainability index: 97.15667234758328 * Fir...
# FeedbackApp FeedbackApp is the sample application that shows how you can play sound and vibration feedback ![Main](./FeedbackApp.png) ### Verified Version * Xamarin.Forms : 4.5.0 * Tizen.NET : 6.0.0 * Tizen.NET.SDK : 1.0.9 ### Supported Profile * Mobile ### Author * Pureum Jung
package utils import java.security.MessageDigest import org.apache.commons.codec.binary.Hex object Sha { def sha512(toHash: String): Array[Byte] = MessageDigest.getInstance("SHA-512").digest(toHash.getBytes) def hexSha512(toHash: String): String = Hex encodeHexString MessageDigest .getInstance("S...
<?php namespace App\Http\Controllers\Admin; use App\Student; use Illuminate\Http\Request; use DB; use App\Http\Requests; use App\Http\Controllers\Controller; class DashboardController extends Controller { public function index() { $students = DB::table('students')->count(); $teachers = DB::t...
#!/bin/sh arm-linux-gnueabi-gcc -mtune=cortex-a9 -march=armv7-a ./src/navdataserver.c -o navdataserver
kubectl create -f app.yaml kubectl expose deployment gf-jakartaee-cookbook --type=LoadBalancer --name=gf-jakartaee-cookbook-lb # IF YOU WANT TO DELETE THE LOAD BALANCER # # kubectl delete services gf-jakartaee-cookbook-lb
/* * The MIT License (MIT) * * Copyright (c) 2017 Lars Kroll <bathtor@googlemail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitatio...
""" mock_pywbem test script that installs a method callback to be executed. This is based on the CIM_Foo class in the simple_mock_model.mof test file """ # test that GLOBALS exist assert "CONN" in globals() assert 'SERVER' in globals() assert 'VERBOSE'in globals() def alltypes_callback(conn, object_name, methodname,...
<!-- Nama Field --> <div class="col-sm-12"> {!! Form::label('nama', 'Sub Sektor:') !!} {!! Form::text('nama', null, ['class' => 'form-control']) !!} </div> <div class="col-sm-12"> {!! Form::label('latitude', 'Latitude :') !!} {!! Form::text('latitude', null, ['class' => 'form-control']) !!} </div> <di...
class Note { static int notesCount = 1; int id = notesCount; String title; String description; String priority; int projectId; bool isExpanded = false; Note(this.title, this.description, this.priority, this.projectId) { notesCount++; } }
package com.krm.custmenubom import android.os.Bundle import android.view.View import androidx.appcompat.app.AppCompatActivity import com.krm.custmenubom.BuilderManager.simpleCircleButtonBuilder import com.krm.custmenubom.menu.BoomMenuButton class ControlActivity : AppCompatActivity(), View.OnClickListener { priva...
# go-socks5 socks5协议重0实现 rfc1928 标准 https://www.ietf.org/rfc/rfc1928.txt
const foo = 10; const bar = foo; const foo1 = 5; console.log(foo1, bar);