text stringlengths 27 775k |
|---|
---
title: ๅพฎ่ฝฏBing็ไผผๆๅกไธญๆญ๏ผๅทฒๆขๅค
date: 2021-12-16 18:00:00 +0800
tags: Bing ๅพฎ่ฝฏ
categories: article
---
ๅค็จๅๅไผผไนๅฏ็จ https://www4.bing.com/
2021.12.18 ๆดๆฐ ็ฎๅๆๅกๆญฃๅธธ
|
# ๅ่ฐๅฝๆฐ
WebSocket้คไบๆฅๆถ`Swoole\Server`ๅ`Swoole\Http\Server`ๅบ็ฑป็ๅ่ฐๅฝๆฐๅค๏ผ้ขๅคๅขๅ ไบ3ไธชๅ่ฐๅฝๆฐ่ฎพ็ฝฎใๅ
ถไธญ๏ผ
* `onMessage`ๅ่ฐๅฝๆฐไธบ**ๅฟ
้**
* `onOpen`ๅ`onHandShake`ๅ่ฐๅฝๆฐไธบๅฏ้ |
---
layout: post
microblog: true
date: 2016-08-21 21:28 +1300
guid: http://JacksonOfTrades.micro.blog/2016/08/21/t767277179046539264.html
---
@HowEChia I usually have a triple shot mocha, but I may need to try that now.
|
use components::{event::Event, snapshot::Snapshot};
use downcast_rs::{impl_downcast, Downcast};
pub trait State: Downcast {
fn handle_event(&mut self, snapshot: &Snapshot, event: &Event);
}
impl_downcast!(State);
|
param (
[Parameter(Mandatory)]
[string] $TxtFilePath,
[Parameter(Mandatory)]
[string] $RtfFilePath
)
$txtFileContent = (Get-Content -LiteralPath $TxtFilePath -Encoding UTF8 -Raw).
Replace('\', '\\').
Replace('{', '\{').
Replace('}', '\}').
Replace([System.Environment]::NewLine, ' \par ... |
import Cart from "@components/cart/cart";
import { useUI } from "@contexts/ui.context";
import { Drawer } from "@components/common/drawer/drawer";
import { useRouter } from "next/router";
import { getDirection } from "@utils/get-direction";
const ManagedDrawer = () => {
const { displayCart, closeCart } = useUI();
co... |
bp_require File.join(*%w[net-mdns lib net dns mdns-sd])
Thread.abort_on_exception = true
DNSSD = Net::DNS::MDNSSD
class Bonjour
def initialize(args)
end
def browse(bp, args)
service = DNSSD.browse(args['service']) do |b|
DNSSD.resolve(b.name, b.type) do |r|
log(r.target)
log(r.port)
... |
import React from 'react'
import Layout from '../components/Layout'
import SEO from '../components/SEO'
function NotFound() {
return (
<Layout>
<SEO
title="Ronaldo Gjini - Not Found"
description="404 Not Found."
/>
<div className="w-screen... |
package ltbs.uniform
package common.web
import cats.~>
import cats.implicits._
import common.web._
import scala.concurrent.duration._
import scala.concurrent.{Future, ExecutionContext}
import java.time.LocalDateTime
object FutureAdapter {
private def sha256Hash(in: String): String = {
import java.security.Mess... |
---
title: "Class"
metaTitle: "Class"
metaDescription: "This is the meta description"
---
## ํด๋์ค ์์ฑ
ํด๋์ค๋ ๊ฐ์ฒด ์งํฅ ํ๋ก๊ทธ๋๋ฐ์์ ํน์ ๊ฐ์ฒด๋ฅผ ์์ฑํ๊ธฐ ์ํด ๋ณ์์ ๋ฉ์๋๋ฅผ ์ ์ํ๋ ์ผ์ข
์ ํ๋ก,
๊ฐ์ฒด๋ฅผ ์ ์ํ๊ธฐ ์ํ ์ํ(๋ฉค๋ฒ ๋ณ์)์ ๋ฉ์๋(ํจ์)๋ก ๊ตฌ์ฑ๋ฉ๋๋ค.
```js
class User {
constructor(name) {
this.name = name;
}
sayHi() {
alert("Hi!!!");
... |
package dev.gumil.nookbot.telegram
import dev.gumil.nookbot.Component
import dev.gumil.nookbot.telegram.entities.Update
import dev.gumil.nookbot.utils.TestMockEngine
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.junit.jupiter.par... |
import 'dart:convert';
import 'Elements.dart';
import 'htmlparser.dart';
class MarkupUtils {
///Converts [Map] to [Node]
static Node mapToNode(Map<String, dynamic> json) {
dynamic node;
switch (json["type"]) {
case NodeType.ROOT:
node = RootNode(null);
break;
case NodeType.ELEM... |
import pymongo
from pymongo import MongoClient
# CONNECT TO THE DB
client = MongoClient()
## Add your connection info here
client = pymongo.MongoClient("mongodb+srv://<username>:<password>@<cluster>/test?retryWrites=true&w=majority")
db = client.CityHall
# THE ID OF THE USER WHOSE PROFILE WE WILL BE RETRIEVING AND U... |
#!/usr/bin/env python3
"""radarbot - a demo robot driver for controlling a battle ship
This example file can be copied as a basis for your own robot. Copy it into a local
folder, rename it to e.g. yourbot.py, start editing and run it from the command line as:
$ python3 yourbot.py
You'll want to edit the default na... |
import os
import pandas as pd
import xml.etree.cElementTree as ET
XML_FOLDER = "/home/abhijitcbim/data/PedDetectionIMDB/annotations"
DEST_FOLDER = "/home/abhijitcbim/data/PedDetectionIMDB/annotations_xml"
ROOT_FOLDER = "/home/abhijitcbim/data/PedDetectionIMDB"
def splitall(path):
allparts = []
while 1:
... |
package com.lingga.themoviedb.ui.ticket
import android.content.Context
import com.lingga.themoviedb.R
import com.lingga.themoviedb.databinding.FragmentTicketBinding
import com.lingga.themoviedb.ui.base.BaseFragment
import kotlinx.coroutines.ExperimentalCoroutinesApi
@ExperimentalCoroutinesApi
class TicketFragment : ... |
class Dir:
major, minor, patch = 0, 0, 0
def __init__(self, name=None):
if not name:
return
if name.count('.') is not 2:
raise Exception('Invalid directory name:', name)
tokens = name.split('.')
for i in range(len(tokens)):
if not tokens[i].isn... |
<?php
namespace Aws\DynamoDbStreams;
use Aws\Common\Client\AbstractClient;
use Aws\Common\Client\ClientBuilder;
use Aws\Common\Enum\ClientOptions as Options;
use Aws\Common\Exception\Parser\JsonQueryExceptionParser;
use Aws\DynamoDb\DynamoDbClient;
use Guzzle\Common\Collection;
use Guzzle\Plugin\Backoff\BackoffPlugin... |
<?php
class Clogin extends CI_controller
{
function __construct(){
parent::__construct();
$this->load->model('mlogin');
}
public function index(){
$data['mensaje']= "";
$this->load->view('vlogin',$data);
}
public function ingresar(){
// print "<script type=\"text/javascript\">alert('logint')... |
# frozen_string_literal: true
p('Ruby' * 5)
p([1, 2, 3] * 5)
p(%w[A B C] * 5)
|
<?php defined('BX_DOL') or die('hack attempt');
/**
* Copyright (c) UNA, Inc - https://una.io
* MIT License - https://opensource.org/licenses/MIT
*
* @defgroup BaseGroups Base classes for groups modules
* @ingroup UnaModules
*
* @{
*/
/*
* Groups module representation.
*/
class BxBaseModGroupsTemplate... |
from django.apps import AppConfig
import logging
logger = logging.getLogger("bornhack.%s" % __name__)
class ShopConfig(AppConfig):
name = "shop"
|
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 14-Set-2018 ร s 23:13
-- Versรฃo do servidor: 10.1.30-MariaDB
-- PHP Version: 7.2.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
require File.join(File.dirname(__FILE__), "lib", "archieml", "version")
Gem::Specification.new do |gem|
gem.name = "archieml"
gem.version = Archieml::VERSION
gem.authors = ["Michael Strickland"]
gem.email = ["michael.strickland@nytimes.com"]
gem.description = %q{Parse Archie Ma... |
๏ปฟ// <copyright file="DataRateIndex.cs" company="Poul Erik Venรธ Hansen">
// Copyright (c) Poul Erik Venรธ Hansen. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// </copyright>
namespace FosterBuster.IU880B.Messaging
{
/// <summary>
... |
# -*- coding: utf-8 -*-
"""
This is a SublimeText 2 adaptation of `Vincent Driessen's vim-rst-tables` [1]_ code
by Martรญn Gaitรกn <gaitan@gmail.com>
.. [1]: https://github.com/nvie/vim-rst-tables
Usage
-----
1. Set reStructuredText as syntax (or open a .rst)
2. Create some kind of table outline::
This is para... |
import { combineReducers } from 'redux'
import control from './control'
export default combineReducers({
control
})
|
# Challenge name: Number of good pairs
#
# Given an array of integers nums.
# A pair (i,j) is called good if nums[i] == nums[j] and i < j.
# Return the number of good pairs.
#
# @param {Integer[]} nums
# @return {Integer}
#
#
# Approach 1: Hash
#
# Time Complexity: O(n)
def num_identical_pairs(nums)
hash = Hash.new(... |
<?php
class Object_Inquiry_List extends Object_List_Concrete {
public $classId = 3;
public $className = "inquiry";
}
|
#!/bin/bash
docker build --target travis -t pybm -f packages/docker/Dockerfile.bionic .
docker run pybm
|
package org.jetbrains.ktor.content
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.cio.*
import org.jetbrains.ktor.http.*
import org.jetbrains.ktor.util.*
import java.io.*
import kotlin.coroutines.experimental.*
sealed class FinalContent {
open val status: HttpStatusCode?
get() = null
... |
package br.com.helpdev.kleanarch.core.usecase.user.impl
import br.com.helpdev.kleanarch.core.entity.user.User
import br.com.helpdev.kleanarch.core.entity.user.vo.Age
import br.com.helpdev.kleanarch.core.entity.user.vo.Name
interface UserGetter {
fun getByNameAndAge(name: Name, age: Age): User?
fun getAllEnabl... |
๏ปฟnamespace Autofac
{
public class Service2 : IService2
{
public void Service2Method()
{
// Service Method Implementation
}
}
}
|
# Copyright 2020 Makani Technologies LLC
#
# 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... |
require 'minitest/spec'
module MiniTest
class Spec
class << self
alias_method :context, :describe
end
end
end
if defined? ActiveSupport::TestCase
class ActiveSupport::TestCase
class << self
alias_method :context, :describe
end
end
end
|
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_AF
;TEST_FILE_META_END
; AND16rr
mov cx, 0x0
mov dx, 0x1
;TEST_BEGIN_RECORDING
and cx, dx
;TEST_END_RECORDING
|
import 'jest-extended';
declare const expect: (R, T?) => jest.Matchers<R, T>; |
๏ปฟusing System;
using System.Text.RegularExpressions;
namespace MathAPI.Extensions
{
public static class StringExtensions
{
public static bool IsNumber(this string value)
{
if (string.IsNullOrEmpty(value))
return false;
Regex regex = new Regex("^-?[0-9]*$... |
# frozen_string_literal: true
module EventSource
module AsyncApi
# Contains information about the server representation
class ServerBinding < Dry::Struct
end
end
end
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def solve():
one = two = three = five = 0
five = 65_536
two = 2_238_642
end = False
while not end:
three = five & 255
two += three
two &= 16_777_215
two *= 65_899
two &= 16_777_215
if 256 > five:
... |
<?php
use Strata\Strata;
use Strata\Model\Model;
use Strata\Model\CustomPostType\CustomPostType;
use Strata\Model\CustomPostType\Registrar\Registrar;
class ModelTest extends PHPUnit_Framework_TestCase
{
public $wordpress;
public $model;
public $customPostType;
public function setUp()
{
$t... |
function Base.show(io::IO, drv::Driver)
if drv == C_NULL
print(io, "Null Driver")
else
print(io, "Driver: $(getshortname(drv))/$(getlongname(drv))")
# provide creation options too
end
end
function Base.show(io::IO, dataset::Dataset)
if dataset == C_NULL
print(io, "Closed... |
#!/bin/bash
INFILE=${1:-pages.csv}
OUTFILE=${2:-cptable.js}
JSVAR=${3:-cptable}
VERSION=$(cat package.json | grep version | tr -dc [0-9.])
mkdir -p codepages bits
rm -f $OUTFILE $OUTFILE.tmp
echo "/*! $OUTFILE (C) 2013-present SheetJS -- http://sheetjs.com */" > $OUTFILE.tmp
echo "/*jshint -W100 */" >> $OUTFILE.tmp
ec... |
package weco.storage_service.bag_tracker.models
import java.time.Instant
import weco.storage_service.bagit.models.{BagId, BagVersion}
case class BagVersionEntry(
version: BagVersion,
createdDate: Instant
)
case class BagVersionList(
id: BagId,
versions: Seq[BagVersionEntry]
)
|
package posidon.android.conveniencelib
import android.app.Activity
import android.graphics.Point
import android.os.Build
import android.util.DisplayMetrics
import android.view.View
import android.view.WindowInsets
import android.view.WindowManager
import android.view.inputmethod.InputMethodManager
import kotlin.math.m... |
const SEP = process.platform.startsWith('win') ? '\\' : '/'
module.exports = async (files, pkg) => {
// map the files object to only the names
// then filter in only the ones in the top level folder
if (pkg.main) return pkg.main
const fnames = files
.map(o => o.file)
.filter(name => name.split(SEP).le... |
import Record from '@models/Record';
export default class Credential extends Record({
email: '',
}) {
constructor(data) {
super(data);
}
static of(data) {
if (data && data.user) {
return new Credential({
email: data.user.user.email,
})
}
}
};
|
#include "RTMidiOutDevice.h"
#include "System/Console/Trace.h"
RTMidiOutDevice::RTMidiOutDevice(RtMidiOut &out,int index,const char *name):
MidiOutDevice(name),
rtMidiOut_(out),
running_(false),
index_(index)
{
} ;
RTMidiOutDevice::~RTMidiOutDevice() {
} ;
bool RTMidiOutDevice::Init(){
return true ;
} ;
void... |
paju-mensch_wui
===============
Play Framework Web UI
|
package heroku
import "fmt"
// SetConfigVars sets the requires config vars for challenge validation
func (s *Client) SetConfigVars(appName string, index int, key, token string) error {
var keyConfig, tokenConfig string
if index == 0 {
keyConfig = "ACME_KEY"
tokenConfig = "ACME_TOKEN"
} else {
keyConfig = fmt... |
/**********
Descricao: Funcoes auxiliares para criaรงรฃo do MergeSort e HeapSort
**********/
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef UTILS_H
#define UTILS_H
#include <stdlib.h>
#include <stdio.h>
void generate(int *v, size_t size);
void generateCrescente(int *v, size_t size);
void generateDecresce... |
import CustomerObject from './obj.customer'
export default interface EndUserObject extends CustomerObject {
/**
* The unique UUID Flatfile assigns to the user of your import
*/
id: string
}
|
package com.chataway.ui.login
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.chataway.R
import com.chataway.ui.utility.Login
import com.google.firebase.auth.FirebaseAuth
const val TAG = "login-task"
class LoginViewM... |
import 'package:clean_framework/clean_framework_providers.dart';
import 'package:either_dart/either.dart';
import 'package:flutter_test/flutter_test.dart';
class UseCaseFake<I extends SuccessInput> extends Fake
implements UseCase<EntityFake> {
EntityFake _entity = EntityFake();
late Function subscription;
I?... |
package metrik.project.rest.validation
import javax.validation.ConstraintValidator
import javax.validation.ConstraintValidatorContext
class EnumValidator : ConstraintValidator<EnumConstraint, String> {
private lateinit var valueList: MutableList<String>
override fun initialize(constraintAnnotation: EnumConst... |
/**
* @file retrieveAccount.dto.ts
* @author Youtao Xing <youtao.xing@icloud.com>
* @date 2020
*/
import { Request } from './request.dto';
import { Response } from './response.dto';
export declare type RetrieveAccountParams = [string];
export declare type RetrieveAccountResult = {
address: string;
privateKe... |
A pytorch prototype implementation of "Masked Language Model Scoring" (https://arxiv.org/pdf/1910.14659.pdf)
Baseline BERT code is referenced from https://github.com/shehzaadzd/pytorch-pretrained-BERT.git
To run,
please execute
> bash run.sh
|
declare const Inline: any;
import { LinkParam } from 'jimu-ui/advanced/setting-components';
import { LinkTarget } from 'jimu-ui';
export interface LinkFormatValue {
uniqueid: string;
dsid: string;
href: string;
target: LinkTarget;
link?: LinkParam;
}
export declare class Link extends Inlin... |
import 'package:flutter/material.dart';
enum SlideTransitionType { ltr, rtl, ttb, btt, bl, br, tl, tr }
class Navigate<T> {
/// Replace the top widget with another widget
Future<T?> pushReplace(BuildContext context, Widget widget,
{bool isDialog = false,
bool isRootNavigator = true,
SlideTransit... |
# Design of `percy`
This section is intended to be a deep dive into how `percy`'s different internal pieces work today.
|
import styled from 'styled-components';
import { withProp, prop, ifProp } from 'styled-tools';
import { transparentize } from 'polished';
import getFromTheme from '../../utils/getFromTheme';
import { Subtitle } from '../Subtitle';
export const StyledCard = styled.div`
position: absolute;
z-index: ${getFromTheme('z... |
#ifndef SCENARIOHANDLER_H
#define SCENARIOHANDLER_H
#include "include/cef_client.h"
class ScenarioHandler : public CefClient
{
public:
ScenarioHandler();
private:
IMPLEMENT_REFCOUNTING(ScenarioHandler);
};
#endif // SCENARIOHANDLER_H
|
import commonLogic from '@/locale/logic/common/common-logic';
function getLocaleResourceBase(){
const data:any = {
fields: {
value_key: commonLogic.appcommonhandle("ๆ ่ฏ",null),
catalog_id: commonLogic.appcommonhandle("็ฎๅฝไปฃ็ ",null),
catalog_name: commonLogic.appcommonhandle("็ฎๅฝ",null),
value: commonLogic.appcom... |
#!/bin/bash
#SBATCH -p debug
#SBATCH -N 40
#SBATCH -t 00:15:00
#SBATCH -J spectractor
#SBATCH -C haswell
#SBATCH --image=nersc/spark-2.3.0:v1
#SBATCH -A m1727
module load spark
module load sbt
# Parameters (put your file)
outpath="/global/cscratch1/sd/peloton/output_ctio"
logfile="/global/homes/p/peloton/Spectractor/... |
SELECT FirstName
FROM Employees
WHERE DepartmentID IN (3, 10) AND DATEPART(YEAR, HireDate) BETWEEN 1995 AND 2005 |
๏ปฟusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyAss.Compiler.Tests
{
public static class TestModels
{
public static String Model_TurnstaleDemo
{
get
{
return @"... |
class Drink:
def __init__(self, **entries):
self.nextMove = None
self.ingredients = 0
self.sugar = 0
self.ice = 0
self.black_tea = 0
self.wm_tea = 0
self.id = None
self.order_id = None
self.manufacturingProcess = []
self.__dict__.upd... |
package typingsSlinky.prettyFormat
import org.scalablytyped.runtime.Shortcut
import typingsSlinky.prettyFormat.typesMod.Config
import typingsSlinky.prettyFormat.typesMod.NewPlugin
import typingsSlinky.prettyFormat.typesMod.Printer
import typingsSlinky.prettyFormat.typesMod.Refs
import typingsSlinky.prettyFormat.typesM... |
# -*- coding: utf-8 -*-
import json
import logging
from django.conf import settings
from django.template.context import RequestContext
from django.utils import translation, six
from djangojs.conf import settings
from djangojs.utils import LazyJsonEncoder
logger = logging.getLogger(__name__)
__all__ = (
'Cont... |
/// <reference path="../external/Jupyter.d.ts" />
import React from "react";
import { EditableText } from "./EditableText";
interface SelectionItemProps {
isActive: boolean;
selectionName: string;
onDelete: () => void;
onClick: () => void;
}
interface SelectionItemState {
selectionName: string;
}
export... |
๏ปฟusing System.Collections.Generic;
namespace HelpByPros.BusinessLogic
{
public class Member:User
{
/// <summary>
/// List of questions posted by this user.
/// </summary>
public List<Question> MyQuestion { get; set; } = new List<Question>();
/// <summary>
/// Po... |
# GPG Vault
Simple GPG based file encryption utility.
Allows viewing and editing of encrypted files with passphrase caching.
## Installing
Using PIP:
```
% pip3 install gpg-vault
```
## Viewing files
```
% vcat file.txt.gpg
Passphrase: ************
Hello
[Use CMD-K to clear sensitve information from the screen... |
#Get the NetworkconfigPolicy to delete
$NetworkconfigPolicy = Remove-IntersightNetworkconfigPolicy -Name NetworkconfigPolicyName
$NetworkconfigPolicy | Remove-IntersightNetworkconfigPolicy
#Remove the server profile by Moid.
Remove-IntersightNetworkconfigPolicy -Moid 123bc2222287wee
|
# FB2018, as of 2018.04.07
roboRIO serial number: 030a4a34
## CAN
* 2 = Left Master - PDP:3 : CANTalon(2)
* 3 = Left Slave - PDP:2 : CANTalon(3)
* 4 = Right Master - PDP:1 : CANTalon(4)
* 5 = Right Slave - PDP:0 : CANTalon(5)
* 11 = leftSpinner : CANTalon(11)
* 12 = rightSpinner : CANTalon(12)
* 13 = leftIntake : CA... |
--TEST--
Bug #45373 (php crash on query with errors in params)
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php
require("interbase.inc");
$db = ibase_connect($test_base);
$sql = "select * from test1 where i = ? and c = ?";
$q = ibase_prepare($db, $sql);
$r = ibase_execute($q, 1, 'test table not c... |
#!/bin/bash
if [ "${APP_MODE}" == "install" ]
then
php bin/console cache:warmup --env=${APP_ENV};
php bin/console doctrine:database:create --if-not-exists --env=${APP_ENV};
php bin/console doctrine:schema:update --em=default --force --env=${APP_ENV};
php bin/console yay:integration:enable default inte... |
---
layout: entry
name: Into the Gungeon
author: Mr. Screw On Head
genre: action
summary: "Bullet Hell Hack"
cost: "$0.00"
subtext1:
subtext2:
subtext3:
subtext4:
category:
- hacks
source: blog
source-url: https://wasitlikely.blogspot.com/2019/05/into-gungeon-run-n-gunbullet-hell-hack.html
---
|
@extends('admin.layout.index')
@section('content')
<section class="wrapper">
<h2 class="text-center">ๆทปๅ ่ฝฎๆญๅพ</h2>
<center>
<div class="row mt text-center" style="width:1200px;">
<div class="col-lg-12" >
<div class="form-panel">
<!-- ๆ็คบ้่ฏฏไฟกๆฏ -->
@if (count($errors) > 0)
<div class="aler... |
use Test;
use Distribution::Dependencies;
my %result = explore;
is %result<JSON::Fast>, 1, "Auto-exploration works";
done-testing;
|
/*
Navicat MySQL Data Transfer
Source Server : localhost3306
Source Server Version : 50505
Source Host : localhost:3306
Source Database : taobao
Target Server Type : MYSQL
Target Server Version : 50505
File Encoding : 65001
Date: 2018-06-20 11:56:16
*/
SET FOREIGN_KEY_CHECKS=0;
-... |
library(shiny)
library(ggplot2)
library(ggvis)
# Data processing libraries
library(data.table)
library(reshape2)
library(dplyr)
library(mapproj)
library(maps)
# Load data
dt <- fread('data/gdp.csv')
world_map <- map_data("world")
shinyServer(
function(input,output){
output$gdpMap <- renderPlot({
... |
๏ปฟusing System.Linq;
using GenericSearch.Data;
using Xunit;
namespace GenericSearch.Core
{
public class TextSearchTest
{
[Fact]
public void ApplyToQuery_ContainsText_CorrectResultReturned()
{
var criteria = new TextSearch();
criteria.Property = "Text";
... |
class CreateExpandedTextAds < ActiveRecord::Migration[5.0]
def change
create_table :expanded_text_ads do |t|
t.string :xsi_type
t.integer :ad_group_id
t.string :headline_part1
t.string :headline_part2
t.string :description
t.string :path1
t.string :path2
t.timestam... |
declare namespace JSX {
import HTMLAttributes = JSXInternal.HTMLAttributes;
interface IntrinsicElements {
'confusion-matrix-element': HTMLAttributes<AngularElement>;
}
}
declare interface AngularElement extends HTMLElement {
labelsAnalysis: any;
}
|
/* ะกะพะทะดะฐะฝะธะต ะฒะธัััะฐะปัะฝะพะน ััะฝะบัะธะธ ะดะปั ะฒััะธัะปะตะฝะธั ะฟะปะพัะฐะดะธ ัะธะณัั ะฝะฐ ะฟัะธะผะตัะต ัะพะทะดะฐะฝะธั ะบะปะฐััะพะฒ ั
ะฝะฐัะปะตะดะพะฒะฐะฝะธัะผะธ: Shape, Triangle, Circle, Rectangle, Square. */
#include "stdafx.h"
#include <iostream>
using namespace std;
//ัะธัะปะพ ะะธ
const double PI = 3.14159265;
//ะะปะฐัั Shape + ะฒะธัััะฐะปัะฝะฐั ััะฝะบัะธั
class Shape {
... |
@JS("bridge")
library bridge;
import 'package:js/js.dart';
import 'dart:async';
@JS("load")
external Future<dynamic> load(dynamic buffer);
@JS("call")
external Future<dynamic> call(dynamic buffer, List<Object?> lengths);
|
#### 1.5.0 - Unreleased
* Implement Go to Metadata
#### 1.4.5 - August 28 2014
* Fix forcing saving projects when project items change
* Fix various issues on unused open declarations
#### 1.4.0 - August 10 2014
* Improve rename refactoring validation
* Add support for VS 14
* Implement Gray out unused open statement... |
package test
import (
"context"
"encoding/hex"
"github.com/capnpVSgrpc/config"
pb "github.com/capnpVSgrpc/protobuff"
"google.golang.org/grpc"
"log"
"testing"
"time"
)
func BenchmarkGrpc(b *testing.B) {
var acc pb.Account
acc.AccountId = &pb.AccountId{}
acc.Name = config.AccountName
acc.Balance = config.B... |
export type IsA = (x: any) => boolean;
export const aString: IsA = x => typeof x === 'string';
export const aNumber: IsA = x => typeof x === 'number';
export const anArray: IsA = x => Array.isArray(x);
export const notNull: IsA = x => x !== null;
export const notUndefined: IsA = x => x !== undefined;
export const... |
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:immich_mobile/modules/search/models/curated_location.model.dart';
import 'package:immich_mobile/modules/search/models/curated_object.model.dart';
import 'package:immich_mobile/modules/search/models/search_page_state.model.dart';
import 'package:immic... |
import * as Yup from 'yup';
export const formSchema = Yup.object({
name: Yup.string().required('Name is required.'),
email: Yup.string().email().required('Email is required.'),
city: Yup.string().required('City is required'),
username: Yup.string().required('Username is required.'),
});
|
En la configuraciรณn de B2C, haga clic en **Aplicaciones** y luego en **Agregar**.
 |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const ListNode_1 = __importDefault(require("./ListNode"));
/**
* Implements a singly linked list.
*
... |
import React from "react";
import { Layout, LayoutColumn, Text } from "@kiwicom/orbit-components";
import defaultTheme from "@kiwicom/orbit-components/lib/defaultTheme";
export default {
Example: () => {
const divStyle: React.CSSProperties = {
minHeight: `${defaultTheme.orbit.heightIllustrationMedium}`,
... |
import * as fs from 'fs';
import { Option } from 'funfix';
import * as path from 'path';
import { IStoreReader, IStoreWriter } from './types';
/**
* This File:
*
* Contains the class `FileStore` - An implementation that uses the file system.
*
* This demonstrates the "Interface Segregation Principle" which is the... |
<?php
$username = filter_input(INPUT_POST, 'username');
$password = filter_input(INPUT_POST, 'password');
if(!empty($username)){
if(!empty($password)){
$host = "hsc-ctsc-development:3306";
$dbusername = "dbuser";
$dbpassword = "CTSC_2019";
$dbname = "PubmedDailyUpdate";
//Create connection
$conn = new ... |
---
layout: archive
title: "Documents"
permalink: /documents/
author_profile: true
---
{% include base_path %}
Github Repositories
======
* Control of One-Dof Arm with Gazebo and ROS
<u><a href="https://oguzhankose.github.io/one-dof-arm/">[ Documentation ]</a>.</u>
* A docker container for PX4 SITL Simulat... |
# Interactive_UI
## Introduction
Tips and tricks on making reproducible Shiny apps.
## Run App Yourself
Run the following lines of code in `R`.
```R
# install necessary packages
install.packages( c( "shiny" # Web Application Framework for R
, "shinydashboard" # Create Dashboard... |
const int bigp=8388067;
ULL hash[10000007];
int hash2[10000007];
void pushhash(ULL s) {
int e=s&bigp;
while ((hash[e]!=0)&&(hash[e]!=s)) ++e;
if (hash[e]==0) hash[e]=s,hash2[e]=1; else hash2[e]++;
}
int findhash(ULL s) {
int e=s&bigp;
while ((hash[e]!=0)&&(hash[e]!=s)) ++e;
if (hash[e]==0) return 0; else r... |
# frozen_string_literal: true
class AddGroupColumnToEvents < ActiveRecord::Migration[5.2]
DOWNTIME = false
def change
add_reference :events, :group, index: true, foreign_key: { to_table: :namespaces, on_delete: :cascade }
end
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.