text stringlengths 27 775k |
|---|
#!/usr/bin/env python
# coding: utf-8
"""
Copyright (c) Dou Du.
Distributed under the terms of the Modified BSD License.
A Periodic Table widget for use in Jupyter Notebooks.
"""
from copy import deepcopy
from ipywidgets import DOMWidget, Layout
from traitlets import (
Unicode,
Int,
List,
Dict,
... |
# AsyncFormControlErrors
Handle your form control errors like a champ.
Async is the way!!!
# Example
We recommend using [@angular/material](https://material.angular.io/) for using this Library but its optional
```typescript
import { Component, OnInit } from "@angular/core";
import { FormGroup, FormControl, Valida... |
#!/usr/bin/env bash
DEPLOYER_URL="internal-deployer-605796188.us-east-1.elb.amazonaws.com"
#DEPLOYER_URL="localhost"
curl -XPOST $DEPLOYER_URL:7777/v1/deployments --data-binary @deploy-k8s.json
echo "Please check progress of your deployment at http://$DEPLOYER_URL:7777/ui"
|
# frozen_string_literal: true
class OfficialMiddleware < Middlegem::Middleware
attr_reader :num
def initialize(num)
@num = num
super()
end
def call(input); end
end
|
import React, { useState, useEffect } from "react";
import DrawingBoard from "react-drawing-board";
import socket from "../../shared/socket";
export default function Draw(props) {
const [operations, setOperations] = useState([]);
useEffect(() => {
socket.on("draw", (newOps) => {
setOperations((ol... |
## For:
`Ubuntu x86_64`
<br>
## Install:
```
$ wget https://raw.githubusercontent.com/WestleyK/hour-meter/master/pre-compiled/ubuntu-x86_64/hour-meter
$ chmod +x hour-meter
```
<br>
<br>
|
function diagadd!(A::Matrix{Float64}, c::Float64)
# A <- A + c*I
Dim = minimum(size(A))
for i=1:Dim
@inbounds A[i,i] += c
end
end |
# You have a large array with most of the elements as zero.
# Use a more space-efficient data structure, SparseArray, that implements the
# same interface:
# • init(arr, size): initialize with the original large array and size.
# • set(i, val): updates index at i with val.
# • get(i): gets the value at index i.
... |
class WineSerializer < ActiveModel::Serializer
attributes :id, :producer, :wine_name, :wine_type, :price_range, :vintage,
:rating, :notes, :favorite
belongs_to :user
belongs_to :varietal
belongs_to :country
has_many :wine_aromas, serializer: AromaSerializer
has_many :wine_tasting_terms, seriali... |
import { MutationTree } from 'vuex'
import {
ITabDataExtended,
IWindowDataExtended,
WindowDefinitionState
} from '@/ADempiere/modules/dictionary/DictionaryType/VuexType'
type WindowDefinitionMutationTree = MutationTree<WindowDefinitionState>
export const mutations: WindowDefinitionMutationTree = {
addWindow(s... |
require 'rails_helper'
RSpec.describe AdminPolicy do
let(:user_1) { create(:user, email: 'user@random.com') }
let(:member) { create(:member_with_membership_app, email: 'member@random.com', company_number: '5562728336')}
let(:admin) { create(:user, email: 'admin@shf.com', admin: true) }
let(:visitor) { build(... |
package hexlay.movyeah.app_tv.models
import androidx.fragment.app.Fragment
data class PreferenceModel(
val title: String,
val key: String,
var fragment: Fragment
) |
#include "ArmInverseKinematicsTest.h"
static const char* arminversekinematicstest_spec[] =
{
"implementation_id", "ArmInverseKinematicsTest",
"type_name", "ArmInverseKinematicsTest",
"description", "Test code for arm control using inverse kinematics",
"version", "1.0.0",
"vendor", ... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class FlowTimer : MonoBehaviour
{
// The timer event
public event Action OnFlowControlTimerTick;
[SerializeField]
public float m_flowTime;
private World m_world;
private void Awake()
{
... |
# A modern SQL Editor for Apache Flink SQL
## Background
* https://ci.apache.org/projects/flink/flink-docs-master/dev/table/sql/queries.html#queries
* https://github.com/ververica/flink-sql-gateway
* https://github.com/cloudera/hue/issues/1010
 2020 Great Scott Gadgets <info@greatscottgadgets.com>
# SPDX-License-Identifier: BSD-3-Clause
""" Contains the gatware module necessary to interpret and generate low-level USB packets. """
import operator
import unittest
import functools
from nmigen import... |
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, and Azure
-- --------------------------------------------------
-- Date Created: 01/17/2012 14:11:26
-- Generated from EDMX file: Data.edmx
-- --------------------------------------------------
SET QUOTED_ID... |
<?php
namespace Ajax\semantic\html\base\constants;
use Ajax\common\BaseEnum;
class VerticalAlignment extends BaseEnum {
const TOP="top",MIDDLE="middle",BOTTOM="bottom";
}
|
package com.code5150.services
import com.code5150.dao.Staff
import com.code5150.dao.StaffEntity
import com.code5150.dto.StaffDTO
import org.jetbrains.exposed.sql.and
import org.jetbrains.exposed.sql.transactions.transaction
class StaffService {
fun selectAll(): Iterable<StaffDTO> = transaction {
StaffEnti... |
import 'package:fish_redux/fish_redux.dart';
import 'package:flutter_cloudmusic/discover/model/recommend_list_model.dart';
import 'action.dart';
import 'state.dart';
Reducer<DiscoverState> buildReducer() {
return asReducer(
<Object, Reducer<DiscoverState>>{
DiscoverAction.loadBannerList: _loadBannerList,
... |
# Microsoft Azure SDK for Node.js - Network Management
This project provides a Node.js package that makes it easy to manage Microsoft Azure Network Resources.
- **Node.js version: 0.6.15 or higher**
- **API version: 2015-05-01-preview**
## Features
- Manage virtual network
- Manage subnet
- Manage network ... |
# SimpBrowser
SimpBrowser is light-weight web browser by using IE engine.
# CommandLine options
# Legal
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections;
using System.ComponentModel;
using System.IO;
using System.Security.Permissions;
namespac... |
class PostVote < ApplicationRecord
belongs_to :post
belongs_to :user
validates :user_id, uniqueness: { scope: :post_id, message: "have already voted for this post" }
validates :score, inclusion: { in: [1, -1], message: "must be 1 or -1" }
after_create :update_score_after_create
after_destroy :update_score... |
<?php
namespace framework\Component;
use PDO;
class Command
{
private $db;
private $sql;
private $properties;
public function __construct(PDO $db, $sql, array $properties = [])
{
$this->db = $db;
$this->sql = $sql;
$this->properties = $properties;
}
/**
* @r... |
(function(oCanvas, window, document, undefined){
// Define the class
var image = function (settings, thecore) {
// Return an object when instantiated
return oCanvas.extend({
core: thecore,
_: oCanvas.extend({}, thecore.displayObject._, {
hasBeenDrawn: false
}),
shapeType: "rectangular",
... |
package it.midthegap.remotelogger.controller;
import it.midthegap.remotelogger.service.LoggerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springfr... |
/*
* BlockStructure.sql
* Chapter 3, Oracle10g PL/SQL Programming
* by Ron Hardman, Mike McLaughlin, Scott Urman
*
* This script demonstrates the structure of a block
*/
exec clean_schema.trigs
exec clean_schema.procs
exec clean_schema.tables
SET SERVEROUTPUT ON
DECLARE
v_date_time TIMESTAMP;
BEGIN
--... |
/*
MIT License
Copyright(c) 2020 Futurewei Cloud
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 limitation the rights to use, copy, modify, merge... |
#
# Cookbook Name:: chef_mariadb
# Recipe:: install
#
# Copyright (C) 2016 Raintank, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... |
package flags
import (
"testing"
)
func TestTagMissingColon(t *testing.T) {
var opts = struct {
Value bool `short`
}{}
assertParseFail(t, ErrTag, "expected `:' after key name, but got end of tag (in `short`)", &opts, "")
}
func TestTagMissingValue(t *testing.T) {
var opts = struct {
Value bool `short:`
}{... |
<?PHP
include('classes/classes.php'); // Include local class lib
$log= new log($_SERVER["PHP_SELF"], $_GET, $_POST, $_SERVER['HTTP_REFERER'] );
header("Location: http://meta.wikimedia.org/wiki/Don%27t_be_a_dick");
die();
?> |
# Net Panel Analysis
To analysis different types of net panels in flexible barriers.
type1: Steel Wire Ring Net
|
---
title: title
subtitle: subtitle
date: "2022-01-03"
thumb_img_alt: lorem-ipsum
content_img_alt: lorem-ipsum
excerpt: lorem-ipsum
seo:
title: ""
description: ""
robots: []
extra: []
template: post
thumb_img_path: images/css-72a655a7.jpg
---
# To download a file:
# The url can be a http(s), ftp, .torrent fil... |
from dongtai.endpoint import R
from dongtai.endpoint import UserEndPoint
from webapi.settings import config
from dongtai.models.profile import IastProfile
from django.utils.translation import gettext_lazy as _
from iast.utils import extend_schema_with_envcheck, get_response_serializer
from django.utils.translation impo... |
def endoMonoid[A]: Monoid[A => A] = new:
def combine(f: A => A, g: A => A): A => A = f andThen g
val empty: A => A = identity
def endoMonoidDual[A]: Monoid[A => A] = dual(endoMonoid) |
use clap::{App, Arg};
use textwrap::dedent as dd;
use doots::game::board::BoardSize;
use doots::game::engine::{run_game, Opts};
fn main() {
match cli() {
Ok(_) => {}
Err(msg) => eprintln!("{}", msg),
}
}
const SIZE_DEFAULT: BoardSize = 10;
const SIZE_DEFAULT_STR: &str = "10";
const SIZE_MIN: ... |
using GraphicalEngine.Components;
using GraphicalEngine.Engine;
using GraphicalEngine.GameObject;
using System;
using System.Collections.Generic;
using System.Numerics;
using Object = GraphicalEngine.GameObject.Object;
namespace GraphicalEngine.Scenes
{
public class Arm : GameScene
{
Cube arm1 = new C... |
CREATE TABLE `test`.`appointments` (
`Id` int(11) NOT NULL,
`ClientName` varchar(45) DEFAULT NULL,
`ClaimentFirstName` varchar(45) DEFAULT NULL,
`ClaimentLastName` varchar(45) DEFAULT NULL,
`AppointmentDate` datetime DEFAULT NULL,
`CreatedDate` datetime DEFAULT NULL,
`CreatedByID` int(11) DEFAULT NULL,
... |
(in-package #:montezuma)
(defclass wildcard-query (multi-term-query)
())
(defmethod get-term-enum ((self wildcard-query) reader)
(make-instance 'wildcard-term-enum
:reader reader
:search-term (slot-value self 'term)))
|
package beta
import (
"math"
)
/*
* Beta related functions
*/
// Complete : complete beta function, B(a,b)
func Complete(a, b float64) float64 {
return math.Exp(lgamma(a) + lgamma(b) - lgamma(a+b))
}
// Incomplete : B(x;a,b) is the incomplete beta function
func Incomplete(x, a, b float64) float64 {
return regI... |
package io.muun.apollo.presentation.ui.base;
import io.muun.apollo.domain.ApplicationLockManager;
import io.muun.apollo.domain.errors.BugDetected;
import io.muun.apollo.presentation.app.di.ApplicationComponent;
import io.muun.apollo.presentation.ui.activity.extension.ExternalResultExtension.Caller;
import io.muun.apol... |
import Self from '../../../src';
module.exports = {
entry: {
main: './index.js',
},
module: {
rules: [
{
test: /\.css$/,
use: [Self.loader, 'css-loader'],
},
],
},
plugins: [
function Plugin() {
this.hooks.compilation.tap('Test', (compilation) => {
co... |
#!/bin/bash
module load clustal_omega/1.2.4
clustalo -i ~/Part_1/China_seqs.fasta\
-o ~/Part_1/China_seqs.aln --outfmt=clu --force
clustalo -i ~/Part_1/USA_seqs.fasta\
-o ~/Part_1/USA_seqs.aln --outfmt=clu --force
|
// SharpMath - C# Mathematical Library
// Copyright (c) 2014 Morten Bakkedal
// This code is published under the MIT License.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using SharpMath.LinearAlgebra;
namespace SharpMath.Statistics.Regressions
{
[Seriali... |
<?php
namespace FunctionWithVariadicParameters;
foo();
foo(1, 2);
bar();
bar(1, 2);
|
# Raspberry Pi Talking To WiFi 'Things' Part 1
See the Arduino sketch for this video in the ESP8266_DHT_Sensor folder.
You can run a netcat server to log data with a command like this on your pi:
nc -l -k 5000
You might want to make it more advanced by adding a timestamp and comma to
the front of the logged dat... |
module Axelrodnet
using LightGraphs
using GraphIO
using DataFrames
using Random
using Feather
using ParserCombinator
using REPL
using StatsBase
export run_experiment
export run
export export_experiment
include("agent.jl")
include("assert.jl")
include("io.jl")
... |
import random
import time
from copy import deepcopy
from functools import total_ordering
from multiprocessing.queues import Queue
from queue import PriorityQueue
import numpy as np
import math
from scipy.linalg import cholesky, cho_solve, solve_triangular, LinAlgError
from scipy.optimize import linear_sum_assignment
f... |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
module Stackage.HEAD.BuildResults.Parser
( parseBuildLog
, dropPackageVersion )
where
import Control.Monad
import Data.Char
import Data.HashMap.Strict (HashMap)
import Data.List (foldl')
import Data.Maybe (fromMaybe)
import Data.Text (Text)
imp... |
###################################################
# Samba3 client generator for IDL structures
# on top of Samba4 style NDR functions
# Copyright jelmer@samba.org 2005-2006
# Copyright gd@samba.org 2008
# released under the GNU GPL
package Parse::Pidl::Samba3::ClientNDR;
use Exporter;
@ISA = qw(Exporter);
@EXPORT_O... |
@model ProductDetailsModel
@if (Model.DisplayDiscontinuedMessage)
{
<div class="discontinued-product">
<h4>@T("Products.Discontinued")</h4>
</div>
} |
using System;
using System.Linq;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Next.Cqrs.Commands;
namespace Next.Web.Application.Error
{
public class ProblemDetailsValidationProfile : IProblemDetailsProfile
{
public void Build(
ProblemDetails problemDetails,
... |
Sample
=====================
The provided sample includes covers multiple scenarios such as partial file serving, URL parsing and form-data and file reading.
|
<?php
namespace Application\Adapter;
use Exception;
use RuntimeException;
use Zend\Cache\Storage\StorageInterface;
use Aws\DynamoDb\DynamoDbClient;
/**
* An adapter to use DynamoDB as a simple key/value store
*/
class DynamoDbKeyValueStore implements StorageInterface
{
/**
* The AWS client
*
* ... |
document.addEventListener("DOMContentLoaded", function(){
// Прокручиваем страницу сразу после загрузки основных скриптов
if (Cookies.get('scrollTop')){
$(document)[0].body.scrollTop = Cookies.get('scrollTop');
console.log('scrolled!');
}
});
$( document ).ready(function() {
/*Обработчик фильтра категорий пор... |
package com.journaldev.dependency;
import org.testng.annotations.Test;
public class TestNGDependencyXMLExample {
@Test(groups = "pre-tests")
public void init() {
System.out.println("init resources");
}
@Test(groups = "tests")
public void insert() {
System.out.println("inserting demo data");
}
@Test(grou... |
extern crate orbtk;
use std::cell::Cell;
use orbtk::{Button, Grid, Label, Window, Rect};
use orbtk::traits::{Click, Place, Text};
fn main() {
let mut window = Window::new(Rect::new(100, 100, 450, 400), "Grid example");
let grid = Grid::new();
grid.spacing(8, 8)
.position(10, 55);
window.add(... |
# About #
Text text text
1. List
3. List
3. List
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define _XOPEN_SOURCE 500
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <regex.h>
#include <assert.h>
#define max(a,b) ((a > b)? a : b)
int strsplit(const char* str,const char* delimiter,char** fields,int... |
import {
HttpException,
HttpStatus,
Injectable,
NotFoundException,
} from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { FilesService } from 'src/files/files.service';
import { paginate } from 'src/utils/pagination/paginator';
import { CreatePopupDto } from './create-popup.dto';
... |
package main
import (
"fmt"
"log"
"math/rand"
"time"
"github.com/gopherjs/gopherjs/js"
"github.com/gopherjs/vecty"
"github.com/gopherjs/vecty/elem"
"github.com/gopherjs/vecty/event"
)
// App is a top-level app component.
type App struct {
vecty.Core
session *Session
settings *Settings
resultsTa... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
namespace Mahou.Content.Fighters
{
[System.Serializable]
public abstract class FighterStat<T>
{
public static bool debugMode = false;
[SerializeField] public T baseValue;
protected T calcul... |
using System.Drawing;
using System.Drawing.Drawing2D;
namespace NAPS2.Scan.Images
{
internal static class ImageScaleHelper
{
public static Bitmap ScaleImage(Image original, double scaleFactor)
{
double realWidth = original.Width / scaleFactor;
double realHeight = origina... |
stream = io.connect(STREAM_URL);
Session.setDefault('sview', [0,10]);
traces = {}
function on_strace(msg) { DS("strace");
traces[msg['forknum']] = msg['dat']
redraw_strace();
} stream.on('strace', on_strace);
function redraw_strace() {
var forknum = Session.get("forknum");
var sview = Session.get('sview');
... |
import { useState, createContext } from "react"
interface AppContextInterface {
mode: string
setMode: (value: string) => void
}
const AppContext = createContext<AppContextInterface | null>(null)
type Props = {
children: React.ReactNode
}
const AppProvider = ({ children }: Props) => {
const [mode, setMode] = ... |
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
function getTherapistList() {
var sendit = Ti.Network.createHTTPClient({
onerror: function(e) {
Ti.API.de... |
from django.core.exceptions import ValidationError
from cyder.cydns.cname.models import CNAME
from basestatic import BaseStaticTests
class CNAMEStaticRegTests(BaseStaticTests):
def test_delete_cname(self):
i = self.create_si(
mac="11:22:33:44:55:66",
label="foo4",
dom... |
// This file is part of Indico.
// Copyright (C) 2002 - 2022 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import _ from 'lodash';
import {createQueryStringReducer, validator as v} from 'redux-router-queryst... |
package me.lyh.parquet.types
import org.apache.hadoop.conf.Configuration
import org.apache.hadoop.fs.Path
import org.apache.hadoop.mapreduce.Job
import org.apache.parquet.hadoop.{ParquetInputFormat, ParquetReader}
import org.apache.parquet.hadoop.api.{InitContext, ReadSupport}
import org.apache.parquet.io.InputFile
im... |
package me.peterhenderson.perudo.game
import com.nhaarman.mockito_kotlin.doReturn
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.verify
import me.peterhenderson.perudo.core.DiceRoller
import org.junit.Test
class GamePresenterTest {
lateinit var view: GameView
lateinit var rng: Dice... |
#!/usr/bin/env ruby
require_relative "bar"# ~/foo/lib/foo/bar.rb
require_relative "baz"# ~/foo/lib/foo/baz.rb
require_relative "setup"
module WorkinCmd
def self.const_missing(c)
Object.const_get(c)
end
end |
using SemanticReleaseNotesParser.Core;
using System.IO;
using System.Linq;
using System.Text;
using Xunit;
namespace SemanticReleaseNotesParser.Tests
{
public class ArgumentsTest
{
[Fact]
public void WriteHelp_All()
{
// arrange
var arguments = Arguments.ParseArg... |
import { Heading } from "@chakra-ui/react";
import { GET_ALL_ROOMS } from "../api/rooms";
import { Activity, Layout } from "../components";
import { initializeApollo } from "../lib/apollo";
const Index = () => (
<Layout>
<Heading as="h1" my="6" fontSize="2xl">
Actividades
</Heading>
<Activity />
... |
// return a updated object without modifying the original one.
function updateObjectByRoute (obj, attrs, getValueFn) {
if (attrs.length === 1) {
const newValue = getValueFn(obj[attrs[0]])
return { ...obj, [attrs[0]]: newValue }
} else {
return { ...obj, [attrs[0]]: updateObjectByRoute(obj[attrs[0]], att... |
package org.sagebase.crf.linearAlgebra
internal data class ValueAndIndex(val value: Double, val index: Int)
internal data class MaxAndSplice(val maxValue: Double, val v2: List<Double>)
/**
* Returns the max value and index of that value.
*/
internal fun Array<Double>.seekMax(): ValueAndIndex {
val value = this... |
<?php
namespace Test\Parp\SsfzBundle\Service;
use PHPUnit\Framework\TestCase;
use Parp\SsfzBundle\Service\DatatableOsobyService;
/**
* Testuje klasę DatatableOsobyService
*
* @covers \Parp\SsfzBundle\Service\DatatableOsobyService
*/
class DatatableOsobyServiceTest extends TestCase
{
/**
* Ustawienie śro... |
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
#if STRIDE_GRAPHICS_API_DIRECT3D11
using SharpDX.D... |
command = input().split()
# Decode
dcode = command[1]
def decoding(string):
encoded = ''
nums = '1234567890'
for i in range(len(dcode)):
if dcode[i] not in nums:
encoded += (int(dcode[i + 1]) * dcode[i])
return encoded
# Encode
ncode = command[1]
def encoding(string):... |
package outbound
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"github.com/kecci/goscription/models"
"github.com/spf13/viper"
)
type godaddyOutbound struct {
}
// NewGodaddyOutbound will create new an articleUsecase object representation of usecase.ArticleUsecase interface
func NewGodaddyOutbound() Go... |
RSpec.describe Magick::ImageList do
describe 'images_from_imagelist' do
it 'works with identical instances' do
expect do
img = Magick::Image.new(1, 1)
list = Magick::ImageList.new
list << img << img
res = list.append(false)
expect(res.columns).to eq(2)
... |
import jax.numpy as np
import numpy as onp
import opt_einsum as oe
import math
from jax import grad, jit
from scipy import optimize
from jax.interpreters import xla
import time
import copy
class AbstructGate():
def __init__(self, input_qubits, tensor, name=None):
if isinstance(input_qubits, int):
... |
#region Using
using Sandbox.Common;
using System;
using System.Collections.Generic;
using VRage.Input;
using VRage.Utils;
using VRageMath;
using VRageRender;
#endregion
namespace Sandbox.Game.Gui
{
public abstract class MyDebugComponent
{
#region Nested classes
private class MyShortcutCompa... |
#!/bin/bash
#nesting for loops
for (( a=1; a<=3; a++ ))
do
echo "Starting loop $a:"
for (( b=1; b<=3; b++))
do
echo "Inside loog: $b:"
done
done
|
#
# Demo script for certain metrics
#
# Synopsis: Outputs complexity, essential complexity, knots, essential knots
#
# Categories: Project Metrics
#
# Languages: Ada, C/C++
#
# Usage:
sub usage($) {
return shift(@_) . <<"END_USAGE";
Usage: $0 -db database [-alpha] [-descending]
-db database Specify Understa... |
2020年08月01日22时数据
Status: 200
1.张继科和镜子里动作不一样
微博热度:4199025
2.警方发现在青海失联女大学生遗骸
微博热度:3307876
3.刘忻为了乐夏拒绝乘风破浪
微博热度:2713236
4.字节跳动同意剥离TIKTOK美国业务
微博热度:2306771
5.691分考入清华暑期搬砖打工
微博热度:1768166
6.胡宇桐终于把话说开了
微博热度:1651696
7.5人出游唯一生还者发声
微博热度:1224142
8.TikTok明星博主向粉丝道别
微博热度:1052864
9.伊朗称逮捕了美国支持的恐怖组织头目
微博热度:1048821
10.父... |
package repositories.organisations
import com.datastax.driver.core.Row
import com.websudos.phantom.CassandraTable
import com.websudos.phantom.dsl._
import com.websudos.phantom.keys.PartitionKey
import com.websudos.phantom.reactivestreams._
import conf.connection.DataConnection
import domain.organisations.OrganisationO... |
require "openid/message"
require "openid/protocolerror"
require "openid/kvpost"
require "openid/consumer/discovery"
require "openid/urinorm"
module OpenID
class TypeURIMismatch < ProtocolError
attr_reader :type_uri, :endpoint
def initialize(type_uri, endpoint)
@type_uri = type_uri
@endpoint = en... |
2020年12月13日12时数据
Status: 200
1.三亚疫情
微博热度:4443697
2.19371213
微博热度:2239334
3.百县千红新农人
微博热度:1835369
4.去油吧哥哥
微博热度:1662241
5.康辉21岁面试视频
微博热度:1410098
6.三亚2游客为无症状感染者密接
微博热度:1079658
7.于朦胧是人间洗洁精吧
微博热度:1049634
8.姜潮 现在全国人民都知道我演技差了
微博热度:969199
9.关晓彤 造型师赖着不走我也没办法
微博热度:922401
10.南京大屠杀每隔12秒就有一人遇难
微博热度:874685
11.这是今... |
1
2
3 44 220
4
5 83
6 155
7 31 175 229
8 28 186
9
10 233
11 128
12 185 265
13 73 200
14
15 6 132 138
16 5
17 8
18 186
19
20 179
21 119 177
22 249
23 176
24 6 219
25 241
26 24 39 193
27 83 88
28 19
29
30 262
31 227
32
33 96
34
35 108 132 196
36 6 64 160 230
37 155
38
39 90 166 187
40
41 151
42 169 172
43
44 180 187
45 1... |
# SIP Master Interface Service (REST variant)
## Description
This should be functionally similar to the Tango master but uses a Green
Unicorn/Flask web interface instead of a Tango interface.
Point a web browser to <http://localhost:5000> and see the JSON structure
below:
```json
{
"message": "Welcome to the SIP ... |
(ns dev
(:require [clojure.core.async :as a]
[clojure.tools.namespace.repl :refer [refresh set-refresh-dirs]]
[plongeur.core :as plongeur]
[plongeur.util :as u]
[taoensso.timbre :as t :refer [info warn error]]))
(def system nil)
(defn stop [] (alter-var-root #'system... |
package changelog_test
import (
"testing"
"time"
"github.com/anton-yurchenko/go-changelog"
"github.com/anton-yurchenko/go-changelog/mocks"
"github.com/pkg/errors"
"github.com/spf13/afero"
"github.com/stretchr/testify/assert"
)
func stringP(v string) *string {
return &v
}
func sliceOfStringsP(v []string) *[... |
# Cordova FileChooser Plugin
Originally created by [don](https://github.com/don/cordova-filechooser).
Forked to create an NPM compatible package, so it's installable via the CLI.
# Requirements
Requires Cordova >= 2.8.0
# Installation
Install with Cordova CLI
$ cordova plugin add cordova-filechooser
# Usa... |
package types
import providerTypes "github.com/openfaas/faas-provider/types"
// Platform architecture the gateway is running on
var Arch string
// GatewayInfo provides information about the gateway and it's connected components
type GatewayInfo struct {
Provider *providerTypes.ProviderInfo `json:"provider"`
Versio... |
using System;
namespace Parser.LogFile.Reader.Contracts
{
public interface IFileReaderInputProvider : IDisposable
{
string ReadLine();
}
}
|
#pragma once
#ifndef InterfaceManager_H
#define InterfaceManager_H
#include <vector>
#include <string>
#include <map>
struct Notification;
class User;
class Project;
class Database;
class InterfaceManager
{
private:
Database* database;
User* currentUser;
std::map<std::string, std::vector<std::string>> commands;
... |
import Mesh
doc=App.activeDocument()
# create a new empty mesh
m = Mesh.Mesh()
# build up box out of 12 facets
m.addFacet(0.0,0.0,0.0, 0.0,0.0,1.0, 0.0,1.0,1.0)
m.addFacet(0.0,0.0,0.0, 0.0,1.0,1.0, 0.0,1.0,0.0)
m.addFacet(0.0,0.0,0.0, 1.0,0.0,0.0, 1.0,0.0,1.0)
m.addFacet(0.0,0.0,0.0, 1.0,0.0,1.0, 0.0,0.0,1.0)
m.addFa... |
-- VALIDATION OF EXTRACTED ROWCOUNTS - MANUAL INSPECTION
select 'dim_date', count(1) from camdram_dw.dim_date
union all
select 'dim_time', count(1) from camdram_dw.dim_time
union all
select 'dim_society', count(1) from camdram_dw.dim_society
union all
select 'dim_society_combo', count(1) from camdram_dw.dim_society_c... |
<?php
/**
* Post format customizations for this theme.
*
* @package Simple Grey
*/
if ( ! function_exists( 'simple_grey_pf_quote' ) ) :
/**
* Check if qoute post format is wrapped in a <blockquote> tag.
* If not, then wrap it.
*
* @param string $content The content.
* @return string Updated content.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.