text stringlengths 1 1.05M |
|---|
; A289692: The number of partitions of [n] with exactly 2 blocks without peaks.
; 0,1,2,4,8,15,27,48,85,150,264,464,815,1431,2512,4409,7738,13580,23832,41823,73395,128800,226029,396654,696080,1221536,2143647,3761839,6601568,11584945,20330162,35676948,62608680,109870575,192809419,338356944,593775045,1042002566,182858703... |
; stdio_atou_any_stream
; 05.2008 aralbrec
PUBLIC stdio_atou_any_stream
EXTERN stdio_getchar, stdio_ungetchar, l_mult, asm_toupper
; read unsigned number from stream, whitespace not skipped
;
; enter : e = radix
; ix = FILE *
; exit : hl = unsigned int result
; uses : af, bc, d, hl
.stdio_atou_any_stream... |
; O3 Ozone Project Lab
; math.asm - math functions for integers
; Created by Hudson Schumaker on 07.09.20
bits 64
section .data
section .bss
section .text
global _addi, _subi, _multi, _powi, _divi, _inci, _deci
_addi:
mov rax, rdi
add rax, rsi
ret
_subi:
mov rax, rdi
sub rax, rsi
ret
_multi:
mo... |
;-------------------------
; Public
;-------------------------
assert_pass macro
call _assert_pass_r
endm
assert_fail macro
call _assert_fail_r
endm
assert_a_equal macro val
push bc
ld c,val ; Store expected in C
call _assert_a_equal_r
pop bc
endm
assert_b_equal macro val
... |
/////////////////////////////////////////////////////////////////////////////
// Name: src/gtk1/checkbox.cpp
// Purpose:
// Author: Robert Roebling
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// For... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.40629.0
TITLE C:\Users\cex123\Desktop\FYP\develop\spartan\Source\Kernel\Device\FileIO\Pipe.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB OLDNAMES
PUBLIC _Pipe
PUBLIC ??_C@_0BG@IHMDIKCK@?5pipe?5?5?5?5?5?5?5?5?5?5?5?$DN?5... |
; A158768: a(n) = 1521*n^2 + 39.
; 39,1560,6123,13728,24375,38064,54795,74568,97383,123240,152139,184080,219063,257088,298155,342264,389415,439608,492843,549120,608439,670800,736203,804648,876135,950664,1028235,1108848,1192503,1279200,1368939,1461720,1557543,1656408,1758315,1863264,1971255,2082288,2196363,2313480,24336... |
#include <iostream>
#include <iomanip>
#include "artificalintelligence.h"
artificalintelligence::artificalintelligence()
{
/* boardAI = new int * [SZ];
for (int i = 0; i < SZ; i++)
boardAI[i] = new int[SZ];
for (int i = 0; i < SZ; i++)
for (int j = 0; j < SZ; j++)
boardA... |
; A120699: Lengths of set partitions.
; 0,1,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6
pow $0,2
mul $0,2
mov $1,1
mov $3,1
lpb $0,1
add $0,1
add $1,$3
... |
; A136412: a(n) = (5*4^n+1)/3.
; 2,7,27,107,427,1707,6827,27307,109227,436907,1747627,6990507,27962027,111848107,447392427,1789569707,7158278827,28633115307,114532461227,458129844907,1832519379627,7330077518507,29320310074027,117281240296107,469124961184427,1876499844737707,7505999378950827
mov $1,4
pow $1,$0
div $1,3... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xa2ce, %rdx
nop
nop
add %rdi, %rdi
mov (%rdx), %esi
nop
nop
nop
add $32235, %rbx
lea addresses_D_ht+0xeace, %rsi
lea addresses_normal_ht+0x18f2e, %rdi
nop
nop
dec %r11
mov $50,... |
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_dkud2_Belegost1
_ff_dkud2_Belegost1:
BINARY "font/fzx/fonts/dkud2/Belegost/belegost1.fzx"
|
db 0 ; species ID placeholder
db 55, 81, 60, 97, 50, 70
; hp atk def spd sat sdf
db NORMAL, NORMAL ; type
db 90 ; catch rate
db 116 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/raticate... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.7.1 #10443 (MINGW64)
;--------------------------------------------------------
.module serial
.optsdcc -mmcs51 --model-small
;-------------------------------------------------------... |
/**
* TitaniumKit Titanium.Media.MusicPlayer
*
* Copyright (c) 2015 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License.
* Please see the LICENSE included with this distribution for details.
*/
#include "Titanium/Media/MusicPlayer.hpp"
#include "Titanium/Media/Item.... |
; A212704: a(n) = 9*n*10^(n-1).
; 9,180,2700,36000,450000,5400000,63000000,720000000,8100000000,90000000000,990000000000,10800000000000,117000000000000,1260000000000000,13500000000000000,144000000000000000,1530000000000000000,16200000000000000000,171000000000000000000,1800000000000000000000,18900000000000000000000,1980... |
; This is a stub for GoLink.
; Eventually it will contain needed functions.
global __start
global ___exit
global ___malloc
global ___free
global ___strlen
global ___strcpy
global ___strinit
global ___strcat
global ___striter
global ___strindex
extern _main_E@0
extern _ExitProcess@4
extern _malloc@4
extern _free@4
se... |
include 'a32.inc'
_start:
LOAD_R0 0
PUSH R0
POPF
VM_DEBUG
VM_EXIT
_end_start:
_data:
_end_data:
_bss:
_end_bss:
|
/**********************************************************************
* Copyright (c) 2015 Mark Charlebois
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the
* disclaimer below) provided that the following co... |
; A184808: n + floor(r*n), where r = sqrt(2/3); complement of A184809.
; 1,3,5,7,9,10,12,14,16,18,19,21,23,25,27,29,30,32,34,36,38,39,41,43,45,47,49,50,52,54,56,58,59,61,63,65,67,69,70,72,74,76,78,79,81,83,85,87,89,90,92,94,96,98,99,101,103,105,107,108,110,112,114,116,118,119,121,123,125,127,128,130,132,134,136,138,139... |
#include "mywidget.h"
#include <QApplication>
#include "mydialog.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MyDialog dialog; // 新建MyDialog类对象
if(dialog.exec()==QDialog::Accepted){ // 判断dialog执行结果
MyWidget w;
w.show(); // 如果是按下... |
; A305262: a(n) = 140*2^n - 127.
; 13,153,433,993,2113,4353,8833,17793,35713,71553,143233,286593,573313,1146753,2293633,4587393,9174913,18349953,36700033,73400193,146800513,293601153,587202433,1174404993,2348810113,4697620353,9395240833,18790481793,37580963713,75161927553,150323855233,300647710593,601295421313,12025908... |
DATAS SEGMENT
BUF DB 100,?,100 DUP ('$')
TEMP DW 100 DUP ('$$')
MSG DB 'ENTER:','$'
FLAG DB 0
DATAS ENDS
STACK SEGMENT STACK
MYSTACK DW 100 DUP (0)
STACK ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS,ES:DATAS,SS:STACK
START:
;段基址赋值
MOV AX,DATAS
MOV DS,AX
MOV ES,AX
MOV ... |
;case changing
org 100h
mov cx,len
mov si,offset str
toupper:
mov al,[si]
sub al,020h;
mov [si],al
inc si
loop toupper
;tolower:
; mov al,[si]
;
; add al,020h;
; mov [si],al
; inc si
; loop tolower
ret
... |
###############################################################################
# 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... |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1983 - 1991
; * All Rights Reserved.
; */
;******************************************************************************
;
; Change Log:
;
; Date Who # Des... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 03
call lwaitly_b
ld a, 60
ldff(41), a
ld a, 02
ldff(ff), a
ei
ld a, 06
ldff(45), a
ld c, 0f
.text@1000
lstatint:
nop
.text@1068
ldff a, (c)
and a, b
jp lprint_a
.text@7000
lprint_a:
... |
INCLUDE "hardware.inc"
INCLUDE "macros.inc"
; Game Constants
CURSOR_MIN EQU 01 ; max value W_CURSOR_POS can hold
CURSOR_MAX EQU 17 ; min ""
HELD_MIN EQU 01 ; max and min value W_HELD_POS can hold
HELD_MAX EQU 05
SECTION "Game Variables", WRAM0
W_CURSOR_POS: DS 1 ; byte holding position of cursor
; last... |
; A001725: a(n) = n!/5!.
; Submitted by Jon Maiga
; 1,6,42,336,3024,30240,332640,3991680,51891840,726485760,10897286400,174356582400,2964061900800,53353114214400,1013709170073600,20274183401472000,425757851430912000,9366672731480064000,215433472824041472000,5170403347776995328000,129260083694424883200000,33607621760550... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r8
push %rax
push %rbp
push %rdx
lea addresses_normal_ht+0xe30a, %r8
nop
nop
nop
nop
nop
sub $24351, %r11
movw $0x6162, (%r8)
nop
nop
nop
sub %rdx, %rdx
lea addresses_WC_ht+0x1e752, %r10
clflush (%r10)
nop
nop
nop
nop
sub $16946, %rax
mov ... |
; A105564: Number of blocks of exactly 4 Fibonacci numbers having equal length <= n.
; 0,0,0,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,6,7,7,7,7,8,8,8,8,8,9,9,9,9,10,10,10,10,10,11,11,11,11,11,12,12,12,12,13,13,13,13,13,14,14,14,14,14,15,15,15,15,16,16,16,16,16,17,17,17,17,17,18,18
add $0,2523
mov $3,2
lpb... |
DEVICE ZXSPECTRUM128
SLOT 0 : PAGE 0 : SLOT 1 : PAGE 1 : SLOT 2 : PAGE 2 : SLOT 3 : PAGE 3
ORG 0x4000-2
orgLabel:
DISP 0xC000-1
dispLabel:
set 5,(ix+0x41) ; 4B opcode across both ORG and DISP boundaries
ENT
ORG 0x8000-2
orgLabel2:
DISP 0xC000-3
dispLabel2:
set ... |
; A051953: Cototient(n) := n - phi(n).
; 0,1,1,2,1,4,1,4,3,6,1,8,1,8,7,8,1,12,1,12,9,12,1,16,5,14,9,16,1,22,1,16,13,18,11,24,1,20,15,24,1,30,1,24,21,24,1,32,7,30,19,28,1,36,15,32,21,30,1,44,1,32,27,32,17,46,1,36,25,46,1,48,1,38,35,40,17,54,1,48,27,42,1,60,21,44,31,48,1,66,19,48,33,48,23,64,1,56,39,60
mov $1,$0
seq $1,... |
// dodawanie liczb 16 bitowych
link l1:ct
link l2:rdm
equ cs:r8
equ ip:r9
\\ rezerwowanie rejestrow
equ pom1: r2
equ pom2: r3
equ pom3: r4
equ pom4: r5
equ pom5: r6
equ pom6: r7
equ pom7: r8
accept cs:ABCDh
accept ip:1234h
\\ wpisanie wartosci pod konkretne adresy
dw ACF04h:5678h \\ ACF04 ABCD
dw... |
; A179934: a(n) red balls and b(n) blue balls in an urn; draw 2 balls without replacement; Probability(2 red balls)=6*Probability(2 blue balls); b(n)=A181442(n);
; Submitted by Christian Krause
; 4,9,36,85,352,837,3480,8281,34444,81969,340956,811405,3375112,8032077,33410160,79509361,330726484,787061529,3273854676,77911... |
/**
* @file connect_to_nonexisting_db.cpp Tries to connect to non existing DB, expects no crash
*/
#include "testconnections.h"
#include "sql_t1.h"
bool try_connect(TestConnections& test)
{
const char* ip = test.maxscales->IP[0];
const char* user = test.maxscales->user_name;
const char* pw = test.maxsca... |
; A126566: a(0)=1; a(1)=2; a(2)=5; a(3)=14; for n>3: a(n) = 8*a(n-1)-20*a(n-2)+16*a(n-3)-a(n-4).
; Submitted by Jon Maiga
; 1,2,5,14,43,142,495,1794,6681,25346,97357,377038,1468019,5735758,22460935,88083586,345754097,1358000258,5335796565,20970349326,82429113339,324040664974,1273932845663,5008544929922,19691924052361
... |
# Initialize
addi $a0, $zero, 5 # Change the immediate/3 to change function call argument
add $a1, $a0, $zero # a1 & a2 used for conting in the loops
add $a2, $a0, $zero
add $a3, $a0, $zero
# Main factorial function
beq $a0, $zero, Zero # Guard for 0!
add $v0, $a0, $zero # Value out is initially the a... |
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: get_para.asm,v 1.3 2015/01/19 01:32:56 pauloscustodio Exp $
;
INCLUDE "cpcfp.def"
PUBLIC get_para
EXTERN fa
.get_para
ld hl,4
add hl,sp
ld de,fa ;(fa) <- (hl)
ld bc,6
ldir
ld hl,... |
ldl $10
and r7,7,r0
hlt
|
; void sms_copy_mem_to_vram_unsafe(void *src, unsigned int n)
SECTION code_clib
SECTION code_crt_common
PUBLIC _sms_copy_mem_to_vram_unsafe
EXTERN asm_sms_copy_mem_to_vram_unsafe
_sms_copy_mem_to_vram_unsafe:
pop af
pop hl
pop bc
push bc
push hl
push af
jp asm_sms_copy_mem_to_vram_unsa... |
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoinaddressvalidator.h"
#include "dstencode.h"
/* Base58 characters are:
"123456789ABCDEFGHJKLMNPQRSTUVWX... |
// Copyright (c) 2015-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "consensus/merkle.h"
#include "test/test_bitcoinbridge.h"
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_S... |
; A289975: p-INVERT of the Fibonacci numbers (A000045, including 0), where p(S) = 1 - S - S^2.
; Submitted by Christian Krause
; 0,1,1,4,7,18,37,85,183,407,888,1956,4284,9409,20630,45270,99289,217819,477776,1048053,2298912,5042783,11061455,24263687,53223023,116746272,256086074,561731936,1232174181,2702807740,5928681960... |
; A055070: Third column of triangle A055864.
; Submitted by Christian Krause
; 0,0,9,80,900,12348,200704,3779136,81000000,1948717100,52027785216,1527047909712,48884036690944,1695352148437500,63331869759897600,2535571976423919872,108321063231221415936,4918685157679434648876
mov $1,$0
add $0,1
sub $1,2
mov $2,$0
pow $0,... |
; ------------ To assemble and run:----------------------------------
; linux
; nasm -f elf32 c_ensamblador.asm & gcc -m32 c_ensamblador.o -o c_ensamblador & ./c_ensamblador
; -------------------------------------------------------------------
extern printf ; invocacion de la funcion printf de C
section .data
... |
; BEGIN_LEGAL
; Intel Open Source License
;
; Copyright (c) 2002-2016 Intel Corporation. All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are
; met:
;
; Redistributions of source code must reta... |
; void reset()
floppy:
.reset:
mov ah, RESET
mov dl, DRIVE
int IO
jc .reset
ret
; void read(unsigned int track, unsigned int sector, unsigned int count, unsigned int head)
.read:
push bp
mov bp, sp
call floppy.reset
.sectorRead:
mov ah, READ
mov ch, BYTE [ARG(0)]... |
; A002659: a(n) = 2*sigma(n) - 1.
; 1,5,7,13,11,23,15,29,25,35,23,55,27,47,47,61,35,77,39,83,63,71,47,119,61,83,79,111,59,143,63,125,95,107,95,181,75,119,111,179,83,191,87,167,155,143,95,247,113,185,143,195,107,239,143,239,159,179,119,335,123,191,207,253,167,287,135,251,191,287,143,389,147,227,247,279,191,335,159,371,2... |
;
; 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... |
/*
Copyright (c) 2019-2021 Péter Magyar
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, distribut... |
SEStatus PROC STDCALL nType:DWORD
; nType -1 resets error
; nType 0 returns number of last error
; nType 1 returns text of last error
PUSH EDX
PUSH ECX
MOV EDX, nType
MOV ECX, [EDX]
.if ECX == -1
MOV errNum, 0
MOV EAX, 0
.elseif ECX == 0
MOV EAX, errNum
.elseif ECX == 1
MOV ECX, errNum
MOV ... |
; ** Realtime sample & display of POTX or POTY on VIC-20,
; written 2018-01-05 by Michael Kircher
;
; - sample rate 512 us (^= paddle period), done in NMI,
; - display height 256 pixels, *full* resolution,
; - display width 208 pixels, equiv. ~= 100 ms,
; i.e. ~5 x 20 ms in PAL, ~6 x 16,67 ms in NTSC.
... |
;-------------------------------------------------------------------------------
; hd.nasm - device independend part of any hard disk driver.
;-------------------------------------------------------------------------------
module hw.genhd
%include "sys.ah"
%include "errors.ah"
%include "hd.ah"
%include "hw/partids.a... |
// CountryComboBox.cpp : implementation file
//
#include "stdafx.h"
#include "CertWiz.h"
#include "CountryComboBox.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
BEGIN_MESSAGE_MAP(CComboEdit, CEdit)
ON_WM_CHAR()
END_MESSAGE_MAP()
void CComboEdit:... |
;
; Z88dk Z88 Maths Library
;
;
; $Id: dlt.asm,v 1.4 2016/06/22 19:55:06 dom Exp $
SECTION code_fp
PUBLIC dlt
EXTERN fsetup
EXTERN stkequcmp
INCLUDE "fpp.def"
; TOS < FA?
.dlt
call fsetup
fpp(FP_LT)
jp stkequcmp
|
; ************ DESCRIZIONE SOTTOPROGRAMMA ************
Il seguente sottoprogramma denominato SEQ riceve nel registro R0 il numero intero N e
restituisce sempre in R0 l’ennesimo termine S(N) della sequenza definita nel seguente modo:
S(N) = S(N-1) – 2 x S(N-2)
con S1 = 1 e S2 = 1. Si ipotizza inoltre che S(N) = 0 ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1e565, %rbp
sub %r9, %r9
movl $0x61626364, (%rbp)
nop
nop
nop
and $43716, %rbp
lea addresses_normal_ht+0xafc7, %rsi
lea addresses_A_ht+0x11ead, %rdi
clflush (%rdi)
nop
nop
nop
... |
; A061285: a(n) = 2^((prime(n) - 1)/2).
; 2,4,8,32,64,256,512,2048,16384,32768,262144,1048576,2097152,8388608,67108864,536870912,1073741824,8589934592,34359738368,68719476736,549755813888,2199023255552,17592186044416,281474976710656
seq $0,168565 ; Let p = prime(n); then a(n) = p + (p-1)/2.
div $0,3
mov $1,2
pow $1,$0... |
%ifdef CONFIG
{
"RegData": {
"XMM0": ["0x0000858600008788", "0x0000414200004344"]
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434485868788
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
mov rax, 0x6162636465666768
mov [rdx + 8 * 2], rax
mov rax, 0x7172737475767778
mov [rdx + 8 * ... |
#ifndef BOOST_MPL_HAS_XXX_HPP_INCLUDED
#define BOOST_MPL_HAS_XXX_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2002-2006
// Copyright David Abrahams 2002-2003
// Copyright Daniel Walker 2007
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://... |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// Demonstrates a procedure reserving addresses on zeropage
// Commodore 64 PRG executable file
.file [name="reserve-zp-procedure-3.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"... |
; bv_priority_queue_t *
; bv_priority_queue_init_callee(void *p, size_t capacity, size_t max_size, int (*compar)(const void *, const void *))
SECTION code_clib
SECTION code_adt_bv_priority_queue
PUBLIC _bv_priority_queue_init_callee, l0_bv_priority_queue_init_callee
EXTERN asm_bv_priority_queue_init
_bv_priority_q... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld c, 41
ld b, 03
lbegin_waitm3:
ldff a, (c)
and a, b
cmp a, b
jrnz lbegin_waitm3
ld a, 20
ldff(c), a
ld a, 02
ldff(ff), a
ei
.text@1000
ls... |
#include "../objects.hh"
#include <vector>
#include <iostream>
struct TestObject : public Object
{
public:
TestObject()
: Object({
{0, 0},
{0, 10},
{10, 10},
{10, 0},
})
{
}
void tick()
{
}
void state_changed(Objec... |
// Copyright 2016-2019 Directive Games Limited - All Rights Reserved
#include "SavePlayerGameStateProxy.h"
#include "DriftUtils.h"
#include "DriftBase.h"
USavePlayerGameStateProxy* USavePlayerGameStateProxy::LoadStaticData(UObject* worldContextObject, FString name, FString state)
{
auto proxy = NewObject<USave... |
; A224336: Number of idempotent 5X5 0..n matrices of rank 4.
; 155,805,2555,6245,12955,24005,40955,65605,99995,146405,207355,285605,384155,506245,655355,835205,1049755,1303205,1599995,1944805,2342555,2798405,3317755,3906245,4569755,5314405,6146555,7072805,8099995,9235205,10485755,11859205,13363355,15006245,16796155,187... |
; A334660: Dirichlet g.f.: 1 / zeta(s-4).
; 1,-16,-81,0,-625,1296,-2401,0,0,10000,-14641,0,-28561,38416,50625,0,-83521,0,-130321,0,194481,234256,-279841,0,0,456976,0,0,-707281,-810000,-923521,0,1185921,1336336,1500625,0,-1874161,2085136,2313441,0,-2825761,-3111696,-3418801,0,0,4477456
mov $1,$0
cal $0,8683 ; Möbius (o... |
; ############################################################################
; ## WDOSX DOS Extender Copyright (c) 1996, 1999, Michael Tippach ##
; ## ##
; ## Released under the terms of the WDOSX license agreement. ##
; ##... |
; A256233: a(n) = L(2*n+1) - 2, where L is A000032.
; -1,2,9,27,74,197,519,1362,3569,9347,24474,64077,167759,439202,1149849,3010347,7881194,20633237,54018519,141422322,370248449,969323027,2537720634,6643838877,17393795999,45537549122,119218851369,312119004987,817138163594,2139295485797,5600748293799,14662949395602,3838... |
; A099489: Expansion of (1-x+x^2)/((1+x^2)(1-4x+x^2)).
; 1,3,11,42,157,585,2183,8148,30409,113487,423539,1580670,5899141,22015893,82164431,306641832,1144402897,4270969755,15939476123,59486934738,222008262829,828546116577,3092176203479,11540158697340,43068458585881,160733675646183,599866243998851,2238731300349222,835505... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; RC_01_OUTPUT_SIOA
; output through sioa library routine
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; ;;;;;;;;;;;;;;;;;;;;
; DRIVER CLASS DIAGRAM
; ;;;;;;;;;;;;;;;;;;;;
;
; CONSOLE_01_OUTPUT_TERMINAL (root, abstract)
; RC_01_OUTPUT_... |
sec
lda {c1},y
sbc #<{c2}
sta {m1}
lda {c1}+1,y
sbc #>{c2}
sta {m1}+1
|
;;
;; Copyright (c) 2017-2021, Intel Corporation
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; * Redistributions of source code must retain the above copyright notice,
;; this list of conditions and... |
; A317319: Multiples of 19 and odd numbers interleaved.
; 0,1,19,3,38,5,57,7,76,9,95,11,114,13,133,15,152,17,171,19,190,21,209,23,228,25,247,27,266,29,285,31,304,33,323,35,342,37,361,39,380,41,399,43,418,45,437,47,456,49,475,51,494,53,513,55,532,57,551,59,570,61,589,63,608,65,627,67,646,69,665,71,684,73,703,75,722,77,7... |
setrepeat 2
frame 2, 10
frame 0, 08
frame 1, 10
frame 0, 08
dorepeat 1
endanim
|
; A057524: Number of 3 x n binary matrices without unit columns up to row and column permutations.
; 1,3,7,14,25,41,64,95,136,189,256,339,441,564,711,885,1089,1326,1600,1914,2272,2678,3136,3650,4225,4865,5575,6360,7225,8175,9216,10353,11592,12939,14400,15981,17689,19530,21511,23639,25921,28364,30976,33764,36736,39900,4... |
;#########################################################################################################################
;
; Copyright 2018-2020 0x8BitDev ( MIT license )
;
;#########################################################################################################################
; DESC: Multidire... |
#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h>
#include <boost/shared_ptr.hpp>
#include <iostream>
#include <pcl/point_representation.h>
PYBIND11_DECLARE_HOLDER_TYPE(T, boost::shared_ptr<T>);
#include "make_opaque_vectors.hpp" // must be first for PYBIND11_MAKE_OPAQUE to work
#... |
[bits 32]
dd endt-start ; size of an image
db "ANIM", 0
db "SINE", 0
start :
dd 0, 0
dd 41, 5
dd 60, 10
dd 75, 15
dd 90, 20
dd 104, 25
dd 120, 30
dd 139, 35
dd 180, 40
endt : |
// see LICENSE
//! \author Ryzhenko Nikolai, 10984646, nikolai.v.ryzhenko@intel.com
//! \date Tue Oct 17 10:29:19 2017
//! \file suTie.cpp
//! \brief A collection of methods of the class suTie.
// std includes
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
// app... |
db IGGLYBUFF ; 174
db 90, 30, 15, 15, 40, 20
; hp atk def spd sat sdf
db NORMAL, NORMAL ; type
db 170 ; catch rate
db 39 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F75 ; gender ratio
db 100 ; unknown 1
db 10 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/igglybuff/front.dim... |
void CMyDlg::OnFindCenterChild()
{
CRect rect;
GetClientRect(&rect);
CWnd* pWnd = ChildWindowFromPoint(
CPoint(rect.Width()/2, rect.Height()/2),
// Top left is always 0, 0.
CWP_SKIPINVISIBLE);
TRACE(_T("Center window is 0x%08x\n"), pWnd->m_hWnd);
} |
#include "text_parser.hpp"
using TokenType = TextParser::Scope::TokenType;
class TestCase
{
public:
TestCase(const char* name) : _name(name), _status(true)
{
}
~TestCase()
{
if (_status)
_success += 1;
else
_failed += 1;
}
void test(bool condition)
{
if (!condition)
fail... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/s3-crt/model/PutObjectLegalHoldRequest.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/http/URI.h>
#include <aw... |
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_DroppedItemGeneric_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------... |
; A332698: a(n) = (8*n^3 + 15*n^2 + 13*n)/6.
; 0,6,25,65,134,240,391,595,860,1194,1605,2101,2690,3380,4179,5095,6136,7310,8625,10089,11710,13496,15455,17595,19924,22450,25181,28125,31290,34684,38315,42191,46320,50710,55369,60305,65526,71040,76855,82979,89420,96186
mov $15,$0
mov $17,$0
lpb $17
clr $0,15
mov $0,$15... |
; A318456: a(n) = n OR A001065(n), where OR is bitwise-or (A003986) and A001065 = sum of proper divisors.
; Submitted by Simon Strandgaard
; 1,3,3,7,5,6,7,15,13,10,11,28,13,14,15,31,17,23,19,22,31,30,23,60,31,26,31,28,29,62,31,63,47,54,47,55,37,54,55,58
mov $1,$0
seq $0,203 ; a(n) = sigma(n), the sum of the divisors o... |
OP_SUBTRACT:
mov A, R5
mov B, R6
subb A, B
inc A
mov R3, A
ACALL SHOW_RESULT
ACALL LONG_DELAY
ACALL CLEAR_ALL |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE127_Buffer_Underread__new_wchar_t_cpy_07.cpp
Label Definition File: CWE127_Buffer_Underread__new.label.xml
Template File: sources-sink-07.tmpl.cpp
*/
/*
* @description
* CWE: 127 Buffer Under-read
* BadSource: Set data pointer to before the allocated memory b... |
.globl Tela75
Tela75:
addi $10, $0, 0xcff8cf
sw $10, 268500992($0)
addi $10, $0, 0x00d800
sw $10, 268500996($0)
addi $10, $0, 0x00d800
sw $10, 268501000($0)
addi $10, $0... |
; A179064: Number of non-attacking placements of 9 rooks on an n X n board.
; 0,0,0,0,0,0,0,0,362880,36288000,1097712000,17563392000,185513328000,1454424491520,9090153072000,47491411968000,214453407168000,857813628672000,3096707199505920,10237048593408000,31350961317312000,89786185074432000,242331081144768000,620367567... |
frame 0, 06
frame 1, 08
frame 2, 20
frame 1, 06
endanim
|
;
; Inflate implementation
;
Inflate: MACRO
reader:
dw 0
writer:
dw 0
_size:
ENDM
Inflate_class: Class Inflate, Inflate_template, Heap_main
Inflate_template: Inflate
; hl = reader
; de = writer (min 32K)
; ix = this
; ix <- this
; de <- this
Inflate_Construct:
ld iyl,e ; check if write buffer is at least 32... |
;;
;; Copyright (c) 2020-2021, Intel Corporation
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; * Redistributions of source code must retain the above copyright notice,
;; this list of conditions and... |
page ,132
title HUGE - HUGE value
;***
;huge.asm - defines HUGE
;
; Copyright (c) 1984-2000, Microsoft Corporation. All rights reserved.
;
;Purpose:
; defines HUGE
;
;Revision History:
;
; 07/04/84 Greg Whitten
; initial version
;
; 12/21/84 Greg Whitten
; add assumes so that C can find v... |
;
; System Call for REX6000
;
; never tested this function
; again with Damjan's algorithm
; Daniel
;
; $Id: syscall5p.asm,v 1.3 2015-01-19 01:33:06 pauloscustodio Exp $
PUBLIC syscall5p
.syscall5p
ld ix,2
add ix,sp
ld l,(ix+0) ;par 5
ld h,(ix+1)
ld ... |
preset_100map_varia_landing_site:
dw #$0000
dl $7E078B : db $02 : dw $0000 ; Elevator Index
dl $7E078D : db $02 : dw $88FE ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $91F8 ; MDB
dl $7E079F : db $02 : dw $0000 ; Region
dl $7E07C3 : db $02 : dw $C629 ; GFX P... |
; A128987: a(n) = (n^3 - n^2)*4^n.
; Submitted by Jon Maiga
; 0,64,1152,12288,102400,737280,4816896,29360128,169869312,943718400,5075107840,26575110144,136096776192,683973541888,3382286745600,16492674416640,79439715106816,378506877861888,1786156639322112,8356288371097600,38790770227937280,178806978955444224,81895144473... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.