text
stringlengths
27
775k
// Copyright (c) 2020 Google LLC All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #![deny(missing_docs)] use { crate::{content::*, error::*, options::*}, std::cell::RefCell, std::collections::HashMap, std::collections::HashSet,...
require 'spec_helper' describe RspecApiDocumentation::Curl do let(:host) { "http://example.com" } let(:curl) { RspecApiDocumentation::Curl.new(method, path, data, headers) } subject { curl.output(host, ["Host", "Cookies"]) } describe "POST" do let(:method) { "POST" } let(:path) { "/orders" } let(:...
# digitalocean-paas-static Simple static site to automatic deploy DigitalOcean PaaS (Platform as a Service) Static Site # live url https://digitalocean-paas-static-x4s8t.ondigitalocean.app/
# Copyright (C) 2011, Kevin Polulak <kpolulak@gmail.com>. # Copyright (C) 2015-2016 The Perl6 Community. # TODO Define Test::Builder::Exception # TODO Replace die() with fail() =begin pod =head1 NAME Test::Builder - flexible framework for building TAP test libraries =head1 SYNOPSIS =begin code my $tb = Test:...
(function main() { 'use strict'; var sidebarShouldOpen = window.matchMedia('(min-width: 50em)'); function handleSidebarToggle(event) { if (event.matches) { document.querySelector('.main-navigation details').open = true; } else { document.querySelector('.main-navigation details').open = f...
## ![](https://raw.githubusercontent.com/JackJiang2011/beautyeye/master/screenshots/beautyeye_logo_h.png) :cn: [点击进入简体中文版](https://github.com/JackJiang2011/beautyeye/blob/master/README.md) :bulb: BeautyEye has migrated from [Google Code](https://code.google.com/p/beautyeye/) since 2015-01-30. BeautyEye is a cross pl...
from SceneGenerator import * import math scene = generateScene('ClothScene', camPosition=[0,15,30], camLookat=[0,0,0]) addParameters(scene, h=0.005, contactTolerance=0.05) friction = 0.1 restitution = 0.2 addRigidBody(scene, '../models/cube.obj', 2, coScale=[100, 1, 100], scale=[100, 1, 100], dynamic=0) addRigidBod...
// Copyright 2021 Praetorian Security, Inc. // // 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...
(function(name, context){ function gogo(){ console.info(name); } return { go:gogo }; })
module Options.Harg.Pretty ( ppHelp, ppSourceRunErrors, ) where import Control.Applicative ((<|>)) import Data.List (intercalate) import Data.Maybe (fromMaybe) import Options.Harg.Sources.Types import Options.Harg.Types ppHelp :: Opt a -> Maybe String ppHelp Opt {..} = (<> ppEnvVar _optEnvVar) <$> _optH...
using System; using System.Collections.Generic; using System.Text; namespace SSRD.IdentityUI.Admin.Models.Group { public class GroupUserTableModel { public long Id { get; set; } public string UserId { get; set; } public string Username { get; set; } public string Email { get; ...
-module(my_client_v2_benchmark_initiator). -export([start/0, run_clients/0]). -include("my_client_v2.hrl"). start() -> NumberOfClients = get_val(number_of_clients), TimeBetweenBenchmarks = get_val(time_between_benchmarks), _ = [begin ?LOG_INFO("Initiating requests from ~p clients", [N]), ...
use std::borrow::Cow; #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PunctuatorToken { CurlyOpen, // { CurlyClose, // } ParenOpen, // ( ParenClose, // ) SquareOpen, // [ SquareClose, // ] Semicolon, // ; Comma, // , Tilde, // ~ Question, // ? Colon, // : Period, // . Ellipsis, // ... ...
import React from "react"; import { BrowserRouter as Router, Switch, Route } from "react-router-dom"; import { UserData } from "react-oidc"; class AuthenticatedApp extends React.Component<any, any> { constructor(props: any) { super(props); this.state = {}; } static contextType = UserData; componentDi...
import { DirectionalProperty, Properties, Property, PropName, } from './properties'; import { CSSObject } from './system'; import { SafeLookup, SafeMapKey, WeakRecord } from './utils'; /** Theme Shape */ type BaseTheme = Readonly<{ readonly [key: string]: any; }>; export type AbstractTheme = BaseTheme & {...
#!/bin/bash # $Id: edit_changelog.sh,v 1.7 2005/03/16 13:39:50 jenst Exp $ esc=`echo -en "\033"` tab="${esc}[5G" clear if [ -z $1 ] ; then echo -e "\nusage :" echo "sh update_po_files.sh -all for all .po file" echo -e "or sh update_po_files.sh -po <language_COUNTRY> for only one. e.g. sh update_po_files.sh -po de_...
import { contracts } from '../services/contracts' export default async function isRecoveryMode(): Promise<boolean> { try { const isMissedCheckpointSubmission = await contracts.checkMissedCheckpointSubmission() return isMissedCheckpointSubmission } catch (e) { return Promise.reject(e) } }
using GLAA.Domain.Models; namespace GLAA.ViewModels { public class LicenceIndustryViewModel { public virtual Licence Licence { get; set; } public virtual Industry Industry { get; set; } } }
package com.edwin.randompicture.data.repository.session import com.edwin.randompicture.data.model.SessionEntity import io.reactivex.Completable import io.reactivex.Single interface SessionRemote { fun setSession(token: String?): Completable fun doRegister(email: String, name: String, password: String): Sing...
<?php namespace WebsiteAnalyzer; use WebsiteAnalyzer\Metrics\MetricsInterface; class Result { const ERR_INVALID_METRIC = 'Requested metric [%s] does not exist'; protected $metrics; protected $uri; protected $body; protected $headers; protected $status; public function __construct($data ...
TODO: =================== - Learning ERB, try used it for make elegant ruby code and compress usage html. - Added a work with sqlite, for example - Added a markdown - Make a class Page, for make page framework fast. - Added a registration etc - Make @name and #tags, also optionally - markdown in message
import 'package:Indo_News/api/news_api.dart'; import 'package:Indo_News/models/articles.dart'; import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:share/share.dart'; class MainPage extends StatefulWidget { @override _MainPageState createState() =...
// -------------------------------------------------- // UnityInjector - ConsoleEncoding.cs // Copyright (c) Usagirei 2015 - 2015 // -------------------------------------------------- using System; using System.Text; namespace UnityInjector.ConsoleUtil { // -------------------------------------------------- // Cod...
import React, { Component } from "react" import styled from "styled-components" import { Link } from "gatsby" import Social from "./Social" import { primaryFont } from "./../theme/theme" const Navigation = styled.div` display: flex; flex-direction: column; font-family: ${primaryFont}; background: #171717; he...
--- nav: title: Components path: /components group: title: 数据 path: /data --- ### Layout 布局 Demo: ```tsx import React from 'react'; import { Layout, Content, Header, Footer, Aside } from 'volute-ui'; import './demo.less'; export default function() { return ( <div className="x-layout-demo"> <h1>1<...
// Copyright (c) 2017 Xidorn Quan <me@upsuper.org> // Copyright (c) 2017 Martijn Rijkeboer <mrr@sru-systems.com> // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // op...
<?php class Article { public $id; public $title; public $created_date; public $summary; public $body; public function __construct($id, $title, $created_date, $summary, $body) { $this->id = $id; $this->title = $title; $this->created_date = $created_date; $thi...
using Content.Server.Fluids.EntitySystems; using Content.Shared.Chemistry.Reagent; using Content.Shared.FixedPoint; using Robust.Shared.Analyzers; using Robust.Shared.GameObjects; using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Fluids.Components { [RegisterComponent] [Friend(typ...
package org.map import org.scalatest.{BeforeAndAfter, FunSuite, Matchers} class MapTests extends FunSuite with Matchers with BeforeAndAfter { var map: Map = Nil before { map = new Map } test("create a new empty map") { map.size shouldBe 0 map.isEmpty shouldBe true } ...
package typingsSlinky.officeUiFabricReact.mod import typingsSlinky.uifabricUtilities.fabricPerformanceMod.IPerfSummary import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @JSImport...
--- layout: post category: scala date: 2015-02-04 22:11:38 UTC title: Scala基础之try...catch...finally tags: [异常处理, 字节] permalink: /scala/try-catch/ key: 9fc1d12984edc4fbd228195de9084ada # for SEO description: "一般异常处理的try..catch..finally总是会在finally中进行一些收尾的处理,本文研究了如果在finally中出现return语句以及异常会得到什么结果" keywords: [异常处理, Return语句...
package io.mspencer.krunch abstract class Lexer<T : Token>(val source: CharSequence) : CharParsers() { abstract val tokens: Parser<CharReader, T> val parsedTokens = mutableListOf<Pair<T, CharReader>>() var atEnd: Boolean = false fun tokenAt(index: Int): T? { if (index < parsedTokens.size) { ...
package com.platform.code; public class CodeConfig { private String entityModel = "flash-core"; private String daoModel = "flash-core"; private String serviceModel = "flash-core"; private String controllerModel = "flash-api"; private String viewModel = "flash-vue-admin"; public String getModel(...
package pl.nn44.rchat.client; import pl.nn44.rchat.client.impl.Clients; import pl.nn44.rchat.client.util.PropLoader; import pl.nn44.rchat.protocol.ChatService; import pl.nn44.rchat.protocol.exception.ChatException; import java.math.BigInteger; import java.util.Random; import java.util.concurrent.ExecutorService; impo...
using System; using System.Collections.Generic; using System.Text; namespace Bpmtk.Bpmn2.Extensions { public interface IScriptEnabledElement { IList<Script> Scripts { get; } } }
```@meta CurrentModule = BellScenario ``` # BellScenario.jl - Games ```@docs AbstractGame Game BellGame ``` ## Conversion Methods A [`BellGame`](@ref) is a matrix representation of a linear inequality that bounds a LocalPolytope for some [`Scenario`](@ref). For convenience, conversion methods are provided to transfo...
#OpenWan媒体资产管理系统 ========= ##为什么要引入媒体资产管理系统 媒体产业不断发展,第四代媒体已逐渐崛起,数字多媒体的应用,广播频道的扩充,媒体资源的多样性应用(一个节目被多种形式媒体采用)和重复使用(许多节目或素材被重新编辑后产生新的价值)显示出了它巨大的潜藏价值。而目前影视录像带、唱片等媒体资料的审看或回放是通过从大量无序的录像带和光盘中查找、调用,再通过录像机播放的方式操作,效率非常低,而且共享性能差,已经不能适应数字化时代的发展需要。同时,随着岁月的流逝,许多珍贵的历史资料和素材都急需加以复制和保护,由于磁带或唱片等介质存放保质期有限,而数量还在源源不断的增加,因此急需对其进行整理、复制和...
from enum import Enum class FactType(Enum): FACT = 'FACT' BLOOPER = 'BLOOPER'
/* * Copyright (C) 2016 - 2021 Marko Salmela * * http://fuusio.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 * * Unl...
<?php class ProfileTableSeeder extends Seeder { public function run() { $profile = new Profile(); $profile->location = "San Antonio, TX"; $profile->bio = "22 year old from TX. Just making a blog page."; $profile->user_id = User::first()->id; $profile->save(); } }
const express = require('express'); // router const router = express.Router(); // controller methods const { getListing, getListings, updateListing, createListing, uploadProfile, deleteListing, } = require('../../controllers/listings'); const Listing = require('../../models/listing'); const advancedResul...
{-# LANGUAGE QuasiQuotes, DataKinds, OverloadedStrings #-} module Test where import Language.Cypher import Language.Cypher.Quasiquoter import Database.Neo4j (queryDB) import Database.Neo4j.Types (Server (..)) query :: Query '[Number] query = [cypher| return case $ x - 1 $ when 0 then $ x $ else 2 end limit 1|] wh...
export const ASR_CORRECTIONS = [ ["replacethis", "with this"], ["apparantly", "apparently"], ["foster", "faster"], ["swift bic", "SWIFTBIC"] ];
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTransaksisTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('transaksis', function(Blueprint $table) { $table->increments('id'); $...
<?php // 5 MVC Pattern // 5.7 Templates // 5.7.1 Simple replaces use Book\Control\Page; class TwigWelcomeControl extends Page { public function __construct() { parent::__construct(); require_once 'Lib/Twig/Autoloader.php'; Twig_Autoloader::register(); $loader = n...
<?php namespace Codem\DamnFineUploader; use Exception; class MissingDataException extends Exception { }
//! States for the `bootcom` serial boot protocol state machine. //! //! This modules is private and restricted to the //! [`boot_protocol`](crate::boot_protocol) scope. The public interface of the //! serial boot protocol state machine is provided by //! [`boot_protocol`](crate::boot_protocol). //! //! ```ignor...
require 'active_support/core_ext/hash/indifferent_access' module WorkableJsonAssertions module Assertions def json_response_body(options = {symbolize_names: true}) JSON.parse(response.body.strip, options) end def assert_json_response_empty assert_empty response.body.strip end def a...
#!/usr/bin/env ruby require_relative '../githubarchive' storage = Githubarchive::Database.new(ENV['DATABASE_URL']) # required if you want to import filtered events filter = Proc.new do |event| !(event['type'] == 'PullRequestEvent' && event['payload']['action'] == 'opened') end archive = Githubarchive.new(filter: ...
<?php include 'header.php'; use BODM\ActiveModel; /* * ETC * */ class Post extends ActiveModel { protected $references = ['author']; } class Author extends ActiveModel { protected $compressed = ['name', 'Post' => ['reputation']]; } $author = new Author(['name' => 'Mike', 'reputation' => 111, 'dateJoined...
collection @proposals attributes :id, :statement #extends "proposals/show" # would be more object oriented? node(:updated_at) do |proposal| if proposal.updated_at > 10.months.ago proposal.updated_at.strftime("%b %e, %l:%M%P") elsif proposal.updated_at > 16.months.ago 'About a year ago' else 'Over a y...
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Port on Texas Instruments TMS320C6x architecture * * Copyright (C) 2004, 2009, 2010, 2011 Texas Instruments Incorporated * Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com) */ #ifndef _ASM_C6X_DELAY_H #define _ASM_C6X_DELAY_H #include <linux/kernel.h> ex...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace RandomCodeOrg.ENetFramework.UI { public interface IRenderContext { void Render(XmlDocument document); void Render(XmlDocument document, XmlElement eleme...
#!/bin/sh # chmod 777 release-mac.sh NAME=goman VERSION=$1 TYPE=$2 SRC=github.com/zaaksam/goman/go/main/$TYPE function BUILD() { DIR=$(cd $(dirname $0); pwd) DISTDIR=$DIR/dist DISTNAME=$NAME.$VERSION.$TYPE-win DISTSYSO=$GOPATH/src/$SRC/$NAME.syso ZIPNAME=$DISTNAME.zip echo echo $ZIPNAME...
use ts_rs::TS; #[test] fn list() { #[derive(TS)] struct List { #[allow(dead_code)] data: Option<Vec<u32>>, } assert_eq!( List::decl(), "interface List { data: Array<number> | null, }" ); }
# -*- coding: utf-8 -*- from abc import abstractmethod from pre_commit_hooks.loaderon_hooks.util.template_methods.files_bunches_checker_template_method import \ FileBunchesCheckerTemplateMethod from pre_commit_hooks.loaderon_hooks.util.template_methods.lines_checker_template_method import \ LinesCheckerTemplat...
--- title: Appearance Crouching searchTitle: Lua Appearance Crouching weight: 1 hidden: true menuTitle: Appearance Crouching description: Makes a NPC appear crouching --- ## Crouching Makes a NPC appear crouching ```lua Appearance.Crouching ```
buildscript { var ossrhUser: String? by extra ossrhUser = if(ossrhUser!=null) ossrhUser else System.getenv("ossrhUser") var ossrhPassword: String? by extra ossrhPassword = if(ossrhPassword!=null) ossrhPassword else System.getenv("ossrhPassword") } allprojects { group = "de.qualityminds.gta" ver...
import java.util.*; public class RankingMethods { final static String[] input = {"44 Solomon", "42 Jason", "42 Errol", "41 Garry", "41 Bernard", "41 Barry", "39 Stephen"}; public static void main(String[] args) { int len = input.length; Map<String, int[]> map = new TreeMap<>((a, b) -...
# encoding: UTF-8 require 'metadata/processors' require 'tempfile' class TestProcessor < Minitest::Test def test_creates_instance_of_shellrunner shell_runner = Minitest::Mock.new shell_runner.expect :new, self Metadata.stub_const(:ShellRunner, shell_runner) do Metadata::Processor.new end sh...
package org.luxons.sevenwonders.ui.redux.sagas import kotlinx.coroutines.* import org.luxons.sevenwonders.ui.test.runSuspendingTest import redux.RAction import redux.Store import redux.WrapperAction import redux.applyMiddleware import redux.compose import redux.createStore import redux.rEnhancer import kotlin.test.Tes...
window.onload = function(){ var p = document.getElementById("descripcion"); p.innerHTML = 0; function calculoPalabras(){ var total = 0; var cuantasLetras = document.getElementById("comentario").value.length; if(cuantasLetras < 3001){ p.innerHTML = total + cuantasLet...
/* * Copyright 2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
package zhstructures; /** * This is the interface describing the actions * on a simple stack. */ public interface ZHStack<T> { /** * empty() returns true if the Stack is empty. */ public boolean empty(); /** * push(value) adds value to the top of the stack. * <p><b>Postcondition<b>The stack has ...
package com.kotlin.mvvm.repository.db import androidx.room.Database import androidx.room.RoomDatabase import com.kotlin.mvvm.repository.model.TodoModel /** * Developed by Waheed on 20,June,2021 * * App Database * Define all entities and access doa's here/ Each entity is a table. */ @Database( entities = [Tod...
require 'uber/models/delivery/delivery' require 'uber/models/delivery/quote' require 'uber/models/delivery/rating' require 'uber/models/delivery/rating_tag' require 'uber/models/delivery/receipt' require 'uber/models/delivery/region'
#pragma once // Header file for preprocessor class - see preprocessor.cpp for descriptions #include <map> #include "pipePacket.hpp" template<typename nodeType> class preprocessor { private: public: bool configured = false; std::string procName = "preprocessor"; bool debug = 0; std::string outputFile; ...
#ifndef __CCLUA_PLUGIN_WECHAT_H__ #define __CCLUA_PLUGIN_WECHAT_H__ #include "cclua/plugin.h" #include <string> #if defined(CCLUA_OS_IOS) || defined(CCLUA_OS_ANDROID) NS_CCLUA_PLUGIN_BEGIN class WeChat { public: enum class ShareType {NONE, TEXT, IMAGE, MUSIC, VIDEO, WEB}; enum class ProgramType {RELEASE = ...
(ns chesty.db (:require [chesty.db.views :as v] [clojure.string :as str] [krulak :as kr] [manila-john :as mj])) (def ^:dynamic *sites-db* (System/getenv "CHESTY_SITES_DB")) (defmacro with-sites-db [& body] `(mj/with-db *sites-db* ~@body)) (defn site-for-host [host] (with-s...
package org.theponies.ponecrafter.model enum class Age(val id: Int) { ANY(0), ADULT(1), FOAL(2); companion object { fun getById(id: Int) = values().firstOrNull { it.id == id } ?: ANY } }
import { COUNT_SELECTOR, ORIGIN_FALLBACK_ID } from "coral-framework/constants"; import detectCountScript from "coral-framework/helpers/detectCountScript"; import resolveStoryURL from "coral-framework/helpers/resolveStoryURL"; import jsonp from "coral-framework/utils/jsonp"; import getCurrentScriptOrigin from "./getCur...
import { Avatar, Box, Divider, Flex, Heading, Stack, Text, useBreakpointValue, IconButton, Drawer, DrawerOverlay, DrawerContent, DrawerCloseButton, HStack, Alert, } from '@chakra-ui/react'; import { HamburgerIcon } from '@chakra-ui/icons'; import { Navigate, useLocation, useNavigate, use...
package vn.com.ntq_solution.domain.utils /** List application typo character. */ class Typography { companion object { const val CURLY_BRACKET_OPEN = "{" const val CURLY_BRACKET_CLOSE = "}" const val DOT = "." const val DOLLAR = "$" const val DOUBLE_DOT = ":" const v...
'use strict'; var running = 4; var epsilon = 1e-2; function Vec(x, y) { this.x = x; this.y = y; this.length = function() { return Math.sqrt(x*x + y*y); } this.add = function(vec) { return new Vec(this.x + vec.x, this.y + vec.y); } this.sub = function(vec) { return new Vec(this.x - vec.x, thi...
<?php /** * Copyright (C) Alibaba Cloud Computing * All rights reserved. * * 版权所有 (C)阿里云计算有限公司 */ namespace Aliyun\OSS\Utilities; class ResponseHeaderOverrides { const RESPONSE_HEADER_CONTENT_TYPE = "response-content-type"; const RESPONSE_HEADER_CONTENT_LANGUAGE = "response-content-language"; const RE...
################################################################ #This script will impose stress on specified processors with the #arguments passed based on stress type. ################################################################ #!/bin/bash function usage() { echo "" echo "Usage --> $0 [-c CPU] [-t timeou...
package net.corda.serialization.djvm.deserializers import org.apache.qpid.proton.amqp.UnsignedByte import java.util.function.Function class UnsignedByteDeserializer : Function<ByteArray, UnsignedByte> { override fun apply(underlying: ByteArray): UnsignedByte { return UnsignedByte(underlying[0]) } }
import numpy as np from scipy.special import logsumexp def exp_normalize(x): b = x.max() y = np.exp(x - b) return y / y.sum() def sum_lnspace(a, b): """ Given a = ln(p) and b=ln(q), return ln(p+q) in natural log space""" if a > b: # ensure a is always the smallest t...
describe HttpStub::Server::Daemon do let(:server_name_in_rakefile) { :example_server_daemon } let(:port_in_rakefile) { 8001 } let(:configurator) { HttpStub::ConfiguratorFixture.create(port: port_in_rakefile) } let(:server) { HttpStub::Server::Daemon.new(name: server_name_in_rakefile, configurator...
import { Structure as _Structure_ } from "@aws-sdk/types"; export const RestoreTableFromClusterSnapshotInput: _Structure_ = { type: "structure", required: [ "ClusterIdentifier", "SnapshotIdentifier", "SourceDatabaseName", "SourceTableName", "NewTableName" ], members: { ClusterIdentifier...
class Venue { final String id; String name; double lat; double lng; int distance; List<dynamic> address; Venue(this.id, this.name, this.lat, this.lng, this.distance, this.address); factory Venue.fromJson(Map<String, dynamic> json) { //print(json); Venue newVenue = Venue( json["id"...
package panel; import java.util.List; import java.awt.Color; import java.awt.Point; import java.util.ArrayList; import java.util.HashSet; import java.util.Set; public class Line { final private List<ColoredSizedPoint> points; private Color actualLineColor; private Color LineLastColor; private int actu...
.home ===== This repository contains dotfiles, scripts, and plugins that personalize my Linux environment. Install ------- git clone git://github.com/trinitylundgren/.home.git ~/.home cd ~/.home ./install You may clone the repository into a different directory if you prefer. It does not need to be loca...
; RUN: llc -mtriple=x86_64-apple-macosx -mattr=+cx16 -x86-use-base-pointer=true -stackrealign -stack-alignment=32 %s -o - | FileCheck --check-prefix=CHECK --check-prefix=USE_BASE --check-prefix=USE_BASE_64 %s ; RUN: llc -mtriple=x86_64-apple-macosx -mattr=+cx16 -x86-use-base-pointer=false -stackrealign -stack-alignmen...
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------ # Package: Pikos toolkit # File: external/api.py # License: LICENSE.TXT # # Copyright (c) 2012, Enthought, Inc. # All rights reserved. #---------------------------------------------------------------------------...
unit Antlr.Runtime.Collections.Tests; { Delphi DUnit Test Case ---------------------- This unit contains a skeleton test case class generated by the Test Case Wizard. Modify the generated code to correctly setup and call the methods from the unit being tested. } interface uses TestFramework, Antlr.Ru...
import '../../less/campus/campus.less'; import '../common/common';
#!/usr/bin/env bash BUILDPATH=docs SOURCEPATH=docs/source rm $BUILDPATH/*.html sphinx-build -b html $SOURCEPATH $BUILDPATH echo 'Documentation website in '$BUILDPATH
# Project Archived ## Tech Stack HTML, CSS, PHP, JS, Bootstrap, Wordpress - Front End ## Getting Started 1. Install Wordpress and create a new site using [Local](https://local.getflywheel.com/). 2. Navigate to Themes Folder and clone repo. 3. Activate new theme for site from WP admin panel. 4. Install `pre-commit` ...
package ch.dreipol.multiplatform.reduxsample.shared.ui import ch.dreipol.multiplatform.reduxsample.shared.database.DisposalType import ch.dreipol.multiplatform.reduxsample.shared.database.RemindTime import ch.dreipol.multiplatform.reduxsample.shared.database.SettingsDataStore data class NotificationSettingsViewState(...
// == Contoh == // function tambah(a, b) { /* * variabel a dan b disebut parameter, * dan akan menangkap nilai yang dikirimkan saat function dipanggil */ return a + b; } console.log(tambah(4, 8)); // 12 console.log(tambah(10, 20)); // 30 function sapa(nama) { return "Halo " + nama + ", Selamat Pagi!"; ...
# ブロック要素のスタイル require_relative 'typeset_margin' require_relative 'typeset_padding' class BlockNodeStyle def initialize @sfnt_font = nil @font_size = nil @line_gap = 0 @margin = TypesetMargin.zero_margin @padding = TypesetPadding.zero_padding @begin_new_page = false @indent = 0 end ...
package dreme.runtime; import dreme.*; /** * Created by IntelliJ IDEA. * User: oysta * Date: 21/02/2010 * Time: 8:58:15 PM * To change this template use File | Settings | File Templates. */ class SchemeProcessor extends AbstractSchemeObjectVisitor { private final ExecutionContext ctx; public SchemeProcessor(...
//using log4net; using System.Threading; using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; using Quobject.EngineIoClientDotNet.Client; using System; using Quobject.EngineIoClientDotNet.Modules; namespace Quobject.EngineIoClientDotNet_Tests.ClientTests { [TestClass] public class UsageTest : Conne...
int ** recebeImagem(){ FILE *arq = fopen("Treino.txt","r"); int i,j; int qtd,**imagem; fscanf(arq,"%d",&qtd); imagem = (int **)malloc(sizeof(int)*qtd); for (i=0;i<qtd;i++){ imagem[i] = (int *)malloc(sizeof(int)*601); } for (i=0;i<qtd;i++){ for (j=0;j<600;j++){ fscanf(arq,"%d",&imagem[i][j]); } des...
/* * 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 ...
module Sequel # This module makes it easy to print deprecation warnings with optional backtraces to a given stream. # There are a couple of methods you can use to change where the deprecation methods are printed # and whether they should include backtraces: # # Sequel::Deprecation.output = $stderr # print d...
# Text Selection Context Menu A context menu that pops up when the selecting text. ## License Licensed under the [MIT license](http://www.opensource.org/licenses/mit-license.php).
class RenameCouponsToLandingPages < ActiveRecord::Migration[5.2] def change rename_table :coupons, :landing_pages rename_column :subscriptions, :coupon_code, :landing_page_slug end end
;++ ; ; Copyright (c) Microsoft Corporation. All rights reserved. ; ; Licensed under the MIT License. ; ; Module Name: ; ; TransKernelFma3.asm ; ; Abstract: ; ; This module implements kernels for various transcendental functions. ; ; This implementation uses AVX fused multiply/add instructions. ; ;-- .xl...