text
stringlengths
27
775k
object Test extends App { val ns = (0 until 20) val arr = new Array[Int](10) def tryit(label: String, start: Int, len: Int): Unit = { val status = try { val it = ns.toIterator it.copyToArray(arr, start, len) "ok" } catch { case e: Exception => e.toString } println("%s: %s"...
--- layout: member title: "Ankit Vedak" position: MS Student nickname: ankit handle: ankit email: avedak@wpi.edu image: /assets/images/team/ankit-vedak.jpg #cv: /assets/pdfs/drummond-cv.pdf alum: false --- Ankit is pursuing a MS in Robotics Engineering at WPI.
#-------------------------------------- # Test a search algorithm #-------------------------------------- org 0x0000 ori $sp, $zero, 0x80 start: ori $1, $zero, 0x01 ori $2, $zero, 0x04 sw $0, 0($sp) # set result to 0 lw $3, 4($sp) # load search variable into $3 lw $...
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-missing-signatures #-} module Icicle.Test.Common.Data where import Icicle.Test.Arbitrary import Icicle.Common.Data import P import System.IO impor...
package com.amarcolini.joos import com.amarcolini.joos.util.NanoClock import com.amarcolini.joos.util.wrap import org.apache.commons.math3.util.FastMath import org.junit.jupiter.api.Test import kotlin.math.sin class MathTest { @Test fun testWrap() { assert(1.wrap(1, 3) == 3 || 1.wrap(1, 3) == 1) ...
import React from "react"; import { useSelector } from "react-redux"; import PanelSideBar from "../PanelSideBar"; import Dialog from "../Dialog"; import MailBox from "../MailBox"; import Mail from "../Mail"; import PanelCustomerInfo from "../PanelCustomerInfo"; import "./styles.scss"; export default function Panel(...
import 'package:solana/src/encoder/buffer.dart'; import 'package:solana/src/helpers.dart'; import 'package:solana/src/metaplex/metaplex.dart'; import 'package:solana/src/rpc/client.dart'; import 'package:solana/src/rpc/dto/account_data/binary_account_data.dart'; import 'package:solana/src/rpc/dto/encoding.dart'; exten...
# SEM6-DWM Practical Codes of Data Warehousing and Mining for Sem 6 of MU Computer Science Engineering
import { castToType } from '../../../utilites/cast' import { ImageInfo } from '../../basic/ImageInfo' import { FileInfo } from '../../basic/FileInfo' export class AWSource { url = '' type = '' version = '' local = false files: FileInfo[] = [] size = 0 duration = 0 fps = 0 thumbnail: ImageInfo | null...
module Theblog class Admin::ContentStatusesController < Admin::ItemsController MODEL = Theblog::ContentStatus ATTRIBUTES = [:title, :description] INDEX = [:title, :description] end end
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Binary search * @param array the array to search in * @param predicate return a value of < 0, if the item you're looking for should come before, 0 if it is the item you're looking for */ function binarySearch(array, predicate) { ...
namespace Monitor.ServiceCommon.Services.DiEager { public class EagerSingletonSvc { public EagerSingletonSvc(IEagerSingleton[] singletons) { // do nothing. DI created all the singletons for this constructor. } } }
use super::*; use kurbo::BezPath; use kurbo::Shape as KurboShape; pub struct PolyBuilder { points: Option<Vec<Point>>, stroke_width: f64, smooth: bool, precompute: bool, } impl Default for PolyBuilder { fn default() -> Self { Self::new() } } impl PolyBuilder { pub fn new() -> Self...
module.exports = { env : { node : true, es6 : true }, plugins : [ 'import' ], rules : { // require imports to be at the top, since they are hoisted 'import/first' : 'error', // require modules to be unambiguously identifiable 'import/unambiguous' : 'off', // us...
import React from 'react'; import {Field, reduxForm} from 'redux-form'; import RenderField from './field'; import validate from './validate'; const FormPageTWO = (props) => { const {handleSubmit, prevPage} = props; return ( <div className="page-two col-12 col-md-4 offset-md-4"> <div className="box"> ...
<?php use Illuminate\Database\Seeder; class roleSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $data = [ [ 'name' => 'role1', 'display_name' => 'role_display1', 'description' => 'is role 1', ], [ 'name' => 'role2', 'display_n...
# cheatsheets ## 1.0.9 ### Patch Changes - fix sheet page detail ## 1.0.8 ### Patch Changes - dffc29d: authapi and fix stats - f13fd54: preview sheet ## 1.0.7 ### Patch Changes - search loading; download image ## 1.0.6 ### Patch Changes - 7c115e1: fix openserch patterns ## 1.0.5 ### Patch Changes - bdfcb...
import 'package:covid_19_job/utils/jwt_token.dart'; import 'package:flutter/material.dart'; import 'package:covid_19_job/utils/get_local_data.dart'; import 'package:covid_19_job/pages/login_by_mobile/login_by_mobile_controller.dart'; import 'package:covid_19_job/const/ui_pages.dart'; class AppOpening extends StatefulW...
using Premy.Chatovatko.Client.Libs.Database.Models; using System; using System.Collections.Generic; using System.Text; namespace Premy.Chatovatko.Client.Libs.Database.JsonModels { public class JContact : IJType { public long PublicId { get; set; } public string UserName { get; set; } ...
<?php class PlatformController extends BaseController { public function index() { $platforms = Platform::with('games')->get(); return View::make('platform.index', compact('platforms')); } public function show($platformId) { $platform = Platform::with('games')->findOrFail($platformId); return View::make...
import os class BaseConfig(object): # Project root path ROOT_DIR = os.path.abspath(os.path.join( os.path.dirname(os.path.abspath(__file__)), '..', '..' )) # Configure data path DATA_DIR = os.path.join(ROOT_DIR, 'data') RAW_DATA_DIR = os.path.join(DATA_DIR, 'raw') PROCESSE...
package typingsSlinky.heremaps.anon import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait Maneuver extends StObject { var maneuver: js.Array[Id] = js.native } o...
pub mod cpu; pub mod dcf77; pub mod clock; pub mod eink; pub mod flash; pub mod ram;
import { createMemoryHistory } from 'history'; import { Router } from 'react-router-dom'; import React, { ReactElement } from 'react'; import { render } from '@testing-library/react'; import { ROUTE } from '../App/routes'; const DEFAULT_ROUTE = ROUTE.HOME; const PREVIOUS_ROUTE = '/prev-route'; const renderWithRedire...
// @flow const express = require('express'); const app = express(); const passport = require('passport'); const GitHubStrategy = require('passport-github2').Strategy; const _ = require('lodash'); const session = require('express-session') const Buddybuild = require('buddybuild-client'); require('dotenv').config(); a...
/** * Implement Gatsby's Node APIs in this file. * * See: https://www.gatsbyjs.org/docs/node-apis/ */ // You can delete this file if you're not using it exports.createPages = async ({ graphql, actions }) => { const { createPage } = actions const result = await graphql( ` { products: allStrap...
# Sets the terminal or terminal multiplexer window title. function set-window-title { local title_format{,ted} zformat -f title_formatted "%s" "s:$argv" title_format="\e]2;%s\a" printf "$title_format" "${(V%)title_formatted}" } # Sets the tab and window titles with a given command. function _terminal-set-titl...
; ;================================================================================================== ; ASCI DRIVER (Z180 SERIAL PORTS) ;================================================================================================== ; ; SETUP PARAMETER WORD: ; +-------+---+-------------------+ +---+---+-----...
# frozen-string-literal: true require "sequel" module RackServerTiming module Sequel def log_duration(duration, message) RackServerTiming::Current.recorder.increment("DB", duration, "Database") super end def self.extended(base) return unless base.loggers.empty? require "logger"...
;;; Print some info about the GL implementation and drivers, then exit (in-package #:cl-glut-examples) (defclass gl-info-window (glut:window) () (:default-initargs :width 500 :height 500 :title "gl-info.lisp" :mode '(:double :rgba))) (defparameter *gl-info-verbose* nil) (defmethod glut:disp...
#------------------------------------------------------------------------ # Source File Information (DO NOT MODIFY) # Source ID: ca09b758-5602-4532-9a86-880866408af4 # Source File: Host Memory Assessment Tool.psf #------------------------------------------------------------------------ #===============================...
using TermWin using RDatasets using Compat df = dataset( "HistData", "Jevons" ) tshow( df; aggrHints = @compat(Dict{Any,Any}( :Actual=> "mean", :Estimated=> "mean", :Error => "mean" ) ) ) # =#
package li.strolch.persistence.postgresql; import java.sql.Connection; import li.strolch.persistence.api.TransactionResult; public class ArchivePostgreSqlResourceDao extends PostgreSqlResourceDao { public static final String TABLE_NAME = "archive_resources"; public ArchivePostgreSqlResourceDao(DataType dataType,...
--- title: Instinct date: 2019-02-01 19:00:00 topics: - instinct --- Instinct [from Latin instinctu ] - A kind of rudimentary intelligence that directs living beings in their actions, in spite of their will and in the interest of their conservation. Instinct becomes intelligence when deliberation arises. On instin...
#!/bin/sh # remove test image res=$(docker.io images | grep -c "$testImage") if [ $res -ne 0 ]; then docker.io rmi $testImage fi
ioregister = CoramIoRegister(idx=0, datawidth=32, size=32) register = CoramRegister(idx=0, datawidth=32) while True: val = register.read() ioregister.write(0, val)
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "rbtree.h" /* Customize your node with compared data * * node struct rb_node (leveraged from linux kernel) * string Customized data */ struct mynode{ struct rb_node node; char *string; }; /* * Search a specific node in the rb tr...
import requests # Import Flask app from app import app # Flask imports from flask import render_template, request, url_for @app.route('/') def index(): description = 'DICOM Sort is a free and open-source program for ' \ 'organizing and renaming DICOM image files' return render_template('in...
#include <vector> #include <iostream> #include <iterator> #include <algorithm> bool is_selected(int value) { return (value == 3) || (value == 5) || (value == 8); } void main_partition_collections() { //void main() { std::vector<int> scores = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; std::cout << "Original Vector " << st...
// abstract class for individual tool views. Basically just a set of defaults. // extend this to make a new tool. module.exports = Backbone.View.extend( { // These things will probably be overridden with static values. You can use a function // if you want to, though. // id: 'mwe-pt-info-abstract', icon: 'icon_...
name := "Common Utils Scala" organization := "com.lkroll" version := "2.2.0" crossScalaVersions := Seq("2.12.13", "2.13.5") licenses += ("MIT", url("http://opensource.org/licenses/MIT")) homepage := Some(url("https://github.com/Bathtor/common-utils")) scmInfo := Some( ScmInfo(url("https://github.co...
# frozen_string_literal: true require 'spec_helper' RSpec.describe Resolvers::RepositoryBranchNamesResolver do include GraphqlHelpers let(:project) { create(:project, :repository) } describe '#resolve' do context 'with empty search pattern' do let(:pattern) { '' } it 'returns nil' do ...
import React, { Component } from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { addNewTodo, displayInputField } from '../actions/index' class AddNewTodo extends Component { constructor(props){ super(props) } render() { const newTodo = t...
INSERT OR IGNORE INTO "author_tbl" ( "name", "display_name", "discord_id", "is_member" ) VALUES (?, ?, ?, ?)
import { GatsbyNode } from 'gatsby' import createHooks from './createPages/createHooks' import createStaticPages from './createPages/createStaticPage' export const createPages: GatsbyNode['createPages'] = async args => { await Promise.all([createStaticPages(args), createHooks(args)]) }
/* * Copyright 2021 Google 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...
module ArkEcosystem module Crypto module Enums # The list of available tansaction types. class Types TRANSFER = 0 SECOND_SIGNATURE_REGISTRATION = 1 DELEGATE_REGISTRATION = 2 VOTE = 3 MULTI_SIGNATURE_REGISTRATION = 4 IPFS = 5 TIMELOCK_TRANSFER = 6...
# A react study project forked from [sahat/newedenfaces-react](https://github.com/sahat/newedenfaces-react) ## 重要提示 原项目的React和react-route已经很老,导致在使用过程中遇到了不小的问题。故而重新开始引入React和react-route,以便更好的理解这些知识点。
#!/bin/bash SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" ########### ## build ## ########### cd $SCRIPTPATH/libRALFit/ mkdir build-shared cd build-shared cmake -DBUILD_SHARED_LIBS=OFF .. make make install RESULT=$? [ $RESULT -ne 0 ] && exit 1 ####################### ## run fortran tests ## ######################...
#!/bin/env ruby ## encoding: utf-8 require File.join(File.dirname(__FILE__), './icecream/version') require 'rubygems' require 'bundler/setup' #common dependencies #internal dependences require File.join(File.dirname(__FILE__), './icecream/icecream') module IceCream end
using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Windows.Forms; using NPlant.Core; using NPlant.Generation; using NPlant.Generation.ClassDiagraming; namespace NPlant.UI.Screens.FileViews { public class ClassDiagramViewController : FileViewContro...
// Auto-generated from postgres/src/include/nodes/primnodes.h - DO NOT EDIT package ast import "encoding/json" /* * Placeholder node for the value to be processed by a domain's check * constraint. This is effectively like a Param, but can be implemented more * simply since we need only one replacement value at a...
pub type Oid = u32; // @see https://github.com/postgres/postgres/blob/REL_12_2/src/include/postgres_ext.h#L34 pub(crate) const INVALID: Oid = 0;
#scenario "deal creators can see contact details for their users through commitments" do end
using System; using System.Collections.Generic; using System.Linq; namespace _04.MatchingBrackets { class Program { static void Main() { string expression = Console.ReadLine(); Stack<int> indexesStack = new Stack<int>(); Stack<string> exprStack = new Stack<...
class AddJsonFieldsToLocations < ActiveRecord::Migration[6.0] def change add_column :locations, :precipitation, :jsonb add_column :locations, :temperature_min, :jsonb add_column :locations, :temperature_max, :jsonb end end
<?php $user_id=$this->session->userdata('user_name'); if(!$user_id){ echo "no session wtf"; } else { echo $user_id; } /** if($user_id){ //echo "no session"; echo "hello"; echo $this->session->userdata('user_name'); } else { redirect('user/login_view'); } **/
--- layout: post title: Github 로컬 내용을 덮어쓰고 싶을 때 categories: - Github excerpt_separator: <!--more--> --- ##### 해결방법 - git 로컬 내용 덮어쓰기 > 내가 작성한 코드들을 git repository에 있는 최신 내용으로 덮어쓰고 싶을 때 ``` $ git fetch --all $ git reset --hard origin ``` git repository의 최신 내용으로 덮어쓰기가 된다.
import { Person } from '../../models/person.model'; import { EventBus, CqrsModule } from '@nestjs/cqrs'; import { AddPersonEventHandler } from './add-person.event.handler'; import { EditPersonEventHandler } from './edit-person.event.handler'; import { DeletePersonEventHandler } from './delete-person.event.handler'; imp...
@file:Suppress("MemberVisibilityCanBePrivate") package net.cjsah.console import kotlinx.coroutines.runBlocking import net.cjsah.console.command.CommandManager import net.cjsah.console.command.source.ConsoleCommandSource import net.cjsah.console.plugin.Plugin import net.cjsah.console.plugin.PluginLoader import net.mam...
package org.endmyopia.calc.help import android.content.res.AssetManager import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import io.noties.markwon.Markwon import io.noties.markwon.image.ImagesPlugin import io.noties....
<?php namespace HasPhp\Functions; use HasPhp\Types\IterList; /** * Trait All * @package HasPhp\Functions * @mixin IterList */ trait All { /** * Returns whether all elements in the IterList match the provided predicate. * @param callable $fn * @return bool */ public function all(callab...
If the `config.json` file specifies: ``` javascript "delivery-truck": { "lint": { "foodcritic": { "ignore_rules": ["FC009", "FC057", "FC058"], "excludes": ["DIRECTORY", "DIRECTORY", ...] } } } ``` then all Foodcritic rules except `FC009`, `FC057`, and `FC058` rules are run.
var searchData= [ ['robot_2epy',['robot.py',['../robot_8py.html',1,'']]], ['robot_5fbasic_2epy',['robot_basic.py',['../robot__basic_8py.html',1,'']]] ];
package typingsSlinky.isMyJsonValid.mod import typingsSlinky.isMyJsonValid.isMyJsonValidStrings.`null` import typingsSlinky.isMyJsonValid.isMyJsonValidStrings.array import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal,...
#!/bin/sh set -eu export TERM=xterm CONTAINERIP=$(ifconfig eth0 | grep 'inet '| grep -v 'inet6' | awk '{ print $2}') # Bash Colors red=`tput setaf 1` green=`tput setaf 2` yellow=`tput setaf 3` white=`tput setaf 7` bold=`tput bold` reset=`tput sgr0` separator=$(echo && printf '=%.0s' {1..100} && echo) # Functions log(...
package com.br.chamada.catequese.chamada; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ChamadaApplication { public static void main(String[] args) { SpringApplication.run(ChamadaApplication.clas...
# this file contains some useful functions """ iphase(n::Integer) ``(-1)^n`` """ iphase(n::T) where {T <: Integer} = iseven(n) ? one(T) : -one(T) """ is_same_parity(x::T, y::T) where {T <: Integer} judge if two integers are same odd or same even """ is_same_parity(x::T, y::T) where {T <: Integer} = iseven(x ⊻...
import { Split, SplitItem, Text, TextContent, TextVariants, } from '@patternfly/react-core'; import { LongArrowAltRightIcon } from '@patternfly/react-icons'; import * as H from '@syndesis/history'; import * as React from 'react'; import { ButtonLink, Loader } from '../../../Layout'; import './ViewWizardHeader...
package com.mall.order.dto;/** * Created by mic on 2019/7/30. */ import com.mall.commons.result.AbstractResponse; /** * ciggar * create-date: 2019/7/30-上午9:56 */ public class CancelOrderResponse extends AbstractResponse{ }
#!/bin/bash #fullmesh scripts version 3.0 # changes since from version 1.0 # 1)fix error msg output # 2)show ib_write processes # 3)fix error msg output for iperf # 4)show iperf processes # killallpid() clean up all ib_write_bw process # fullmeshserver() the server # fullmeshclient() the client # author: huili@ruij...
(defproject xcoo/integrant-tools "0.2.0" :description "" :url "https://github.com/xcoo/integrant-tools" :license {} :dependencies [[integrant "0.8.0" :exclusions [org.clojure/clojure]]] :source-paths ["src"] :resource-paths ["resources"] :repl-options {:init-ns integrant-tools.core} :profiles {:dev {:de...
#!/bin/sh # set option so that no matches doesn't match itself shopt -s nullglob dbname="$OPENEDGE_DB" openedge_db="/var/lib/openedge/data/$OPENEDGE_DB" # add a SYSPROGRESS user for user in /var/lib/openedge/data/init/${dbname}/*\.user; do # read values from file add_username=`sed '1q;d' ${user}` add_password=...
#!/bin/sh APPDIR=`dirname $0` APPDIR=`cd $APPDIR;pwd` CSVDIR="$APPDIR/../../db/ready_tsv" CREYLEDIR="$APPDIR/creyle" TARFILE=`date +$CREYLEDIR/%Y%m%d.tar.gz` CREYLEFILE="$CREYLEDIR/creyle.tar.gz" mkdir -p $CREYLEDIR cd $CSVDIR tar czf $TARFILE schools.tsv rm -f $CREYLEFILE ln -s $TARFILE $CREYLEFILE find $CREYLEDIR -na...
import React from "react"; import styled from "styled-components"; import { useRouter } from "./navigo/NavigoReact"; const Link = styled.a` display: inline-block; margin-right: 1em; color: #fff; font-size: 1em; cursor: pointer; text-decoration: underline; `; export default function Navigation() { const...
Get insight from user with this component. initialState = { value: 0 }; update = value => setState({value}); <div> <p><Rating value={state.value} onRating={update} /></p> <p><Rating inactiveColor="primarySmoke" activeColor="primary" value={state.value} onRating={update} /></p> <p><Rating ...
import { HashedString } from "../../../../save-structure/data-types"; import { SimHashes } from "../../../const-data"; import { GameObjectBehavior } from "../game-object-behavior"; import { BehaviorName } from "./types"; export declare const PrimaryElementBehavior: BehaviorName<PrimaryElementBehavior>; export interface...
DROP PROCEDURE IF EXISTS ROWPERROW; DELIMITER ;; CREATE PROCEDURE ROWPERROW() BEGIN DECLARE n INT DEFAULT 0; DECLARE i INT DEFAULT 0; SELECT COUNT(*) FROM (VALUES ROW (1000), ROW (2000), ROW (3000)) AS MassListTable INTO n; SET i=0; WHILE i<n DO SELECT 'comment'; END WHILE; END; ;;
import { Injectable, NotFoundException } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { Product, ProductsEntity } from './product.model'; @Injectable() export class ProductsService { constructor(@InjectRepository(ProductsEntity) private produ...
import { DataSourceService, DataSourceApi, DataSourceInstanceSettings, getDataSourceService, getBootConfig, getDefaultDatasourceName, DataSourceSelectItem, getTemplateSrv, localeData, currentLang } from 'src/packages/datav-core/src' import { importDataSourcePlugin } from 'src/plugins/loader' import {DataSourceVariableM...
package jdk.nashorn.internal.runtime.regexp.joni.constants; public interface Traverse { int TRAVERSE_CALLBACK_AT_FIRST = 1; int TRAVERSE_CALLBACK_AT_LAST = 2; int TRAVERSE_CALLBACK_AT_BOTH = 3; }
// // Created by vl_sys on 2019-11-29. // // 리눅스의 상태를 얻는 class들 입니다. // c++17을 지원하는 컴파일러가 필요 합니다. // ex) g++-8 or clang++-8 // // #ifndef SERVERSOCKETINFO_LINUXSTATUS_H #define SERVERSOCKETINFO_LINUXSTATUS_H #include <sys/utsname.h> #include <string> #include <exception> #include <cerrno> #include <cstring> #include ...
package io.ashdavies.rx.rxfirebase import com.google.firebase.database.DataSnapshot data class ChildEvent(val snapshot: DataSnapshot, val type: Type, val previous: String?) { constructor(snapshot: DataSnapshot, type: Type) : this(snapshot, type, null) enum class Type { CHILD_ADDED, CHILD_CHANGED, CH...
from collections import UserDict from .item import Item, InnerList, itemise, AllItemType from .list import parse_item_or_inner_list from .types import JsonType from .util import ( StructuredFieldValue, discard_http_ows, ser_key, parse_key, ) EQUALS = ord(b"=") COMMA = ord(b",") class Dictionary(User...
package provider import ( corev2 "github.com/sensu/sensu-go/api/core/v2" ) // Info represents the config of a store provider. type Info struct { corev2.TypeMeta corev2.ObjectMeta } // InfoGetter gets info about a store provider. type InfoGetter interface { // GetProviderInfo gets info about a store provider. Ge...
using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Collections.Generic; using System.Runtime.Serialization; namespace Teams.Webhook { public class MultiChoiceInput : Input { public enum Style { [EnumMember(Value = "normal")] Normal, ...
/** Same, but handling completion failures. */ boolean isUnchecked(DiagnosticPosition pos, Type exc) { try { return isUnchecked(exc); } catch (CompletionFailure ex) { completionError(pos, ex); return true; } } /** Is exc an exception type that need not be declared? */ b...
using CVaS.DAL.Model; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; namespace CVaS.DAL { public class AppDbContext : IdentityDbContext<AppUser, AppRole, int> { public DbSet<Algorithm> Algorithms { get; set; } public DbSet<File> Files { get; set; ...
# # $Id$ # # (c) 2003-2004 Morgan Stanley and Co. # See ..../src/LICENSE for terms of distribution. # package AFS::Command::BOS; require 5.006_000; use strict; use English; use AFS::Command::Base; use AFS::Object; use AFS::Object::BosServer; use AFS::Object::Instance; our @ISA = qw(AFS::Command::Base); our $VERSIO...
// Get platform specific interface object. let platform = chrome ? chrome : browser; // Per tab data. const tabs = []; // On runtime message received. platform.runtime.onMessage.addListener(function(request, sender, sendResponse) { // Setup empty object if not called previously. if (tabs[request.id] === undefined) ...
$(function() { function groupTable($rows, startIndex, total){ if (total === 0){ return; } var i , currentIndex = startIndex, count=1, lst=[]; var tds = $rows.find('td:eq('+ currentIndex +')'); var ctrl = $(tds[0]); lst.push($rows[0]); for (i=1;i<=tds.length;i++){ if (ctrl.text() == $(tds[i]).text()){ count++; $(tds[...
from rest_framework import routers from .views import ( NaturalKeyChildViewSet, ModelWithNaturalKeyViewSet, ModelWithSingleUniqueFieldViewSet, NaturalKeyLookupViewSet, ) router = routers.DefaultRouter() router.register(r'naturalkeychilds', NaturalKeyChildViewSet) router.register(r'modelwithnaturalkeys', M...
import 'package:cached_network_image/cached_network_image.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; import 'package:fluttertoast/fluttertoast.dart'; import 'package:provider/provider.dart'; import 'package:roboclub_flutter/forms/profile.dart'; import 'package:...
package Net::WebSocket::X::DuplicateHeader; use strict; use warnings; use parent qw( Net::WebSocket::X::Base ); sub _new { my ($class, $name => @values) = @_; my @args = ( name => $name, values => \@values, ); my @values_str = map { defined ? $_ : q<> } @values; return $class->...
# Prot2Vec # A protein embedding project. ### Download Embeddings ### * [PDB-ECOD](http://prot2vec.net) ### Contacts ### * yotamfr@yahoo.com
package io.github.wykopmobilny.work import kotlin.time.Duration interface WorkApi { fun workScheduler(): WorkScheduler } interface WorkScheduler { suspend fun setupBlacklistRefresh(repeatInterval: Duration, flexDuration: Duration) suspend fun setupNotificationsCheck(repeatInterval: Duration) susp...
/* * Copyright (C) 2015 The Android Open Source Project * * 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 applic...
mkdir -p /var/lib/mpd/music ln -f /usr/local/lib/node_modules/piphone/mpd.conf /etc/mpd.conf systemctl enable mpd systemctl start mpd mpc random on mpc single on
#include "guidance/turn_instruction.hpp" #include "engine/plugins/plugin_base.hpp" #include "engine/plugins/tile.hpp" #include "util/coordinate_calculation.hpp" #include "util/string_view.hpp" #include "util/vector_tile.hpp" #include "util/web_mercator.hpp" #include <boost/geometry.hpp> #include <boost/geometry/geom...
using System; namespace Service.Template.Repository { public class Session : IDisposable { public readonly Db Db; public Session(Db db) { this.Db = db; } public void Dispose() { Db.Dispose(); } } }