text stringlengths 27 775k |
|---|
module XA
module W3AFAdapter
class Tmp
attr_accessor :session, :path, :output_path
def initialize(session, path)
@session = session
@path = path
@output_path = "#{@path}/output"
end
def script_file_path
"#{@path}/w3af_script_#{@session}.w3af"
end
... |
<?php
namespace Drupal\better_social_sharing_buttons\Plugin\Block;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Block\BlockPluginInterface;
use Drupal\Core\Url;
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
/**
* Provides a social sharing buttons block.
*
* @Block(
* id = "better_social_sharing_b... |
module.exports = [
'almende/vis',
'anvaka/ngraph',
'anvaka/VivaGraphJS',
'cpettitt/dagre',
'cytoscape/cytoscape.js',
'dhotson/springy',
'fkling/JSNetworkX',
'GraphAlchemist/Alchemy',
'jacomyal/sigma.js',
'mbostock/d3',
'samizdatco/arbor',
'strathausen/dracula'
];
|
import 'dart:io';
import 'package:academy_app/data/repository/user/i_user_repository.dart';
import 'package:academy_app/model/application_form/application_form.dart';
import 'package:academy_app/model/domain/auth/value_objects.dart';
import 'package:academy_app/model/user_data/user_data.dart';
import 'package:bloc/blo... |
package pinata
import "time"
// PinList -
type PinList struct {
Count int `json:"count"`
Rows []struct {
ID string `json:"id"`
IpfsPinHash string `json:"ipfs_pin_hash"`
Size int `json:"size"`
UserID string `json:"user_id"`
DatePinned time.Time `json:"da... |
#!/bin/sh
set -e
git remote | xargs -n1 git push --all
|
class Brigade < ActiveRecord::Base
has_many :deployed_applications
has_many :applications, through: :deployed_applications
has_and_belongs_to_many :users
validates :name, presence: true
validates :point_of_contact_address, presence: true
def to_s
name
end
end
|
Rails.application.routes.draw do
get 'example' => 'examplegem/example#index'
end
|
// This is a generated file (see the discoveryapis_generator project).
// ignore_for_file: unnecessary_cast
library googleapis.servicebroker.v1;
import 'dart:core' as core;
import 'dart:async' as async;
import 'dart:convert' as convert;
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;... |
import os
from .cloudfile import CloudFile
def save(dir: str):
cloudf = CloudFile()
if os.path.isfile(dir):
cloudf.save_file(dir)
return
assert os.path.isdir(dir)
for item in os.listdir(dir):
save(os.path.join(dir, item))
|
package org.smartx.redis.template;
import org.springframework.stereotype.Component;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
/**
* <b><code>HashRedisTemplate</code></b>
* <p>
* Hashes 数据结构的常用方法封装,Hashes不宜存放过大... |
import { mkdirSync, promises as fs } from 'fs';
const GHOST_TMP = '.ghost/tmp';
export const writeJson = async (
subFolderName: string,
data: { slug: string }
) => {
try {
mkdirSync(`${GHOST_TMP}/${subFolderName}`, { recursive: true });
} catch (error) {}
try {
await fs.writeFile(
`${GHOST_TM... |
-module(spts_live_SUITE).
-author('elbrujohalcon@inaka.net').
-include_lib("mixer/include/mixer.hrl").
-mixin([
{spts_test_utils,
[ init_per_suite/1
, end_per_suite/1
]}
]).
-export([ all/0
, init_per_testcase/2
, end_per_testcase/2
]).
-export([ serpe... |
{-# LANGUAGE DataKinds #-}
import Data.Proxy (Proxy)
import GHC.Base (Type)
import GHC.TypeLits (KnownNat)
foo :: (KnownNat n) => Proxy n -> [Type] -> Type
foo = undefined
|
namespace Sequin.Integration.Configuration
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Discovery;
using FluentAssertions;
using Infrastructure;
using Pipeline;
using Sequin.Configuration;
using Xunit;
public class OptionsTests
{
... |
import * as React from "react";
import { time } from '../timer';
export const Timer = (props: TimerProps) => (
<h3>{time.secondsToString(props.elapsedSeconds)}</h3>
);
export interface TimerProps {
elapsedSeconds: number;
}
|
package cli
import (
"errors"
"fmt"
"os"
"regexp"
"strconv"
"strings"
"time"
"github.com/aws/amazon-ecs-cli-v2/cmd/ecs-preview/template"
"github.com/aws/amazon-ecs-cli-v2/internal/pkg/archer"
"github.com/aws/amazon-ecs-cli-v2/internal/pkg/cli/group"
"github.com/aws/amazon-ecs-cli-v2/internal/pkg/store"
"g... |
import * as React from 'react'
import * as TestRenderer from 'react-test-renderer'
import { LinearProgress } from './LinearProgress'
describe('Circular Progress components', () => {
describe('rendering variants', () => {
test('should match to snapshot - empty LinearProgress', () => {
const component = Test... |
package com.kafka.demo.controller;
import com.kafka.demo.entity.JsonDTO;
import com.kafka.demo.producer.JsonProducer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springf... |
import {IComponentConfiguration} from "../../Component";
export interface IRouteInfoKey {
key: string;
description: string;
}
export interface IRoutePath {
sequenceKey: string;
startKey: string;
stopKey: string;
infoKeys: IRouteInfoKey[];
}
export interface IRouteConfiguration extends ICompon... |
import withinRange from './within-range';
export default function exponentialRatio(value) {
const ratio = (Math.exp(value) - 1) / (Math.E - 1);
return withinRange(ratio, 0, 1);
}
|
package com.detmir.kkppt3.views
import android.content.Context
import android.util.AttributeSet
import android.util.Log
import android.view.LayoutInflater
import android.widget.FrameLayout
import android.widget.TextView
import com.detmir.kkppt3.R
import com.detmir.recycli.annotations.RecyclerItemStateBinder
import com... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Question;
class QuestionController extends Controller
{
public function list()
{
$questions = Question::withCount('answers')->orderBy('created_at', 'desc')->get();
return view('questions.list', [
'qu... |
Introduction
------------
This script contains fundamental image manipulation actions.
It is based on Pillow for Python.
## Installation
Install via pip:
pip install os-image-handler
## Usage Example
```python
from os_image_handler import image_handler as ih
# create a background canvas with a back... |
# frozen_string_literal: true
class Analysis::CodeHistory < Analysis::QueryBase
arel_tables :activity_fact, :all_month
def execute
AllMonth.select([month, select_columns]).joins(joins_clause).where(within_date).group(month).order(month)
end
private
def start_date
truncate_date(@start_date)
end
... |
<?php
namespace Syspons\Sheetable\Exceptions;
use Exception;
use Illuminate\Http\JsonResponse;
use Maatwebsite\Excel\Validators\ValidationException;
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
class ExcelImportValidationException extends Exception
{
/**
* The recommended response to s... |
## 在线 IJulia 笔记本
- [JuliaBox](https://www.juliabox.com)
- [Jupyter](https://try.jupyter.org)
## 文本编辑器
- [Juno](http://junolab.org)
- [Emacs](https://www.gnu.org/software/emacs) \ [Julia
模式](https://www.emacswiki.org/emacs/Julia)
- [vim](https://www.vim.org) \ [Julia
模式](https://github.com/JuliaLang/julia-vim)... |
<?php
if (@$_GET['halaman']== 'tampilpengguna') {
include '../Pengguna/pengguna.php';
}
elseif (@$_GET['halaman']== 'inputpengguna') {
include '../Pengguna/inputpengguna.php';
}
elseif (@$_GET['halaman']== 'editpengguna') {
include '../Pengguna/editpengguna.php';
}
elseif (@$_GET['... |
num = rand(10)
puts "Guess a number from 0 to 9"
while true
guess = gets.to_i
if guess == num
puts "Correct"
break
elsif guess < num
puts "Too low"
elsif guess > num
puts "Too high"
end
end
|
using System.Collections.Generic;
using Monik.Common;
using Monik.Service;
using Moq;
using Moq.Language.Flow;
using NUnit.Framework;
namespace Monik.Test
{
[TestFixture]
public class CacheLogTests : CacheBaseTests<CacheLog, Log_>
{
public override CacheLog CreateCache(IRepository repository, ICac... |
export const FETCH_USER_INIT_ACTION = "FETCH_USER_INIT_ACTION"
export function fetchusers() {
return {
type: FETCH_USER_INIT_ACTION
}
} |
package eu.caraus.appsflastfm.ui.search.artists
import eu.caraus.appsflastfm.common.extensions.failed
import eu.caraus.appsflastfm.common.extensions.loading
import eu.caraus.appsflastfm.common.extensions.subOnIoObsOnUi
import eu.caraus.appsflastfm.common.extensions.success
import eu.caraus.appsflastfm.common.retrofit.... |
# Example Attack
**Note:** Keep in mind that each command outlined below can be supplied
via YAML file, making it significantly easier to manage complex lockout
configurations.
## 1. Install BFG
```bash
pip3 install bl-bfg
```
## 2. Select an attack module
View them by running this command. A section titled "Brute... |
module.exports = {
sessionSecret: "sessionSecret",
pwdSecret: "pwdSecret",
};
|
package com.example
import org.http4k.security.AccessToken
object TokenChecker {
fun check(accessToken: AccessToken) = accessToken.value.startsWith("ACCESS_TOKEN")
}
|
require 'minitest/autorun'
require 'crg_scoreboard_extractor'
class TestBout < Minitest::Test
include CrgScoreboardExtractor
def setup
@bout = Bout.new(File.open('test/fixtures/scoreboard-0-now.xml'))
end
def test_jam
jam = Clock.new(82300, '1', true)
assert_equal @bout.jam, jam
end
def test... |
---
company-name: "Viewable Media"
domain: viewablemedia.com
home: http://viewablemedia.com/
privacy-policy: http://www.visiblemeasures.com/privacy-policy/
owned-by: "Visible Measures"
---
|
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
#
# This sample code is a port of
# gstreamer/tests/examples/stepping/framestep1.c. It is licensed
# under the terms of the GNU Library General Public License, version
# 2 or (at your option) later.
#
# Copyright (C) 2013 Ruby-GNOME2 Project Team
#
# This library is free sof... |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
cd $(dirname $(realpath $0))
nvm run --silent index.js
|
require('../../spec_helper')
const cp = require('child_process')
const os = require('os')
const info = require(`${lib}/tasks/info`)
const xvfb = require(`${lib}/exec/xvfb`)
const spawn = require(`${lib}/exec/spawn`)
describe('exec spawn', function () {
beforeEach(function () {
this.sandbox.stub(process, 'exit'... |
#ifndef CHIOP_INTERFACE_HPP
#define CHIOP_INTERFACE_HPP
#include "hiop_defs.hpp"
#include "hiopInterface.hpp"
#include "hiopNlpFormulation.hpp"
#include "hiopAlgFilterIPM.hpp"
/** Light C interface that wraps around the mixed-dense nlp class in HiOp. Its initial motivation
* was to serve as an interface to Julia
*/
... |
A brainfuck interpreter written in brainfuck, compiled using the
`brainfuck` macro. See the parent directory.
|
# Scripts for creating a private cluster across datacenters on Azure
This folder has a set of scripts to create a cluster of identical virtual
machines (VMs) in different datacenters on Microsoft Azure and to connect
these VMs through Azure's vitual network (VNets) peering.
./sbin: scripts to use Azure CLI
./utils: ... |
import * as React from "react"
import { createMuiTheme, CssBaseline } from "@material-ui/core"
import { MuiThemeProvider } from "@material-ui/core/styles"
import * as colors from "@material-ui/core/colors"
import { ThemeOptionsProvider, WithThemeOptions } from "./ThemeOptionsProvider"
interface Props {
children: Re... |
package io.byzaneo.initializer.event;
import io.byzaneo.initializer.bean.Project;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class ProjectIntegrationEvent extends ProjectEvent {
private static final long serialVersionUID = 1478305394105817966L;
publ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Group;
use App\User;
use App\Permission;
use App\Role;
use App\Http\Requests\User\SaveGroup as SaveGroupRequest;
use App\Http\Requests\User\SaveUser as SaveUserRequest;
use App\Http\Requests\User\SaveRole as SaveRoleRequest;
class UserControl... |
package org.wuuijkl.wrpc.server;
import junit.framework.TestCase;
import org.wuuijkl.wrpc.Request;
import org.wuuijkl.wrpc.ServiceDescriptor;
import org.wuuijkl.wrpc.utils.ReflectionUtils;
import java.lang.reflect.Method;
public class ServiceManagerTest extends TestCase {
ServiceManager sm = new ServiceManager()... |
import 'package:gbuagenda/utils/colours.dart';
import 'package:gbuagenda/utils/theme_data.dart';
import 'package:flutter/material.dart';
class ClassChip extends StatelessWidget {
final String text;
const ClassChip({this.text});
@override
Widget build(BuildContext context) {
if (text == "G-0") {
retu... |
#!/bin/ash
#
# If we have key's then import them
#
export GNUPGHOME=/opt/fileserver/gpg
KEYRING=$GNUPGHOME/secring.gpg
KEYS=/opt/fileserver/keys
SECRET=$KEYS/secret.gpg
PUBLIC=$KEYS/public.gpg
if [ -d "$KEYS" -a -f "$SECRET" -a -f "$PUBLIC" ]
then
mkdir -p $GNUPGHOME
chmod 700 $GNUPGHOME
if [ ! -f "$KEYR... |
CREATE SCHEMA pov;
CREATE LANGUAGE plperl;
CREATE LANGUAGE plpgsql;
\i sql/schema/pov/functions/_format_type.sql
\i sql/schema/pov/functions/tsort.pl
\i sql/schema/pov/views/pg_all_objects_unique_columns.sql
\i sql/schema/pov/views/pg_depend_remapped.sql
\i sql/schema/pov/views/pg_depend_oid_concat.sql
\i sql/schema/po... |
namespace RD.CanMusicMakeYouRunFaster.FakeResponseServer.UnitTests.ControllerTests
{
using NUnit.Framework;
using FakeResponseServer.Controllers;
using FluentAssertions;
using System.Collections.Generic;
using System;
using DbContext;
using Microsoft.EntityFrameworkCore;
using System.Li... |
public class ClaseBoolean{
public static void main(String[] args) {
// Valores de true y false
Boolean positivo = Boolean.TRUE;
Boolean negativo = Boolean.FALSE;
// COMPUERTAS LOGICAS
System.out.println("true and false = "+ Boolean.logicalAnd(positivo, negativo));
S... |
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.OData.Query;
using school_management_system_API.Models;
using school_management_system_API.Services;
using System;
namespace school_management_system_API.Controllers
{
[EnableCors(... |
require_relative '../../../automated_init'
context "Equality" do
context "Attribute List" do
context "Map" do
context "Equal" do
control = Schema::Controls::Schema.example
compare = Schema::Controls::Schema::Equivalent.example
control_name = :some_other_attribute
compare_na... |
#!/bin/bash
# (C) Copyright NuoDB, Inc. 2017-2018
#
# This source code is licensed under the MIT license found in the LICENSE
# file in the root directory of this source tree.
export NUOCA_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
export LOGSTASH_HOME=${NUOCA_HOME}/extern/logstash
export NUODB_AGENT... |
import * as React from 'react';
import { Button } from '../../../common/button/button';
import { generateKeyPair, KeyPairData } from '../../../../lib/keygen';
import { P } from '../../../common/typography/typography';
import styles from './keypair-generator.module.scss';
interface KeyPairGeneratorState {
generate... |
import { Dimensions } from "react-native";
const Dim = {
WindowWidth : Dimensions.get('window').width,
WindowHeight : Dimensions.get('window').height,
ScreenWidth : Dimensions.get('screen').width,
ScreenHeight : Dimensions.get('screen').height
}
export default Dim; |
import { PlatformConfig } from "homebridge";
type RuleSet = {
path: string;
value: string;
};
type Filter = RuleSet[];
export interface JellyfinSensor {
name: string;
filters: Filter[];
// Added by extend config
uuid: string;
sn: string;
}
export interface JellyfinServer {
port: number;
address:... |
% vim: ft=prolog
% typing relies on occurs check
:- set_prolog_flag(occurs_check, true).
% name(x) is variable reference
% proc(x, b) is λx.b (i.e., function with parameter x and body b)
% func(t1, t2) is the function type t1 → t2
% invoke(f, a) is f of a (i.e., f applied to a)
% % for cleaner syntax, use
% :- op(70... |
<#
Upload user interested file as additional log information to the current timeline record.
The file shall be available for download along with task logs.
##vso[task.uploadfile]local file path
Example:
##vso[task.uploadfile]c:\additionalfile.log
#> |
// Copyright 2013 Traceur Authors.
//
// 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 ... |
require 'spec_helper'
RSpec.describe NewspaperWorks::TitleInfoPresenter do
let(:solr_document) { SolrDocument.new(attributes) }
let(:attributes) do
{
'publication_id_ssi' => 'foo',
'publication_title_ssi' => 'bar'
}
end
subject { Hyrax::NewspaperPagePresenter.new(solr_document, nil) }
des... |
version=0.1.0
rm ./sender
echo "🟩 Downloading agent"
wget https://github.com/senderchan/go-sender/releases/download/v${version}/sender_${version}_Linux_x86_64.tar.gz
tar -zxvf sender_${version}_Linux_x86_64.tar.gz
rm -f sender_${version}_Linux_x86_64.tar.gz
chmod +x ./sender
mv -f ./sender /usr/bin
echo "\n\n\n\n"
... |
module FrontendRescue
class Error < StandardError
def initialize(name, user_agent, message, trace, params)
@trace = trace.split("\n") rescue []
@user_agent = user_agent
@params = params || {}
super "Uncaught #{name} Error: #{message}"
end
def backtrace
["User Agent: #{user_a... |
<?php
namespace TrackerBundle\Repository;
use BlogBundle\Entity\Post;
use Doctrine\ORM\EntityRepository;
use TrackerBundle\Entity\Record;
use TrackerBundle\Entity\RecordRepository;
class DoctrineRecordRepository extends EntityRepository implements RecordRepository
{
/**
* {@inheritdoc}
*/
public f... |
// Created by Tommy Bazar. No rights reserved :)
// Special credits go to : Temaran (compute shader tutorial), TheHugeManatee (original concept, supervision)
// and Ryan Brucks (original raymarching code).
#include "Rendering/RaymarchTypes.h"
FString GetDirectionName(FCubeFace Face)
{
switch (Face)
{
case FCubeFa... |
node.default['rbenv']['rubies'] = [
'2.0.0-p247'
]
node.default['rbenv']['gems'] = {
'2.0.0-p247' => [
{ 'name' => 'bundler' }
]
}
|
<?php
namespace App\Account\Services;
use App\Account\Contracts\AccountCreatorable;
use Illuminate\Support\Facades\Hash;
class AccountCreator implements AccountCreatorable
{
/**
* @param string $userName
* @param string $userEmail
* @param string $password
* @param string $accountName
*... |
import * as React from 'react';
import { SidebarStyle } from '../utils/styles';
type SidebarProps = {
guilds: any[];
}
export const Sidebar = (props: SidebarProps) => {
return <SidebarStyle></SidebarStyle>
} |
# iView-project
This project is build for Vue.js 2 + vue-router + webpack2 + iView 3, just install and run.
## Install
```bush
// install dependencies
npm install
```
## Run
### Development
```bush
// For the first time, run init to create index.html
npm run init
npm run dev
```
### Production(Build)
```bush
npm run ... |
# Circuit - Repeat 3x
30sec Forearm Plank
30sec Hand Plank
30sec Mountain Climbers
30sec Bicycle Crunches
30sec Raised Toe Touches
30sec Russian Twists
30sec Crunches
|
<?php
namespace GeneralServicer\View\Helper;
use Zend\View\Helper\AbstractHelper;
/**
* $this calss displays a thumbnail for the uploaded documents
* @author otaba
*
*/
class GeneralUploadedDocThumbnailHelper extends AbstractHelper
{
public function __invoke($mimeType){
... |
---
title: _unlock
ms.date: 11/04/2016
api_name:
- _unlock
api_location:
- msvcrt.dll
- msvcr100.dll
- msvcr110_clr0400.dll
- msvcr110.dll
- msvcr80.dll
- msvcr120.dll
- msvcr90.dll
- msvcr120_clr0400.dll
api_type:
- DLLExport
topic_type:
- apiref
f1_keywords:
- unlock
- _unlock
helpviewer_keywords:
- unlock function
-... |
// 2017-12-01
// Copyright (c) 2017 Nimzozo
/**
* Syntax highlighting for web languages.
*/
window.webCode = window.webCode || (function () {
"use strict";
var codes = {};
/**
* CSS class names and ids.
*/
var css = {
attribute: "webCode-html-attribute",
string: "webCode-h... |
#!/bin/bash
# Security Test case
# TC_CR2.1_1: Authorization enforcement
#
set -e
. ../../lib/common-lib
. ../../lib/common-variables
TEST_CASE_NAME="TC_CR2.1_1: Authorization enforcement"
preTest() {
check_root
check_pkgs_installed "sudo"
# Create the users for the test case
create_test_user $USER1... |
class XmcEndSystem {
[string]$Policy
[string]$FilterId
[int]$LoginLatPort
[string]$RegistrationType
[string]$AuthenticationType
[string]$HostName
[string]$LastAssessmentHashCodeChangeTime
[string]$StartAssessmentWarningTime
[string]$AllAuthenticationTypes
[string]$LastScanTime
... |
---
firstName: "diana"
lastName: "kim"
position: "guildmaster"
order: 3
--- |
'use strict';
(function(){
class RiskTableComponent {
constructor($scope, Entry, Coverage, $filter, $timeout, $state) {
$scope.entry = Entry;
$scope.isDisabled = $scope.entry.isDisabled();
$scope.businessProcesses = [];
$scope.risks = [];
$scope.subRisks = [];
$scope.selectedRisks = [];... |
namespace SoftJail.DataProcessor.ImportDto
{
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
public class ImportDepartmentsCellsDTO
{
[Required]
[JsonProperty("Name")]
[MinLength(GlobalConstants.DepartmentNameMinLength)]
[MaxLength(GlobalConstants.De... |
## German-Vocab app Backend (in Go)
This German-Vocab app contains a list of words for my reference and learning.
Made with GORM, JWT, PostgreSQL
|
# View helper for dashboard
module DashboardsHelper
# Renders the font icon depending on the project privacy state
# @param [Project] project
def project_icon(project)
klass = ["icon"]
klass << if project.privacy
"icon-lock"
else
["mini-icon", "mini-icon-public"]
... |
require 'test_helper'
class BackstackTest < ActionDispatch::IntegrationTest
# My hackpologies, this is just dizzying. Hard to see patterns to
# spot errors.
def test_backstack_meandering
# DRYer lambdas
aback = lambda {|x| ['a#back[href=?]', x.to_s] } # testing backstack_link
nolink = lambda {|x| ... |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
-- There are edge cases that we don't need to consider
module Day22 where
import Control.Applicative (liftA2)
import Control.DeepSeq (NFData (..), rwhnf)
import Data.Bits (shiftL)
impor... |
import 'package:flutter/cupertino.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:schoolexam_correction_ui/blocs/language/language.dart';
typedef TranslationCallback = String Function(AppLocalizations dictionary);
class LanguageCubi... |
---
title: Bragg Edge
post: "<i class='fa fa-battery-full'></i> "
pre: "- "
---
**Notebook name**: bragg_edge.ipynb
## Description
## Start the notebook
If you need help accessing this notebook, check the [How To > Start the python
notebooks](/en/tutorial/how_to_start_notebooks) tutorial.
## How to Use It?
### S... |
# Licenses
## Common Javascript
MIT or Apache 2.0
## Android version
MIT or Apache 2.0
## iOS/macOS version
MIT only
based on Phonegap-SQLitePlugin by @davibe (Davide Bertola <dade@dadeb.it>) and @joenoon (Joe Noon <joenoon@gmail.com>)
## Windows version
MIT or Apache 2.0
### SQLite3-WinRT
by @doo (doo GmbH)... |
use prelude::*;
/// MetaItem builder.
pub struct MetaItemBuilder {
node: Option<MetaItem>,
}
impl MetaItemBuilder {
/// Create a metaitem builder.
pub fn new() -> MetaItemBuilder {
MetaItemBuilder { node: None }
}
/// Get meta words.
pub fn get_words(&self) -> Vec<String> {
l... |
import * as React from "react";
import AdditionalAnswer from "./additional-answer";
import AnswerOptionText from "./answer-option-text";
import AnswerOptionSelect from "./answer-option-select";
import AnswerOptionMultiSelect from "./answer-option-multi-select";
import { QuestionType } from "./../utils/constants";
con... |
(ns Algorithms.PriorityQueue
(:use [Algorithms.heap]))
(defprotocol PriorityQueue
(insert [Q val])
(peek [Q])
(pop [Q])
(set-val [Q idx val]))
(defrecord MaxPriorityQueue [heap])
(extend-type MaxPriorityQueue
PriorityQueue
(insert [Q val]
(MaxPriorityQueue. (max-heap-insert (:heap Q val))))
(peek... |
;;(ql:quickload :cl-telegram-bot)
;;(ql:quickload :utility)
;;;Architecture of the cl-telegram bot
;;;start a spin loop in a subthread which requests updates from Telegram,
;;;and dispatches on those updates.
(defpackage #:the-bot
(:use :cl :cl-telegram-util))
(in-package #:the-bot)
;;blindly coding
;;planned feat... |
package io.ftauth.ftauth_storage_android
import android.content.Context
import android.content.SharedPreferences
import androidx.security.crypto.EncryptedSharedPreferences
import androidx.security.crypto.MasterKeys
enum class KeyStoreExceptionCode(val code: String) {
ACCESS("KEYSTORE_ACCESS"),
KEY_NOT_FOUND("... |
//! The P2P public interface.
use ic_types::{artifact::Artifact, messages::SignedIngress};
use crate::artifact_manager::OnArtifactError;
/// This is an event handler that can be used to submit an
/// ingress message to P2P event channels for processing. It encapsulates the
/// given ingress message in a *Gossip* arti... |
/*
* Copyright (c) 2021 Samsung Electronics Co., Ltd. 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... |
// !CHECK_TYPE
fun arrayAccessRHS(a: Int?, b: Array<Int>) {
b[0] = a!!
checkSubtype<Int>(a)
}
fun arrayAccessLHS(a: Int?, b: Array<Int>) {
b[a!!] = a
checkSubtype<Int>(a)
}
|
require 'rails_helper'
describe Auth::SignOut do
include_context 'with interactor'
let(:initial_context) do
{
user: user,
everywhere: everywhere,
token: 'token'
}
end
let(:user) { create :user }
before do
create :refresh_token, user: user
create :refresh_token, token: 'oth... |
package main
import (
"fmt"
)
// START OMIT
type Sounder interface {
Sound() string
}
type Dog struct{}
func (d Dog) Sound() string {
return "Woof"
}
func AnimalSound(s Sounder) string {
return s.Sound()
}
func main() {
d := Dog{}
fmt.Println(AnimalSound(d))
}
// END OMIT
|
# How did Rebekah solve the problem of Esau being a hairy man, and Jacob a smooth man?
Rebekah put Esau’s clothes on Jacob and put goatskins upon his hands and neck.
|
package deps.dsl
import org.gradle.api.artifacts.Dependency
import org.gradle.api.artifacts.dsl.DependencyHandler
/**
* Adds dependencies to the 'api' configuration.
*
* @param dependencyNotations notations for the dependencies to be added.
* @return The dependencies.
*
* @see [DependencyHandler.add]
*/
fun De... |
require 'savon'
require 'pp'
#ENV['http_proxy'] = "http://127.0.0.1:8888"
Savon.configure do |config|
config.log = true
end
HTTPI.log = true
client = Savon::Client.new do
http.auth.basic "yeti@rallydev.com","RallyDev"
http.auth.ssl.verify_mode = :none
wsdl.document = "https://trial.rallydev.com/slm/webservi... |
/*Q3 - Program to use a function to find the highest value of 3 numbers and return to main*/
#include <stdio.h>
/*Declare function prototypes*/
int highest (int, int, int);
main()
{
int a,b,c;
int result;
printf("Input number a:\n");
scanf("%d",&a);
printf("Input number b:\n");
scanf("%d",&b);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.