text stringlengths 27 775k |
|---|
/**
* @file login
* @author mars
*/
|
import Grid from '@material-ui/core/Grid';
import Button from '@material-ui/core/Button';
import makeStyles from '@material-ui/core/styles/makeStyles';
import PureSearch from './puresearch';
const useStyle = makeStyles(theme => ({
button: {
height: "100%",
borderRadius: 0,
fontSize: '1.5rem',
lineHeight: '25... |
# config valid only for current version of Capistrano
lock '3.9.1'
## Base
set :application, 'grape-skeleton'
set :repo_url, 'https://github.com/jbox-web/grape-skeleton.git'
set :deploy_to, '/data/www/grape-skeleton'
## SSH
set :ssh_options, {
keys: [File.join(Dir.home, '.ssh', 'id_rsa')],
forward_a... |
import React from "react";
import { Meta, Story } from "@storybook/react";
import { GreenLabel, GreenLabelProps } from "./greenLabel";
export default {
title: "Component/Text/Green Label",
component: GreenLabel,
} as Meta;
const Template: Story<GreenLabelProps> = (props) => <GreenLabel {...props} />;
export cons... |
namespace Xamarin.Forms.PlatformConfiguration.TizenSpecific
{
using FormsElement = Forms.Entry;
public static class Entry
{
public static readonly BindableProperty FontWeightProperty = BindableProperty.Create("FontWeight", typeof(string), typeof(FormsElement), FontWeight.None);
public static string GetFontWeig... |
package gomvc
import (
"encoding/json"
"fmt"
"log"
"net/http"
"strconv"
"strings"
"github.com/getkin/kin-openapi/openapi3"
"github.com/jinzhu/inflection"
)
func NewCRUDActions(name string) []Action {
actions := []Action{}
title := strings.Title(name)
singular := inflection.Singular(title)
for _, action :... |
var userRoutes = require('./userRoutes');
var techologieRoutes = require('./technologieRoutes');
module.exports = function(router) {
return {
userRoutes: userRoutes(router),
techologieRoutes: techologieRoutes(router)
};
}; |
Change log
==========
Here list all notable changes in GraphVite library.
v0.2.2 - 2020-03-11
-------------------
- New model QuatE and its benchmarks on 5 knowledge graph datasets.
- Add an option to skip `faiss` in compilation.
- Fix instructions for conda installation.
v0.2.1 - 2019-11-12
-------------------
- Ne... |
import pytest, random, math, numpy, time, functools
import irr
def run_many(case):
@functools.wraps(case)
def wrapped():
for test in range(1000):
d, r = case()
assert irr.irr(d) == pytest.approx(r)
return wrapped
@run_many
def test_simple_bond():
r = math.exp(random.g... |
function createLoggingWritable (writableOrig) {
const proto = Object.getPrototypeOf(writableOrig);
function LoggingWritable(writableOrig) {
this.writableOrig = writableOrig;
}
LoggingWritable.prototype.write = function(chunk, encoding, callback) {
if (!callback && typeof encoding === '... |
// Created on: 2016-04-07
// Copyright (c) 2016 OPEN CASCADE SAS
// Created by: Oleg AGASHIN
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as publi... |
package gorequires
import (
"os"
"testing"
"github.com/dk1027/gotesttools"
)
func TestEnv(t *testing.T) {
os.Setenv("myvar", "123")
val := Env("myvar")
gotesttools.AssertTrue(t, val == "123")
}
func TestEnv2(t *testing.T) {
doAssert := gotesttools.AssertPanic(t)
defer doAssert()
val := Env("myvar2")
gotest... |
from numpy import repeat
from numpy import where
from numpy import zeros
from gwlfe.BMPs.Stream.FilterEff import FilterEff
from gwlfe.BMPs.Stream.FilterEff import FilterEff_f
from gwlfe.Input.LandUse.NLU import NLU
from gwlfe.Input.WaterBudget.Water import Water
from gwlfe.Input.WaterBudget.Water import Water_f
from g... |
#ifndef GUI_H
#define GUI_H
#include "GLES2/gl2.h"
#include "game.h"
#include "util/text.h"
struct Rect;
class Element;
using std::vector;
class Layout
{
private:
GLuint program;
GLuint u_MvpMatrixHandle;
GLuint a_PositionHandle;
GLuint a_ColorHandle;
vector<unique_ptr<Element>> elements;
... |
use differential_dataflow::{difference::Semigroup, AsCollection, Collection};
use timely::{
dataflow::{
channels::pact::Pipeline, operators::generic::builder_rc::OperatorBuilder, Scope, Stream,
},
Data,
};
pub trait FlatSplit<D, Left, Right> {
type LeftStream;
type RightStream;
fn flat... |
package entities
import custommath.Complex
import physics.Polygon
/**
* A Bullet of the owner's team that passes through a BulletAmplifier sees its radius double, dealing more damage.
*
* transformedBullets is the list of the ids of the bullets for which the BulletAmplifier already amplified. It is
* stored i... |
# JRCLUST
## Note
**JRCLUST is no longer being actively maintained.**
If you still want to use JRCLUST, we recommend using the [latest release](https://github.com/JaneliaSciComp/JRCLUST/releases/tag/v4.1.0) or cloning from `main`, rather than `master`.
JRCLUST is a scalable and customizable package for spike sorting... |
docker exec mycluster-master hadoop fs -fs hdfs://mycluster-master:9000 -copyToLocal /time_query1/ /myapp/
docker exec mycluster-master hadoop fs -fs hdfs://mycluster-master:9000 -copyToLocal /time_query2/ /myapp/
|
ok 1 - use Math::MySum;
ok 2 - Math::MySum->can('my_sum')
ok 3 - Sum of 1 and 3 is 4
ok 4 - String has mel in it
1..4
|
/* This file is part of Jellyfish.
Jellyfish is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Jellyfish is distributed ... |
# Run the server
The first time, get all the dependencies loaded via
```
npm install
```
Then, run the server via
```
npm run site-dev-server
Open http://localhost:8080/
```
Anytime you change the contents, just refresh the page and it's going to be updated.
# Publish the website
Just run the publish script, thi... |
/*
* Global atomic header.
*
* @author Michel Megens
* @email dev@bietje.net
*/
#pragma once
#include <stdint.h>
#include <lwiot.h>
#ifdef HAVE_SYNC_FETCH
#include <lwiot/detail/atomic_sync.h>
#else
#include <lwiot/detail/atomic_crit.h>
#endif
namespace lwiot
{
typedef lwiot::Atomic<uint8... |
package goolog2
import (
"os"
"sync"
"sync/atomic"
)
type simpleFile struct {
writer FileWriter
mutex sync.Mutex
sync bool
refcount int32
}
// Create new simple file holder
//
// Parameters:
// filepath: name of the logging file
// sync: if true, the stream is flushed after every message
// R... |
/*
* GNU GENERAL PUBLIC LICENSE
* Version 2, June 1991
*
* Copyright (C) 2016 @arlenebatada
*
* Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* Everyone is permitted to copy ... |
module StocksHelper
def render_button_for(stock)
@stock = stock
if stock.followed_by?(current_user)
render "unfollow_button"
else
render "follow_button"
end
end
end
|
// MIT License. Copyright (c) 2020 CQFN
// https://github.com/g4s8/go-matchers/blob/master/LICENSE
// Package matchers provide testing primitives for matching targets against expected behavior.
package matchers
import (
"testing"
)
// Matcher verifies target
type Matcher interface {
Check(interface{}) bool
String... |
package no.ntnu.ihb.sspgen.dsl
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable
import java.io.File
@EnabledIfEnvironmentVariable(named = "VDMCHECK_DIR", matches = ".*vdmcheck-1.*$")
class VDMTest {
@Test
fun test() {
ssp("QuarterTruck") {
... |
# run job scripts within the tool outputs directory
cd ${REPORT_FILES_PATH}
#========== build and run job 1 script ============
cat >curl-download.sh <<EOF
if [ $(wc -l <$X_f) -gt 2 ]; then
cp $X_f $X_O
else
if [ "$X_e" = "twobit" ]; then
cp $TOOL_INSTALL_DIR/twoBitToFa twoBitToFa
chmod +x twoBitToFa
.... |
package com.dmdirc.ktirc.messages.processors
import com.dmdirc.ktirc.events.IrcEvent
import com.dmdirc.ktirc.model.IrcMessage
internal interface MessageProcessor {
/**
* The messages which this handler can process.
*/
val commands: Array<String>
/**
* Processes the given mess... |
#!/bin/bash
# Make sure only root can run our script
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
export VERSION='v3.0.1'
function pull_git_tag() {
# Try to run the commands as the cypress user, if we get a nonzero return value then try again
# as root.
sudo -u cypress... |
# Define stage
set :stage, :staging
# Server info
server 'www.rgentpl.com', user: 'deploy', group: 'console', roles: %w(web app db)
set :server_name, 'www.rgentpl.com rgentpl.com'
# Deploy branch
set :branch, :develop
|
class Api
{
static const String TEST_LIST1 ="list1";
static const String TEST_LIST2 ="list2";
} |
package com.kylins.obj.copy;
import android.text.TextUtils;
import com.kylins.obj.copy.annotation.DeepCopy;
import com.kylins.obj.copy.annotation.Ignore;
import com.kylins.obj.copy.annotation.Name;
import java.lang.reflect.Array;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.... |
package com.dhorowitz.openmovie.discover
import com.dhorowitz.openmovie.discover.data.model.MovieDTO
import com.dhorowitz.openmovie.discover.domain.model.Movie
import com.dhorowitz.openmovie.discover.presentation.model.DiscoverViewEntity
internal fun movieDTO(
id: String = "id",
overview: String = "id",
t... |
require "test_helper"
class RBS::FactoryTest < Minitest::Test
include TestHelper
def test_type_name
factory = RBS::Factory.new()
assert_equal type_name("Foo"), factory.type_name("Foo")
assert_equal type_name("::Foo::Bar"), factory.type_name("::Foo::Bar")
end
end
|
using egg.JsonBean;
using System;
namespace test {
class Program {
static void Main(string[] args) {
Console.WriteLine("Hello World!");
Classmate cm1;
Classmate cm2 = new Classmate();
Classmate cm3 = new Classmate();
using (Classmate nv = new Cla... |
-- @testpoint: opengauss关键字serializable(非保留),作为同义词对象名,部分测试点合理报错
--前置条件
drop table if exists explain_test;
create table explain_test(id int,name varchar(10));
--关键字不带引号-成功
drop synonym if exists serializable;
create synonym serializable for explain_test;
insert into serializable values (1,'ada'),(2, 'bob');
update se... |
package api
import (
"net/http"
"github.com/gorilla/mux"
"github.com/red010b37/bamboo/cmd/app/conf"
)
// InitMetaHandlers starts the meta api handlers
func InitMetaHandlers(r *mux.Router, prefix string) {
nameSpace := "meta"
metaErrorCodePath := RouteBuilder(prefix, nameSpace, "v1", "errorcodes")
OpenRouteHand... |
package de.htwdd.htwdresden.utils.holders
import android.content.Context
import android.content.SharedPreferences
import android.util.Base64
import androidx.core.content.edit
import androidx.security.crypto.EncryptedSharedPreferences
import androidx.security.crypto.MasterKeys
import de.htwdd.htwdresden.utils.extension... |
---
templateKey: blog-post
featuredpost: false
date: 2020-03-01T19:23:23.711Z
featuredimage: /img/quest_bg5.png
imgBg: quest_bg5
title: Jodi's Request Quest
description: Jodi needs a fresh cauliflower for a recipe she's making. She's asking you to bring her one.
reward: 350 & 1 Heart Jodi
tags:
- Mail
- spring
- ... |
# frozen_string_literal: true
require_relative '../../../test_helper'
SingleCov.covered!
# needs Integration at the end for minitest-spec-rails
describe 'Warden::Strategies::BasicStrategy Integration' do
def perform_get(authorization)
get "/", headers: {HTTP_AUTHORIZATION: authorization}
end
before do
... |
package de.qaware.refactobot.extractor.java.visitors
import com.github.javaparser.ast.CompilationUnit
import com.github.javaparser.ast.body.ConstructorDeclaration
import de.qaware.refactobot.extractor.java.JavaSimpleTypeReference
import de.qaware.refactobot.extractor.java.ReferenceExtractionContext
import de.qaware.re... |
# payment_sample
A sample application to learn how to develop a payment feature.
## Note
This sample refers to the following book.
[Take My Money](https://pragprog.com/book/nrwebpay/take-my-money)
|
pub mod mpv {
extern crate execute;
use crate::api_structs::VolumeControl;
use crate::settings;
use std::io::prelude::*;
use std::os::unix::net::UnixStream;
use std::process::Command;
use serde_json::json;
use serde::{Serialize, Deserialize};
fn send_command(command: serde_json::Va... |
"""Sorts the magic architecture candidate performance.
Parameters
----------
N : int
Cluster size.
tech : float
Technology node (16, 7, 5, 4, 3.0, 3.1).
3.0 corresponds to F3a in the paper and 3.1 to F3b.
log_dir : str
Directory holding the run logs.
arc_dir : str
Directory holding the architecture... |
require 'spec_helper'
describe API do
describe "HTTP errors" do
it "must raise exceptions" do
API::ERRORS.each_pair do |code, exception|
stub_api_request(:any, 'endpoint') { "HTTP/1.1 #{code}\n" }
proc { API.get 'endpoint' }.must_raise exception
end
end
end
end
|
package main
import (
"github.com/liamg/tml"
)
func main() {
tml.Printf(
"<red>%s</red> <yellow>%s</yellow> <green><bold>%s</bold></green>\n",
"ERROR",
"WARNING",
"SUCCESS",
)
}
|
# Categories
categories = [
'Community',
'Funding',
'Education & Training',
'Incubation/Acceleration',
'R & D',
'Services',
'Space',
'Startup',
]
Category.create(categories.map{ |c| { name: c } })
# Stages
stages = [
'Startup',
'Idea',
'Growth',
'Mature',
]
Stage.create(stages.map{ |s| { na... |
<div class="alert alert-danger" style="background-color: {!! $color !!}; padding-left: 100px;border: black 1px solid">
<div>title:{!! $title !!}</div>
<div>myglobal:{!! $myglobal !!}</div>
{!! $slot !!}
<div>end title:{!! $title !!}</div>
</div>
<br> |
package basicauth
import (
"encoding/base64"
"net/http"
"strings"
"github.com/gobuffalo/buffalo"
"github.com/pkg/errors"
)
var (
// ErrNoCreds is returned when no basic auth credentials are defined
ErrNoCreds = errors.New("no basic auth credentials defined")
// ErrAuthFail is returned when the client fails ... |
"use strict";
function mod() {
const data = babelHelpers.interopRequireDefault(require("mod"));
mod = function () {
return data;
};
return data;
}
mod().named;
mod();
|
#!/bin/sh
npm install --save-dev \
rollup @rollup/plugin-node-resolve \
rollup-plugin-jsy rollup-plugin-dgnotify \
qsrv
echo "You may now remove '$0'"
|
module Mumukit
module WithCommandLine
SIGINT = 2
SIGSEGV = 11
SIGXCPU = 24
def command_size_limit
Mumukit.config.command_size_limit
end
def command_time_limit
Mumukit.config.command_time_limit
end
def limit_command
Mumukit.config.limit_script
end
def run_c... |
@extends('layouts.profile')
@section('title', 'View Recruiter Profile')
@section('content')
<h1><?php echo $profile[0]->first_name.' '.$profile[0]->last_name ?></h1>
<div>
<div>Email</div>
</div>
<div>
<div><?php echo $profile[0]->email ?></div>
</div>
<div>
<div>Phone<... |
#region BSD License
/*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE.md file or at
* https://github.com/Wagnerp/Krypton-Toolkit-Suite-Extended-NET-5.471/blob/master/LICENSE
*
*/
#endregion
namespace Core.VersionFramework.Classes
{
public class AssemblyInforma... |
import React from 'react';
import classnames from 'classnames';
import numeral from 'numeral';
import { Typography } from '@material-ui/core';
import useTranslation from 'next-translate/useTranslation';
import {
AreaChart,
Area,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
ResponsiveContainer,
} from 'recharts';... |
YTSimple
========
A plain text API that will return the most popular video ID for a search.
Includes Redis caching.
## Configuration:
This app must be configured before it can be used.
**config.json**
```
{
"redis": {
"host": "127.0.0.1", // Redis hostname
"port": 6379, // Redis port
"pass": "" // Re... |
#!/usr/bin/env bash
FILE=~/.android/debug.keystore
#######################################
for arg in "$@"; do
case $arg in
--file=*)
FILE=${arg#*=}
shift
;;
esac
done
#######################################
if [ ! -f $FILE ]; then
>&2 echo "File not found"
fi
keytool -list -v -keystore $F... |
import { LinkButtonData } from "./linkButotndata.models";
import { Link } from "./style";
function LinkButton({ tolink = "/", value = "value" }: LinkButtonData) {
return <Link to={tolink}>{value}</Link>;
}
export default LinkButton;
|
---
layout: post
microblog: true
audio:
photo:
date: 2010-01-13 18:00:00 -0600
guid: http://craigmcclellan.micro.blog/2010/01/14/t7757368368.html
---
Perfect time to die iPhone, right before I go out of town for 4 days. Pray that I get it going later.
|
# `@telecraft/parser`
Default parser for the Telecraft project. Supports Vanilla 1.16.2 and PaperMC 1.16.2.
|
package v1alpha1
import (
"harmonycloud.cn/stellaris/pkg/apis/multicluster/common"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
)
// +genclient
// +genclient:nonNamespaced
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:scope="Clust... |
import Vue from 'vue'
import Vuex from 'vuex'
import Metadata from 'src/store/metadata'
import * as actions from './actions'
import * as getters from './getters'
import * as mutations from './mutations'
let Config = require('../config/index')
const debug = process.env.NODE_ENV !== 'production'
if (debug) Vue.use(Vuex... |
#!/usr/bin/env ruby
require 'yard'
require 'json'
require 'optparse'
require 'stringio'
require 'active_support/core_ext/object/blank'
# Parses YARD output for AnalyticsEvents methods
class AnalyticsEventsDocumenter
DEFAULT_DATABASE_PATH = '.yardoc'
PREVIOUS_EVENT_NAME_TAG = :'identity.idp.previous_event_name'
... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
import { Location } from 'history'
import React, { useCallback, useContext } from 'react'
import { useMutation } from '@apollo/client'
import { useModal } from 'react-modal-hook'
import { Link, useHistory, useLocation } from 'react-router-dom'
import ConfirmDialog from '../../components/ConfirmDialog'
import DropdownM... |
require 'logger'
module Nebula
class Logger < ::Logger
def initialize(class_name)
super(File.open(Nebula.log_path, "w+"))
end
def with_logging(level, msg, &block)
block.call.tap { send(level, msg) }
end
end
end
|
#!/bin/bash
#
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Copyright (c) 2015 Intel Corporation. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This file is a tuned-down version of the scripts used to build Chrome Debian... |
#!/bin/bash
function main {
local image=$1
local branch=${TRAVIS_BRANCH:-$(git rev-parse --abbrev-ref HEAD)}
local tag=$(git show -s --format=%ct-%h HEAD)
if [ "${DOCKER_USERNAME}" != "" -a "${DOCKER_PASSWORD}" != "" ]
then
docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}"
fi
if [ "${bra... |
require "spec_helper"
describe ItemStatus do
describe "the index operator - ItemStatus[:foo]" do
it "returns the id for the corresponding status symbol" do
ItemStatus[:unknown].should == 1
ItemStatus[:valid].should == 2
ItemStatus[:invalid].should == 3
end
it "does not hit the databas... |
/*
* COPYRIGHT (C) 2017 Alpine Data Labs Inc. All Rights Reserved.
*/
package com.alpine.model.pack.ast.expressions
import com.alpine.common.serialization.json.TypeWrapper
import com.alpine.sql.SQLGenerator
import com.alpine.transformer.sql.ColumnarSQLExpression
/**
* Created by Jennifer Thompson on 3/1/17.
*/
... |
@extends('master')
@section('title')
Rumah Tajwid Indonesia
@stop
@section('header')
@include('front.partials.logo')
@include('front.partials.nav')
@include('front.partials.news')
@stop
@section('content')
@include('front.partials.slide')
@include('front.partials.blogs')
@stop
@section('side... |
import { recursiveObject } from "../common/common";
/**
* Library to process array
* @example
* const arr = new ObjectCoreProcessor<InterfaceModel>([{1:100},{2:200}]);
*
*/
export class ObjectCoreProcessor<T> {
private actualArray: T;
private curData: T;
/**
* Library to process array
* @e... |
# Pokemon Directory
A small piece of work to show off my Android development skills
## App demo
<img src="app-demo.gif" width="200px" style="margin: 0 0 0 30px" alt="App Demo" />
## Technical skills used
- Built with :heart: in `Kotlin`
- Follows `Model View Presenter` architecture
- `Retrofit` for networking
- `Glid... |
package interval
import (
"gopkg.in/nowk/assert.v2"
"testing"
)
func TestInterval(t *testing.T) {
assert.Equal(t, Interval("every_minute"), Every.Minute())
assert.Equal(t, Interval("every_5_minutes"), Every.Minute(5))
assert.Equal(t, Interval("every_hour"), Every.Hour())
assert.Equal(t, Interval("every_5_hours... |
SET ECHO off
REM NAME:TFSTSFRM.SQL
REM USAGE:"@path/tfstsfgm"
REM ------------------------------------------------------------------------
REM REQUIREMENTS:
REM SELECT ON DBA_FREE_SPACE
REM ------------------------------------------------------------------------
REM PURPOSE:
REM The following is a... |
# Credits: https://github.com/sriinampudi
import string
class Solution:
def checkIfPangram(self, sentence: str) -> bool:
c = 0
for i in range (0,26):
if(string.ascii_lowercase[i] not in sentence):
c = c+1
if (c != 0):
return(bool(False))
els... |
/*
* Copyright [2013-2020] PayPal Software Foundation
*
* 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 applica... |
module Fission
module Action
module Snapshot
class Lister
# Internal: Creates a new SnapshotLister object. This accepts a VM
# object.
#
# vm - An instance of VM
#
# Examples:
#
# Fission::Action::SnapshotLister.new @my_vm
#
... |
/**
* Subnet wrapper class with protected member and basic checking/processing.
*/
export class Subnet{
constructor(private address: number, private mask: number, private wildcard: number){}
/**
* Return the network address.
*/
public getAddress(): number{
return this.address;
}
... |
class Task:
"""A class which represents a task.
Arguments:
name(str): The task name as defined in the configuration file.
params(dict, optional): If not `None`, stores the task-relevant
arguments as well.
"""
def __init__(self, name, params=None):
assert name.count(... |
import * as React from 'react'
// import {getRootFontSize} from '../../resources/js/utils'
// import Toast from '../common/components/Toast'
import {loadComponentStyle} from '../common/utils'
import styles from '../resources/admin/scss/index.scss'
import CustomLink from './components/CustomLink'
import adminConfig fr... |
// pages/feedback/feedback.js
var app = getApp();
Page({
data: {
docinfo: {},
message: '',
},
onLoad: function (options) {
var that = this
var userinfo = wx.getStorageSync('userinfo') || {};
var phone = wx.getStorageSync('phone')
that.getDocterMsg(phone)
},
getDocterMsg(phone) {
va... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xam... |
import numpy as np
import pandas as pd
from scipy.spatial import distance
class Graph:
def __init__(self, points_df, bonds, list_atoms, charges):
self.points = points_df[['x', 'y', 'z']].values
self.bonds = bonds
self.charges = charges[['eem', 'mmff94', 'gasteiger', 'qeq', 'qtpie',
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
namespace Iot.Device.Max31865
{
[Flags]
internal enum Configuration : byte
{
Filter60HZ = 0b_0000_0000,
Filter50HZ = 0b_0000_000... |
// ignore_for_file: constant_identifier_names
class Urls {
static const String APPWRITE_ENDPOINT =
'http://164.92.185.108/v1';
static const String APPWRITE_PROJECTID = '6208205e15fb18447ce3';
static const String DOMAIN = 'http://138.197.186.138';
static const String BASE_API = DOMAIN + '';
static const... |
package sg.edu.nus.leaveapplication.securityconfig;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
im... |
# stream jenkins logs
[](https://crates.io/crates/stream-jenkins-logs)
a quasi rewrite of [jenkins-log-stream](https://github.com/r-hub/jenkins-log-stream) in rust
## Installation
```bash
cargo install stream-jenkins-logs
```
## Usage
```bash
strea... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Microsoft.Azure.I... |
import Ractive from 'lib/ractive';
import emitter from 'lib/emitter';
import LS from 'lib/wallet/localStorage';
import initChoose from './choose';
import initCreate from './create';
import initCreatePassphrase from './create-passphrase';
import initCreatePassphraseConfirm from './create-passphrase-confirm';
import secu... |
package main
import (
"context"
"net/http"
"time"
"github.com/google/go-github/github"
)
// githubTimeout defines how long to wait for a response from GitHub
// when checking for new SAM Local versions.
const githubTimeout = 3
// checkVersionResult contains information on the current version of AWS SAM CLI, and... |
#include<stdio.h>
int fact(int);
int main()
{
int i,x,n;
float sum=0;
printf("\nEnter x and n subsequently: ");
scanf("%d %d",&x,&n);
sum=0;
for(i=0;i<=n;i++)
{
sum=sum+pow(x,i)/fact(i);
}
printf("\nRequired sum:%f",sum);
return 0;
}
int fact(int j)
{
int mul=1;
for(j=1;i>=j;i--)
{
... |
using UnityEngine;
using System;
using UnityEditor;
/// <summary>
/// Animation clip extensions.
/// </summary>
public static class AnimationClipExtensions
{
static EditorCurveBinding _spriteCurveBinding = new EditorCurveBinding
{
type = typeof(SpriteRenderer),
path = "",
propertyName ... |
package de.metas.materialtracking.qualityBasedInvoicing.ic.spi.impl;
import java.util.Iterator;
import java.util.Properties;
import org.adempiere.ad.dao.ICompositeQueryFilter;
import org.adempiere.ad.dao.IQueryBL;
import org.adempiere.ad.dao.IQueryBuilder;
import org.adempiere.ad.dao.IQueryFilter;
import org.adempier... |
import unwrap.EvaluatingUnwrapper
import utils.asList
import utils.getMappingOperationOrNull
object Find : FunctionalLogicOperation, EvaluatingUnwrapper {
override fun invoke(expression: Any?, data: Any?, evaluator: LogicEvaluator): Any? {
return expression.asList.let { expressionValues ->
val ... |
package in.tombo.kashiki.view;
import com.jogamp.opengl.GL2;
public abstract class Base {
private Position position = new Position();
private Angle angle = new Angle();
private Scale scale = new Scale();
private Color color = new Color();
public void draw(GL2 gl) {
preDraw(gl);
innerDraw(gl);
... |
if [ $# -lt 4 ];then
echo "usage: maven.sh targetDir groupId artifactId version [type]"
exit 1
fi
if [ ${1:0:1} == "/" ];then
targetDir=$1
else
targetDir=`pwd`/$1
fi
groupId=$2
artifactId=$3
version=$4
type=war
if [ $# -ge 5 ];then
type=$5
fi
cwd=`pwd`
tmpdir=target/maventmp/$groupId/$artifactId/$version
rm -r... |
---
layout: slide
title: Boats
excerpt: "images of boats in a reveal.js slide format"
category: presentation
---
<section data-markdown>
<script type="text/template">
## Pictures of boats
</script>
</section>
|
---
name: VnManager
author: Micah686
tagline: "A program to keep track of your visual novels, with support for pulling in metadata"
project_url: https://github.com/micah686/VnManager
date_visited: 02.03.2021
order: 700
---

|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.