text stringlengths 27 775k |
|---|
class Book {
static final String TESTAMENT_ID_KEY = "testament";
static final String BOOK_ID_KEY = "bookId";
static final String CHAPTER_NUMBER_KEY = "chapter";
static final int OLD_TESTAMENT = 0;
static final int NEW_TESTAMENT = 1;
static final int SEARCH_OT = 100;
static final int SEARCH_NT = 101;
s... |
require 'rails_helper'
RSpec.describe "users/index", type: :view do
before(:each) do
assign(:users, [
create(:user),
create(:user)
])
end
it "renders a list of users" do
render
assert_select "div.manageUsersHeaders" do
assert_select "div.h4", :text => "First Name".to_s, :count... |
using System;
using System.Net;
namespace PC.Plugins.Common.Client
{
public class Client
{
private CookieContainer _cookies;
private IWebProxy _proxy;
public ClientRequest Request(Uri resource)
{
if (_cookies == null)
{
_cookies = new Co... |
package com.smart.recycler.modules.swipe
import android.arch.lifecycle.Lifecycle
import android.arch.lifecycle.LifecycleOwner
import android.arch.lifecycle.LifecycleRegistry
import android.arch.lifecycle.ViewModelProviders
import android.os.Bundle
import android.os.Handler
import android.support.v7.app.AppCompatActivi... |
# Generated by Django 3.2.4 on 2021-08-25 20:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('contribuyente', '0001_initial'),
('recibidos', '0003_alter_comprobantesrecibidos_contribuyente'),
('emitidos... |
package main
import (
"fmt"
"sync"
)
// WaitGroup - synchronizes goroutines, joins them
var (
wg = sync.WaitGroup{}
counter = 0
)
func main() {
msg := "Hello again"
wg.Add(1) // adds number of goroutines we want our application to wait for
go func(msg string) {
fmt.Println(msg)
wg.Done() // decrement... |
import 'package:analyzer/dart/element/element.dart';
import 'package:analyzer/dart/element/nullability_suffix.dart';
import 'package:analyzer/dart/element/type.dart';
import 'package:meta/meta.dart';
import 'package:sealed_annotations/sealed_annotations.dart';
import 'package:sealed_generators/src/manifest/annotation_u... |
package com.tasomaniac.openwith.settings.rating
import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AlertDialog
import androidx.core.app.ShareCompat
import androidx.preference.PreferenceCategory
import com.tasomaniac.openwith.R
import com.tasomaniac.openwith.data.Analytics
import com.tas... |
class Api::TeamsController < Api::ApplicationController
before_action :authorize_user
before_action :set_team
def show
render status: :ok, json: { name: @team.name }
end
def update
if @team.update(team_params)
render status: :ok, json: { name: @team.name }
else
render status: :bad_re... |
package com.github.sfyc23.hencoderpractice.view.drawbasal.view
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.os.Build
import android.support.annotation.RequiresApi
import android.util.AttributeSet
import android.view.View
import... |
# Android
Android projects and improvements.
Making the most of the incredible Jetpack Compose and the powerful Kotlin language.
https://developer.android.com/jetpack/compose/tooling?hl=pt-br
|
import { relativeDate } from '@digest-delivery/common/util'
import Link from 'next/link'
import { FC } from 'react'
import { ChevronRight, Loader } from 'react-feather'
import { Anchor } from '../atoms/btn'
import { articleCountLabel } from './digest-item'
const titleize = (str: string) => str[0].toUpperCase() + str.s... |
from calculator import advanced, simple, arguments, input_parser
def main():
advanced_calculator = advanced.AdvancedCalculator()
skip_lines = 0
while(True):
try:
operation, first_param, second_param = input_parser.get_input_from_json(skip_lines)
if operation == "QUIT"... |
# Catalizzatori Alchemici A Fusione
Il pacchetto *catalizzatori* viene utilizzato per aggiungere o rimuovere catalizzatori per Alchemical Fusion.
## Chiamata
Puoi chiamare il pacchetto *catalizzatori* utilizzando `mods.skyresources.catalysts`
## Aggiunta Catalizzatore
```zenscript
//mods.skyresources.catalysts.add... |
# frozen_string_literal: true
module CloudFlareLocalizable
# Countries
CF_COUNTRIES = [
{ code: 'AD', name: 'Andorra' },
{ code: 'AE', name: 'United Arab Emirates' },
{ code: 'AF', name: 'Afghanistan' },
{ code: 'AG', name: 'Antigua and Barbuda' },
{ code: 'AI', name: 'Anguilla' },
{ code: ... |
# dictfuc.py ---
#
# Filename: dictfunc.py
# Description:
#
# Author: Yu Lu
# Email: yulu@utexas.edu
# Github: https://github.com/SuperYuLu
#
# Created: Tue Jun 26 16:15:50 2018 (-0500)
# Version:
# Last-Updated: Tue Aug 28 10:23:47 2018 (-0500)
# By: yulu
# Update #: 7
#
def buildDict(init_di... |
module CI
module Queue
module Redis
class BuildRecord
def initialize(queue, redis, config)
@queue = queue
@redis = redis
@config = config
end
def progress
@queue.progress
end
def queue_exhausted?
@queue.exhausted?
... |
#!/bin/bash
for c in $(runc list -q); do
output=$(runc state $c | grep io.kubernetes.cri-o.ContainerType)
if [[ "$output" =~ "container" ]]; then
runc delete -f $c
fi
for m in $(mount | grep $c | awk '{print $3}'); do
umount -R $m
done
done
for c in $(runc list -q); do
output=$... |
#define CATCH_CONFIG_MAIN
#include "../../../../catch2/catch.hpp"
#include "../PrimeNumbersGenerator/Generator.h"
SCENARIO("Test validation of upper bound") // 1 scenario
{
GIVEN("Int")
{
WHEN("Bound less min value") // 1 case
{
REQUIRE(IsCorrectUpperBound(0) == false);
REQUIRE(IsCorrectUpperBound(-2) == ... |
package main
import (
"github.com/open-privacy/opv/pkg/config"
"github.com/open-privacy/opv/pkg/proxyplane"
"github.com/tj/go-gracefully"
)
func main() {
pp := proxyplane.MustNewProxyPlane()
pp.Start()
defer pp.Stop()
gracefully.Timeout = config.ENV.GracefullyShutdownTimeout
gracefully.Shutdown()
}
|
/**
* @license
*/
export const environment = {
production: true,
//GOOGLE MAP
googleApiKey: window["env"]["APP_MAP_API_KEY"] || '',
//MARKETPLACE | BTB | STANDARD
mode: 'STANDARD',
//API URL
apiUrl: window["env"]["APP_BASE_URL"] || 'http://localhost:8080/api',
shippingApi: window["env"... |
(function () {
"use strict";
const promisify = require("promisify-node");
// couldn't get 'promisify(require("child_process").exec)' to work, so use a third-party wrapper
const exec = require("child-process-promise").exec;
// Don't call `promisify(require("fs"))` because it changes the module
... |
SELECT COUNT(*)
FROM
(
SELECT
OBJECT_NAME(parent_object_id) AS PKTableName,
OBJECT_NAME(OBJECT_ID) AS PKName
FROM sys.objects
WHERE type_desc IN ('PRIMARY_KEY_CONSTRAINT')
) AS PKTab
LEFT OUTER JOIN
(
SELECT
Table_Name AS TableName,
Constraint_Name AS ConstraintName,
Column_Name ... |
using System;
namespace ChainUtils
{
public class CompositeDisposable : IDisposable
{
IDisposable[] _disposables;
public CompositeDisposable(params IDisposable[] disposables)
{
_disposables = disposables;
}
#region IDisposable Members
public void Dispose()
{
if(_disposables != nu... |
namespace ServerApi.Interfaces
{
public interface IBUDirectoryInfo
{
int? ParentId { get; set; }
string Name { get; set; }
string Path { get; set; }
}
public class BUDirectoryInfo : IBUDirectoryInfo
{
public BUDirectoryInfo(int? parentId = null, string name = null, ... |
Title: apt import unknown key oneliner
Date: 2012-11-20 10:44
Author: number5
Category: blog
Tags: apt, gpg, key, linux, oneliner, Ubuntu
Slug: 253
Status: published
Wordpress-Id: 253
Link: http://brucewang.net/2012/11/20/253
`sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys [key_id]`
|
# Ana Make
Ana Canda Make Webside
<div>
<img src="/img/ana/site.png" width="200px"</img>
</div>
The website is up and running in www.anacandidamake.com.br
|
import { firestore } from "../deps.ts";
import { db } from "../firebase.ts";
const { doc, setDoc, collection, onSnapshot } = firestore;
const colName = "maji-uranai";
type Data = {
color?: { lucky: string; unlucky: string };
zodiac?: { lucky: string; unlucky: string };
};
const data: { [key: string]: Data } = {}... |
# GUI-For-PS2EXE
GUI for PS2EXE with ps2exe function included
 |
using System;
using System.Globalization;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Serilog;
using Telegram.Bot.Framework.Abstractions;
using WinTenBot.Common;
using WinTenBot.Enums;
using WinTenBot.IO;
using WinTenBot.Model;
using WinTenBot.Services;
using WinTenBot.Telegram;
name... |
package a2l
import (
"errors"
"strconv"
"github.com/rs/zerolog/log"
)
type typeDefBlob struct {
name string
nameSet bool
longIdentifier string
longIdentifierSet bool
size uint32
sizeSet bool
addressType addrTypeEnum
}
func parseTypeDefBlob(tok *tokenG... |
package com.tns;
import android.webkit.JavascriptInterface;
public class SampleJavascriptInterface {
public SampleJavascriptInterface() {}
@JavascriptInterface
public void postMessage(String message) {
this._postMessage(message);
}
public void _postMessage(String message) {
/... |
# getui-sdk-ios-cocoapods
个推iOS SDK Cocoa Pods集成库
## podfile 配置
``` java
source 'https://github.com/GetuiLaboratory/Specs.git'
platform :ios, "7.0"
pod 'getui-sdk-ios-cocoapods'
```
|
# frozen_string_literal: true
require 'countries'
RSpec.describe AddressHelper do
it 'has a version number' do
expect(AddressHelper::VERSION).not_to be nil
end
it 'has a list of countries requiring VAT' do
expect(AddressHelper::COUNTRIES_REQUIRING_VAT).to match_array(
[
'Austria',
... |
import { fromJS, List, Map } from 'immutable';
import notif from 'dan-api/ui/notifMessage';
import { CLOSE_NOTIF } from 'dan-redux/constants/notifConstants';
import {
FETCH_CALENDAR_DATA,
ADD_EVENT,
DISCARD_EVENT,
SUBMIT_EVENT,
DELETE_EVENT
} from './calendarConstants';
const initialState = {
events: List(... |
import unittest
from nodes import *
import numpy as np
from numpy.testing import *
from asserts import *
from simulation import *
from activations import *
from networks import *
from sklearn import datasets
class NeuralNetwork2LayerTest(unittest.TestCase):
def test_backward(self):
# load MNIST sample dat... |
import React, { Component, Fragment } from 'react';
import { Router, view, params, route } from 'react-easy-stack';
import Button from '@material-ui/core/Button';
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import NavBar from './NavBar';
import Dashboard from './Dashboard';
import Login... |
package com.mike.photoapp.models
data class PhotoList(val hits: List<Photo>) {
} |
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <fcntl.h>
#include <unistd.h>
#include <assert.h>
#include <limits.h>
void
Usage( char *prog, int line ) {
fprintf( stderr,... |
class Goal < ApplicationRecord
has_many :goals
has_and_belongs_to_many :plans
validates :title, presence: true
validates :description, presence: true
validates :priority, presence: true
validates :progress, presence: true
validates :complexity, presence: true, inclusion: { in: %w(Shared Simple) }
def ... |
/*
* Copyright 2014-2020 Netflix, 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
*
* Unless required by applicable law or agr... |
// (c) 2004 Andreas Harth
package org.semanticweb.yars.nx;
import java.io.Serializable;
/**
* An RDF node (resource, bnode or literal). Should be immutable.
*
* We assume that we get the data in Unicode (as in RDF 1.1), so no
* escaping is necessary.
*
* @author Andreas Harth
*/
public interface Node extends... |
---
layout: article
language: 'el-gr'
version: '4.0'
title: 'Phalcon\Text'
---
# Abstract class **Phalcon\Text**
[Source on GitHub](https://github.com/phalcon/cphalcon/tree/v{{ page.version }}.0/phalcon/text.zep)
Provides utilities to work with texts
## Constants
*integer* **RANDOM_ALNUM**
*integer* **RANDOM_ALPHA... |
<?php
namespace Amazon\MWS\Feeds\Model;
use Amazon\MWS\Feeds\Feeds_Model;
/**
* PHP Version 5
*
* @category Amazon
* @package MarketplaceWebService
* @copyright Copyright 2009 Amazon Technologies, Inc.
* @link http://aws.amazon.com
* @license http://aws.amazon.com/apache2.0 Apache Lic... |
using System;
using System.Collections.Generic;
using tacos.core.Data;
namespace tacos.emails.models
{
public class SubmissionNotificationViewModel
{
public string RecipientName { get; set; }
public IList<Request> Requests { get; set; }
}
}
|
package com.pavelrekun.rekado.services.payloads
import com.pavelrekun.rekado.data.Schema
import com.pavelrekun.rekado.services.Constants
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.Response
import ru.gildor.coroutines.okhttp.await
object PayloadDownloadHelper {
private val client = OkHttpCl... |
@extends('layouts.global')
@section('global_nav')
@include('nav.guest')
@endsection
@section('global_content')
@yield('content')
@endsection |
package digitalocean
import (
"time"
)
type RegionResponse struct {
Status string `json:"status"`
Regions []*Region `json:"regions"`
}
type Region struct {
Id int `json:"id"`
Name string `json:"name"`
}
func (self *Account) Regions() (regions []*Region, e error) {
regionResponse := &RegionResponse{}
... |
#!/usr/bin/env bash
./build.sh
git commit -am "rebuild at $(date)"
git push |
#!/bin/bash
cd /var/www/html/SlopesProgrammingAPI/
php artisan migrate
php artisan config:cache
|
module API
module V2
class SerializableAllocation < JSONAPI::Serializable::Resource
type "allocations"
attributes :confirmed_number_of_places, :number_of_places, :request_type
belongs_to :accredited_body
belongs_to :provider
end
end
end
|
namespace :restore do
namespace :virology do
NHSx::TargetEnvironment::TARGET_ENVIRONMENTS.each do |account, tgt_envs|
tgt_envs.each do |tgt_env|
prerequisites = [:"login:#{account}"]
desc "Restore the virology data from RESTORE_AT on #{tgt_env} target environment"
task :"#{tgt_env}" ... |
import NextAuth from 'next-auth'
import Providers from 'next-auth/providers'
export default NextAuth({
// Configure one or more authentication providers
providers: [
Providers.Discord({
clientId: process.env.DISCORD_CLIENT_ID,
clientSecret: process.env.DISCORD_CLIENT_SECRET
}),
Provid... |
---
title: "v3.1.0"
linkTitle: "v3.1.0"
date: 2019-07-26
description: >
Kustomize v3.1.0
---
## Extended patches
Since this version, Kustomize allows applying one patch to multiple resources. This works for both Strategic Merge Patch and JSON Patch. Take a look at [patch multiple objects](https://github.com/kuberne... |
package com.github.heyalex.cornerdrawer.example
import android.os.Bundle
import android.view.View
import android.widget.SeekBar
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.AppCompatSeekBar
import com.github.heyalex.cornersheet.behavior.CornerSheetBehavior
import com.google.android.... |
@using MedioClinic.Models.PageTemplates
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@model MedioClinic.Models.PageViewModel<EventTemplateViewModel>
@{
var eventDate = Model.Data.EventLandingPageDto.EventDate;
var year = eventDate.Year;
var month = eventDate.Month;
var day = eventDate.Day;
... |
using System.Collections.Generic;
using System.Linq;
namespace ProjectEuler.Problems.Solutions
{
/// <summary>
/// Highly divisible triangular number
/// <see cref="https://projecteuler.net/problem=12"/>
/// </summary>
public class Problem012 : IProblem
{
public int Id => 12;
p... |
import {
idToDomId,
LocationDependentStateSpaceHandler,
LocationDependentStateSpaceHandlerImpl,
LocationDependentStateSpaceHandlerProps,
SubStateInContext,
} from '@moxb/moxb';
import { Tabs } from 'antd';
import { inject, observer } from 'mobx-react';
import * as React from 'react';
import { render... |
package Demeter::UI::Hephaestus::Absorption;
=for Copyright
.
Copyright (c) 2006-2019 Bruce Ravel (http://bruceravel.github.io/home).
All rights reserved.
.
This file is free software; you can redistribute it and/or
modify it under the same terms as Perl itself. See The Perl
Artistic License.
.
This program i... |
using System;
using JetBrains.Lifetimes;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Plugins.Unity.Tests.Yaml;
using JetBrains.ReSharper.Plugins.Unity.Yaml;
using NUnit.Framework;
namespace JetBrains.ReSharper.Plugins.Unity.Tests.CSharp.Daemon.UsageChecking
{
[TestUnity]
public class UsageInspectio... |
var searchData=
[
['repo158335_7',['repo158335',['../md__r_e_a_d_m_e.html',1,'']]],
['readme_2emd_8',['README.md',['../_r_e_a_d_m_e_8md.html',1,'']]]
];
|
#!/usr/bin/env python3
from agv import agv
import rospy
from geometry_msgs.msg import Twist
from nav_msgs.msg import Odometry
from tf.transformations import euler_from_quaternion
from std_msgs.msg import String
def init():
rospy.init_node("modbus_sterring_node", anonymous=True)
def mobot_cmd_listener(robot):
r... |
package me.giskard.dust.gui.swing;
import java.awt.Color;
import java.awt.Rectangle;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import me.giskard.Giskard;
import me.giskard.GiskardConsts;
public abstract class DustSwingAgent<CompType> implements DustSwingConsts, GiskardConsts.M... |
#--
# Copyright (c) 2018 Marius L. Jøhndal
#
# See LICENSE in the top-level source directory for licensing terms.
#++
module PROIEL
class Dictionary < TreebankObject
# @return [Treebank] treebank that this source belongs to
attr_reader :treebank
# @return [String] language of the source as an ISO 639-3 l... |
// hud_benchtrace.cpp
// Functions for spawning a thread to get a hopcount to a particular ip address and returning the result in a specified
// variable
#ifdef _WIN32
#include "winsani_in.h"
#include <windows.h>
#include "winsani_out.h"
#else
#include <dlfcn.h>
#endif
//TODO: this is entirely windows specific. Conv... |
<?php
namespace Modulus\Hibernate\Exceptions;
use Exception;
class ViewNotSetException extends Exception
{
//
}
|
package org.suggs.adventofcode
import io.kotest.matchers.comparables.shouldBeGreaterThan
import io.kotest.matchers.ints.shouldBeInRange
import io.kotest.matchers.shouldBe
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
import org.suggs.adventofcode.Day02Dive.calculateAimedPositionFrom
import... |
/**
* @file Simulate timer for node
* @author treelite(c.xinle@gmail.com)
*/
import EventEmitter from 'events';
/**
* Day in seconds
*
* @const
* @type {number}
*/
const DAY_IN_SECONDS = 24 * 60 * 60;
/**
* Simulated timer
*
* @class
* @extends EventEmitter
*/
export default class Timer extends EventEmi... |
package com.codeest.geeknews.ui.zhihu.adapter;
import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.support.v7.view.menu.ExpandedMenuView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGrou... |
package org.tresamigos.smvperftest.etl
import org.tresamigos.smvperftest.core._
import org.tresamigos.smv._
object Trnx1Pct extends SmvModule("1 percent sample of the Transactions") {
override def version() = 1;
override def requiresDS() = Seq(PerfTestApp.trnx);
override def run(i: runParams) = {
val srdd... |
[[src]](https://github.com/ghc/ghc/tree/master/compiler/utils/UnVarGraph.hs)
Copyright (c) 2014 Joachim Breitner
A data structure for undirected graphs of variables
(or in plain terms: Sets of unordered pairs of numbers)
This is very specifically tailored for the use in CallArity. In particular it
stores the graph... |
#ifndef __HISMAKER_HH__
#define __HISMAKER_HH__
// C/C++ includes
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <map>
#include <vector>
using namespace std;
// ROOT includes
#include <TFrame.h>
#include <TKey.h>
#include <TApplication.h>
#include <TROOT.h>
#include <TTimer.h... |
/*BHEADER**********************************************************************
* Copyright (c) 2008, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
* This file is part of HYPRE. See file COPYRIGHT for details.
*
* HYPRE is free software; you can redistribute... |
package com.damavis.spark.dataflow
class DataFlowTarget(processor: Processor) extends DataFlowStage(processor) {
override def compute(): Unit = processor.compute(sockets)
override def ->(stage: StageSocket)(
implicit definition: DataFlowDefinition): DataFlowStage = ???
}
|
import express from 'express'
import { updateParentWard, getWards, getAsingleWard} from '../controllers/wards.controller'
const router = express.Router()
router.put('/:id', updateParentWard)
router.get('/', getWards)
router.get('/:id', getAsingleWard)
export default router |
USE BudgetTools;
DECLARE @PeriodID int = 201712;
EXEC dbo.uspUpdatePeriodBalances @PeriodID, 0
GO
DECLARE @PeriodID int = 201611;
SELECT *
FROM dbo.PeriodBalances
WHERE PeriodID = @PeriodID
GO
DECLARE @PeriodID int = 201610;
SELECT BankAccountID, SUM(Balance)
FROM dbo.PeriodBalances
WHERE PeriodID = @PeriodID
GROUP ... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-appoinments',
templateUrl: './appoinments.page.html',
styleUrls: ['./appoinments.page.scss'],
})
export class AppoinmentsPage implements OnInit {
data = [
{
name : 'Salon 1',
... |
import React from 'react';
const Social = () => (
<div className="flex">
<div className="mr2 p1">
<a href="https://github.com/nathanforce" title="Nathan Force's GitHub">
<img
style={{ margin: 0 }}
width="30"
height="30"
src={require('../images/GitHub-Mark-32p... |
<?php
namespace App\Http\Controllers;
use App\Detail_Pembelian;
use App\Pembelian;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Cart;
class DetailPembelianController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public fun... |
import pytest
from mendeleev import Element
def test_scales_exception():
e = Element()
with pytest.raises(ValueError):
e.electronegativity(scale="unknown")
|
using System;
namespace CanvasApi.Client.EnrollmentTerms.Models.Concretes
{
internal class EnrollmentTerm : IEnrollmentTerm
{
public long Id { get; set; }
public string Name { get; set; }
public string SisTermId { get; set; }
public long? SisImportId { get; set; }
publi... |
package service
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"strings"
"sync"
"github.com/gernest/sydent-go/config"
"github.com/gernest/sydent-go/core"
"github.com/gernest/sydent-go/models"
"github.com/gernest/signedjson"
"github.com/labstack/echo"
)
type UnbindOption struct {
Threepid *models.A... |
#[derive(Debug)]
struct User {
username: String
}
fn main() {
// Display Trait
println!("Hello {}", "yuequan");
println!("{:o}", 9);
println!("{:x}", 11);
println!("{:X}", 11);
let str1 = "yuequan";
println!("{:p}", &str1);
println!("{:b}", 2);
println!("{:?}", str1);
let us... |
# Heading Component
`npm i @andy-wynyard/skeleton-react`
`import { H } from '@andy-wynyard/skeleton-react'`
## Props
- `level` which is what heading level this should be (1 - 6).
- `children` what it should say.
- `className` (for specific styling)
`<H level={1}>This is a Title</H>`
|
package org.move.lang.core
import com.intellij.psi.tree.IElementType
import org.move.lang.MoveLanguage
class MoveElementType(debugName: String) : IElementType(debugName, MoveLanguage) |
# noinspection RubyResolve,RubyResolve
require_relative 'test_helper'
require 'logging'
Logging.logger.root.appenders = Logging.appenders.stdout
class ClientTest < Minitest::Test
# Called before every test method runs. Can be used
# to set up fixture information.
def setup
@app = App.new
end
attr_read... |
#include "ResourceMonitor.h"
#if defined(OS_ANDROID)
#include "ResourceMonitorAndroid.h"
#elif defined(OS_LINUX)
#include "ResourceMonitorLinux.h"
#elif defined(OS_MACOSX)
#include "ResourceMonitorMacOSX.h"
#elif defined(OS_WINDOWS_DESKTOP)
#include "ResourceMonitorWindowsXP.h"
#elif defined(OS_WINDOWS_MOBILE)
#includ... |
import React from "react";
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
import { coy } from 'react-syntax-highlighter/dist/esm/styles/prism';
export function CSSBlock(props) {
return (<SyntaxHighlighter language="css" style={coy}>
{props.code}
</SyntaxHighlighter>);
}
export function... |
#ifndef SAT_MODEL_HPP
#define SAT_MODEL_HPP
#include <vector>
#include <cstdint>
namespace sat {
struct Model {
bool operator[](std::size_t i) const noexcept { return assignment[i]; }
std::vector<bool> assignment;
};
} // namespace sat
#endif /* end of include guard: SAT_MODEL_HPP */
|
export declare interface Link {
id?: string;
user_id: string;
url: string;
slug: string;
meta?: {
android_url?: string,
ios_url?: string,
};
updated_at?: string;
inserted_at?: string;
} |
library simple_gql;
import 'dart:convert';
import 'package:http/http.dart';
import 'package:meta/meta.dart';
part 'src/GQLClient.dart';
part 'src/GQLResponse.dart';
|
package com.amplitude.android.utilities
import com.amplitude.common.Logger
import com.amplitude.common.android.LogcatLogger
import com.amplitude.core.Amplitude
import com.amplitude.core.LoggerProvider
class AndroidLoggerProvider() : LoggerProvider {
override fun getLogger(amplitude: Amplitude): Logger {
r... |
import 'package:angel_common/angel_common.dart';
import 'dart:io';
import 'package:angel_file_service/angel_file_service.dart';
import '../models/repo.dart';
export '../models/repo.dart';
AngelConfigurer configureServer() {
return (Angel app) async {
app.use('/api/repos',
new TypedService<Repo>(new JsonF... |
module Internal.BitOps
(
fixedXOR
, repeatingKeyXOR
, hamming
) where
import qualified Data.ByteString as BS
import Data.Bits
import Internal.Uncons
import Data.Monoid
import Data.Word
import Debug.Trace
fixedXOR :: BS.ByteString -> BS.ByteString -> Maybe BS.ByteString
fixedXOR bs1 bs2
| BS.length bs1 /= BS.lengt... |
using UnityEngine;
using GHPlatformerControls;
namespace GHAI {
namespace AIStates {
///<summery>
///</summery>
public class AIWander : AIBase {
private float timeSinceLastWander;
public override bool Action() {
if (AICtrl.StateMachineAnimator.Get... |
-- Name: GetVisualReviewInstanceInfo
-- Schema: posda_files
-- Columns: ['visual_review_reason']
-- Args: ['visual_review_instance_id']
-- Tags: ['signature', 'phi_review', 'visual_review', 'visual_review_new_workflow']
-- Description: Get a list of Series By Visual Review Id and Status
--
select
visual_review_rea... |
import { IPersistenceContainer } from '../../abstracts/persistence.container';
const NULL_VALUE = '_____NULL_VALUE_____';
/**
* This is a container that wraps a browser storage object.
*
* @export
* @class BrowserContainer
* @implements {IPersistenceContainer}
*
* @author Scott O'Bryan
* @since 1.0
*/
expo... |
package com.touchableheroes.drafts.logger;
import android.util.Log;
/**
* Created by asiebert on 27.11.15.
*/
public class Tracer {
public static void method( ) {
// TODO: Stacktrace analysieren.
method( "<unknown>" );
}
/**
* wird beim eintreten in eine methode verwendet.
*
... |
#!/usr/bin/env python3
# Copyright 2017 Project Mahjong. All rights reserved.
#
# 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... |
def print_matrix(matrix):
total_lines = len(matrix)
total_cols = len(matrix[0])
for line in range(0, total_lines):
line_str = ""
for col in range(0, total_cols):
if matrix[line][col] is None:
line_str += " None"
else:
line_str += " %4.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.