text
stringlengths
27
775k
/*+**************************************************************************/ /*** ***/ /*** Copyright (C) by Dierk Ohlerich ***/ /*** all rights reserverd ***/ /***...
from django.urls import path from . import views app_name = "myhealthapp" urlpatterns = [ path("", views.index, name="index"), path("home/", views.home, name="home"), # path("signup/", views.signup, name="signup"), path("lists/create/", views.ListCreateView.as_view(), name="lists_create"), path("...
@function can-define/map/map.prototype.serialize serialize @parent can-define/map/map.prototype @description Get a serialized representation of the map instance and its children. @signature `map.serialize()` Get the serialized Object form of the map. Serialized data is typically used to send back to a server. ...
/*! \file */ //Copyright 2011-2018 Tyler Gilbert; All Rights Reserved #ifndef VAR_HPP_ #define VAR_HPP_ /*! \brief Data Management * \details The var namespace is a collection of data storage mechanisms and routines * such as buffers and strings. * * Here is a brief summary of the most commonly used classes: * ...
import 'package:dio/dio.dart'; class RiotTokenApiInjector implements Interceptor { final String _token; RiotTokenApiInjector(this._token); @override void onError(DioError err, ErrorInterceptorHandler handler) { handler.next(err); } @override void onRequest(RequestOptions options, Requ...
package br.com.bernardino.githubsearch.ui.activities import android.content.Intent import android.os.Bundle import android.view.View import androidx.appcompat.widget.Toolbar import androidx.databinding.DataBindingUtil import androidx.lifecycle.Observer import androidx.recyclerview.widget.DividerItemDecoration import b...
package avro import ( "unsafe" ) //go:linkname noescape runtime.noescape //go:noescape func noescape(p unsafe.Pointer) unsafe.Pointer
(ns predicter) (defn predict-age [age1 age2 age3 age4 age5 age6 age7 age8] (def tmp (+ (* age7 age7) (* age8 age8) (+ (* age5 age5) (* age6 age6) (+ (* age3 age3) (* age4 age4) (+ (* age1 age1) (* age2 age2)))))) (int (/ (Math/sqrt tmp) 2))) (predict-age 65 60 75 55 60 63 64 45)
## homepage https://nowa-webpack.github.io/ ## articles * https://segmentfault.com/blog/uxcore * https://segmentfault.com/a/1190000009088343 ## usage * https://nowa-webpack.github.io/nowa/ * https://nowa-webpack.github.io/docs/ ## images <img src="https://raw.githubusercontent.com/nowa-webpack/nowa-gui/master/do...
package com.mapbox.services.android.navigation.v5.utils import android.content.Context import android.os.Build import com.mapbox.api.directions.v5.DirectionsCriteria import java.util.Locale class LocaleUtils { /** * Returns the unit type for the specified locale. Try to avoid using this unnecessarily becaus...
var logger = require('pelias-logger').get('api'); var _ = require('lodash'); var isDifferent = require('../helper/diffPlaces').isDifferent; function setup() { return dedupeResults; } function dedupeResults(req, res, next) { // do nothing if no result data set if (_.isUndefined(req.clean) || _.isUndefined(res) |...
# Grafana Converter Grafana is a popular open source visualization platform with plugin support for many timeseries systems. Grafana in itself does not provide a timeseries solution, as such you should specify an appropriate Expression Builder class for whatever timeseries system is used in the dashboard definitions...
package com.bluelinelabs.conductor.demo import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import com.bluelinelabs.conductor.Conductor.attachRouter import com.bluelinelabs.conductor.Router import com.bluelinelabs.conductor.RouterTransaction.Companion.with class MainActivity : AppCompatActivity()...
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // 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 // // ...
$: << File.expand_path("../lib", __FILE__) require "version" Gem::Specification.new do |gem| gem.name = "rake-timer" gem.summary = "Times how long each of your Rake tasks take" gem.homepage = "http://github.com/pmoran/rake-timer" gem.authors = ["Peter Moran"] gem.email = "workingpeter@gmail.com" gem.vers...
<?php include_once("../includes/connection.php"); //include_once("secure_path.php"); $sql="select consumer__email from gb_consumer where consumer__email='".trim($_REQUEST["email"])."'"; $res=mysql_query($sql); //$sql="select id from gb_new_consumer where email='".trim($_REQUEST["email"])."'"; //$res1=mysql_qu...
# Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [0.1.5](https://github.com/DavidWells/analytics/compare/analytics-plugin-do-not-track@0.1.4...analytics-plugin-do-not-track@0.1.5) (2020-12-23) **Not...
# frozen_string_literal: true require_dependency "renalware/hd/base_controller" module Renalware module PD class RegimesController < BaseController include Renalware::Concerns::Pageable before_action :load_patient def index regimes = regime_type_class.for_patient(patient).with_bags.or...
# frozen_string_literal: true require_relative 'nonterminal' module Yardp class Maybe < Nonterminal def initialize(nonterminal) super(:maybe, nonterminal) end protected def apply_impl(text, pos, opts, depth) tree, new_pos = @children.first.apply(text, pos, opts, depth + 1) return...
#!/usr/bin/env bash source /opt/rh/devtoolset-2/enable cd /tmp/ninja-1.8.2 ./configure.py --bootstrap install ninja /usr/local/bin
import 'package:flutter/material.dart'; import 'package:mno_navigator/epub.dart' show LetterSpacing, LineHeight, ReaderThemeBloc, ReaderThemeConfig, ReaderThemeEvent, TextMargin, ValueSettings, WordSpacing; class SettingsRow<T extends ValueSettings> e...
/* * CrunchyBoxDraw.h * * Created on: Jan 31, 2016 * Author: daniel */ #ifndef CRUNCHYBOXDRAW_HPP_ #define CRUNCHYBOXDRAW_HPP_ #include <Box2D/Common/b2Draw.h> #include <SFML/Graphics.hpp> namespace crunch { class CrunchyBoxDraw: public b2Draw { public: CrunchyBoxDraw(sf::RenderWindow &win, float initia...
<?php /** * Modelo del Empleado * El código de la Aplicación esta bajo la licencia GPL. * @package CI_Model * @subpackage Empleado_horario_model * @author Mario Torrses */ /** * Permite el CRUD de los Empleados con sus horarios asignados de la Base de Datos. */ class Empleado_horario_model extends CI_Model { ...
var searchData= [ ['icache',['ICache',['../d8/d86/classdcrud_1_1_i_cache.html',1,'dcrud']]], ['icallback',['ICallback',['../d2/dfa/classdcrud_1_1_i_callback.html',1,'dcrud']]], ['icrud',['ICRUD',['../d9/d9a/classdcrud_1_1_i_c_r_u_d.html',1,'dcrud']]], ['idispatcher',['IDispatcher',['../d4/de7/classdcrud_1_1_i_d...
package org.aoc2021 import java.nio.file.Files import java.nio.file.Path object Day8 { private fun solvePart1(lines: List<String>): Int { return lines.sumOf { line -> val outputDigits = line.split(" | ")[1].split(" ") outputDigits.count { setOf(2, 3, 4, 7).contains(it.length) } ...
#!/bin/bash yum update -y sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key sudo yum install jenkins -y sudo yum install docker -y docker run -p 8080:8080 jenkins
package com.atanana.currencycompose import androidx.compose.runtime.snapshots.SnapshotStateList fun <T> SnapshotStateList<T>.update(block: (T) -> T) { val newItems = map { block(it) } clear() addAll(newItems) }
// Copyright 2020 Google LLC // // Use of this source code is governed by an MIT-style license that can be found // in the LICENSE file or at https://opensource.org/licenses/MIT. pub mod action; pub mod fs; pub mod message; pub mod metadata; pub mod opts; pub mod session; pub mod gzchunked; use crate::opts::{Opts}; ...
fun test(c: Date<caret>) { } // ORDER: Date // ORDER: DateDV // ORDER: DateFormat
import { differenceReducer, concatReducer, unionReducer, intersectionReducer } from '../utils'; describe(concatReducer.name, () => { it('works :)', () => { expect(concatReducer([], [])).toEqual([]); expect(concatReducer([1, 2], [])).toEqual([1, 2]); expect(concatReducer([], [3, 4])).toEqual([3, 4...
<?php namespace AppBundle\DataFixtures\ORM; use AppBundle\Entity\Monster; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Common\Persistence\ObjectManager; class MonsterData extends AbstractFixture implements DependentFixtureInterface { /...
name := "SWRS" version := "0.1" scalaVersion := "2.12.6" updateOptions := updateOptions.value.withGigahorse(false) scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation") resolvers ++= Seq( "Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases/", "Jzy3d Releases" at "https:...
using System; using System.Collections.Generic; using System.ComponentModel; namespace TaskList.Abstractions { public class BaseViewModel : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; string _propTitle = string.Empty; bool _propIsBusy; pu...
<?php /** * Sufet is a content-negotiation library and PSR-7 compliant middleware. * * @category Sufet * @package Tests * @author Brendan Maione-Downing <b.maionedowning@gmail.com> * @copyright 2016 * @license MIT * @link https://github.com/bmd/Sufet */ date_default_timezone_set('US/Eastern...
# Python - 2.7.6 def fix_the_meerkat(arr): return arr[::-1]
import React, { useState, useEffect } from 'react' import { GqlError } from 'forge-core' import { useQuery, useMutation } from 'react-apollo' import { Box, Keyboard, Text, Form } from 'grommet' import { Button } from 'forge-core' import { setToken, wipeToken } from '../helpers/auth' import { ME_Q, SIGNIN } from './gra...
package ch.uzh.ifi.seal.soprafs19.service; import ch.uzh.ifi.seal.soprafs19.Application; import ch.uzh.ifi.seal.soprafs19.constant.UserStatus; import ch.uzh.ifi.seal.soprafs19.entity.Game; import ch.uzh.ifi.seal.soprafs19.entity.User; import ch.uzh.ifi.seal.soprafs19.repository.GameRepository; import ch.uzh.ifi.seal....
create table location( location varchar primary key, latitude numeric(8, 4) not null, -- -90 -> 90 longitude numeric(8, 4) not null -- -180 -> 80 );
export * from './User' export * from './Supplier' export * from './Order' export * from './Item' export * from './OrderItem'
require 'formula' class JsonSpirit < Formula desc "C++ JSON parser/generator" homepage 'http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx' url 'https://github.com/png85/json_spirit/archive/json_spirit-4.07.tar.gz' sha1 'b29272c59f8f840c255f75a0949ba839b7cec13b' depends_on 'boost' depends_on 'cmake' =...
--- layout: archive title: "CV" permalink: /cv/ author_profile: true redirect_from: - /resume --- {% include base_path %} Education ====== * B.S. in Computer Engineering, La Salle University 2014 * M.S. in Artificial Intelligence, Katholieke Universiteit Leuven, 2016 Work experience ====== * 2016: Applied Machine ...
//~ name a407 alert(a407); //~ component a408.js
CREATE USER IF NOT EXISTS 'spring'@'localhost' IDENTIFIED BY 'spring'; DROP DATABASE IF EXISTS BOOKS; USE BOOKS; GRANT ALL PRIVILEGES ON BOOKS.* TO 'spring'@'localhost'; FLUSH PRIVILEGES; SET GLOBAL time_zone = '+5:00';
##所有用户数 #macro($getAllUserCount()) SELECT count(*) FROM USER #end
use crate::failure::save_failure; use backtrace::Backtrace; use std::{panic, sync::Once}; fn panic_hook(info: &panic::PanicInfo) { let err = anyhow!("supervisor panicked: {}\n{:?}", info, Backtrace::new()); if let Err(err) = save_failure(&err) { error!("unable to write panic log: {:?}", err); } } ...
/* * Copyright (C) 2022 Smirnov Vladimir / mapron1@gmail.com * SPDX-License-Identifier: MIT * See LICENSE file for details. */ #pragma once #include "IModule.hpp" #include "CoreExport.hpp" #include <functional> namespace D2ModGen { CORE_EXPORT IModule::Ptr createModule(PropertyTree moduleMetaData, std::string ...
import PushNewBlogParams from "@/services/models/PushNewBlogParamsModel"; import request from "umi-request"; import {BlogPushNewResultData} from "@/services/models/BlogPushNewResultData"; // 发布一篇新博客 export async function pushNewBlog(params:PushNewBlogParams) { return request<BlogPushNewResultData>('/api/blog/push-n...
# -*- coding: utf-8 -*- require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Kindai::BookDownloader, 'with book which contains slash in title' do before do @book = Kindai::Book.new_from_permalink('http://kindai.ndl.go.jp/info:ndljp/pid/1057420') @downloader = Kindai::BookDownloader.ne...
package Bio::GFF3::Transform::FromFasta; BEGIN { $Bio::GFF3::Transform::FromFasta::AUTHORITY = 'cpan:RBUELS'; } { $Bio::GFF3::Transform::FromFasta::VERSION = '2.0'; } # ABSTRACT: make gff3 for the sequences in a fasta file use strict; use warnings; use Carp; use Scalar::Util 'blessed'; use base 'Exporter'; our @E...
npm install axios npm install express npm install bodyParser npm install request npm install moment npm install path
module Travis::API::V3 class Queries::Owner < Query params :login, :github_id, :provider def find find!(:organization) || find!(:user) end private def query(type, main_type: self.main_type, params: self.params) main_type = type if main_type == :owner params['provider'] ||= 'gi...
// // hdhScene.h // hdh048 // // Copyright (c) 2014 Danqing. All rights reserved. // #import <SpriteKit/SpriteKit.h> @class hdhGrid; @class hdhViewController; @interface hdhScene : SKScene @property (nonatomic, weak) hdhViewController *controller; - (void)startNewGame; - (void)loadBoardWithGrid:(hdhGrid *)gri...
object frmViewKernelInfo: TfrmViewKernelInfo Left = 628 Top = 218 BorderIcons = [biSystemMenu, biMinimize] BorderStyle = bsSingle Caption = #20869#26680#25968#25454#26597#30475 ClientHeight = 368 ClientWidth = 397 Color = clBtnFace Font.Charset = ANSI_CHARSET Font.Color = clWindowText Font.Height ...
if(true) { let id_carro = 9; } console.log(id_carro);//error no defined
--- title: "Planta" bg: '#41CD2F' color: white fa-icon: list-alt --- ## **Planta** <br> ![JPG](/img/planta.jpg)
SUBROUTINE constants USE global IMPLICIT NONE !C --- Constants for Kappa function ------------------------------------ P = -K + 0.50 ! constant at power in Kappa B = 1.0/(K - 1.50) ! constant at dinominator in Kappa !-------------- For Cairns distribution ------------------------ ...
import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:firebase_analytics/firebase_analytics.dart'; import 'package:firebase_messaging/firebase_messaging.dart'; import 'package:first_app/providers/auth.dart'; import 'package:...
# list statuses here to define a person's status in OneBody # any status not listed will cause a person to be 'inactive' in OneBody STATUSES = { pending: [ 'Visitor' ], active: [ 'Member - Active', 'Non-Member - Active' ] }.freeze # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ...
import find from 'lodash/find'; import isEqual from 'lodash/isEqual'; import { any, arrayOf, func, instanceOf, oneOfType, node, shape, string, } from 'prop-types'; import React, { useCallback, useMemo } from 'react'; import { FormControl, FormHelperText, FormLabel } from '@material-ui/core'; import Opt...
class AppDeletion attr_reader :app private :app def initialize(app) @app = app end def delete! HTTP.delete(url).status.success? end private def url ENV.fetch('NOMAD_API_URI') + '/v1/job/' + app.name end end
package plugin import ( "context" "fmt" "strings" "testing" "time" "github.com/Azure/azure-sdk-for-go/storage" "github.com/Azure/go-autorest/autorest/to" "github.com/golang/mock/gomock" "github.com/sirupsen/logrus" "github.com/openshift/openshift-azure/pkg/api" pluginapi "github.com/openshift/openshift-az...
#!/usr/bin/env ruby require 'fileutils' require 'yaml' yaml = YAML.load_file('./Specs/LKAlphaComSpecs.yml') build_dir = "./build" unless File.directory?(build_dir) FileUtils.mkdir_p(build_dir) end com_specs = "" com_specs_file_name = "LKAlphaComSpecs.h" com_specs_file = "./Sources/#{com_specs_file_name}" format_...
/* ** TP CPE Lyon ** Copyright (C) 2015 Damien Rohmer ** ** This program is free software: you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation, either version 3 of the License, or ** (at your option) any later ve...
#!/usr/bin/expect -f set address [lindex $argv 0]; set username [lindex $argv 1]; set password [lindex $argv 2]; set profile [lindex $argv 3]; spawn /opt/cisco/anyconnect/bin/vpn connect $address expect { "*Connect Anyway?" { send "y\r" exp_continue } "Group:*" { send "$profile\r" ...
#!/usr/bin/env bash set -e # fail on first error DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "${DIR}" NAME="wise-sql monitoring(run-monitoring.sh)" if [ -z "${SLACK_WEBHOOK_URL}" ]; then echo "$NAME: SLACK_WEBHOOK_URL env is not set" exit 1 fi if [ -z "${WISE_ENVIRONMENT_TYPE}" ]; then ech...
import { sendMessageToParent } from '../internal/communication'; import { ensureInitialized } from '../internal/internalAPIs'; import { FrameContexts } from './constants'; import { runtime } from './runtime'; /** * @alpha */ export namespace call { export enum CallModalities { Unknown = 'unknown', Audio = ...
<?php namespace App\Http\Controllers; use App\Homepage; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class Homecontroller extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth...
import utils.{Wired, LoggerHelper, LoggerService} import Wired.PlayConfiguration import com.typesafe.scalalogging.Logger import play.api.{Application, GlobalSettings} import utils.{LoggerHelper, LoggerService} import scala.util.Try /** * Created by dmitry on 1/11/15. */ object Global extends GlobalSettings with Pla...
_posts/0000-01-02-MichaelRea-NZ.md --- layout: slide title: "Welcome to our second slide!" Replace line 5 of your file with a quotation or meme Your text Use the left arrow to go back!
from machine import Pin from onewire import OneWire from ds18x20 import DS18X20 import time ds = Pin(16, Pin.OUT) sensor = DS18X20(OneWire(ds)) roms = sensor.scan() while True: sensor.convert_temp() time.sleep_ms(750) for rom in roms: print(sensor.read_temp(rom)) time.sleep(2)
using System.Text.RegularExpressions; using Glimpse.Core.Configuration; using Xunit; namespace Glimpse.Test.Core.Configuration { public class RegexElementShould { [Fact] public void GetSetRegex() { var element = new RegexElement(); var regex = new Regex(".+"); ...
/* * Copyright 2020 The Android Open Source Project * * 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 applica...
package com.ort.lastwolf.api.form data class VillageMessageForm( val message_type_list: List<String>?, val participant_id_list: List<Int>?, val from: Long?, val keyword: String?, val page_size: Int?, val page_num: Int? ) { constructor() : this(null, null, null, null, null, null) }
//! Dubious values. //! //! [`Dubious`] is a zero-cost wrapper around a value for use when: //! - There exists some invalid states of the contained value. //! - Those invalid states *must* be checked before the value can be used //! elsewhere. //! - There is nothing inherently incorrect with operating on a value with...
/* * Copyright 2018 JetBrains s.r.o. * * 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 to...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; [RequireComponent(typeof(Text))] public class CaptainDialogues : MonoBehaviour { public string[] dialogues; private Text _text; void Start() { _text = GetComponent<Text>(); int progres...
import { Buffer } from "buffer"; export function isChunkParsed(chunk) { return typeof chunk.parsedSize === "number"; } export function walkModules(modules, cb) { for (const module of modules) { if (cb(module) === false) return false; if (module.groups) { if (walkModules(module.groups, cb) === false...
'use strict' var req = require('./requestor')(); // make sure everyone is requesting thought the same object var u = require('./user.js'); var s = require('./subreddit.js'); var l = require('./link.js'); var c = require('./comment.js'); module.exports = function() { [u,s,l,c].map(function(i){return i.init(req, u....
var Viewer = function (options){ var $body = $('body'); var socket; var init = function () { console.log("init"); initSocket(); }; var initSocket = function (){ if(socket) return; // already initialized // socket.io initialiseren socket = io.connect(window.location.hostname); // some debugging stat...
namespace Fambda { /// <summary> /// Type-class marker. /// </summary> public interface Typeclass { } }
package com.skosc.incontrol.reflect import com.skosc.incontrol.annotation.Body import com.skosc.incontrol.annotation.Path import com.skosc.incontrol.annotation.Query import com.skosc.incontrol.handler.parameter.ParameterType import com.skosc.incontrol.handler.parameter.ParameterTypeResolver import com.skosc.incontrol....
package main import ( "fmt" "time" pubnub "github.com/sprucehealth/pubnub-go" ) type Lists struct { message_list map[string]interface{} deleted_ids map[string]interface{} message_ids map[string]interface{} } var my_channel string func displayMessages(message interface{}, channel string, lists *Lists) { if...
/* Biblioteca para gerenciar e executar os estados da máquina --> Implementações futuras: -Colocar o on Run para executar no timer 1 com desligar timer -Implementar recurso de execução assíncrona */ #ifndef MACHINE_H #define MACHINE_H typedef void (*TEvent)(void); typedef struct { TEvent _...
package com.soup.memo.kotlin import java.io.File /** * <p> * 函数扩展的调用 * </p> * * @author zhaoyi * @date 2020-03-07 18:59 * @since 1.0 */ fun main(args: Array<String>) { var file = File("kotlin.iml") // readText是kotlin扩展方法 println(file.readText()) }
using NetPrints.Core; using System; using System.Runtime.Serialization; using System.Linq; namespace NetPrints.Graph { /// <summary> /// Node representing the initial execution node of a method. /// </summary> [DataContract] public class MethodEntryNode : ExecutionEntryNode { ...
/* * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.build.report.metrics object DoNothingBuildMetricsReporter : BuildMetricsReporter...
package org.archivemanager.services.reporting; import org.archivemanager.data.Record; import org.archivemanager.data.RestResponse; import org.archivemanager.models.system.QName; import org.archivemanager.services.search.SearchRequest; import org.archivemanager.util.StringFormatUtility; public abstract class...
require 'spec_helper' describe ForeignKeyValidation::Collector do describe ".new" do subject { ForeignKeyValidation::Collector } it "initializes new validator when class is present" do expect(subject.new(klass: Issue)).to be_instance_of ForeignKeyValidation::Collector end it "raises error f...
#include "todo_list.h" #include <limits.h> todo_list_t init_todo_list(size_t max_size) { size_t index; todo_list_t todo_list; memset(&todo_list, 0, sizeof(todo_list_t)); if (max_size == 0) { return todo_list; } todo_list.max_size = max_size; todo_list.cur_size = 0; todo_lis...
namespace WPFTemplate.Setting { public class AppSetting { public string StartupWindow { get; set; } } }
package convention import "unicode" // CamelCase translates string to start with lowercase func CamelCase(in string) string { if in == "" { return "" } out := make([]rune, 0) nextCapitilized := false experiencedFist := false for _, c := range in { if experiencedFist == false { if c != '_' && c != '-' &...
# frozen_string_literal: true require 'date' require 'effective_interest_rate/payment.rb' require 'effective_interest_rate/relative_payment.rb' require 'effective_interest_rate/payment_stream.rb' require 'effective_interest_rate/relative_payment_stream.rb' require 'effective_interest_rate/newton_iteration.rb' require...
package cronus.auth import java.nio.charset.StandardCharsets import java.security.MessageDigest import javax.crypto.Cipher import javax.crypto.spec.SecretKeySpec import com.twitter.util.Future import sun.misc.{BASE64Decoder, BASE64Encoder} import scala.annotation.tailrec private[auth] class CryptUtil(private val ke...
<?php namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use AppBundle\Entity\TextConfig; use Symfony\Component\HttpFoundation\Response; use Doctrine\ORM\EntityManagerInte...
SELECT * FROM productids WHERE id=?; SELECT name FROM productids WHERE id=?; select * from Win32_VideoController SELECT id_to FROM crosslinks WHERE id_from=?;
Install the `b64` command. ``` ln -s ~/dotfiles/base64/b64 ~/bin/b64 ```
package com.app.soapws.model.services.impl; import com.app.soapws.model.entities.ConsumerDTO; import com.app.soapws.model.repositories.ConsumerRepository; import com.app.soapws.model.services.IConsumerService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annot...
<?php /** * Created by PhpStorm. * User: serhii.korobov * Date: 4/5/17 * Time: 2:11 PM */ namespace common\models\event\source; class EventType extends SourceAbstract { public function getOptions($withDefault = true) { $options = [ '' => '', 'consumer' => \Yii::t('app', '...
var i = 1ea for(el in "" != l) ael OK returnIntArray1!!..[]!!
import { v4 as uuid } from 'uuid' import dayjs, { Dayjs } from 'dayjs' import { checkMaxLength, checkMinLength, checkNoWhiteSpace, checkUrl, checkValidUuidFormat, } from '../validator' import { SystemInfo } from '~/utils/types' interface Props { teamId: string url: string name: string description: st...