text stringlengths 27 775k |
|---|
---
title: "Bioinformatics and Genome Analysis"
collection: teaching
type: "Course"
permalink: /teaching/2017-Bioinformatics and Genome Analysis
venue: "Baylor College of Medicine"
date: 2017-04-27
location: "Houston, TX, USA"
excerpt: ''
---
Introduction in SVs + CNV calling. Slides are available on request.
|
import { JDEventSource } from "./eventsource";
export type LogLevel = 'error' | 'warn' | 'log' | 'info' | 'debug'
export type Log = (level: LogLevel, message: any, optionalArgs?: any[]) => void;
let nextNodeId = 0
export abstract class JDNode extends JDEventSource {
public readonly nodeId = nextNodeId++ // debugg... |
// Copyright (c) The Dijets Core Contributors
// SPDX-License-Identifier: Apache-2.0
use dijets_logger::prelude::*;
use futures::{Future, FutureExt, SinkExt};
use std::{pin::Pin, thread, time::Duration};
use crate::counters;
use tokio::{runtime::Handle, time::sleep};
/// Time service is an abstraction for operations... |
#pragma once
#include <node_api.h>
void create_sdl_events(napi_env env, napi_value exports);
napi_value napi_SDL_PumpEvents(napi_env, napi_callback_info info);
// napi_value napi_SDL_PeepEvents(napi_env env, napi_callback_info info);
napi_value napi_SDL_HasEvent(napi_env env, napi_callback_info info);
napi_value nap... |
import 'package:assorted_layout_widgets/assorted_layout_widgets.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart' hide Page;
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart';
//code-splitting
impo... |
/*
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1996, 2010 Oracle and/or its affiliates. All rights reserved.
*
*/
/*
* This compilation unit contains functions related to generating the
* storage layer implementation in "C".
*/
#include "generation.h"
static int header_indent_lev... |
# acfun-avatar-tool
AcFun关注up头像拼接生成背景墙
预览图:
 |
package Scandex.AskMrCoach;
import java.io.FileInputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import com.robrua.orianna.api.core.RiotAPI;
import com.robrua.orianna.type.core.common.Region;
import com.robrua.orianna.type.exception.APIException;
/**
* Hello wo... |
module Obmapp.Parser.FormatError where
import Obmapp.Beatmap (FormatVersion)
data FormatError
= UnsupportedVersion FormatVersion
| MissingHitObjectType
| UnknownSliderType Char
| MismatchingSliderRepeats Int Int Int -- explicit repeat count, number of hit sounds, number of extras
deriving (Eq, Sho... |
# frozen_string_literal: true
RSpec.describe Neptune do
subject { Neptune }
it 'has a version number' do
expect(subject::VERSION).not_to be_nil
end
describe '#init' do
let(:window) { double }
it 'should call the show method on the window' do
expect(Window).to receive(:new).and_return(windo... |
---
pid: '6013'
object_pid: '3561'
label: Snowy Village on a HIll
artist: janbrueghel
provenance_date: '1861'
provenance_location:
provenance_text: Musée Municipal of Châlons-sur-Marnes since its founding
collection: provenance
order: '1163'
---
|
package forms
import play.api.data.Form
import play.api.data.Forms._
/**
* Created by huodong on 15/8/9.
*/
case class EventStatusForm (status: String, cause: String)
object EventStatusForm {
val form = Form[EventStatusForm](
mapping(
"status" -> nonEmptyText,
"cause" -> nonEmptyText
)(EventSta... |
<?php
if (!function_exists('uploaded_file_is')) {
/**
* Compare an uploaded file's mime type against a supplied string.
*
* @param \Illuminate\Http\UploadedFile $file
* @param string $comparison
* @return bool
*/
function uploaded_file_is(\Illuminate\Http\UploadedFile $file, stri... |
// !JVM_DEFAULT_MODE: all-compatibility
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_RUNTIME
// FILE: A.java
public interface A {
default String foo() {
return "fail";
}
}
// FILE: B.java
public abstract class B implements A {}
// FILE: test.kt
interface KDefault : A {
override fun foo() = ... |
show tables; -- Mostrar as tabelas que estão no banco atual.
desc tabela; -- Mostrar a estrutura da tabela, desc = describe.
select * from tabela; -- * = tudo. (Pode ser qualquer campo).
order by id (asc/desc)
where nasc != '2016'
;
select distinct nome from tabela; -- Fazer distinção.... |
require 'stripe_mock'
include Warden::Test::Helpers
Warden.test_mode!
describe 'Customer API' do
let(:stripe_helper) { StripeMock.create_test_helper }
before(:each) do
StripeMock.start
end
after(:each) do
StripeMock.stop
Warden.test_reset!
end
it "creates a stripe customer with a default s... |
import * as preferenceApi from '../../../api'
import _ from 'lodash'
export default {
namespaced: true,
state: {
source: {},
mapping: {},
schema: {},
systemData: {},
},
actions: {
async initStore({ commit }) {
const mapping = await preferenceApi.getMapping();
const schema = awa... |
#Compute the greatest common divisor (GCD) of two positive integers
def gcd(x,y):
bigger=0
smaller=0
output=1
if x or y == 0:
return "no gcd available"
if x>y:
bigger=x
smaller=y
else:
bigger=y
smaller=x
temp=smaller
while(temp>0):
if bigge... |
// ======================================================================
/*!
* \file NFmiParamBag.h
* \brief Interface for class NFmiParamBag
*/
// ======================================================================
#pragma once
#include "NFmiDataIdent.h"
#include "NFmiDataMatrix.h"
#include "NFmiParameterName... |
/**
企业文件左边导航树
*/
define(function (require, exports, module) {
tpl.messageInfoCardView = require('tplurl-website/user/MessageInfoCardView.tpl');
window.MessageInfoCardView = Backbone.View.extend({
tagName: 'div',
className: 'message-card',
_modelBinder: undefined,
_this:undefi... |
import { generateAssetUUID } from '@utils';
import { AssetLegacy } from '@types';
import Alfajores from './alfajores.json';
import Baklava from './baklava.json';
import Celo from './celo.json';
// @TODO[Types]: key should really be a partial of NetworkId
interface Assets {
[key: string]: AssetLegacy[];
}
export con... |
class DecoratorController < ApplicationController
def navigation
render :partial => "layouts/navigation", :layout => false
end
end |
const fs = require('fs')
const path = require('path')
const zlib = require('zlib')
const cp = require('child_process')
module.exports = async function getStats(config, workingDir) {
console.log(`Starting stat analysis for ${workingDir}`)
cp.execSync(config.build, {
cwd: workingDir
})
const statsPromises =... |
package org.eknet.publet.gitr.webui.scripts
import org.eknet.publet.engine.scala.ScalaScript
import GitrControl._
import java.io.ByteArrayOutputStream
import org.eknet.publet.vfs.{ContentType, Content}
import org.eknet.publet.web.shiro.Security
import org.eknet.publet.web.util.PubletWebContext
import org.eknet.publet.... |
# frozen_string_literal: true
module Opera
module Operation
class Executor
attr_reader :operation
def initialize(operation)
@operation = operation
end
def call(instruction)
instructions = instruction[:instructions]
if instructions
evaluate_instructions... |
BEGIN {
if ($ENV{PERL_CORE}) {
chdir 't' if -d 't';
@INC = ("../lib", "lib/compress");
}
}
use lib qw(t t/compress);
use strict;
use warnings;
use bytes;
use Test::More ;
use CompTestUtils;
BEGIN
{
plan skip_all => "Encode is not available"
if $] < 5.006 ;
eval { require Encode; Encode->im... |
---
title: Telerik.Web.UI.SearchBox.Renderers.SearchContextItemRenderer
page_title: Telerik.Web.UI.SearchBox.Renderers.SearchContextItemRenderer
description: Telerik.Web.UI.SearchBox.Renderers.SearchContextItemRenderer
---
# Telerik.Web.UI.SearchBox.Renderers.SearchContextItemRenderer
For internal use only.
## Inher... |
namespace tibs.stem.Emailing
{
public interface IEmailTemplateProvider
{
string GetDefaultTemplate(int? tenantId);
string DiscountEmailTemplate();
string LostEmailTemplate();
}
}
|
package com.whenling.castle.core
import org.junit.runner.RunWith
import org.springframework.test.context.ContextConfiguration
import org.springframework.test.context.ContextHierarchy
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner
@RunWith(SpringJUnit4ClassRunner::class)
@ContextHierarchy(Cont... |
package com.wangzhixuan.commons.utils;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.util.Map;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.cglib.beans.BeanGenerator;
import org.springframework.cglib.beans.BeanMap;
/**
* 基于CGlib
* 实体工具类,目前copy不... |
package net.dankito.documents.contentextractor
import java.io.File
interface IFileChecksumCalculator {
fun calculateChecksum(file: File): String
} |
# ctrie-rs
An implementation of a (ctrie)[https://axel22.github.io/resources/docs/ctries-snapshot.pdf] in rust.
This is still a work in progress.
|
This file provides information about running the Dynamic Topic Model
or the Document Influence Model. It gives two command-line examples
for running the software and several example commands in R for reading
output files.
Dynamic topic models and the influence model have been implemented
here in c / c++. This implem... |
(ns ^:no-doc portal.runtime.jvm.client
(:require [clojure.pprint :as pprint]
[portal.runtime :as rt])
(:import [clojure.lang IAtom IDeref]))
(defonce connections (atom {}))
(defonce ^:private id (atom 0))
(defonce ^:private pending-requests (atom {}))
(defn- next-id [] (swap! id inc))
(def ops
{:p... |
use crate::mqtt::packets::QoS;
use std::fmt;
use std::fmt::{Display, Formatter};
#[derive(Debug, PartialEq, Clone, Default)]
pub struct Subscription {
topic: String,
qos: QoS,
}
impl Display for Subscription {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
write!(f, "topic: '{}' QoS: {}", s... |
(LIST-OF-ADD-STICKY-CALLS)
(GET-STICKY-ENABLES-1)
(GET-STICKY-DISABLES-1)
(GET-STICKY-ENABLES)
(GET-STICKY-DISABLES)
|
burpbuddy
=========
burpbuddy exposes [Burp Suites's](http://portswigger.net/burp/) extender API over the network through various mediums, with the goal of enabling development in any language without the restrictions of the JVM. See the [wiki](https://github.com/tomsteele/burpbuddy/wiki) for more information.
## Req... |
{-# language DataKinds #-}
{-# language StandaloneKindSignatures #-}
module Rel8.Schema.HTable.NonEmpty
( HNonEmptyTable
)
where
-- base
import Data.List.NonEmpty ( NonEmpty )
import Prelude ()
-- rel8
import Rel8.Schema.HTable.Vectorize ( HVectorize )
import qualified Rel8.Schema.Kind as K
type HNonEmptyTable... |
List<Map<String, dynamic>> createMockSimpleRecords(
String storyId,
String bullet1Id,
String bullet2Id,
) {
return [
{
'id': bullet1Id,
'at': DateTime.now(),
'by': '$bullet1Id-by',
'story': storyId,
'content': '$bullet1Id-content',
'thesis': {
'insiders': [],
... |
#!/usr/bin/ruby
# Lecture 23 - medthods and branching
def multiply(firstNumber, secondNumber)
firstNumber.to_i * secondNumber.to_i
end
def divide(firstNumber, secondNumber)
firstNumber.to_f / secondNumber.to_f
end
def add(firstNumber, secondNumber)
firstNumber.to_i + secondNumber.to_i
end
def subtract(fi... |
using System;
using Newtonsoft.Json;
namespace Epinova.ElasticSearch.Core.Models.Admin
{
public class HealthInformation
{
[JsonProperty("epoch")]
public long Epoch { get; private set; }
[JsonProperty("timestamp")]
public string Timestamp { get; private set; }
[JsonPro... |
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../../models/cart/cart.dart';
import '../../models/products/products.dart';
import '../../widgets/other/badge.dart';
import '../../widgets/other/main_drawer.dart';
import '../../widgets/other/products_grid.dart';
import 'cart_over... |
<?php
namespace App;
class PermissionRole extends Model
{
protected $table = 'permission_role';
protected $primary = 'permission_id';
}
|
extern crate figtree;
use figtree::Figtree;
const REPEATED_NODES_IN_DOCUMENT: &'static str = "
node { 'key': 1 }
node { 'key': 2 }";
const REPEATED_NODES_IN_NODE: &'static str = "
node {
subnode { 'key': 1 }
subnode { 'key': 2 }
}";
const REPEATED_NODES_AND_ATTRIBUTES: &'static str = "
... |
#!/usr/bin/env bash
. ${REPO}/.circleci/scripts/utils.sh
if [ ! -f "$LOG4J_BKUP_FINGERPRINT" ]; then
# Log level at INFO per default; back this up
cp "$CLIENT_RESOURCES/log4j2.xml" "$CLIENT_RESOURCES/bkup-log4j2.xml"
touch $LOG4J_BKUP_FINGERPRINT
cp "$CLIENT_RESOURCES/regression-log4j2.xml" "$CLIENT_RESOURCE... |
{% extends '//lib/gtk/t/mix.sh' %}
{% block fetch %}
https://download.gnome.org/sources/gtk+/3.24/gtk%2B-3.24.31.tar.xz
1c4821835d6ffe7cf5b35c320f89569b
{% endblock %}
{% block lib_deps %}
lib/atk
{{super()}}
{% endblock %}
{% block bld_tool %}
lib/gdk/pixbuf
{{super()}}
{% endblock %}
{% block meson_flags %}
x11_b... |
# frozen_string_literal: true
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 ... |
#include <iostream>
using namespace std;
int main(){
int idade,restante;
cout<<"Digite sua idade: ";cin>>idade;
if(idade>=18){
cout<<"Pode dirigir!\n";
}else{
restante=18-idade;
if(restante==1){
cout<<"Nao pode digirir, faltam "<<restante<<" ano para poder d... |
A basic example:
```jsx harmony
import Heading from '../../components/core/Heading';
<Hero
backgroundImage="url(https://source.unsplash.com/TBw3iQGdwbg/1000x600)"
py={6}
>
<Heading level={2}>
The quick brown fox jumps over the lazy dog
</Heading>
</Hero>;
```
Responsive paddings:
```jsx harmony
import He... |
---
title: footnote
---
* built by [Fang Cabrera](https://fangcabrera.com/)
* from [gatsby-starter-hero-blog](https://github.com/greglobinski/gatsby-starter-hero-blog) |
#
# Be sure to run `pod spec lint VIMVideoPlayer.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://git... |
using DataAccessLayer.Database;
using DataAccessLayer.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceLayer.Services
{
interface IClaimService
{
Claim CreateClaim(DatabaseContext _db, Claim claim);
Cla... |
Aws.config[:iam] = {
stub_responses: {
list_users: {
users: [
path: '/',
user_name: 'my-iam-user',
user_id: 'ABCDEFGHI1234556890',
arn: 'arn:aws:iam::123456789012:user/my-iam-user',
create_date: Time.new(2015, 1, 2, 10, 00, 00, '+00:00')
]
},
list_groups... |
import Engine from "$stafleu/Templating/Engine";
import ChainEngine from "$stafleu/Templating/ChainEngine";
import {Mock} from "ts-mocks";
describe('ChainEngine', () => {
let chain: ChainEngine,
templateNames: string[],
engines: Mock<Engine>[];
beforeEach(() => {
chain = new ChainEngin... |
angular.module('hexo').directive('breadcrumb', function(){
var init = function($scope, $attrs){
var breadcrumbs = $scope.breadcrumbs = [],
path = $scope.path,
url = $scope.url,
maxLevel = +$scope.maxLevel || 3;
breadcrumbs.push({
name: $scope.defaultText || 'Home',
path: url.rep... |
# Changelog
## 2.0.0 (2019-05-26)
* Enable `docker-wine` script to run on macOS
* Mount X11 socket instead of using `net=host`
* Add `build.sh`
* Use `build.sh` script in `Makefile`
* Update short description
* Add `VERSION` file
* Add `ubuntu-stable` that contains build_args for Dockerfile
* Add `post_push` hook to ... |
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : __init__.py.py
@Contact : haoheliu@gmail.com
@License : (C)Copyright 2020-2100
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
9/14/21 1:00 AM Haohe Liu 1.0 None
'''
import... |
/*
* Copyright 2016 Jens Walter
*
* 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 ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\User;
use Auth;
class FriendController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
publi... |
/*
* SPDX-FileCopyrightText: 2022 Arseniy Graur <me@argraur.dev>
* SPDX-License-Identifier: MIT
*/
package dev.argraur.aosp.builder.telegram.command.impl.android
import com.github.kotlintelegrambot.dispatcher.handlers.CommandHandlerEnvironment
import com.github.kotlintelegrambot.entities.ChatId
import com.github.k... |
package io.baranmichal.thecaseagainstlivedata.movies.presenter
import io.baranmichal.thecaseagainstlivedata.base.presenter.BasePresenter
import io.baranmichal.thecaseagainstlivedata.base.rx.AppSchedulers
import io.baranmichal.thecaseagainstlivedata.movies.data.MoviesRepository
import io.baranmichal.thecaseagainstlived... |
---
sidebar_position: 5
---
# Tips and good practices
## Function clauses ordering
The clauses ordering in the contracts should ideally always appear in the same
order:
- `requires` preconditions
- `checks` preconditions
- `modifies` and `consumes` effects
- `ensures` postconditions
- `raises` exceptional postcondi... |
package productandconsume.condition;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;
/**
* @author gaoguangjin
*/
public class AwaitSignal {
private static ReentrantLock lock = new ReentrantLock();
private static Condition condition = lock.newCondition();
pr... |
# `//src/ui/tests/lib`
A set of useful C++ libraries for writing input integration tests.
When moving the test out of tree, these will likely need to move along too.
|
import { IntervalWorker } from './worker';
const debug = require('debug')('recurly:reporter');
/**
* Reports events to the API
*
* @param {Object} options
* @param {Recurly} options.recurly
*/
export class Reporter {
constructor ({ recurly }) {
this.pool = [];
this.recurly = recurly;
if (!this.shou... |
<?php
namespace Recombee\RecommApi\Tests;
use Recombee\RecommApi\Requests\ListItemViewPortions;
class ListItemViewPortionsTest extends ListItemInteractionsTestCase {
protected function createRequest($item_id) {
return new ListItemViewPortions($item_id);
}
}
?>
|
require 'spec_helper'
require 'fake_address/address'
# Spain
describe ValidateZipcode do
# Format [gsub and upcase]
context "Spain" do
context "Format should be valid" do
# Code
it "ES / es" do
expect(ValidateZipcode::Validator.new("28001", "ES").valid?).to be_truthy
expect(Validate... |
<?php
namespace We7\V165;
defined('IN_IA') or exit('Access Denied');
/**
* [WeEngine System] Copyright (c) 2013 WE7.CC
* Time: 1510292752
* @version 1.6.5
*/
class CreateAccountPc {
/**
* 执行更新
*/
public function up() {
if(!pdo_tableexists('account_webapp')){
$sql = <<<EOT
CREATE TABLE `ims_accou... |
#include "XcbApplication.hpp"
#include <string.h>
#include <cstdio>
#include <iostream>
#include "InputManager.hpp"
using namespace My;
using namespace std;
void XcbApplication::CreateMainWindow() {
uint32_t mask = 0;
uint32_t values[3];
if (!m_pConn) {
/* establish connection to X server */
... |
export const verifyPayment = async (user)=>{
try {
const response = await fetch(`https://api.ravepay.co/flwv3-pug/getpaidx/api/v2/verify`,{
method:'POST',
body:JSON.stringify(user),
headers:{
'Content-Type':'application/json; charset=UTF-8',
... |
#ifndef KVM__SCSI_VIRTIO_H
#define KVM__SCSI_VIRTIO_H
#include "kvm/disk-image.h"
struct kvm;
int virtio_scsi_init(struct kvm *kvm);
int virtio_scsi_exit(struct kvm *kvm);
#endif /* KVM__SCSI_VIRTIO_H */
|
# Kubernetes scope
Purpose of this doc: Clarify factors affecting decisions regarding
what is and is not in scope for the Kubernetes project.
Related documents:
* [What is Kubernetes?](https://kubernetes.io/docs/concepts/overview/what-is-kubernetes/)
* [Kubernetes design and architecture](architecture.md)
* [Kubernet... |
import Collection from '../index'
interface HasInd {
ind: number
}
const numArr = [ 1, 2, 3, 4, 5 ]
const objArr = numArr.map( i => ( { ind: i } ) )
describe( 'Collection main', () => {
let coll: Collection<number>
let objColl: Collection<HasInd>
beforeEach( () => {
coll = new Collection( numArr )
o... |
<?php
class Pages extends Controller {
public function __construct(){
}
public function index(){
if(isLoggedIn()){
redirect('posts');
}
$data = [
'title' => 'File Upload Download',
'description' => 'Upload files to a server and download/de... |
<?php
//
// Description
// -----------
// This function will return a list of categories for the web recipes page.
//
// Arguments
// ---------
// ciniki:
// settings: The web settings structure.
// tnid: The ID of the tenant to get events for.
//
// Returns
// -------
// <categories>
// <category name=... |
using System.Windows;
using System.Windows.Controls;
// ReSharper disable CheckNamespace
namespace Metrolib.Controls
// ReSharper restore CheckNamespace
{
/// <summary>
/// Base class for progress bars of this library.
/// </summary>
public abstract class AbstractProgressBar
: ProgressBar
{
private stati... |
import {MovieBasicData} from '@interfaces/movies/MovieBasicData';
export interface MoviesListResponse{
totalMovies : number,
movies : MovieBasicData[]
} |
import React, { memo } from "react";
import { Seo, Header, Footer } from "./index";
export const App = memo(({ children, title, imgUrl, excerpt }) => {
return (
<>
<Seo title={title} image={imgUrl} description={excerpt} />
<Header />
{children}
<Footer />
</>
);
});
|
let _remote: any = null;
import * as remote from '@electron/remote';
export const getElectronRemoteModule = (): typeof remote | null => {
// eslint-disable-next-line
if (window['require']) {
_remote = window.require('@electron/remote');
return _remote;
}
return _remote;
};
|
# frozen_string_literal: true
module Metanorma; module Document; module Core; class Node; module Custom
# Describes a member field of a given custom tag
class MemberField
def initialize(owner, type, name, klass, **kwargs)
@owner = owner
@type = type
@name = name
@klass = klass
ca... |
#!/usr/bin/env php
<?php
/*********************************************************************
* alert.php
*
* Handle monitoring DB and sending alert if no blocks for the last hour
********************************************************************/
// Hide all but errors
error_reporting(E_ERROR);
// Parse i... |
import { Logger } from '@/candidates/core/services/logger.service';
const isHttp400Error = (e) => {
return e.response &&
(e.response.status === 400) &&
e.response.data.details;
};
const isHttp401Error = (e) => {
return e.response &&
(e.response.status === 401);
};
const isExpectedError = (e) => {
r... |
// Package environment
// Create by guoxin 2020.12.14
package environment
import (
"github.com/GuoxinL/gcomponent/core"
"testing"
)
// test Configuration.Initialize It's only initialized once
func TestConfiguration_Initialize(t *testing.T) {
if err := core.SetWorkDirectory(); err != nil {
t.Error... |
class SearchController < ApplicationController
before_filter :verify_view_permission
def show
@search = Search.new(current_user, params[:search])
@results = @search.results.paginate(page: params[:page])
render template: "search/results"
end
def new
@search = Search.new(current_user)
end
d... |
---
layout: page
title: About
permalink: /about/
---
## About Me

저는 소프트웨어 개발 장인(Master)이 되고자 수련 중인 견습생(Apprentice)입니다.<br/>
2010년 부터 현재까지 iOS/macOS 앱을 개발하고 있습니다.<br/>
글을 읽는 것과 쓰는 것을 좋아합니다.<br/>
문의가 있으신 분은 아래 연락처로 연락주세요.
Twitter : http://twitter.com/kyejusung
Email :... |
# This file overrides terraform.tfvars values.
export AWS_PROFILE=<aws profile name>
export AWS_DEFAULT_REGION=<aws region>
# aws account ID
export TF_VAR_aws_account=<aws account id>
# aws location without spaces (e.g. eu-central-1)
export TF_VAR_aws_region=${AWS_DEFAULT_REGION}
# needs to be unique within the aws ... |
namespace Specs.Integration.MediaLogue.Conventions
{
using System.Web.Http;
using global::MediaLogue.Api.Core.Config;
using Specs.Library.MediaLogue;
using TestStack.ConventionTests;
using TestStack.ConventionTests.Autofac;
public abstract class AutofacConventions : ScenarioFor<A... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
//using GooglePlayGames;
public class GameManager : MonoBehaviour {
[Header("InGameUI")]
public Text countdownText;
public GameObject inGamePanel;
public GameObject... |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Program where
import Control.Monad
import Control.Monad.Trans.Reader
import Control.Monad.Trans.State
import Control.Monad.Trans.Class
import Control.Monad.IO.Class
import LoadPackageInterface
import Data.Interface
import ProgramArgs
import Paths
data ProgramEnv ... |
#include "QDataStdAfx.h"
#include "util/Folder_Walker.h"
#if defined(Q_POSIX_API)
#include <utime.h> //utime
#include <unistd.h>
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
using namespace q;
static std::vector<std::pair<Path, bool>> enumerate_files(Path const& path)
{
#define Q_MA... |
'''
Fourier Accountant
Code for computing tight DP guarantees for the subsampled Gaussian mechanism.
This module holds functions for computing epsilon given delta for variable sigma and q.
The method is described in
A.Koskela, J.Jälkö and A.Honkela:
Computing Tight Differential Privacy Guarantees Using FFT.
arXiv pre... |
`merge_csvs` is a small script to merge a bunch of csv files inside a zip file.
It checks that the csvs actually contain the same headers and skip files that
are not csv.
## Running the script
Quite easy
```
(venv)$> python merge_csvs.py some-zip-file-with-at-least-two-similar-csvs.zip
```
## Installing the depende... |
package io.edugma.features.account.authorization
import androidx.lifecycle.viewModelScope
import io.edugma.domain.account.repository.AuthorizationRepository
import io.edugma.domain.account.repository.PaymentsRepository
import io.edugma.domain.account.repository.PerformanceRepository
import io.edugma.domain.account.rep... |
#!/bin/bash
sudo -s # we need to pass root user to launch puppet recipe
# delete directory puppet and config directory puppet
if [ -d "$PUPPET_HOME" ]
then
sudo rm -r $PUPPET_HOME/*
sudo mv $puppet_file $PUPPET_HOME
sudo unzip $PUPPET_HOME/recipe.puppet -d $PUPPET_HOME
sudo rm $PUPPET_HOME/recipe.puppet
sud... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
namespace ITVComponents.WebCoreToolkit.Security
{
public interface IContextUserProvider
{
/// <summary>
/// Gets th... |
require "drb"
require "testjour/commands/base_command"
require "testjour/bonjour"
module Testjour
module CLI
class List < BaseCommand
def self.command
"list"
end
def initialize(*args)
super
Testjour.load_cucumber
require "testjour/colorer"
rescu... |
using System.Collections.Generic;
using HeuristicLab.Common;
using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
namespace HeuristicLab.Problems.BpEa.Symbols
{
[StorableClass]
public class BooleanValue : Symbol
{
public... |
-- file:case.sql ln:75 expect:true
SELECT CASE 'a' WHEN 'a' THEN 1 ELSE 2 END
|
BASE_URL = "http://www.tsetmc.com/tsev2/data/MarketWatchInit.aspx?h=0&r=0"
CLIENT_TYPE_URL="http://www.tsetmc.com/tsev2/data/ClientTypeAll.aspx"
|
# frozen_string_literal: true
# The Main module
module ChartBibz
# Add the Helpers module to Chart Bibz
module Helpers
# Helper for chart bibz
module ChartHelper
# Generate the html of the canvas
#
# @example Generate the canvas
# chart {datasets: {data: [1,2,3]}}, {type: :bar}, {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.