text stringlengths 27 775k |
|---|
using Foundation;
using System;
using System.Collections.Generic;
using System.CodeDom.Compiler;
using UIKit;
namespace BookStore
{
public class Book
{
public String Name { get; set; }
public String Author { get; set; }
public String Editor { get; set; }
public int Year { get;... |
#!/bin/bash
rs_taskstart=""
rs_taskname=""
rs_task_start() {
rs_log_info $(printf "\033[1mstarting task:\033[0m %s\n" "$1")
rs_taskname=$1
rs_taskstart=$(date +%s.%N)
}
rs_task_done() {
cd $RS_PATH
local timer=$(date +%s.%N)
local dt=$(echo "$timer - $rs_taskstart" | bc)
local dd=$(echo "$dt/86400" | b... |
#include <renderable.h>
#include <geometry/cleaner.h>
namespace Model
{
Renderable::Renderable(const std::string &name)
:m_name(name),
m_selected(false),
m_visible(true)
{
}
const std::string &Renderable::name() const
{
return m_name;
}
bool Renderable::visible() const
{
return m_visible;
}
void Renderable::... |
require 'ffi'
require 'java'
module Process
class Foreign
SC_CLK_TCK = com.kenai.constantine.platform.Sysconf::_SC_CLK_TCK.value
extend FFI::Library
ffi_lib FFI::Library::LIBC
class Times < FFI::Struct
layout \
:utime => :long,
:stime => :long,
:cutime => :long,
... |
package opengis.process.model
/**
* Created by Chris on 28/01/2018.
*/
open class TileData( val rawImageData: ByteArray ) |
package com.github.cuzfrog
import java.awt.Color
object GenericPolymor {
trait Pet[A] {
def name(a: A): String
def renamed(a: A, newName: String): A
}
implicit class PetOps[A](a: A)(implicit ev: Pet[A]) {
def name = ev.name(a)
def renamed(newName: String): A = ev.renamed(a, newName)
}
ca... |
#!/bin/bash
while true
do
echo "Attempting to poke"
sh ./smart_poke.sh
sleep 3
done
|
<?php
/**
* Author: imsamurai <im.samuray@gmail.com>
* Date: 08.07.2013
* Time: 18:09:32
* Format: http://book.cakephp.org/2.0/en/development/testing.html
*/
App::uses('Monitoring', 'Monitoring.Model');
App::uses('MonitoringChecker', 'Monitoring.Lib/Monitoring');
/**
* MonitoringTest
*
* @property Monitoring... |
package com.findwise;
import io.restassured.http.ContentType;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.http.... |
CREATE TABLE "PLSQL_PROFILER_RUNS"
( "RUNID" NUMBER,
"RELATED_RUN" NUMBER,
"RUN_OWNER" VARCHAR2(32 CHAR),
"RUN_PROC" VARCHAR2(256 CHAR),
"RUN_DATE" DATE,
"RUN_COMMENT" VARCHAR2(2047 CHAR),
"RUN_TOTAL_TIME" NUMBER,
"RUN_SYSTEM_INFO" VARCHAR2(2047 CHAR),
"RUN_COMMENT1" VARCHAR2(256 CHAR),
"SPARE1... |
#!/bin/bash
# @ref http://www.cnblogs.com/tianyapiaozi/archive/2011/06/11/2513899.html
# @ref http://www.voidcn.com/article/p-gkrqyher-bhv.html
# @ref http://smilejustforfan.blogspot.com/2012/03/bashsnippet.html
# INTERVAL=1 #sleep time
# TCOUNT=0 #for each TCOUNT the line twirls one increment
#
# while :
# do
# ... |
# Girakkagraph
### Let Akka actors figure out your model
### You just give 'em the rules |
package com.ua.plamber_android.activitys;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import com.ua.plamber_android.R;
import com.ua.plamber_android.fragments.De... |
SELECT * FROM film AS movie WHERE movie.rental_rate > 3
# SELECT title AS movie_title FROM film WHERE title LIKE "A%" |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System;
using System.Data.Common;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.SqlTools.ServiceLayer.Connection;
using Microsoft.SqlToo... |
/****************************************************************************\
*
* toffdlg.h
*
* Created: William Taylor (wtaylor) 01/22/01
*
* MS Ratings Turn Off Ratings Dialog
*
\****************************************************************************/
#ifndef TURN_OFF_DIALOG_H
#define... |
import { makeStyles } from '@material-ui/core/styles';
export const useStyles = makeStyles({
container: {
// minWidth: 400,
minHeight: 400,
background: 'black',
borderRadius: 10,
color: 'white',
marginTop: '2rem',
paddingLeft: 10,
paddingRight: 10,
paddingTop: '1rem',
paddingB... |
/**
* @description Apply a case insensitive regex pattern to a string
* @param x The string to apply the regex to
* @returns a RegExp object which does case insensitive matching with all text containing the passed string
*/
export const makeCaseInsensitiveRegex = (x: string): RegExp => new RegExp(`.*${x}.*`, 'i');
... |
from django.urls import path
from autobuyfast.career.views import career_detail_view, career_view
app_name = "careers"
urlpatterns = [
path('', career_view, name='list'),
path('<slug>/', career_detail_view, name='detail'),
]
|
module Statuses
extend ActiveSupport::Concern
def force_delete?
statuses.include?(DomainStatus::FORCE_DELETE)
end
end
|
package com.github.collection.demo2;
/**
* @author 许大仙
* @version 1.0
* @since 2021-09-01 21:37
*/
public class Person {
private String name;
public void say(String word) {
boolean flag = true;
if (flag) {
int age = 5;
System.out.println("我的名字是:" + this.name + ",我的... |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Coworkers_admin extends MX_Controller {
/* Gallery constructor
*
*/
function __construct() {
parent::__construct();
$this->load->model('Coworkers_model');
$this->OwnHelpers->is_logged_in();
... |
export * from './service.interface'
export * from './service'
|
#!/bin/bash
syntax="sas.syntax"
comma_color=brightcyan
keywords1_color=brightmagenta
keywords2_color=brightblue
keywords3_color=cyan
keywords4_color=brightgreen
comments_color=green
strings_color=magenta
digits_color=brightgreen
echo "context default" > $syntax
echo "keyword ; $comma_color" >> $syntax
echo "">> "$... |
package microloggertest
import (
"io/ioutil"
"github.com/giantswarm/micrologger"
)
// New returns a Logger intance configured to discard its output.
func New() micrologger.Logger {
c := micrologger.Config{
IOWriter: ioutil.Discard,
}
logger, err := micrologger.New(c)
if err != nil {
panic(err)
}
return... |
#!/bin/bash
CMDGET="echo '$1' | openssl aes-256-cbc -a -d -salt"
OUTPUT2=$(
expect << EOD
log_user 0
spawn sh -c "$CMDGET"
expect "*password:*"
send "$2\r"
sleep 1
set result $expect_out(buffer)
interact
puts -nonewline "$result"
expect eof
EO... |
#include "Address.h"
using Network::Address;
Address::Address(Host hostName, Port portNumber)
: endpoint{ std::make_pair(hostName, portNumber) }
{
}
auto Address::host() const -> Host
{
return endpoint.first;
}
auto Address::port() const noexcept -> Port
{
return endpoint.second;
} |
require File.dirname(__FILE__) + '/../../shared/complex/multiply'
ruby_version_is ""..."1.9" do
require 'complex'
describe "Complex#* with Complex" do
it_behaves_like(:complex_multiply_complex, :*)
end
describe "Complex#* with Integer" do
it_behaves_like(:complex_multiply_integer, :*)
end
descr... |
package ru.stqa.pft.addressbook.tests;
import org.testng.annotations.Test;
public class ContactCreationTests extends TestBase2 {
@Test
public void testContactCreation() {
initContactCreation();
fillContactForm(new ContactData("olga", "shahova", "krasnoyarsk", "sonsib@mai.ru"));
submit... |
package org.gradoop.spark.functions
import org.apache.spark.sql.functions._
import org.apache.spark.sql.{Column, DataFrame, SparkSession}
import org.gradoop.common.util.ColumnNames
class LabelKeyFunction extends KeyFunction {
/* Used to improve performance with tfl layout */
var labelOpt: Option[Array[String]] =... |
# Checkout Integration
This is an example Checkout integration using Deno. This is based on
https://stripe.com/docs/payments/accept-a-payment?integration=checkout.
**Note that this requires Deno v1.16 or greater.**
## Setup
1. Follow instructions for installing [Deno](https://deno.land/#installation).
## Running
... |
-module(squaresparrow).
-behavior(gen_server).
%% GenServer exports
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
%% API exports
-export([
start_link/1, start_link/2,
add_workers/2, add_workers/3,
call/2, call/3, call_rr/2, call_rr/3, call_shard/3, call_shard/4,
cast/... |
#!/bin/sh
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
echo "###############################################"
echo " BASHSRG - Bash STIG NULL Configuration Script"
echo " Skipping STIG"
echo "###############################################" |
namespace VRTK.Core.Prefabs.CameraRig.SimulatedCameraRig
{
using UnityEngine;
using UnityEngine.UI;
using VRTK.Core.Prefabs.CameraRig.UnityXRCameraRig.Input;
/// <summary>
/// Sets up the key binding display.
/// </summary>
public class KeyBindingDisplay : MonoBehaviour
{
... |
self.addEventListener('fetch', event => {
const url = new URL(event.request.url)
, isShell = url.origin === location.origin && event.request.method === 'GET'
if (!isShell) {
event.respondWith(fetch(event.request))
return
}
event.respondWith(
caches
.match(ev... |
package com.dci.dev.appinfobadge.utils
import android.content.Context
import android.content.Intent
import android.content.res.Resources
import android.net.Uri
import android.provider.Settings
import android.webkit.WebView
import androidx.core.content.res.ResourcesCompat
/**
* Extension method to find a device heigh... |
#!/bin/bash
curdir=`pwd`
echo $curdir
#paste $curdir user.list > trans.list
#sed -n 's/KsponSpeech/$curdir'KsponSpeech'/ user.list > trans.list
cd $curdir
numfile=$(ls -l | grep .txt$ | wc -l)
rm trans.list
rm trans1.list
rm trans.txt
echo $numfile
(ls -l | grep .txt$) | awk '{print $9}' | sed '/decoded/d' | sed '/tr... |
package ch.epfl.bluebrain.nexus.delta.sdk.testkit
import akka.persistence.query.{Offset, Sequence}
import ch.epfl.bluebrain.nexus.delta.sdk.model.{Envelope, Event}
import fs2.Stream
import monix.bio.{Task, UIO}
object DummyHelpers {
/**
* Constructs a stream of events from a sequence of envelopes
*/
def ... |
#![feature(proc_macro_hygiene, decl_macro)]
#[macro_use]
extern crate rocket;
extern crate rocket_contrib;
use rocket::State;
use rocket_contrib::json::Json;
use serde::Serialize;
use std::sync::Mutex;
mod cors;
struct AppState {
count: usize,
}
#[derive(Serialize, Copy, Clone)]
enum Status {
Ok,
Error,
... |
import execa from 'execa';
import fetch from 'node-fetch';
import { getNodeSecurityChecker } from '../src/security';
import { logMessages } from '../src/log-messages';
/// <reference types="@types/jest" />
jest.mock('execa');
jest.mock('node-fetch');
jest.mock('fs-extra');
const { Response } = jest.requireActual('nod... |
<?php
/**
* @author @fabfuel <fabian@fabfuel.de>
* @created 13.11.14, 08:13
*/
namespace Fabfuel\Prophiler\Benchmark;
/**
* Interface BenchmarkInterface
* @package Fabfuel\Prophiler\Benchmark
*/
interface BenchmarkInterface
{
/**
* Unique identifier like e.g. Class::Method (\Foobar\MyClass::doSomething... |
---
title: "新能源汽车电池使用分析"
collection: projects
type: "工业智能算法"
permalink: /projects/2018-10-project-16
venue: "某大型汽车制造国企,联想"
date: 2018-10-08
location: "重庆"
---
基于对海量电池数据的分析,结合行业专家知识,构建机器学习模型,完成电池健康度预测、健康度影响因子分析、电池使用行为模式、里程焦虑计算等。
该项目成果对用户电池使用行为做有效的指导,也给长安汽车进行电池相关的设计提供重要参考。
应用单位
-----
重庆某大型汽车制造国企
实施周期
... |
#!/usr/bin/env Rscript
#sink(file("/dev/null", "w"), type = "message");
library(affy)
library(GEOquery);
library(pathprint);
# Figure out the relative path to the galaxy-pathprint.r library.
script.args <- commandArgs(trailingOnly = FALSE);
script.name <- sub("--file=", "", script.args[grep("--file=", script.args)... |
module ReportsHelper
def net_suite_export_select_options
[
["NetSuite Donations Export", :donations],
["NetSuite Donors Export", :donors],
["NetSuite Orders Export", :orders],
["NetSuite Organizations Export", :organizations]
]
end
end
|
package com.task.noteapp.util
import androidx.appcompat.widget.AppCompatImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions.withCrossFade
import com.bumptech.glide.request.transition.DrawableCrossFadeFactory
fun AppCompatImageView.load(url: String) {
... |
<?php
namespace GDO\Util;
use GDO\Core\GDOError;
final class HTAccess
{
public static function protectFolder($path)
{
$content = <<<EOF
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Deny from all
</IfModule>
EOF;
# Create if not exist.
if (!is_dir($... |
// const Tuya = require('tuyapi');
const debug = require('debug')('TuyaSmartDevice');
const TuyaResolver = require('./lib/TuyaResolver');
const TuyaOutlet = require('./lib/TuyaOutlet');
const TuyaPowerStrip = require('./lib/TuyaPowerStrip');
const TuyaLightBulb = require('./lib/TuyaLightBulb');
// const TuyaAccessoryO... |
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:my_quotes/commons/resources/dimens.dart';
import 'package:my_quotes/commons/resources/my_quotes_icons.dart';
import 'package:my_quotes/commons/resources/strings.dart';
import 'package:my_quotes/commons/resources/styles.dar... |
package org.elm.ide.inspections
import com.intellij.codeInspection.LocalInspectionTool
import org.elm.lang.ElmTestBase
import org.intellij.lang.annotations.Language
abstract class ElmAnnotationTestBase : ElmTestBase() {
protected fun doTest(vararg additionalFilenames: String) {
myFixture.testHighlighting... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using VirtoCommerce.Domain.Common;
using VirtoCommerce.Domain.Marketing.Model;
namespace VirtoCommerce.MarketingModule.Expressions
{
public interface IConditionExpression
{
System.Linq.Expressions.Expression<Func<IEvaluationConte... |
// @flow
import React, { Component } from 'react';
import { Spinner } from '../../icons/Spinner';
import { FormInput } from '../../fields/FormInput';
import { Morfi, type FormData } from '../../../../dist/cjs/';
const validation = {
password: {
onChange: (v?: string) => {
if (!v) return { id: ... |
package org.kin.sdk.design.view.widget.internal
import android.app.Dialog
import android.content.Context
import android.graphics.Typeface
import android.os.Bundle
import android.view.Gravity
import android.view.View.GONE
import android.view.View.VISIBLE
import android.view.ViewGroup.LayoutParams.WRAP_CONTENT
import an... |
# -*- coding: utf-8 -*-
#
# Copyright (c) nexB Inc. and others. All rights reserved.
# ScanCode is a trademark of nexB Inc.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# See https://github.com/nexB/scancode-toolkit for support or download.
# See https://a... |
package com.kasem.flutter_absolute_path
import androidx.annotation.NonNull;
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.embedding.engine.plugins.activity.ActivityAware
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding
import io.flutter.plugin.common.MethodCall
imp... |
using P03.Detail_Printer;
using System;
using System.Collections.Generic;
namespace P03.DetailPrinter
{
class Program
{
static void Main()
{
Employee employee = new Employee("GoshoEmploito");
List<string> peshosDocs = new List<string>() { "doc1", "doc2" };
Employee manager = new Manag... |
require_dependency "larvata_gantt/application_controller"
module LarvataGantt
class LinkController < ApplicationController
before_action :set_link, only: [:update, :destroy]
def create
link = Link.new(source_id: link_params[:source],
target_id: link_params[:target],
... |
# Architecture Decision Records
- [1. add-openapi](0001-add-openapi.md)
- [2. add-typedoc](0002-add-typedoc.md)
|
package com.wlangiewicz.workouttracker.domain
case class SuccessfulUserSignUpResponse(apiKey: ApiKey)
case class UnsuccessfulUserSignUpResponse()
case class SuccessfulUserLoginResponse(apiKey: ApiKey)
case class UnsuccessfulUserLoginResponse()
case class SuccessfulRecordWorkoutResponse(workoutId: WorkoutId)
case ... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { User } from 'src/app/modules/SignUpMessge.module';
import { JasperService } from 'src/app/services/fileGiver.service';
import { LocalStorageService } from 'src/app/services/LocalStorage/local-storage.service';
import {... |
import java.util.regex.Pattern
/**
* Created by tony on 2018/5/30.
*/
fun String.checkEmail(): Boolean {
val emailPattern = "[a-zA-Z0-9][a-zA-Z0-9._-]{2,16}[a-zA-Z0-9]@[a-zA-Z0-9]+.[a-zA-Z0-9]+"
return Pattern.matches(emailPattern, this)
}
fun main(args: Array<String>) {
println("fengzhizi715@126.com".c... |
export { AbsintheLink } from './absinthe/apollo-link';
export { AbsintheOperation } from './absinthe/absinthe';
export { PhoenixChannel } from './phoenix/channel';
export { PhoenixSerializer } from './phoenix/serializer';
export { PhoenixSocket } from './socket/socket';
|
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
using Xamarin.Forms;
namespace CoffeeCups.iOS
{
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
public override bool Finishe... |
# Author:: radiospiel (mailto:eno@radiospiel.org)
# Copyright:: Copyright (c) 2011, 2012 radiospiel
# License:: Distributes under the terms of the Modified BSD License, see LICENSE.BSD for details.
require_relative 'test_helper'
class MatchingTest < Test::Unit::TestCase
def assert_match(value, expectation)
... |
REAL B(11)
CHARACTER*190 A
C OPEN NEW FILES
OPEN(1,FILE='KIM.DAT',STATUS='OLD')
OPEN(2,FILE='DKIM.DAT',STATUS='NEW')
C READ IN THE NUMBER OF LINES TO SKIP AND READ
DO 600 LKK=1,32
READ(1,*)NS,NR
WRITE(2,*)NS,NR
DO 30 I=1,NS
READ(1,22)A
30 CONTINUE
DO ... |
package sbt
package client
/**
* An interface which clients that support interaction with tasks implement.
*/
trait Interaction {
/** Prompts the user for input, optionally with a mask for characters. */
def readLine(prompt: String, mask: Boolean): Option[String]
/** Ask the user to confirm something (yes or n... |
<?php
namespace Sendcloud\Shipping\Core\Infrastructure\TaskExecution\TaskEvents;
use Sendcloud\Shipping\Core\Infrastructure\Utility\Events\Event;
/**
* Class TickEvent.
*
* @package Logeecom\Infrastructure\Scheduler
*/
class TickEvent extends Event
{
/**
* Fully qualified name of this class.
*/
... |
from tests.base_test_case import BaseTestCase
from app.utils.auth import Auth
class TestAuth(BaseTestCase):
def setUp(self):
self.BaseSetUp()
def test_get_user_method_return_dict_of_user_data_if_valid_header_present(self):
with self.app.test_request_context(path='/api/v1/vendors', method='GET', headers=se... |
import settings from '../config/settings';
import StorageService from './storage.service';
import PlatformService from './platform.service';
// Methods
var Service = {
getToken: getToken,
refreshToken: refreshToken,
forgotPassword: forgotPassword,
getOauth: getOauth,
createUser: createUser,
get... |
import Request from './request';
import { getQueryString } from './function';
import EventHandler from './event';
export {
Request,
getQueryString,
EventHandler
} |
using System;
namespace Karl.Graphics
{
public struct SpriteAnimationFrame
{
public TimeSpan Time;
public Sprite Sprite;
public SpriteAnimationFrame(TimeSpan time, Sprite sprite)
{
Time = time;
Sprite = sprite;
}
}
}
|
require 'spec_helper'
describe Rulers do
context 'has a version number' do
Given(:version) { Rulers::VERSION }
Then { version != nil}
end
end
|
# nodes-each
> Loop through a NodeList (e.g. the result of querySelectorAll).
## Install
`npm i --save nodes-each`
## nodesEach (NodeList, callback[, scope])
```
var nodesEach = require('nodes-each');
nodesEach( document.querySelectorAll('.someSelector'), function (idx, el) {
console.log('index: ' + idx, 'e... |
<?php
namespace App\Http\Controllers;
use App\Models\User;
use App\Models\Product;
use App\Models\Store;
use App\Models\Categury;
use App\Http\Requests\StoreProductRequest;
use App\Http\Requests\UpdateProductRequest;
class ProductController extends Controller
{
/**
* Display a listing of the resource.
... |
package help
import (
"bufio"
"io"
"os"
"strconv"
"strings"
)
func ReadInput(path string) []string {
fh, err := os.Open(path)
if err != nil {
panic(err)
}
lines := []string{}
sc := bufio.NewScanner(io.Reader(fh))
for sc.Scan() {
lines = append(lines, strings.Trim(sc.Text(), "\n"))
}
return lines
}
... |
this is hello world
<script type="text/javascript">
// NOTE:// aJAX BEGINS
$(function() {
$(".lib_switch").click(function(){
// $(".ski_loader").css("display", "block");
$(".lib_point").load("{{route('vidlib.vidload')}}");
$.ajax({
success:function(re){
SnackBar.show(... |
@extends('layouts.app')
@section('title')
Descrizione Category
@endsection
@section('main_content')
<div class="container" class="d-flex">
<div>{{$category->genre}}</div>
<div>{{$category->over18 ? 'si' : 'no'}}</div>
</div>
@endsection |
module Aequitas
class Matcher
class Unary
# Matcher that matches on attribute of value
class Attribute < self
# Return operand result for length of value
#
# @return [true]
# if operand returns false
#
# @return [false]
# otherwise
... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Bakery.Models;
namespace Bakery.Tests
{
[TestClass]
public class BreadTests
{
[TestMethod]
public void Constructor_InitializesObject_IsBread()
{
Bread newBread = new Bread(1);
Assert.AreEqual(typeof(Bread), newBread.GetType());
... |
package io.gitlab.arturbosch.detekt.formatting
import io.gitlab.arturbosch.detekt.formatting.wrappers.MaximumLineLength
import io.gitlab.arturbosch.detekt.test.TestConfig
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Nested
import org.junit.jupit... |
import { print, info, warn, error, data, debug, getDate } from './lib/utils';
export { print, info, warn, error, data, debug, getDate };
|
# WARNING: THIS SCRIPT DELETES DATA, RUN IT AT YOUR OWN RISK
# MAKE SURE THAT YOUR QUERY RETURNS CHANGESETS YOU WANT TO DELETE
# THE SCRIPT IS FOR DEMO PURPOSES ONLY AND IS NOT SUPPORTED BY RALLY
require 'rally_api'
#Setup custom app information
headers = RallyAPI::CustomHttpHeader.new()
headers.name = "Create image... |
# 任务二
分别实现如下的 document:
- dish
```
{
"name": "Uthapizza",
"image": "images/uthapizza.png",
"category": "mains",
"label": "Hot",
"price": "4.99",
"description": "A unique . . .",
"comments": [
{
"rating": 5,
"comment": "Imagine all the eatables, living in conFusion!",
"author": "Joh... |
#!/bin/sh
: ${SRCROOT:?"generate-rlmplatform.sh must be invoked as part of an Xcode script phase"}
SOURCE_FILE="${SRCROOT}/Realm/RLMPlatform.h.in"
DESTINATION_FILE="${TARGET_BUILD_DIR}/${PUBLIC_HEADERS_FOLDER_PATH}/RLMPlatform.h"
TEMPORARY_FILE="${TARGET_TEMP_DIR}/RLMPlatform.h"
PLATFORM_SUFFIX="$SWIFT_PLATFORM_TARG... |
# This should reverse a string
def reverseString(str)
str.reverse!
end
def reverseStringManual(str)
arr = str.split("")
revArr = []
arr.each do |i|
revArr.unshift( i )
end
revArr.join("")
end
def translatePigLatin(str)
return "#{str}way" if str[0] =~ /[aeoui]/i
arr = str.split("")
until arr[0] =~ /[aeou... |
#!/bin/sh
set -e
if [ $(uname) = "Linux" ]; then
apk add --no-cache --no-progress py2-pip imagemagick
pip install b2
fi
scene=$1
output=$2
commit_hash=$3
fullname=$(basename $scene)
filename=${fullname%.*}
# Render images
mkdir -p "$output"
build/raycaster $scene \
| convert - $output/${commit_hash}-${filena... |
---
title: "Plt. Ka. Sub. Bid. IE"
description: "Penata Tingkat I / IIId"
image: "https://i.pinimg.com/originals/b2/6a/28/b26a28fb468f65885740ff8ef273e76f.jpg"
date: 2020-07-07T11:36:05+07:00
draft: false
author: "Hetty Novianti, S.Si."
---
|
module Elasticemail
module Account
FIELDS_PRESENCE_REQUIRED = %w[
first_name
last_name
address_2
delivery_reason
]
ACCOUNT_UPDATE_PROFILE_ATTRIBUTES_MAPPING = {
:address_1 => "address1",
:address_2 => "address2",
:api_key => "apikey",
... |
# A few examples illustrating polisher's core extensions
require 'polisher/core'
puts "rails.gem".gem? # => true
puts "rails".gem? # => false
puts "rake.gemspec".gemspec? # => true
puts "rake".gemspec? # => false
puts "/foo/Gemfile".gemfile? # => true
puts "/foo/Gemfile.in".... |
#!/bin/bash
sudo gdb --args ./dpdk_picoquicdemo -l 0-4 -a 0000:51:00.0 -- -p 4443 |
angular-scratch
===============
Scratch space for messing with AngularJS. Nothing to see here. Move along.
|
{-# LANGUAGE MultiWayIf #-}
module Lib
( parseStdIn
) where
import Scri.GhcWrap
import Scri.Ast
import qualified Scri.Token as T
import Scri.Lexer
import Scri.Parser
import Control.Monad.IO.Class
import System.Environment
import qualified Data.List as List
parseStdIn :: IO ()
parseStdIn = do
putStrLn "hey... |
#include "config.h"
#ifdef LIB_USE_UART
#include <cassert>
#include <cstdarg>
#include "uart_device.h"
#include "util.h"
std::array<std::function<void(const uint8_t)>, 5> UartDevice::listeners_ = {nullptr};
/**
* @brief USART1 Handler
*/
extern "C" void USART1_IRQHandler();
/**
* @brief USART2 Handler
*/
exter... |
class Node:
def __init__(self, value=None, next=None):
self.value = value
self.next = next
class DoubleConnectedNode:
def __init__(self, value, next=None, prev=None):
self.value = value
self.next = next
self.prev = prev
def print_linked_list(vertex):
... |
/*
Author: Cristian E. Nuno
Date: November 9, 2019
Purpose: Identify the schools that are located in community areas
that have the highest number of jobs in 2017.
Note: This question is vague. After looking at the distribution of
jobs per community are... |
using System.Collections.Generic;
using VkBotFramework.Models;
using VkNet.Model;
namespace VkBotFramework.Abstractions
{
public interface IRegexToActionTemplateManager
{
IEnumerable<RegexToActionTemplate> SearchTemplatesMatchingMessage(Message message);
//void Register(string incomingMessageRegexPattern, stri... |
# frozen_string_literal: true
require 'bundler/setup'
require 'polyphony'
module GenServer
module_function
def start(receiver, *args)
fiber = spin do
state = receiver.initial_state(*args)
loop do
msg = receive
reply, state = receiver.send(msg[:method], state, *msg[:args])
... |
<?php
namespace App\Controllers;
use App\Models\KomikModel;
class Komik extends BaseController{
protected $komikModel;
public function __construct()
{
$this->komikModel=new KomikModel();
}
public function index(){
// $komik=$this->komikModel->findAll();
$data=[
'title'... |
//! PWM implementation
use super::pads::{ad_b0::*, b0::*, b1::*, emc::*, sd_b0::*};
use crate::{
consts::*,
pwm::{Pin, A, B},
};
impl Pin for SD_B0_00 {
const ALT: u32 = 1;
type Output = A;
type Module = U1; // FlexPWM1
type Submodule = U0; // FlexPWM1
}
impl Pin for SD_B0_01 {
const ALT:... |
[CmdletBinding()]
param(
)
$script:Aliases = @{
'ac' = 'Add-Content';
'cat' = 'Get-Content';
'cd' = 'Set-Location';
'clear' = 'Clear-Host';
'cp' = 'Copy-Item';
'cpp' = 'Copy-ItemProperty';
'diff' = 'Compare-Object';
'echo' = 'Write-Output';
'kill' = 'Stop-Process';
'ls' = 'Get-ChildItem';
'man' = 'Get-Help'... |
package com.danavalerie.util.ref;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class RefTest {
@Test
public void testRef() {
final Ref<String> ref = new Ref<>();
assertThat(ref.get()).isNull();
ref.set("foo");
assertThat(ref.get()).i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.