text stringlengths 1 1.05M |
|---|
; A107387: Expansion of x*(1-2*x-x^2)/( (1-x)*(1+x)*(1-3*x+x^2)).
; 0,1,1,2,3,7,16,41,105,274,715,1871,4896,12817,33553,87842,229971,602071,1576240,4126649,10803705,28284466,74049691,193864607,507544128,1328767777,3478759201,9107509826,23843770275,62423800999,163427632720,427859097161,1120149658761,2932589879122,767761... |
; size_t dtoe(double x, char *buf, uint16_t prec, uint16_t flag) __z88dk_callee
SECTION code_stdlib
PUBLIC _dtoe_callee
EXTERN dcallee1, asm_dtoe
_dtoe_callee:
call dcallee1 ; AC' = x
pop af
pop hl
pop de
pop bc
push af
jp asm_dtoe
|
;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
HiddenItems:
ld hl, HiddenItemCoords
call FindHiddenItemOrCoinsIndex
ld [wHiddenItemOrCoinsIndex], a
ld hl, wObtainedHiddenItemsFlags
ld a, [wHiddenItemOrCoinsIndex]
ld c, a
ld b, FLAG_TEST
predef FlagActionPredef
ld a, c
and a
jr nz, .itemAlreadyFound
call EnableAutoTextBoxDrawing
ld a, 1
ld [wDoNotWaitF... |
; A105082: Expansion of (5+4x)/(1-2x-x^2).
; Submitted by Jamie Morken(s2.)
; 5,14,33,80,193,466,1125,2716,6557,15830,38217,92264,222745,537754,1298253,3134260,7566773,18267806,44102385,106472576,257047537,620567650,1498182837,3616933324,8732049485,21081032294,50894114073,122869260440,296632634953,716134530346,17289016... |
/*
* Load all reference U/V samples from neighboring macroblocks
* Copyright © <2010>, Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, inclu... |
#include <system.hh>
#include <urbite.hh>
#include <process.hh>
#include <strutils.hh>
using namespace makemore;
extern "C" void mainmore(Process *);
void mainmore(
Process *process
) {
strvec out;
out.resize(1);
unsigned int i = 0;
char buf[64];
if (process->args.size() == 0) {
strvec invec;
w... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... |
// Copyright (c) 2013 The Bitcoin Core developers
// Copyright (c) 2017 The GALR developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "data/sighash.json.h"
#include "main.h"
#include "random.h"
#include "seria... |
#ifndef BOOST_MPL_SET_AUX_ITEM_HPP_INCLUDED
#define BOOST_MPL_SET_AUX_ITEM_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2003-2004
// Copyright David Abrahams 2003-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_... |
/* $Id: module.cpp 365689 2012-06-07 13:52:21Z gouriano $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" unde... |
MVZ2_Header:
sHeaderInit ; Z80 offset is $AA9C
sHeaderPatch MVZ2_Patches
sHeaderCh $06, $03
sHeaderTempo $01, $30
sHeaderDAC MVZ2_DAC
sHeaderFM MVZ2_FM1, $00, $10
sHeaderFM MVZ2_FM2, $00, $0E
sHeaderFM MVZ2_FM3, $00, $10
sHeaderFM MVZ2_FM4, $00, $10
sHeaderFM MVZ2_FM5, $00, $19
sHeaderPSG MVZ2_PSG1, $E8... |
; A090131: Expansion of (1+x)/(1 - 2*x + 2*x^2).
; 1,3,4,2,-4,-12,-16,-8,16,48,64,32,-64,-192,-256,-128,256,768,1024,512,-1024,-3072,-4096,-2048,4096,12288,16384,8192,-16384,-49152,-65536,-32768,65536,196608,262144,131072,-262144,-786432,-1048576,-524288,1048576,3145728,4194304,2097152,-4194304
mov $1,1
mov $2,2
lpb $... |
;-----------------------------------------------
; Detect CPU supports AVX512 or not
; Compile(include debug info) >> nasm -F dwarf -g -f elf64 this.asm
; Static Link >> ld this.o /data/clouds/OneDrive/code/assembly/baselibs-2020/cpu2.0/cpu2/cpu2.o this
; Run >> ./this (chmod if needed)
; Ref >> htt... |
db MR__MIME ; 122
db 40, 45, 65, 90, 100, 120
; hp atk def spd sat sdf
db PSYCHIC, PSYCHIC ; type
db 45 ; catch rate
db 136 ; base exp
db NO_ITEM, MYSTERYBERRY ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 25 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/mr__mime/fron... |
#include <mbgl/style/conversion/constant.hpp>
#include <mbgl/style/conversion_impl.hpp>
namespace mbgl {
namespace style {
namespace conversion {
optional<bool> Converter<bool>::operator()(const Convertible& value, Error& error) const {
optional<bool> converted = toBool(value);
if (!converted) {
error... |
; A181624: Decimal expansion of 486^(1/3).
; Submitted by Christian Krause
; 7,8,6,2,2,2,4,1,8,2,6,2,6,6,8,9,8,2,1,4,2,4,9,8,3,8,4,1,3,2,5,9,8,8,8,1,0,7,1,8,2,8,2,9,3,7,1,7,0,8,9,5,1,7,5,3,0,8,3,2,1,4,1,7,1,8,6,0,9,9,4,5,7,5,8,8,1,2,6,3,2,6,4,8,5,3,6,7,4,7,7,9,6,7,2,2,0,7,9,3
mov $1,2
mov $3,$0
add $3,1
mul $3,4
lpb $... |
db 0 ; species ID placeholder
db 40, 40, 35, 70, 50, 100
; hp atk def spd sat sdf
db WATER, POISON ; type
db 190 ; catch rate
db 105 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F0 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/tentacool... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1995 -- All Rights Reserved
PROJECT:
MODULE:
FILE: uiOutboxControl.asm
AUTHOR: Adam de Boor, Mar 22, 1995
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Des... |
; A305739: a(n) = n!*T(n) - 1, where T(n) is the n-th triangular number.
; 0,5,35,239,1799,15119,141119,1451519,16329599,199583999,2634508799,37362124799,566658892799,9153720575999,156920924159999,2845499424767999,54420176498687999,1094805903679487999,23112569077678079999,510909421717094399999
add $0,1
mov $1,1
add $1... |
-S bootblock.o
|
; A098847: a(n) = n*(n + 12).
; 0,13,28,45,64,85,108,133,160,189,220,253,288,325,364,405,448,493,540,589,640,693,748,805,864,925,988,1053,1120,1189,1260,1333,1408,1485,1564,1645,1728,1813,1900,1989,2080,2173,2268,2365,2464,2565,2668,2773,2880,2989,3100,3213,3328,3445,3564,3685,3808,3933,4060,4189,4320,4453,4588,4725,48... |
// RUN: %check_clang_tidy %s performance-inefficient-vector-operation %t -- \
// RUN: -format-style=llvm \
// RUN: -config='{CheckOptions: \
// RUN: [{key: performance-inefficient-vector-operation.EnableProto, value: 1}]}'
namespace std {
typedef int size_t;
template<class E> class initializer_list {
public:
usin... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2017 Couchbase, 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
*
* ... |
#define BASE_ADDR_0 0x00000000 // (core 0)
#define BASE_ADDR_1 0x02000000 // (core 1)
#define BASE_ADDR_2 0x04000000 // (core 2)
#define BASE_ADDR_3 0x06000000 // (core 3)
#int main0() {
#
# int *arr2 = (int *) BASE_ADDR_2; // data mapped on core 2
# int temp = 0;
#
# *(arr2) = 1; // migrates to core 2 (guest context... |
;
; Intrinsic sccz80 routine to multiply by a power of 2
;
;
SECTION code_fp_math32
PUBLIC l_f32_ldexp
; Entry: dehl = float, a = adjustment for exponent
; stack = ret
;
; Exit: dehl = adjusted float
.l_f32_ldexp
sla e ; get the exponent
rl d
jr... |
;
; Generic pseudo graphics routines for text-only platforms
;
; Reset pixel at (x,y) coordinate.
SECTION code_clib
PUBLIC c_respixel
defc NEEDunplot = 1
.c_respixel
INCLUDE "w_c_pixel.asm"
|
section "Metatile RAM defines",wram0,align[8]
Engine_TilesetPointer: dw
Engine_TilesetBank: db
; Collision constants
COLLISION_NONE equ 0
COLLISION_SOLID equ 1
COLLISION_TOPSOLID equ 2
COLLISION_WATER equ 3
COLLISION_COIN equ 4
COLLISION_SPRING equ 5
CO... |
dnl Intel P6 mpn_mod_34lsub1 -- remainder modulo 2^24-1.
dnl Copyright 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
dnl
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public L... |
;******************************************************************************
;* x86-optimized yuv2yuvX
;* Copyright 2020 Google LLC
;* Copyright (C) 2001-2011 Michael Niedermayer <michaelni@gmx.at>
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the... |
;============================================================================
;
; HDEuthanasia-v3 by Demon Emperor.
;
; Disassembly of the Hare.7786 virus.
;
; Source: 103k
;
; Disassembly was done by T-2000 / Invaders.
;
; April 1998 / May 1998.
;
; Very stupid written! MUCH double, triple code, unstructured programmi... |
; A026567: a(n) = Sum_{i=0..2*n} Sum_{j=0..i} T(i, j), where T is given by A026552.
; Submitted by Jamie Morken(s1.)
; 1,4,13,31,85,193,517,1165,3109,6997,18661,41989,111973,251941,671845,1511653,4031077,9069925,24186469,54419557,145118821,326517349,870712933,1959104101,5224277605,11754624613,31345665637,70527747685,18... |
; Mazen Ibrahim 295924
bits 32
extern _print_debug
extern _get_int32
extern _get_int24
extern _get_int16
extern _find_black
extern _find_color
extern _get_bmp_s
extern _get_pixel_offset
extern _print_marker
%define header_size 54
%define get_int32 _get_int32
%define get_int24 _get_int24
%def... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
db DEX_ZUBAT ; pokedex id
db 40 ; base hp
db 45 ; base attack
db 35 ; base defense
db 55 ; base speed
db 40 ; base special
db POISON ; species type 1
db FLYING ; species type 2
db 255 ; catch rate
db 54 ; base exp yield
INCBIN "pic/bmon/zubat.pic",0,1 ; 55, sprite dimensions
dw ZubatPicFront
dw ZubatPicBack
; attacks k... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x3ea6, %rsi
lea addresses_WT_ht+0x12df2, %rdi
sub $7192, %r9
mov $93, %rcx
rep movsq
nop
nop
nop
nop
nop
add $43541, %r13
lea addresses_normal_ht+0x2886, %rsi
lea addresses_normal_ht+0x1182e, %rd... |
;
; Violator Strain C - "Violator strikes again..."
;
; Written by The High Evolutionary
; RABID International Development Corp.
;
;
; Here are the equates for when the virus will destroy media
;
month equ 6 ;Set month to June
day equ 22 ;Set day to the 22nd
year equ 1991 ;Set year to 1991
sectors equ 256 ;F... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld c, 41
ld b, 02
ld d, 03
lbegin_waitm2:
ldff a, (c)
and a, d
cmp a, b
jrnz lbegin_waitm2
ld a, 08
ldff(c), a
ld a, 02
ldff(ff), a
xor a, a
ldff(0f), a
ei
.text@1000
lstatint:
nop
.text@1067
ldff a, (c)
and a, ... |
# $Id: 04_sub_r1.asm,v 1.2 2001/03/22 00:39:03 ellard Exp $
#
# Copyright 1999-2000 by the President and Fellows of Harvard College.
# See LICENSE.txt for license information.
#
#@ test sub with r1
# OK
lc r2, -100
lc r3, 100
sub r1, r2, r3
add r5, r1, r0
hlt
|
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int n,m;
cin>>n>>m;
for(int i = 0;i < n;i++)
{
double result = 0.0;
int teacher,maxstudent = -1,minstudent = m + 1,countn = 0;
cin>>teacher;
for(int j = 0;j < n- 1;j++)
{
int student;
... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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
... |
;******************************************************************************
;*
;* Copyright (c) 2000-2001 Fabrice Bellard <fabrice@bellard.org>
;* Copyright (c) Nick Kurshev <nickols_k@mail.ru>
;* Copyright (c) 2002 Michael Niedermayer <michaelni@gmx.at>
;* Copyright (c) 2002 Zdenek Kabelac <kabi@informatics.m... |
; A103516: Triangle read by rows: count in a vee.
; Submitted by Simon Strandgaard
; 1,2,2,3,0,3,4,0,0,4,5,0,0,0,5,6,0,0,0,0,6,7,0,0,0,0,0,7,8,0,0,0,0,0,0,8,9,0,0,0,0,0,0,0,9,10,0,0,0,0,0,0,0,0,10,11,0,0,0,0,0,0,0,0,0,11,12,0,0,0,0,0,0,0,0,0,0,12,13,0,0,0,0,0,0,0,0,0,0,0,13,14,0,0,0,0,0,0,0,0
mov $2,1
lpb $0
add $1,... |
.data
lista: .word 0x20, 0x30, 0x40, 0x50
.text
la $t0, lista
lw $s0, 0($t0) |
loop:
jmp loop
times 510-($-$$) db 0
dw 0xaa55 |
; A023454: n-12.
; -12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48
sub $0,12
|
; A008383: Coordination sequence for A_4 lattice.
; 1,20,110,340,780,1500,2570,4060,6040,8580,11750,15620,20260,25740,32130,39500,47920,57460,68190,80180,93500,108220,124410,142140,161480,182500,205270,229860,256340,284780,315250,347820,382560,419540,458830,500500,544620,591260,640490,692380,747000,804420,864710,927940... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; The MIT License (MIT) ;;
;; ;;
;; Copyright © 2021 ... |
IDEAL
p386
MODEL flat
dataseg
CODESEG
MASM
ALIGN 4
EXTRN _MV_HarshClipTable:DWORD
EXTRN _MV_MixDestination:DWORD
EXTRN _MV_MixPosition:DWORD
EXTRN _MV_LeftVolume:DWORD
EXTRN _MV_RightVolume:DWORD
EXTRN _MV_SampleSize:DWORD
EXTRN ... |
; A159615: The slowest increasing sequence beginning with a(1)=2 such that a(n) and n are both odious or both not odious.
; 2,4,5,7,9,10,11,13,15,17,19,20,21,22,23,25,27,29,31,33,35,37,39,40,41,42,43,44,45,46,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,97,99,101,10... |
/*****************************************************************\
__
/ /
/ / __ __
/ /______ _______ / / / / ________ __ __
/ ______ \ /_____ \ / / / / / _____ | / / / /
/ / | / _______| / / / / / / /____/ / / / / /
/ / / /... |
; A108357: Expansion of (1+x^2+x^4)/(1-x^8).
; 1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1
mod $0,8
mul $0,3
mov $1,15
trn $1,$0
mod $1,2
|
;
; ABC800 specific routines
; by Stefano Bodrato, Oct 2007
;
; Set video control registers
;
; int abc_vdu(unsigned char register, unsigned char value);
;
;
; $Id: abc_vdu.asm,v 1.3 2016-06-10 22:55:52 dom Exp $
;
SECTION code_clib
PUBLIC abc_vdu
PUBLIC _abc_vdu
abc_vdu:
_abc_vdu:
pop bc
pop de
pop hl
push h... |
; A137919: (Nextprime(24n)-previousprime(24n))/2.
; Submitted by Jon Maiga
; 3,3,1,4,7,5,3,1,6,1,3,5,1,3,4,3,4,1,4,4,3,9,5,3,1,6,3,6,5,4,4,4,5,5,7,7,10,4,4,7,4,6,1,5,9,3,3,1,5,4,3,6,9,3,1,17,3,9,7,4,6,1,6,6,4,7,1,5,10,12,5,5,3,9,6,4,7,1,6,9,8,11,3,3,7,3,1,1,3,4,12,3,8,8,4,6,11,3,3,6
mul $0,6
add $0,5
seq $0,116982 ; D... |
BITS 32
org 0x7c00
start:
mov edx, 0x03f8
mainloop:
mov al, '>' ; プロンプトを表示
out dx, al
input:
in al, dx ; 1文字入力
cmp al, 'h'
je puthello ; hならhelloを表示
cmp al, 'w'
je putworld ; wならworldを表示
cmp al, 'q'
je fin ; qなら終了
jmp input ; それ以外なら再入力
puth... |
; A017252: a(n) = (9*n + 7)^8.
; 5764801,4294967296,152587890625,1785793904896,11688200277601,53459728531456,191707312997281,576480100000000,1517108809906561,3596345248055296,7837433594376961,15938480745308416,30590228625390625,55895067029733376,97906861202319841,165312903998914816,270281038127131201,429496729600000000... |
; $Id: strlen.asm $
;; @file
; IPRT - No-CRT strlen - AMD64 & X86.
;
;
; Copyright (C) 2006-2015 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or modify it under the terms of the... |
; A172132: Number of ways to place 2 nonattacking knights on an n X n board.
; 0,6,28,96,252,550,1056,1848,3016,4662,6900,9856,13668,18486,24472,31800,40656,51238,63756,78432,95500,115206,137808,163576,192792,225750,262756,304128,350196,401302,457800,520056,588448,663366,745212,834400,931356,1036518,1150336,1273272,140... |
*
* PROGRAM: ZUIDSTCK
* AUTHOR: Randy Frerking.
* DATE: June 29, 2014
* COMMENTS: Get STCKE TOD for COBOL program.
*
*
***********************************************************************
* Application dynamic storage area - start *
**************************************... |
[BITS 16]
mov ax, 0x7f00 ; set stack segment
mov ss, ax
mov sp, 4096 ; set 4k stack
mov ax, 0x07c0 ; set data segment
mov ds, ax
; relocate mbr from 0x7c00 to 0x0500
mov ax, 0x0050
mov es, ax
mov di, 0
relocate_byte:
mov ax, [ds:d... |
;Ahmad Hammad
;1081443
.model small
.stack 256
.data
welcome db 'Ahmad Hammad : - project #1',10,13,'$'
line db '-------------------------------------',10,13,'$'
message1 db 'Please enter the first number in decimal (from 00 to 99): ','$'
message2 db 10,13,'Pleae enter the second number in ... |
; A064485: Number of ordered pairs a,b of elements in the dihedral group D_2n such that the subgroup generated by the pair a,b is a proper subgroup of D_2n.
; 1,10,18,40,40,108,70,160,162,280,154,432,208,532,540,640,340,972,418,1120,1008,1276,598,1728,1000,1768,1458,2128,928,2880,1054,2560,2376,2992,2380,3888,1480,3724... |
; A130526: A permutation of the integers induced by the lower and upper Wythoff sequences.
; 0,1,-1,2,3,-2,4,-3,5,6,-4,7,8,-5,9,-6,10,11,-7,12,-8,13,14,-9,15,16,-10,17,-11,18,19,-12,20,21,-13,22,-14,23,24,-15,25,-16,26,27,-17,28,29,-18,30,-19,31,32,-20,33,-21,34,35,-22,36,37,-23,38,-24,39,40,-25,41,42,-26
mov $2,$0
ca... |
//+------------------------------------------------------------------------
//
// Class: CLDAPNamespaceCF (tag)
//
// Purpose: Class factory for standard Namespace object.
//
// Interface: IClassFactory
//
//-------------------------------------------------------------------------
class CLD... |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
This is an auto-generated file. Do n... |
_nice: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "types.h"
#include "user.h"
#include "param.h"
int
main(int argc, char **argv) {
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%e... |
#include <babylon/actions/action.h>
#include <nlohmann/json.hpp>
#include <babylon/actions/action_event.h>
#include <babylon/actions/action_manager.h>
#include <babylon/actions/condition.h>
#include <babylon/animations/animation.h>
#include <babylon/animations/animation_value.h>
#include <babylon/animations/... |
; ---------------------------------------------------------------------------
; Subroutine to load level boundaries and start locations
; ---------------------------------------------------------------------------
; ||||||||||||||| S U B R O U T I N E |||||||||||||||||||||||||||||||||||||||
LevelSizeLoad:
moveq #0... |
; A046198: Indices of heptagonal numbers (A000566) which are also pentagonal.
; Submitted by Jon Maiga
; 1,42,2585,160210,9930417,615525626,38152658377,2364849293730,146582503552865,9085750370983882,563169940497447801,34907450560470779762,2163698764808690897425,134114415967578364860570,8312930091225049930457897,5152675... |
dc.w word_36354-Map_DPZButton
dc.w word_3635C-Map_DPZButton
word_36354: dc.w 1 ; DATA XREF: ROM:00036350o
dc.b $FC, 8, 0, $9C, $FF, $F4
word_3635C: dc.w 1 ; DATA XREF: ROM:00036350o
dc.b $FC, 8, 0, $9F, $FF, $F4
|
#include "MPC.h"
#include <cppad/cppad.hpp>
#include <cppad/ipopt/solve.hpp>
#include "Eigen-3.3/Eigen/Core"
using CppAD::AD;
// TODO: Set the timestep length and duration
size_t N = 10;
double dt = 0.1;
// This value assumes the model presented in the classroom is used.
//
// It was obtained by measuring the radius... |
#include "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include "netbase.h"
#include "optionsmodel.h"
#include <QDir>
#include <QIntValidator>
#include <QLocale>
#include <QMessageBox>
#include <QRegExp>
#include <QRegExpValidator>
OptionsDialog::OptionsDi... |
; A130855: 2n appears 2n+1 times, 2n+1 appears 2n times.
; 0,2,2,2,3,3,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14
lpb $... |
#include "../include/Calculator.h"
double Calculator::Calculate(double x, char oper, double y)
{
switch (oper)
{
case '+':
return x + y;
case '-':
return x - y;
case '*':
return x * y;
case '/':
return x / y;
case '%':
... |
; A214779: a(n) = 3*a(n-2) - a(n-3) with a(0)=-1, a(1)=1, a(2)=-4.
; Submitted by Jamie Morken(s3)
; -1,1,-4,4,-13,16,-43,61,-145,226,-496,823,-1714,2965,-5965,10609,-20860,37792,-73189,134236,-257359,475897,-906313,1685050,-3194836,5961463,-11269558,21079225,-39770137,74507233,-140389636,263291836,-495676141,930265144... |
; A144468: Final digit of multiples of 7.
; 0,7,4,1,8,5,2,9,6,3,0,7,4,1,8,5,2,9,6,3,0,7,4,1,8,5,2,9,6,3,0,7,4,1,8,5,2,9,6,3,0,7,4,1,8,5,2,9,6,3,0,7,4,1,8,5,2,9,6,3,0,7,4,1,8,5,2,9,6,3,0,7,4,1,8,5,2,9,6,3,0,7,4,1,8,5,2,9,6,3,0,7,4,1,8,5
mov $1,$0
mul $1,7
mod $1,10
|
; A169539: Number of reduced words of length n in Coxeter group on 46 generators S_i with relations (S_i)^2 = (S_i S_j)^34 = I.
; 1,46,2070,93150,4191750,188628750,8488293750,381973218750,17188794843750,773495767968750,34807309558593750,1566328930136718750,70484801856152343750,3171816083526855468750,1427317237587084960... |
;
; ANSI Video handling for the Commodore 128 (Z80 mode)
; By Stefano Bodrato - 22/08/2001
;
; Scrollup
;
;
; $Id: f_ansi_scrollup.asm,v 1.6 2016-06-12 16:06:42 dom Exp $
;
SECTION code_clib
PUBLIC ansi_SCROLLUP
.ansi_SCROLLUP
ld hl,$2000+40 ; Text
ld de,$2000
ld bc,40*24
ldir
ld h,d
ld l,e
ld b,40
... |
#include "stdafx.h"
#include "network_log.h"
#include "async_task.h"
#include "utils.h"
#include "tools/system.h"
#include "configuration/app_config.h"
namespace core
{
constexpr int64_t max_file_size = 1024 * 1024 * 10;
constexpr int64_t max_logs_size = max_file_size * 5;
constexpr int64_t max_logs_size_f... |
; A269913: First differences of number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 3", based on the 5-celled von Neumann neighborhood.
; 4,-4,44,-44,116,-116,220,-220,356,-356,524,-524,724,-724,956,-956,1220,-1220,1516,-1516,1844,-1844,2204,-2204,2596,-2596,... |
#include <iostream>
int main()
{
long long int sum = 0, curr = 3, prev = 2, start = 1;
sum += 2;
while (curr <= 4000000)
{
if (!(curr & 1))
{
sum += curr;
}
start = prev;
prev = curr;
curr = prev + start;
}
std::cout... |
#include "sprite2/ImageSymbol.h"
#include "sprite2/SymType.h"
#include "sprite2/RenderParams.h"
#include "sprite2/Sprite.h"
#include "sprite2/DrawNode.h"
#include "sprite2/Blackboard.h"
#ifndef S2_DISABLE_STATISTICS
#include <stat/StatOverdraw.h>
#include "sprite2/StatSymDraw.h"
#include "sprite2/StatSymCount.h"
#endif... |
; A350128: a(n) = Sum_{k=1..n} k^n * floor(n/k)^2.
; Submitted by Jon Maiga
; 1,8,44,417,4545,69905,1207937,24904806,575256641,14947281595,427836523971,13429362462839,457637290140469,16843379604615375,665494379869134005,28102480944522059434,1262906802939553227382,60182948301301262753877,3031288573089934021911885,160909... |
;===============================================================================
; Copyright 2016-2020 Intel Corporation
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apa... |
; A043678: Numbers n such that base 16 representation has exactly 5 runs.
; 65793,65794,65795,65796,65797,65798,65799,65800,65801,65802,65803,65804,65805,65806,65807,65824,65825,65827,65828,65829,65830,65831,65832,65833,65834,65835,65836,65837,65838,65839
mov $1,2
mov $5,$0
sub $0,8
trn $0,6
add $0,3
mov $2,3
mov $4,6... |
//----------------------------------------------------------------------
// File: KMfilterCenters.cc
// Programmer: David Mount
// Last modified: 08/10/2005
// Description: Member functions for KMfilterCenters
//----------------------------------------------------------------------
// Copyright (C) 20... |
; A182986: Zero together with the prime numbers (A000040).
; 0,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269
mov $2,$0
trn $0,1
seq $0,40 ; The prime numbers.
lpb $0
... |
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "util.h"
#include "init.h"
#include <QString>
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#include <QUrl>
#include <QTextDocument> // For Qt::escape
#include ... |
; A016851: a(n) = (5*n)^3.
; 0,125,1000,3375,8000,15625,27000,42875,64000,91125,125000,166375,216000,274625,343000,421875,512000,614125,729000,857375,1000000,1157625,1331000,1520875,1728000,1953125,2197000,2460375,2744000,3048625,3375000,3723875,4096000,4492125,4913000,5359375,5832000,6331625,6859000,7414875,8000000,86... |
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/config.hpp>
int test_fallthrough(int n)
{
switch (n)
{
case 0:
n++;
BOOST_FALLT... |
; pe-protector
IMPORT KERNEL32.VirtualAlloc
IMPORT KERNEL32.VirtualFree
IMPORT KERNEL32.VirtualProtect
IMPORT KERNEL32.LoadLibraryA
IMPORT KERNEL32.GetProcAddress
IMPORT KERNEL32.IsDebuggerPresent
EXTERN DD externImageBase
EXTERN DD externImageSize
EXTERN DD externOEP
SECTION ".text" crwe
_stubBegin:
; MOV EAX,DW... |
; Dummy function to keep rest of libs happy
;
; $Id: creat.asm,v 1.3 2001/05/01 13:55:21 dom Exp $
;
XLIB creat
.creat
ld hl,-1 ;error
ret
|
/*
* @COPYRIGHT@
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, subli... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: spreadsheetSort.asm
AUTHOR: John Wedgwood, Aug 1, 1991
METHODS:
Name Description
---- -----------
MSG_SPREADSHEET_SORT_RANGE So... |
/* ============================================================
* QupZilla - Qt web browser
* Copyright (C) 2010-2018 David Rosca <nowrep@gmail.com>
*
* 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 Foundat... |
.byte $01 ; Unknown purpose
.byte OBJ_LAKITU, $2A, $12
.byte OBJ_REDTROOPA, $55, $18
.byte OBJ_REDTROOPA, $60, $18
.byte OBJ_FLYINGREDPARATROOPA, $69, $14
.byte OBJ_FLYINGREDPARATROOPA, $75, $10
.byte $FF ; Terminator
|
/**
* @file
* @copyright defined in BetterChain/LICENSE.txt
*/
#pragma once
#include <lib/db.h>
namespace betterchain {
/**
* @defgroup databaseCpp Database C++ API
* @brief C++ APIs for interfacing with the database. It is based on pimpl idiom.
* @ingroup database
*/
template<typename T>
struct table... |
;
; feilipu, 2019 April
;
; This Source Code Form is subject to the terms of the Mozilla Public
; License, v. 2.0. If a copy of the MPL was not distributed with this
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;
;-------------------------------------------------------------------------
; m32_fsinvsqr... |
; Copyright Oliver Kowalke 2009.
; Distributed under the Boost Software License, Version 1.0.
; (See accompanying file LICENSE_1_0.txt or copy at
; http://www.boost.org/LICENSE_1_0.txt)
; ---------------------------------------------------------------------------------
; | 0 | ... |
###############################################################################
# Copyright 2018 Intel Corporation
# All Rights Reserved.
#
# If this software was obtained under the Intel Simplified Software License,
# the following terms apply:
#
# The source code, information and material ("Material") containe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.