text
stringlengths
27
775k
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class PeliculasController extends Controller { public function listar() { $idioma = session("idioma"); \App::setLocale($idioma); if (!Auth::check()) { return redirect("/login"); ...
var searchData= [ ['lade_5fstatus_58',['lade_status',['../structdevice__t.html#a0b46b8ec1f371e9aa6e09a701fb6c553',1,'device_t']]] ];
package org.knowledger.ledger.crypto import assertk.assertThat import assertk.assertions.containsExactly import org.junit.jupiter.api.Test import org.knowledger.base64.base64Encoded import org.knowledger.testing.core.applyHashInPairs import org.knowledger.testing.core.random import org.knowledger.testing.ledger.testHa...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using UnityEngine; namespace MixedRealityToolkit.SpatialSound { /// <summary> /// Room sizes for the Microsoft Spatial Sound Spatializer. ...
$(function() { // Menu var $groups = $('#groups'); // Hide deep packages and namespaces $('ul span', $groups).click(function() { $(this) .toggleClass('collapsed') .next('ul') .toggleClass('collapsed'); }).click(); $active = $('ul li.active', $groups); if ($active.length > 0) { // Open active ...
# 半自动脚本安装k8s集群 - 修改主机名称 ``` //永久修改 hostnamectl --static set-hostname k8s-master ``` - 修改/etc/hosts ``` 192.168.18.74 etcd-node1 192.168.18.82 etcd-node2 192.168.18.83 etcd-node3 192.168.18.74 k8s-master 192.168.18.82 k8s-slave1 192.168.18.83 k8s-slave2 192.168.18.103 k8s-slave3 192.168.18.123 k8s-slave4 ``` - 环境初始...
/* A dinner problem in SWI Prolog http://www.sellsbrothers.com/spout/#The_Logic_of_Logic """ My son came to me the other day and said, "Dad, I need help with a" "math problem." The problem went like this: * We're going out to dinner taking 1-6 grandparents, 1-10 parents and/or 1-40 children * Grand...
import * as cdk from "@aws-cdk/core"; import * as apigw from "@aws-cdk/aws-apigateway"; import * as iam from "@aws-cdk/aws-iam"; import * as firehose from "@aws-cdk/aws-kinesisfirehose"; import { stripIndent } from "common-tags"; export interface SendgridEventCollectorProps { readonly api: apigw.RestApi; readonl...
package game.map import akka.actor.{ActorRef, ActorSystem, Props} import akka.pattern.ask import akka.util.Timeout import owe.Tagging._ import owe.entities.ActiveEntity.ActiveEntityRef import owe.entities.Entity.EntityRef import owe.entities.{ActiveEntity, Entity} import owe.map.Cell.CellData import owe.map.{Cell, Gam...
package Chapter11.exercise02; public class Faculty extends Person{ private int officeHours; private String rank; public Faculty() { super(); } public Faculty(String name, String address, int phoneNumber, String email,int officeHours , String rank) { super(name, address, phoneNumber, email); this.off...
#!/bin/sh output=$(docker run --rm otp-gen -m hotp --counter 0 12345678901234567890) if [ "755224" != "$output" ]; then echo "Test case failed! " "Expected [755224], Actual [$output]" exit 1 fi
#include <seqan/basic.h> #include <seqan/gff_io.h> #include <sstream> int main() { seqan::GffStream out("-", seqan::GffStream::WRITE); // Add sequence names. addSequenceName(out, "ctg123"); // Write out the records. seqan::GffRecord record; record.rID = 0; record.source = ""; record...
require 'rend' include Rend m = Cube.new m.on_frame{ GL::ReadBuffer(GL::FRONT) t1 = Time.now.to_f 1000.times{ data = GL::ReadPixels( 0,0, Rend.width, Rend.height, Rend::Renderer::NATIVE_TEXTURE_FORMAT, GL::UNSIGNED_BYTE) } elapsed = Time.now.to_f - t1 puts "#{(elapsed * 1000).to_...
#![deny(clippy::all)] use mcp3208::{Mcp3208, Channel}; /// outputs the raw adc values of all channels fn main() { if let Ok(mut mcp3208) = Mcp3208::new("/dev/spidev0.0") { Channel::VALUES.iter().for_each(|&channel| { println!("channel #{}: {}", channel as u8, mcp3208.read_adc_single(channel).u...
const GLE_DEFAULTS = LittleDict{Symbol,Any}( :palette => [ # imitated from tableau 10 - 2 RGB(0.33, 0.47, 0.64), RGB(0.90, 0.57, 0.26), RGB(0.82, 0.37, 0.36), RGB(0.51, 0.70, 0.69), RGB(0.42, 0.62, 0.35), RGB(0.91, 0.79, 0.37), RGB(0.66, 0.49, 0.62), R...
<?php namespace Statamic\Addons\ImageOptimizer; use Statamic\Extend\Extensible; use Log; class ImageOptimizer { use Extensible; /** * The OptimizerFactory instance * * @var null */ private $optimizer; /** * Create a new command instance. */ public function __construct() {...
# keras-tutorial Tutorial for MinneAnalytics Big Data Tech 2017 ## Install & Setup ``` conda create -y --name keras-tutorial python=3.5 anaconda h5py source activate keras-tutorial pip install sklearn-pandas pip install --ignore-installed --upgrade tensorflow==1.1.0 keras==2.0.4 ``` ## Run Jupyter ``` jupyter noteb...
require 'rails_helper' RSpec.describe 'Suggesting a measure' do include Devise::Test::IntegrationHelpers let(:user) { create(:user) } before do ActionMailer::Base.deliveries.clear sign_in(user) visit new_suggestion_path end scenario 'successfully, with valid form completion' do fill_in 'Ti...
import 'dart:io'; import 'package:intl/intl.dart'; import 'package:timeago/timeago.dart' as timeago; enum FundType { allies, gift, millest, unknown } class ProposalModel { final int id; final String creator; final String recipient; final String quantity; final String staked; final int executed; final i...
package models case class SampleEntity(username: String, email: String, profilePicUrl: Option[String] = None) { require(!username.isEmpty, "username.empty") require(!email.isEmpty, "password.empty") }
echo "Building \"basic\" project please wait..." cd basic tizen clean tizen build-web tizen package --type wgt -- .buildResult cd ..
package Tiffany::Template::Declare; use strict; use warnings; use Template::Declare; sub new { my ($class, $args) = @_; $args ||= +{}; # T::D throws exception when strict => 1. # This is required for Tiffany spec. Template::Declare->init( strict => 1, %$args ); bless { }, $class; } sub render ...
package at.mse.walchhofer.utilities.files; import java.io.File; import java.io.FilenameFilter; public class ClassFilenameFilter implements FilenameFilter { public static final String CLASS_EXTENSION = ".class"; @Override public boolean accept(File dir, String name) { return name.toLowerCase().en...
module SandthornSequelProjection class Manifest attr_reader :projections def initialize(*projections) @projections = Array.wrap(projections).flatten end end end
/** * This will return the sum of all primes * up to 2000000. */ #include <iostream> bool isPrime(int number){ if(number < 2) return false; if(number == 2) return true; if(number % 2 == 0) return false; for(int i=3; (i*i)<=number; i+=2){ if(number % i == 0 ) return false; } return t...
package App::Format::State; use strict; use warnings; use Compiler::Lexer; use App::Format::Utils; use App::Format::Constants; use Data::Dumper; sub new { my $class = shift; my %args = @_; my $filename = $args{filename}; my $script = slurp($filename); my $lexer = Compiler::Lexer->new($filename...
<?php /* * This file is part of the Vatsimphp package * * Copyright 2013 - Jelle Vink <jelle.vink@gmail.com> * * 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.apach...
set['nginx']['dir'] = '/usr/local/nginx' set['nginx']['source']['version'] = '1.6.2' set['nginx']['source']['conf_path'] = "#{node['nginx']['dir']}/nginx.conf" set['nginx']['source']['prefix'] = "/opt/nginx-#{node['nginx']['source']['version']}" set['nginx']['source']['url'] = "http://nginx.org/download/nginx-#{node['n...
namespace Dork.Models { public class Page { public long TimeSpan { get; set; } public int StartPosition { get; set; } public int Count { get; set; } } }
<?php require_once("../inc/db.inc"); require_once("../inc/util.inc"); require_once("../inc/email.inc"); require_once("../inc/user.inc"); init_session(); db_init(); $mode = post_str("mode", true); // First check for email/password case $email_addr = strtolower(process_user_text(post_str("email_addr", true))); $passw...
fun main() { val foo = Foo(onClick = { i -> println("onClicked: $i") }, onClick2 = { i, s -> println("onClicked2: $i , $s") }) foo.bar() } /** * onClicked: 100 * onClicked2: 200 , test2 */ typealias OnClickListener<T> = (T) -> Unit typealias OnClickListener2 = (Int, String) -> Unit...
'use strict' var page = require('webpage').create() page.onLoadFinished = function(status) { console.log('STATUS:', status) console.log(page.content || 'NO CONTENT') phantom.exit(status === 'success' ? 0 : 1) } page.open('http://127.0.0.1:8080')
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class TestController extends Controller { public function index($n){ return view('pages.test')->with('number', $n); } }
function New-WindowsStartupCommand() { [CmdletBinding(SupportsShouldProcess)] Param( [Parameter(Position = 0)] [String] $Command, [Alias("FileName")] [Parameter(Position = 1)] [String] $StartUpFileName = "DefaultAutoRun", [Parameter(Position = 2)] [Strin...
<?php namespace app\modules\comments\components\services; use app\modules\comments\components\repository\CommentsRepository; use app\modules\comments\models\Comments; /** * Class CommentsService * @package app\modules\comments\components\services */ class CommentsService { /** * @var CommentsRepository ...
package com.scala.verifier.params class TableParameters(parameter: Parameter, tableName :String){ private var targetTable = parameter.getConfigObj().targetTable(tableName) private var sourceTable = parameter.getConfigObj().sourceTable(tableName) def getParameter(): Parameter ={ return parameter } def g...
import { NextApiRequest, NextApiResponse } from "next"; import { updateResource } from "server/actions/Resource"; import { Resource } from "utils/types"; import auth from "server/actions/Authenticate"; import errors from "utils/errors"; export default auth("any", async function handler(req: NextApiRequest, res: NextAp...
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
/* Copyright 2017-2019 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause */ package com.vmware.weathervane.workloadDriver.benchmarks.auction.operations; import java.util.HashMap; import java.util.Map; import java.util.UUID; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.fasterxml.jackson.databi...
module ChargeBee class Request def self.send_list_request(method, url, params={}, env=nil, headers={}) serialized = {} params.each do |k, v| if(v.kind_of? Array) v = v.to_json end serialized["#{k}"] = v end self.send(method, url, serialized, env, hea...
This document contains instructions on how to use pandoc templates to convert Markdown sources into an HTML document. <div class="alert alert-warn"> __WIP NOTE__: This document is still a draft in progress. To be completed soon. </div> For a detailed preview of the tutorial template features, see: - [`TUTORI...
--- sidebar_position: 104 --- ## anyLast {#anylastx} Выбирает последнее попавшееся значение. Результат так же недетерминирован, как и для функции [any](../../../sql-reference/aggregate-functions/reference/any.md).
# frozen_string_literal: true module API module Entities class Diff < Grape::Entity expose :old_path, :new_path, :a_mode, :b_mode expose :new_file?, as: :new_file expose :renamed_file?, as: :renamed_file expose :deleted_file?, as: :deleted_file expose :json_safe_diff, as: :diff ...
package com.example.sense.FragmentClasses import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import com.examp...
package hu.borcsok.advent.y2017.d14 import hu.borcsok.advent.y2017.d10.Hash import scala.annotation.tailrec object Defragment { def hash(str: String): Seq[String] = { (0 to 127).par. map(n => Hash.hashBin(s"$str-$n")).seq } @tailrec def regions(seq: Seq[String], n: Int = 0): Int = { seq.headO...
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( UselessReturningElseViolation, ) from wemake_python_styleguide.visitors.ast.conditions import IfStatementVisitor function_level_condition = """ def function(): if some_condition: {0} else: ...
using System; using Ghostly.Core.Diagnostics; using Serilog; using Serilog.Context; namespace Ghostly.Diagnostics { public sealed class SerilogAdapter : IGhostlyLog { private readonly ILogger _logger; public SerilogAdapter(ILogger logger) { _logger = logger; } ...
(ns jepsen.atlasdb-test (:require [clojure.test :refer :all] [jepsen.nemesis :as nemesis] [jepsen.atlasdb.lock :as lock] [jepsen.atlasdb.timelock :as timelock] [jepsen.atlasdb.timestamp :as timestamp] [jepsen.core :as jepsen])) ;; Using Clojure's testing fr...
import { Phone } from '../../../../src/domain/entities/pharmacy/valueobject/Phone'; import { DomainError } from '../../../../src/shared/errors/DomainError'; describe('Pharmacy.phone', () => { it('Should not be able to create phone without value', async () => { expect(() => Phone.create('')).toThrow(DomainError);...
package compose.icons.lineawesomeicons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter ...
BeforeDiscovery { $manifest = Import-PowerShellDataFile -Path $env:BHPSModuleManifest $outputDir = Join-Path -Path $env:BHProjectPath -ChildPath 'Output' $outputModDir = Join-Path -Path $outputDir -ChildPath $env:BHProjectName $outputModVerDir = Join-Path -Path $outputModDir -ChildPath $manifest.ModuleVer...
package controllers; import com.google.inject.Inject; import constant.Constant; import dto.user.LoginUserDto; import models.TaskMst; import models.TaskTrn; import models.Team; import models.User; import play.Logger; import play.data.Form; import play.mvc.Call; import play.mvc.Controller; import play.mvc.Result; import...
--- layout: capture label: 20200730 title: Capturas da esta&ccedil;&atilde;o TLP5 station: TLP5 date: 2020-07-31 08:03:51 preview: TLP5/2020/202007/20200730/stack.jpg capturas: - imagem: TLP5/2020/202007/20200730/M20200731_080351_TLP_5P.jpg - imagem: TLP5/2020/202007/20200730/M20200731_083212_TLP_5P.jpg ...
CREATE TABLE tasks ( task_id VARCHAR(50) NOT NULL, name VARCHAR(100) NOT NULL, state VARCHAR(20) NOT NULL, author_id VARCHAR(50) NOT NULL, assignee_id VARCHAR(50), version INT NOT NULL, PRIMARY KEY (task_id) ); CREATE TABLE task_comments ( id INT NOT NULL AUTO_INCREMENT, task_id VARCHAR(50) NOT NULL,...
<div align="right"><strong>RuMor: Russian Morphology project</strong></div> <h2 align="center">Morra: morphological parser (POS, lemmata, NER etc.)</h2> ## Part of Speach Tagging First of all, we need to create a parser object and load training data. You can find a complete explanation in [MorphParser Basics](...
#!/bin/bash cd ~/pi_projects/raspberrypi_projects/price_tracker . ./price_tracker_python_env/bin/activate python3 ~/pi_projects/raspberrypi_projects/price_tracker/src/main.py deactivate
package com.cordys.coe.util.i18n; import com.eibus.localization.IStringResource; import java.util.Locale; /** * This class is an implementation of the actual message. It takes a CoEMessageSet and an ID as * constructor parameters. * * @author pgussow */ public final class CoEMessage implements...
import * as _ from "lodash"; import * as assert from "assert"; import { Subtitle } from "../data/Subtitle"; import { SubtitlePiece } from "../data/SubtitlePiece"; import { getJaccardIndex } from "./accuracy"; export const jaccardIndexCommand = (options) => { const { subtitle_a, subtitle_b } = options; ...
const devtoolsPorts = {} const contentPorts = {} chrome.runtime.onConnect.addListener((port) => { if (port.name.startsWith('usedapp-panel-')) { const tabId = parseInt(port.name.substring('usedapp-panel-'.length)) devtoolsPorts[tabId] = port function onMessage(message) { if (contentPorts[tabId]) { ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * */ class M_master extends CI_Model { public function getKelas($id_kelas = null) { $this->db->join('guru', 'guru.id_guru = kelas.guru_id', 'left'); if($id_kelas != null){ $this->db->where('id_kelas',$id_kelas); } ...
#!/bin/bash # This script says the current time using text to speech and adds some Arabic humor at the end # usage: ./say_time.sh # N.B. make sure that "festival" is installed HOURS24=`date '+%k'` HOURS24=$(($HOURS24+0)) HOURS=`date '+%l'` MINUTES=`date '+%M' | sed 's/^0//'` echo "Ahmaad?" | festival --tts sleep 0.5...
module Sexy.Instances.UnconsMay.List () where import Sexy.Classes (UnconsMay(..)) import Sexy.Data (Maybe(..), list', fromCons') instance UnconsMay [] where unconsMay [] = Nothing unconsMay (x:xs) = Just (x,xs) foldr = list' fromCons = fromCons'
package primjer01; public class Automobil { private double rezervoar = 0.0; private double predjeniKilometri = 0.0; private double predjenaKilometrazaKodPosljednjeDopune = 0.0; private double stanjeRezervoaraKodPosljenjeDopune = 0.0; private double iznosPosljednjeDopuneRezervoara = 0.0; ...
package uk.nhs.nhsx.core.signature; import com.google.common.io.ByteSource; import com.google.common.primitives.Bytes; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.function.Function; public class DistributionSignature implements Function<DatedSignature.SignatureDate, byte[]>...
#|$ACL2s-Preamble$; ; Julien Schmaltz ;; Generic Scheduling Module of GeNoC ;; Feb 16th 2005 ;; File: GeNoC-scheduling.lisp ;; Amr HELMY Revised and modified January 24th 2008 ;;edited by Amr HELMY, Laurence Pierre august 22nd of august 2007 ;;Amr helmy ;;31st october 2007 (begin-book);$ACL2s-Preamble$|# (in-package...
/* * * * Copyright 2020 Lenses.io. * * * * 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 app...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using Haberdasher.Support; using Haberdasher.Support.Helpers; namespace Haberdasher { public class EntityType<TEntity> where TEntity : class, new() { public string Name { get; private set; } ...
using System.Collections.Generic; using System.Linq; namespace DiscordWebRPC { // Constants used for discord RPC internal static class DiscordRPC { // Constant values, change at will with disocrd // How to connect to RPC public const short RPC_VERSION = 1; public const shor...
## Description ## Steps to reproduce 1. ## Actual result ## Expected result
# frozen_string_literal: true module Pennyworth module Presenters # Renders encoding into a compatible format for use in Alfred script filters. class Encoding def initialize record @record = record end def id = record.name def label = record.name def aliases = record....
# n - count of lines in file # Mem = O(1) [~ 512 MB], Time = O(n) def missing_int_a(path, total: 2 ** 32) int_byte_size = 0.size # count of bytes in int bucket_size = int_byte_size * 8 # count of bits in int buckets_count = total / bucket_size max_bucket_value = 1 << bucket_size arr = Array.new(buckets_count...
from ..tool.marshal import global_marshal def parse_ngspice_error_messages(error_output, real=False): split_error_output = error_output.split('\n') temp = [] for error in split_error_output: error = error.strip() if error == "": continue temp.append(error) real = e...
""" get_values(gradient) Get q-values and b-values """ function get_values(gradient) nsequence = length(gradient.sequences) if gradient.values_type == "q" qvalues = repeat(gradient.values, 1, nsequence) bvalues = gradient.values .^ 2 .* bvalue_no_q.(gradient.sequences)' else...
#!/bin/bash if [ ! -d ../data/spark-test ]; then mkdir ../data/spark-test cp pushdown-datasource/ints.tbl ../data/spark-test cp pushdown-datasource/ints.schema ../data/spark-test fi echo "Starting S3 and hdfs servers" pushd ../dikeCS ./start.sh popd pushd ../dikeHDFS ../dikeHDFS/start_server.sh # Wait for hdfs ...
<?php declare(strict_types=1); namespace AppTest\PageObject; use RuntimeException; final class ListMeetupsPage extends AbstractPageObject { /** * @return array<MeetupSnippet> */ public function upcomingMeetups(): array { return MeetupSnippet::createManyFromCrawler($this->crawler->filte...
package com.buildingsmart.tech.annotations; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.LOCAL_VARIABLE; import static java.lang.annotation.RetentionPolicy.RUNTIME; @Retention(RUNTIME) ...
# ansible-docker-controller ## Play Playbook `$ docker run --rm -v <path-to-playbooks>:/ansible/playbooks nfmsjoeg/ansible-playbook <playbookfilename>` ### Working Example `$ docker run --rm -v $(pwd)/playbooks:/ansible/playbooks nfmsjoeg/ansible-playbook deploy.yml`
import { postsEndpoint, tagsEndpoint } from "../plugins/endpoints" export const state = () => ({ posts: [], tags: [] }) export const mutations = { updatePosts: (state, posts) => { state.posts = posts }, updateTags: (state, tags) => { state.tags = tags } } export const actions = { async getPosts...
///////////////////////////////////////////////////////////////////// // ProgCounter // // Object for tracking, managing, and reporting process progress. // ///////////////////////////////////////////////////////////////////// //////////////////////////////////...
<?php namespace app\controllers; use Yii; use yii\web\Controller; use app\models\Category; use yii\web\UploadedFile; class CategoryController extends Controller { public $layout = 'admin'; public function actionCreate() { $cat = new Category(); if ($cat->load(Yii::$app->request->post()) ...
/** * @author water * @date 2017-01-09 17:12:21 * @description A try for node */ var collector = require('./collector.js') var options = 'http://blog.lxstart.net/2016/08/04/javascript/pattern/singleton/' collector.fetchPage(options)
/******************************************************************************* * HEADERS ******************************************************************************/ /* Standard Includes */ #include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <assert.h> ...
Best preparation for the best job : ) Always a big fan of nice cheat sheets. Refreshing knowledge, planning learning roadmap, indexing...as needed. Credit: Aqeel Anwar
<?php /** * Created by PhpStorm. * User: Frank Lekule * Date: 4/9/2015 * Time: 10:46 AM */ // error_reporting(E_ALL ^ E_NOTICE); $con=mysqli_connect("localhost","root","Xerxes641602","cdcol"); if (mysqli_connect_error($con)) { echo "Failed to connect to MySQL: " . mysqli_connect_errno();_connect_error(); } i...
# -*- coding: us-ascii -*- # frozen_string_literal: true require 'mkmf' require 'fileutils' # :stopdoc: dir_config 'libyaml' $VPATH << "$(srcdir)/yaml" $INCFLAGS << " -I$(srcdir)/yaml" $srcs = Dir.glob("#{$srcdir}/{,yaml/}*.c").map {|n| File.basename(n)}.sort header = 'yaml/yaml.h' header = "{$(VPATH)}#{header}" i...
<a data-method="delete" data-trans-button-cancel="Cancel" data-trans-button-confirm="Delete" data-trans-title="Are you sure?" class="btn btn-xs btn-danger text-white mb-1" style="cursor:pointer;" onclick="$(this).find('form').submit();"> <i class="fa fa-trash" data-toggle="tooltip" data-place...
import type { NextPage } from "next"; import Head from "next/head"; import { useEffect, useState } from "react"; import styles from "../styles/Home.module.css"; const Home: NextPage = () => { const [days, setDays] = useState(0); const [hours, setHours] = useState(0); const [minutes, setMinutes] = useState(0); cons...
#!/bin/bash if [[ -f edward.ankiaddon ]] then rm edward.ankiaddon fi zip edward.ankiaddon manifest.json LICENSE NOTE *.py *.csv icon.png
import pyTIR as tir from itertools import product hyper_params = [ { 'transfunctions' : ('Id,Tanh,Sin,Cos,Log,Exp,Sqrt',), 'ytransfunctions' : ('Id,Sqrt,Exp,Log,ATan,Tan,Tanh',), 'exponents' : ((-5,5),) }, { 'transfunctions' : ('Id,Tanh,Sin,Cos,Log,Exp,Sqrt',), 'ytra...
package openapi import ( "errors" "strings" kin "github.com/getkin/kin-openapi/openapi3" kinf "github.com/getkin/kin-openapi/openapi3filter" ) type violation struct { Field string `json:"field"` Error string `json:"error"` } func violationsFromError(err error) *violation { var rerr *kinf.RequestError if ok ...
<?php class Mquenmatkhau extends CI_Model { public function checkEmail($tenTK, $email) { $this->db->where('sTenTaiKhoan', $tenTK); $this->db->where('sEmail', $email); $this->db->where('FK_iMaQuyen', 2); //quyền khách hàng $this->db->join('nguoidung', 'taikhoan.FK_sMaND = nguoidung.PK_sMaND'); return $this-...
package org.scaladebugger.api.profiles.traits.requests.watchpoints import org.scaladebugger.api.lowlevel.JDIArgument import org.scaladebugger.api.lowlevel.events.data.JDIEventDataResult import org.scaladebugger.api.lowlevel.watchpoints.ModificationWatchpointRequestInfo import org.scaladebugger.api.pipelines.Pipeline.I...
function hfun_bar(vname) val = Meta.parse(vname[1]) return round(sqrt(val), digits=2) end function hfun_m1fill(vname) var = vname[1] return pagevar("index", var) end function lx_baz(com, _) # keep this first line brace_content = Franklin.content(com.braces[1]) # input string # do whatever you want here...
# frozen_string_literal: true module Baz class ProductsController < Baz::ApplicationController end end
# graph_lib Python Graph library This project was developed as a final project for the Design ad Analysis of Algorithms at CIC-IPN.
#include once <print.asm> #include once <attr.asm> __PRINTU_START: PROC LOCAL __PRINTU_CONT ld a, b or a jp nz, __PRINTU_CONT ld a, '0' jp __PRINT_DIGIT __PRINTU_CONT: pop af push bc call __PRINT_DIGIT pop bc djnz __PRINTU_CONT ret ENDP __PRINT_MINUS: ; PRINT the MINUS (-) sign. CALLER mus pres...
'use strict'; const {addDefaultCliente} = require('./addDefaultCliente'); const {addDefaultRoles} = require('./addDefaultRoles'); module.exports = (app, cb) => { const ds = app.dataSources.database; const dbTables = ['AccessToken', 'ACL', 'RoleMapping', 'Role', 'Usuario', 'Categoria', 'Cliente', 'Mesa...
class CreateWidgets < ActiveRecord::Migration def self.up create_table :widgets do |t| t.column :title, :string, :limit => 32, :null => false t.column :moreinfo, :text t.column :jql, :text t.column :releaseversion, :string t.column :releasebranch, :string t...
#!/bin/sh test_template() { # Import a template which only triggers on create deps/import-busybox --alias template-test --template create lxc init template-test template # Confirm that template application is delayed to first start ! lxc file pull template/template - # Validate that the template is appli...
'use strict'; const grpc = require('grpc'); const fs = require('fs'); class RpcServer { constructor(app) { this.config = app.config.grpcUtil.rpcServer; this.app = app; this.ctx = app.createAnonymousContext(); } async addService() { if (!this.config) return; if (!this.config.host || !this....