text
stringlengths
27
775k
# Azure Devops [Azure Devops] is configured with a `azure-pipelines.yml` file in your project. ````yaml resources: containers: - container: build-tools image: buildtool/build-tools:latest jobs: - job: build_and_deploy pool: vmImage: 'Ubuntu 16.04' container: build-tools steps: - script: | b...
package edu.mitin.playground.results.repository; import edu.mitin.playground.inter.tournaments.entity.Tournament; import edu.mitin.playground.results.entity.Round; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; public interface RoundRepository extends JpaRepository<Round, Long> ...
require 'multi_json' require 'chatter/errors' module Chatter module Codecs module JSON class JSONDecodeError < Chatter::CodecError def initialize(input, error) @input = input @error = error super("could not parse #{input} as JSON") end attr_reader :inp...
import ClubhouseController from 'clubhouse/controllers/clubhouse-controller'; export default class TrainingPeopleTrainingCompletedController extends ClubhouseController { queryParams = [ 'year' ]; }
import importlib.util from os import path from pathlib import Path from types import ModuleType import pytest from airflow import DAG from airflow.utils.dag_cycle_tester import test_cycle DAGS_DIRECTORY = Path(__file__).parent / ".." / ".." / "dags" DAGS_PATHS = DAGS_DIRECTORY.glob("**/*.py") def import_module(modu...
/** @jsx jsx */ import { jsx, InterpolationWithTheme } from '@emotion/core'; import { Component, FC } from 'react'; import RadioIcon from '@atlaskit/icon/glyph/radio'; import CheckboxIcon from '@atlaskit/icon/glyph/checkbox'; import { themed } from '@atlaskit/theme/components'; import { gridSize } from '@atlaskit/them...
extern crate crossbeam; extern crate failure; extern crate num_cpus; extern crate regex; extern crate reqwest; extern crate select; extern crate threadpool; extern crate rayon; use failure::Error; use select::document::Document; use std::fs::File; use std::path::Path; // use std::io::prelude::*; use select::predicate:...
import pandas as pd df = pd.read_csv("./data/dataset.txt",sep="/", names=["row"]).dropna() print(df.head(7))
package jdregistry.client.internal.client import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper import com.fasterxml.jackson.module.kotlin.readValue import jdregistry.client.api.auth.Authenticate import jdregistry.client.api.auth.DockerRegistryAuthenticatio...
using System.Collections.Generic; using UnityEngine; public class LocalizationManager : MonoBehaviour { protected LocalizationManager() { } private static LocalizationManager _instance; private static Dictionary<string, LocalizationLanguage> localizationLists; public LocalizationManager GetInstance...
import { IssueCode } from './cspell.cache'; describe('Cache', () => { test('IssueCode', () => { const codes = [IssueCode.UnknownWord, IssueCode.ForbiddenWord, IssueCode.KnownIssue]; const sum = codes.reduce((a, b) => a + b, 0); expect(sum).toBe(IssueCode.ALL); }); });
package com.gnopai.ji65.config; import com.gnopai.ji65.parser.TokenStream; import com.gnopai.ji65.scanner.Token; import com.gnopai.ji65.scanner.TokenType; import lombok.Value; import java.util.ArrayList; import java.util.List; import java.util.Map; import static com.gnopai.ji65.scanner.TokenType.*; import static jav...
/** * Houses artifacts that help build data responses from Jira source system. * * @author KFK884 * */ package com.capitalone.dashboard.datafactory.jira;
make clean make html cp -rT _build/html ../maps/ make latexpdf
if [ -z "$1" ]; then echo '请添加描述' exit 0 fi git add * git commit -m "$1" git pull git push
#01. Records' Count SELECT COUNT(`id`) AS 'count' FROM wizzard_deposits; #02. Longest Magic Wand SELECT MAX(`magic_wand_size`) AS 'longest_magic_wand' FROM `wizzard_deposits`; #03. Longest Magic Wand per Deposit Groups SELECT `deposit_group`, MAX(`magic_wand_size`) AS 'longest_magic_wand' FROM `wizzard_deposits`...
namespace AspNetCore.Mvc.Extensions.FluentMetadata { public class PersonConfig : ModelMetadataConfiguration<Person> { public PersonConfig() { Configure(p => p.Name).Required(); Configure<string>("Name").Required(); } } public class Person { p...
googlechromepkg) name="Google Chrome" type="pkg" # # Note: this url acknowledges that you accept the terms of service # https://support.google.com/chrome/a/answer/9915669 # downloadURL="https://dl.google.com/chrome/mac/stable/accept_tos%3Dhttps%253A%252F%252Fwww.google.com%252Fintl%252Fen_ph...
#!/bin/bash declare -a files files[1]="" files[3]="52" files[5]="54" files[7]="56" for i in "${files[@]}" do gcc -shared -Wall -fPIC \ `$1/bin/mod9.13 --cflags --libs` \ `pkg-config --cflags glib-2.0` \ -I/usr/include/python2.7 \ cuser_form${i}.c cuser_form${i}_wrap.c \ -o $1/modlib/modeller/_cuser_form${i...
import * as assert from '@aws-cdk/assert'; import * as lambda from '@aws-cdk/aws-lambda'; import * as ses from '@aws-cdk/aws-ses'; import * as cdk from '@aws-cdk/core'; import { EmailReceiver } from '../../src'; let stack: cdk.Stack; beforeEach(() => { stack = new cdk.Stack(); }); test('EmailReceiver', () => { co...
#!/usr/bin/env bash curl -LO 'http://nlp.stanford.edu/data/glove.840B.300d.zip' unzip glove.840B.300d.zip rm glove.840B.300d.zip python glove2h5.py
ddnsclient ======== [![Build Status](https://travis-ci.org/stumoss/ddnsclient.svg?branch=master)](https://travis-ci.org/stumoss/ddnsclient) Dynamic DNS updater which currently supports the ZoneEdit DNS service.
#!/bin/bash -e #http://www.apache.org/licenses/LICENSE-2.0.txt # # #Copyright 2016 Intel Corporation # #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/LICENS...
package twitter4j import org.assertj.core.api.Assertions.assertThat import org.junit.Ignore import org.junit.Test class BookmarksTest { private val twitter2 by lazy { V2TestUtil.createOAuth2TwitterInstance() } private val myId by lazy { val me = twitter2.getMe().users[0] // println(me) ...
package cz.levinzonr.spotie.presentation.screens.playlists import cz.levinzonr.spotie.domain.models.Playlist sealed interface PlaylistScreenEvent { data class PlaylistClick(val item: Playlist): PlaylistScreenEvent data class SearchQueryChange(val value: String): PlaylistScreenEvent }
<?php // +---------------------------------------------------------------------- // | AndOrTest.php [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2016-2017 limingxinleo All rights reserved. // +-----------------------------------------------...
CREATE TABLE `customer` ( `customer_id` bigint(20) NOT NULL AUTO_INCREMENT, `created` datetime NOT NULL, `last_updated_by` varchar(25) DEFAULT NULL, `updated` datetime NOT NULL, `dob` datetime NOT NULL, `email` varchar(50) NOT NULL, `first_name` varchar(25) NOT NULL, `last_name` varchar(25) NOT ...
var test = require("testling") , StreamStore = require("..") , store = StreamStore() test("stream store can get", function (t) { var stream = store.get("foo") t.ok(stream.write && stream.end, "stream is not stream") t.end() }) test("stream store can set", function (t) { var bar = {} store....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SongVisualizationApp.Util { class Utils { public static string GetTimeString(double secondsPassed) { int minutes = (int) Math.Floor(secondsPassed / 60); int seconds = (int) Math.F...
{-# Language MultiParamTypeClasses #-} {-# Language TypeSynonymInstances #-} {-# Language FlexibleInstances #-} -------------------------------------------------------------------------------- -- | -- Module : Geometry.SetOperations.Merge -- Copyright : (C) 2017 Maksymilian Owsianny -- Licen...
#!/bin/bash docker kill $(docker ps -a --filter name=kafka | grep -i kafka | cut -d " " -f1) docker rm $(docker ps -a --filter name=kafka | grep -i kafka | cut -d " " -f1)
import { APIGatewayProxyResult } from 'aws-lambda'; class PaymentResponse implements APIGatewayProxyResult { readonly headers = { 'Access-Control-Allow-Origin': '*' }; // CORS Support readonly statusCode: number; readonly body: string; constructor(statusCode: number, body?: string) { this.statusCode = s...
exports.up = function(knex, Promise) { return knex.schema.createTable(`provinces`, table => { table.increments(`id`) table.datetime(`registered_at`, { precision: 6 }).defaultTo(knex.fn.now(6)) table.datetime(`updated_at`, { precision: 6 }).defaultTo(knex.fn.now(6)) table.string(`name`).notNullable() table.bi...
// @flow import reducer from './reducer' export { default as Breadcrumb } from './components/Breadcrumb' export { default as InvoiceFormContainer } from './containers/InvoiceFormContainer' export { default as InvoiceListContainer } from './containers/InvoiceListContainer' export * from './actions' export default reduc...
import { expect } from 'chai' import * as request from 'supertest' import * as config from 'config' import 'test/routes/expectations' import { Paths } from 'dashboard/paths' import { app } from 'main/app' import * as idamServiceMock from 'test/http-mocks/idam' import * as claimStoreServiceMock from 'test/http-mocks/...
package com.appmanager.android.app; import android.os.Bundle; import android.text.Html; import android.text.util.Linkify; import android.util.TypedValue; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.widget.LinearLayout; import android.widget.TextView; impo...
--- pid: proverb title: 'Genre: Proverb' label: Proverb collection: genre_pieterbruegel layout: genrepage_pieterbruegel order: '05' permalink: "/pieterbruegel/genres/proverb/" ---
-- ============================================= -- Author: Md Abul Kalam -- Create date: 18 Sept, 2020 -- Description: SP for getting Year by Model -- ============================================= CREATE PROCEDURE [dbo].[vehicles_Year_GetYearsByProductModel] @MODELID INT AS SET NOCOUNT ON; SELECT DISTINCT Y.[De...
<?php namespace App\Http\Controllers; use App\Admin; use App\Guest; use App\User; use Illuminate\Http\Request; class UtilController extends Controller { public static function user($user) { switch ($user->token()->name) { case 'User Personal Access Token': $user = User::fi...
import aiosparkapi.requests from .api.messages import Messages from .api.webhooks import Webhooks from .api.people import People from .api.memberships import Memberships from .api.rooms import Rooms import aiohttp class AioSparkApi: def __init__(self, *, access_token): self._token = access_token as...
<?php namespace addons\epay\controller; use addons\epay\library\Service; use think\addons\Controller; /** * API接口控制器 * * @package addons\epay\controller */ class Api extends Controller { protected $config = []; public function _initialize() { parent::_initialize(); } /** * 默认方...
# launchpad ppa建立 ## v101 kylin-desktop ppa 创建new ppa时,URL添加: ```shell kylin-desktop/v101-kylin-desktop ``` 其中,v101-kylin-desktop为添加的PPA仓库名,和下面的display name保持一致。
// // Created by gyb on 2021/11/15. // #include "splc_log.hpp" void LogLSErrorTL(int type, int line, const char *msg) { ls_error_occur = true; // FILE *fp = fopen(log_file_name, "a+"); // if (type == 0) { // fprintf(fp, "Error type A at Line %d: %s\n", line, msg); // } // if (type == 1) { ...
using System.ComponentModel; using Sample.Validation; using Spectre.Cli; namespace Sample.Commands { public sealed class BuildSettings : CommandSettings { [ValidateProjectName] // For validating an argument in isolation. [CommandArgument(0, "<PROJECT>")] [Description("Specifies the proj...
package com.qiniudemo.baseapp import com.hapi.refresh.SmartRecyclerView import kotlinx.android.synthetic.main.act_smart_recy.* abstract class CommonRecyclerFragment<T> : RecyclerFragment<T>() { override val mSmartRecycler: SmartRecyclerView by lazy { smartRecyclerView } override fun getLayoutId()...
import VInput from './VInput'; export { VInput }; export default VInput; //# sourceMappingURL=index.js.map
using System; using System.Collections.Generic; using System.Linq; namespace Nuuvify.CommonPack.Extensions.Implementation { public static class DistinctExtension { /// <summary> /// Substitua o "and" por "duplo e comercial" /// <example> /// <code> /// IEnumerable{Produ...
import React from 'react'; import FiDataWaitSvg from '../../assets/illustrations/factory-illustration-1.svg'; import { IContentStateImages } from '../../types/react-component-input-types'; const FiDataWait: React.FC<IContentStateImages> = ({ height, width, imgHeight }) => { return ( <> <div className='text...
# frozen_string_literal: true module Dappgen class Interpreter def initialize(script, machine) @script = script @machine = machine end def built_script @built_script ||= @script.built_script end def run! built_script.each do |statement| args = [ stateme...
#include "Precomp.h" #include "DisassemblyPage.h" #include "UObject/UClass.h" #include "UObject/UClient.h" #include "UI/Controls/ListView/ListView.h" #include "ExpressionItemBuilder.h" #include "VM/Bytecode.h" DisassemblyPage::DisassemblyPage(View* parent) : VBoxView(parent) { listview = new ListView(this); listvie...
<div class="sidenav"> <a href="#about">About</a> <a href="#services">Services</a> <a href="#clients">Clients</a> <a href="#contact">Contact</a> </div>
// Once the server start we will monitor for function idleLogout() { var timmer; window.onload = resetTimer; window.onmousemove = resetTimer; window.onmousedown = resetTimer; // catches touchscreen presses as well window.ontouchstart = resetTimer; // catches touchscreen swipes as well ...
package ledger import ( "github.com/nknorg/nkn/core/contract/program" "github.com/nknorg/nkn/core/transaction" ) type HeaderInfo struct { Version uint32 `json:"version"` PrevBlockHash string `json:"prevBlockHash"` TransactionsRoot string `json:"transactionsRoot"...
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. use deno_core::deno_buf; use deno_core::{StartupData, StartupScript}; pub fn deno_isolate_init() -> StartupData { if cfg!(feature = "no-snapshot-init") { debug!("Deno isolate init without snapshots."); #[cfg(not(feature = "check-only"...
export default [ { path: 'projects/:id(\\d+)', name: 'ProjectsView', component: () => import('@/js/views/projects/View'), props: route => ({ id: route.params.id }) }, { path: 'projects', name: 'ProjectsIndex', component: () => impor...
import { ApiProperty } from '@nestjs/swagger'; import { AuditableEntity } from 'src/common/entity/auditable.entity'; import { Column, Entity } from 'typeorm'; @Entity() export class User extends AuditableEntity { @ApiProperty() @Column({ type: 'varchar', length: 30 }) name: string; @ApiProperty() @Column({ ...
package tv.codely.api_scala_http.module.course.dependency_injection import tv.codely.api_scala_http.module.course.application.{CourseCreator, CoursesSearcher} import tv.codely.api_scala_http.module.course.repository.InMemoryCourseRepository final class CourseModuleDependencyContainer { val repository = new InM...
<?php header("Content-type: text/css; charset: UTF-8"); $adminTheme = erLhAbstractModelAdminTheme::fetch((int)$Params['user_parameters']['id']); if ($adminTheme instanceof erLhAbstractModelAdminTheme) { $tpl = erLhcoreClassTemplate::getInstance('lhtheme/admincss.tpl.php'); $tpl->set('theme',$adminTheme); ...
#!/bin/bash # This allows Python to access Fortran's internal memory! gfortran -x f95-cpp-input -c readr.f90 f2py -c readr.f90 -m readr --opt='-O3 -x f95-cpp-input' gfortran -x f95-cpp-input -c amr2cell_rur.f90 f2py -c amr2cell_rur.f90 -m a2c --opt='-O3 -x f95-cpp-input'
use num_derive::FromPrimitive; use super::coils::Coil; pub type Address = u16; pub type Quantity = u16; pub type Value = u16; pub type Values= Vec<u16> ; pub type Coils= Vec<Coil> ; #[derive(FromPrimitive)] pub enum FunctionCode{ ReadCoils = 0x01, ReadDiscreteInputs = 0x02, ReadHoldingRegisters = 0x03, ...
; RUN: llc < %s -mtriple=aarch64-eabi -mattr=+v8.2a,+fullfp16 | FileCheck %s declare <4 x half> @llvm.fma.v4f16(<4 x half>, <4 x half>, <4 x half>) declare <8 x half> @llvm.fma.v8f16(<8 x half>, <8 x half>, <8 x half>) define dso_local <4 x half> @t_vfma_f16(<4 x half> %a, <4 x half> %b, <4 x half> %c) { ; CHECK-LAB...
<?php use RCDE\Model\CosTecnic; use RCDE\Translation\Escola; require_once ROOT . '/../src/Utils/ordinal.php'; /** * @var CosTecnic $entrenador * @var Escola $e */ ?> <div class="col-lg-3 col-md-4 p-3 text-center user-card"> <div class="transform-center p-3 avatar-cos-tecnic"> <?php $nom_entre...
package com.swengin.stardust.cafe.product; import org.springframework.stereotype.Component; import java.util.List; @Component public class ProductRepository { public List<Product> products() { return List.of(new ProductBuilder().withName("Mocha").withPrice(3.45).build(), new Prod...
"""Implementation of the weather command.""" from mcipc.rcon.client import Client from mcipc.rcon.commands.weather import WeatherProxy __all__ = ['WeatherProxy', 'weather'] def weather(self: Client) -> WeatherProxy: """Delegates to a :py:class:`mcipc.rcon.je.commands.weather.WeatherProxy` """ retu...
#!/usr/bin/env bash # The project directory path. # Remove the scripts folder in case this bash script is being executed from the scripts folder # instead of from the project root folder. project_dir=$(pwd) project_dir=${project_dir/scripts/""} # Deploy the ipk file to the SEPP on the EM. scp -P2223 *.ipk root@local...
package de.chrisward.theyworkforyou.dagger import dagger.Module import dagger.android.ContributesAndroidInjector import de.chrisward.theyworkforyou.view.LordListFragment import de.chrisward.theyworkforyou.view.MPListFragment @Module abstract class FragmentModule { @ContributesAndroidInjector abstract fun cont...
# -*- coding: utf-8 -*- # @Author: zengjq # @Date: 2020-10-21 13:48:07 # @Last Modified by: zengjq # @Last Modified time: 2020-10-21 14:02:40 class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: # 94 mem 100 def deleteDuplicates1(self, head): if...
package eu.spitfire_project.ld4s.resource.link; public class LinkReview { private String author = null; private double vote = 0; private String comment = null; private String datetime = null; private String linkuri = null; public LinkReview(String author, double vote, String comment, String dateti...
module Neo4j::Driver module Internal module Util class Format def initialize raise java.lang.UnsupportedOperationException end # formats map using ':' as key-value separator instead of default '=' class << self def format_pairs(entries) case e...
# OpenMined explained in sequences > 🖼 say more than a 💯 words ## How do I get my network trained? The following graph shows you how **OpenMined** can be used to train a model in a decentralized way where everyone is able to contribute to AI but keep their data to themselves. The basic workflow is the followin...
import React from "react"; import {Col} from "react-bootstrap"; import ProjectsImg from "../../assets/projects.jpg" import BlogImg from "../../assets/blog.jpg" import {navigate} from "gatsby"; import {PaddedRow, StyledImage, StyledButton, StyledContainer} from "../../config/styles" const Landing = ({lang}) => (<Style...
/* * Counter.cpp * MAMClient * * Created by Marc Addeo on 10/4/08. * Copyright 2008 __MyCompanyName__. All rights reserved. * */ #include "Counter.h" Counter::Counter( void ) { this->first = NULL; this->second = NULL; } Counter::~Counter( void ) { } void Counter::reset( void ) { this->...
using System.Collections.Generic; using System.Linq; using UnityEngine; public class Sample : MonoBehaviour { public List<int> list = new List<int>() { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; void Start() { this.list.Enqueue(10); DebugLog("Enque(10) : "); Debug.Log("Deque : " + this.lis...
module Alchemy class FoldedPage < ActiveRecord::Base belongs_to :page belongs_to :user end end
--- title: "Knowledge 19's Hackthon, a personal look" subtitle: "" summary: "" date: 2019-05-21T20:25:56-05:00 --- In my last post I said, "The hackathon is a great place to learn a new feature but it's not a hackathon. They expect you to have the app prebuilt before you get there." I just want to be very clarify in t...
[Seamless Gravel by Soady](https://www.blendernation.com/2015/11/22/free-download-seamless-gravel-texture/)
module Graphiti # Apply sorting logic to the scope. # # By default, sorting comes 'for free'. To specify a custom sorting proc: # # class PostResource < ApplicationResource # sort do |scope, att, dir| # int = dir == :desc ? -1 : 1 # scope.sort_by { |x| x[att] * int } # end # ...
# Pong Godot3 implementation of the famous retro "Pong" game AI is unbeatable for now ☠️ ![screenshot](https://raw.githubusercontent.com/Crossfire972/pong/master/img/screenshot.jpg) ## Design - First player to score 7 goals wins 🏆 ## Controls - Use the Escape key for the **Pause** menu - Control player 1 with: ...
/* * ModeShape (http://www.modeshape.org) * * 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 o...
-- +migrate Down UPDATE releases SET badge_ratings = NULL; -- +migrate Up
import { LOGIN_START, LOGIN_SUCCESS, LOGIN_FAILURE, REGISTER_START, REGISTER_SUCCESS, REGISTER_FAILURE, LOGOUT, } from "../constants/auth.constants"; const AuthReducer = (state: any, action: { type: string; payload: any }) => { switch (action.type) { case LOGIN_START: return { user: n...
using UnityEngine; using UnityEngine.Events; namespace lisandroct.EventSystem { public interface IListener { void OnEventRaised(); } #if UNITY_2020_1_OR_NEWER public class Listener : MonoBehaviour, IListener { [SerializeField] private GameEvent _event; private ...
package com.swift.sandhook.blacklist; import java.lang.reflect.Member; import java.util.HashSet; import java.util.Set; public class HookBlackList { public static Set<String> methodBlackList = new HashSet<>(); public static Set<Class> classBlackList = new HashSet<>(); public static Set<String> methodUseI...
# Copyright (c) 2019 The diadem authors # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. # ======================================================== """ Run the experiment Important sidemark: the Agent is defined in the parameters, not in the mai...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Sach; use App\LoaiSach; class SachController extends Controller { public function getDanhSach() { $sach = Sach::all(); return view('admin.sach.danhsach',['sach'=>$sach]); } public function getThem() { $loai...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import datetime import json import os import shutil import subprocess import sys import markdown default_template = """<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta name="date" content="%date%" scheme="YYYY-MM-DD"> <meta name="v...
% Als ich Künstler war *oder:* \ Von der Zähmung und Professionalisierung einer mythischen Freiheit, *oder:* \ der Künstler als Arbeiter % Naomi Tereza Salmon \pagebreak \newpage \pagestyle{headings} ## Anlagen ~~~~~ {#some-space} ~~~~~ ***(separat gebunden)*** ~~~~~ {#some-space} ~~~~~ *zur Dissertatio...
#!/bin/sh # I don't know why, but the /usr/bin/python2.3 from Debian is a 30% slower # than my own compiled version! 2004-08-18 python="/usr/local/bin/python2.3 -O" writedata () { nrows=$1 bfile=$2 worst=$3 psyco=$4 if [ "$shuffle" = "1" ]; then shufflef="-S" else shufflef="" fi cmd="${pyth...
<!-- TITLE: dmi --> # `dmi [addr|libname] [symname]` List symbols of target lib ``` Usage: dmi # List/Load Symbols ``` - `dmi[libname] [symname]` List symbols of target lib - > Example: `dmi libc puts` - `dmi*` List symbols of target lib in radare commands - `dmi.` List closest symbol to the current address - `d...
<script> var wsServer = 'ws://112.74.182.162:9501'; var websocket = new WebSocket(wsServer); websocket.onopen = function (evt) { console.log("Connected to WebSocket server."); }; websocket.onclose = function (evt) { console.log("Disconnected"); }; websocket.onmessage = function (evt) { console.log('Retrieve...
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org> // // SPDX-License-Identifier: Apache-2.0 package org.pgpainless.signature.consumer; import java.util.Comparator; import org.bouncycastle.openpgp.PGPSignature; import org.pgpainless.signature.SignatureUtils; /** * Comparator which sorts signatures...
package ba.wave.wavebackend.security.config; import org.springframework.aop.Advisor; import org.springframework.aop.aspectj.AspectJExpressionPointcut; import org.springframework.aop.interceptor.CustomizableTraceInterceptor; import org.springframework.aop.support.DefaultPointcutAdvisor; import org.springframework.conte...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ConApp.EventSample.EventDemo6 { /// <summary> /// 热水器 /// </summary> public class Heater { public event EventHandler OnBoiled; priva...
use rustix::fd::FromFd; use rustix::fs::{fcntl_add_seals, ftruncate, memfd_create, MemfdFlags, SealFlags}; use std::fs::File; use std::io::Write; #[test] fn test_seals() { let fd = memfd_create("test", MemfdFlags::CLOEXEC | MemfdFlags::ALLOW_SEALING).unwrap(); let mut file = File::from_fd(fd.into()); writ...
export { PostAdd } from './add'; export { PostsList } from './list'; export { PostUpdate } from './update';
<?php declare(strict_types=1); namespace Ray\MediaQuery\Explicit; use Ray\AuraSqlModule\Pagerfanta\AuraSqlPagerInterface; use Ray\MediaQuery\SqlQueryInterface; use Ray\MediaQuery\TodoListInterface; class TodoList implements TodoListInterface { /** @var SqlQueryInterface */ private $sqlQuery; public fun...
# [Intro to RSA](https://id0-rsa.pub/problem/21/) ## RSA Decryption For ciphertext c, RSA Decryption function D(c) = c^d (mod N).
package main import ("fmt") func occurance(f []int) { var str []int str=append(str,f[0]) for i:=0;i<len(f);i++ { for j:=0;j<len(str);j++ { if f[i]==str[j] { break } if j==len(str)-1{ str=append(str,f[i]) } } } fmt.Println("str",str) for i:=0;i<len(...
package icbm.classic.api.explosion; /** * Applied to blasts that exist in world and tick * Created by Dark(DarkGuardsman, Robert) on 2/10/2019. */ public interface IBlastTickable extends IBlast { /** * Called each tick the blast is alive. * <p> * Normally called from {@link #getController()} ...
// script to hide bell from bar when Discord closes const { createWriteStream } = require('fs'); const { join } = require('path'); const { pipePath } = require(join(__dirname, 'config.json')); var wstream = createWriteStream(pipePath); wstream.write("<fn=0></fn>\n"); wstream.end();