text stringlengths 1 1.05M |
|---|
db 0, 1, 3, 4, 6, 7, 9, 10, 12, 14, 15, 17, 18, 20, 21, 23
db 24, 25, 27, 28, 30, 31, 32, 34, 35, 36, 38, 39, 40, 41, 42, 44
db 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 54, 55, 56, 57, 57, 58
db 59, 59, 60, 60, 61, 61, 62, 62, 62, 63, 63, 63, 63, 63, 63, 63
db 64, 63, 63, 63, 63, 63, 63, 63, 62, 62, 62, 61, 61, 60,... |
#include "wmpch.h"
#include "WormEventHandle.h"
#include "InGame/Entity/World/WorldFSMHandler.h"
void InGame::WormWorldEventHandler::Handle(std::any data, int entityID, bool & handled)
{
auto worldData = std::any_cast<WorldData>(data);
if (worldData.DataType == WorldDataType::PrepareNextPhase)
{
auto status = G... |
###############################################################################
# Copyright 2019 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... |
Route2_h:
db 00 ; Tileset
db ROUTE_2_HEIGHT,ROUTE_2_WIDTH ;Height,Width blocks (1 block = 4x4 tiles)
dw Route2Blocks, Route2TextPointers, Route2Script
db NORTH | SOUTH ;Connection Byte
NORTH_MAP_CONNECTION ROUTE_2, PEWTER_CITY, -3, 2, PewterCityBlocks
SOUTH_MAP_CONNECTION ROUTE_2, VIRIDIAN_CITY, -3, 2, ViridianCi... |
; A232866: Positions of the nonnegative integers in the sequence (or tree) of complex numbers generated by these rules: 0 is in S, and if x is in S, then x + 1 and i*x are in S, where duplicates are deleted as they occur.
; 1,2,3,5,9,16,27,42,61,84,111,142,177,216,259,306,357,412,471,534,601,672,747,826,909,996,1087,11... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xb0bd, %rdx
nop
nop
nop
nop
xor $63749, %r8
mov $0x6162636465666768, %r15
movq %r15, (%rdx)
and $25655, %rcx
lea addresses_UC_ht+0x24bd, %r12
xor $59551, %r14
mo... |
#include <string>
#include "envoy/registry/registry.h"
#include "external/envoy/source/common/protobuf/message_validator_impl.h"
#include "api/server/response_options.pb.h"
#include "api/server/response_options.pb.validate.h"
#include "server/http_test_server_filter.h"
namespace Nighthawk {
namespace Server {
name... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by D Morris - 30/9/98
;
;
; $Id: w_circle.asm,v 1.1 2010/11/25 13:46:40 stefano Exp $
;
;Usage: circle(struct *pixels)
XLIB circle
LIB w_draw_circle
LIB w_plotpixel
LIB ... |
; A173653: Partial sums of floor(n^2/10) (A056865)
; 0,0,0,0,1,3,6,10,16,24,34,46,60,76,95,117,142,170,202,238,278,322,370,422,479,541,608,680,758,842,932,1028,1130,1238,1353,1475,1604,1740,1884,2036,2196,2364,2540,2724,2917,3119,3330,3550,3780
mov $2,$0
mov $3,$0
lpb $3
mov $0,$2
sub $3,1
sub $0,$3
mov $4,$0
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1b3ea, %rsi
lea addresses_UC_ht+0x181ea, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
add %rbx, %rbx
mov $78, %rcx
rep movsb
nop
nop
inc %rbp
lea addresses_WT_ht+0xdbea, %rbx
nop... |
; A169018: Number of reduced words of length n in Coxeter group on 5 generators S_i with relations (S_i)^2 = (S_i S_j)^24 = I.
; 1,5,20,80,320,1280,5120,20480,81920,327680,1310720,5242880,20971520,83886080,335544320,1342177280,5368709120,21474836480,85899345920,343597383680,1374389534720,5497558138880,21990232555520,87... |
/*=============================================================================
Copyright (c) 2010-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprig
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)
===... |
; A084859: Binomial transform of Cullen numbers A002064.
; 1,4,16,62,232,842,2980,10334,35248,118610,394684,1301126,4255624,13825658,44657428,143521838,459230560,1463719586,4649308012,14722502870,46491507256,146447041994,460259735236,1443537130622
mov $1,$0
mov $3,1
lpb $0
sub $0,1
mul $1,2
add $2,$1
mov $1,$2... |
/*=============================================================================
Copyright (C) 2015 Kohei Takahshi
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)
=============================================... |
ADDI 1
STORE 1
|
;/*!
; @file
;
; @ingroup fapi
;
; @brief BadDynLink
;
; (c) osFree Project 2018, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prokushev (yuri.prokus... |
include uXmx86asm.inc
option casemap:none
ifndef __X64__
.686P
.xmm
.model flat, c
else
.X64P
.xmm
option win64:11
option stackbase:rsp
endif
option frame:auto
.code
align 16
uXm_has_AVX512_VBMI_VL proto VECCALL (byte)
align 16
uXm_has_AVX512_VBMI_VL proc VECCALL (byte)
m... |
test START 0
LDA a
. make sure PC-relative is not selected with extended
+LDA a
+LDB b
BASE c
LDA b
. make sure base is not selected with extended
+LDA b
BASE a
+LDA b
ORG ... |
//********************************************************************************
// Copyright (c) 2007-2014 Intel Corporation. All rights reserved. **
// **
// Redistribution and use in source and binary forms, with or withou... |
; A283590: Binary representation of the x-axis, from the origin to the right edge, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 657", based on the 5-celled von Neumann neighborhood.
; Submitted by Jamie Morken(s1)
; 1,0,101,111,1111,11111,111111,1111111,11111111,111111111,11111... |
_sh: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
return 0;
}
int
main(void)
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %ebp
... |
; Get the status of a key
; Input:
; - BC: Key to get; B will hold the row number, C the bit to check
; Output:
; - A: 0 if key is pressed, other value if pressed
GET_KEY_STATE:
ld a, c ; save the bit to check in A
ld c, $fe ; ready to read!
in e,(c) ; get the row in e
and e
ret ; the key is presse... |
; A206817: Sum_{0<j<k<=n} (k!-j!).
; 1,10,73,520,3967,33334,309661,3166468,35416555,430546642,5655609529,79856902816,1206424711303,19419937594990,331860183278677,6000534640290364,114462875817046051,2297294297649673738,48394006967070653425,1067651522907147633112,24618014536571087652799,592184729794597144792486,148354682... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L
;
; See "bifrost_h.h" for further details
; ----------------------------------------------------------------
; void BIFROSTH_drawTileH(unsigned char lin,unsigned char col,unsigned char t... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
0006D6 move.w ($864,A5), D0 [base+85C, base+85E]
0006DA add.w D1, D0 [base+864]
0006E2 move.l ($744,A5), ($864,A5)
0006E8 move.w ($86c,A5), D0 [base+864, base+866]
0AAACA move.l (A0), D2
0AAACC move... |
// Time: O(m * n)
// Space: O(m * n)
// A* Search Algorithm without heap
class Solution {
public:
int minCost(vector<vector<int>>& grid) {
const pair<int, int> b = {0, 0}, t = {grid.size() - 1, grid[0].size() - 1};
return a_star(grid, b, t);
}
private:
int a_star(const vector<vector<int>... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "precomp.h"
#include "readDataDirect.hpp"
#include "dbcs.h"
#include "misc.h"
#include "../interactivity/inc/ServiceLocator.hpp"
// Routine Description:
// - Constructs direct read data class to hold context across session... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2007,2008 INRIA
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distri... |
extern printf
extern scanf
section .data
msg db "enter two numbers: ", 0
fmt_in db "%d%d", 0
fmt_out db "maximum: %d", 0
section .text
global start
start:
enter 8, 0
push msg
call printf
add esp, 4
lea eax, [ebp - 4]
lea ebx, [ebp - 8]
push... |
TITLE ECE291 Your Name Today's Date
COMMENT % Text Mode BlackJack
ECE291 - Machine Problem 3
Prof. Constantine Polychronopoulos
Guest Author: Alex Jurcik
University of Illinois at Urbana Champaign
Dept. of Electrical & Computer Engineering
Sp... |
; A329997: Beatty sequence for 3^x, where 1/x^3 + 1/3^x = 1.
; 3,6,10,13,17,20,24,27,30,34,37,41,44,48,51,54,58,61,65,68,72,75,78,82,85,89,92,96,99,102,106,109,113,116,120,123,126,130,133,137,140,144,147,150,154,157,161,164,168,171,174,178,181,185,188,192,195,198
add $0,1
mov $1,24
mul $1,$0
div $1,7
|
#include "../Binding_pch.h"
#include <glbinding/gl/functions.h>
namespace gl
{
void glLabelObjectEXT(GLenum type, GLuint object, GLsizei length, const GLchar * label)
{
return glbinding::Binding::LabelObjectEXT(type, object, length, label);
}
void glLGPUCopyImageSubDataNVX(GLuint sourceGpu, GLbitfield destin... |
/******************************************************************************
** Filename: intmatcher.c
** Purpose: Generic high level classification routines.
** Author: Robert Moss
** History: Wed Feb 13 17:35:28 MST 1991, RWM, Created.
** Mon Mar 11 16:33:... |
#include <fc/thread/thread.hpp>
#include <fc/string.hpp>
#include <fc/time.hpp>
#include <boost/thread.hpp>
#include "context.hpp"
#include <boost/thread/condition_variable.hpp>
#include <boost/thread.hpp>
#include <boost/atomic.hpp>
#include <vector>
//#include <fc/logger.hpp>
namespace fc {
struct sl... |
li t0, 1
li t1, 3
sub s6, t0 ,t1 |
global main
extern puts
section .data
message db "Hello, World!"
section .text
main:
mov rdi, message
call puts
ret
|
BITS 32
; The address operands of instructions can be encoded in various ways.
; Unfortunately, NASM does not always use the alphanumeric variant. Which is why
; these are used:
%define IMUL___ESI__xESPx_(x) db 0x6B, 0x34, 0x64, x ; IMUL ESI, [ESP], x
%define XOR____ESI__xESPx db 0x33, 0x34, 0x64 ; ... |
// MIT License
//
// Copyright (c) 2020, The Regents of the University of California,
// through Lawrence Berkeley National Laboratory (subject to receipt of any
// required approvals from the U.S. Dept. of Energy). All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy... |
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-FileCopyrightText: 2020 Everton Fernando Patitucci da Silva
#include "../Renderer/RenderAPI.h"
#define RENDERER_INTERNAL
#include "Renderer/RenderInternal.h"
bool RenderAdd_SetTexture(RenderCmdList *cmdList, const SetTextureCmd &cmd)
{
auto ret = Render_Append... |
load SUBROUTINE
jsr openfile
bcc .pollblock
rts
.pollblock
jsr loadblock
bcc .pollblock
lda #$00
sta load_end
sta load_end+1
ldx storebyte + $01
cpx load_end
ldy storebyte + $02
iny
tya
sbc load_end+1
bcc .bla
stx load_end
sty load_end+1
.bla
rts
zp53 = $0c
zp54 ... |
ADD R0 R0 3 ; 011
ADD R1 R1 6 ; 110
AND R2 R0 R1 ; 010
TRAP x25 |
architecture wdc65816-strict
include "../../../src/common/assert.inc"
constant a = 0x7e0100
assertZeroPage(a) // ERROR
|
; A152948: a(n) = (n^2 - 3*n + 6)/2.
; 2,2,3,5,8,12,17,23,30,38,47,57,68,80,93,107,122,138,155,173,192,212,233,255,278,302,327,353,380,408,437,467,498,530,563,597,632,668,705,743,782,822,863,905,948,992,1037,1083,1130,1178,1227,1277,1328,1380,1433,1487,1542,1598,1655,1713,1772,1832,1893,1955,2018,2082,2147,2213,2280,23... |
; int tape_save_block(void *addr, size_t len, unsigned char type)
; CALLER linkage for function pointers
PUBLIC tape_save_block
EXTERN asm_tape_save_block
.tape_save_block
pop de
pop bc
ld a,c
pop bc
pop hl
push hl
push bc
push bc ; altered !
push de
jp asm_tape_save_block
|
; A099487: Expansion of (1-3x+x^2)/((1+x^2)(1-4x+x^2)).
; 1,1,3,14,53,195,727,2716,10137,37829,141179,526890,1966381,7338631,27388143,102213944,381467633,1423656585,5313158707,19828978246,74002754277,276182038859,1030725401159,3846719565780,14356152861961
mov $5,$0
mov $7,2
lpb $7,1
clr $0,5
mov $0,$5
sub $7,1
... |
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
ListNode* mergeTwoLis... |
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
.MODEL SMALL
.STACK 100H
.DATA
PROMPT_1 DB 'Enter int 1 : $'
PROMPT_2 DB 'Enter int 2 : $'
PROMPT_3 DB 'Smallest int : $'
.CODE
MAIN PROC
MOV AX, @DATA ... |
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <fuchsia/sysmem/cpp/fidl.h>
#include <lib/sys/cpp/component_context.h>
#include <zircon/status.h>
#include <zircon/types.h>
#include "src/camera/... |
; A273053: Numbers n such that 15*n^2 + 16 is a square.
; Submitted by Jon Maiga
; 0,4,32,252,1984,15620,122976,968188,7622528,60012036,472473760,3719778044,29285750592,230566226692,1815244062944,14291386276860,112515846151936,885835382938628,6974167217357088,54907502355918076,432285851629987520,3403379310683982084,267... |
/*
*********************************************************************************************************
* uC/CPU
* CPU CONFIGURATION & PORT LAYER
*
* (c) Copyright 2004-2015; Micrium, Inc.; Weston, FL
*
* ... |
SECTION code_fp_am9511
PUBLIC ___fsneq
EXTERN cam32_sdcc___fsneq
defc ___fsneq = cam32_sdcc___fsneq
|
DOWNLOAD_CHUNK_SIZE = 1024 * 1024
proc Download Url:DWORD, Size:DWORD
local Internet:DWORD
local UrlHandle:DWORD
local File:DWORD
local BytesRead:DWORD
local TotalBytesRead:DWORD
local ReadSuccess:DWORD
mov [Internet], 0
mov [UrlHandle], 0
mov [File], 0
mov [BytesRead], 0
mov [TotalBytesRead], 0
; C... |
// Copyright 2014 the V8 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.
#include "src/compiler/instruction-selector.h"
#include "src/compiler/graph.h"
#include "src/compiler/instruction-selector-impl.h"
#include "src/compil... |
; A033372: a(n) = floor(52/n).
; 52,26,17,13,10,8,7,6,5,5,4,4,4,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
add $0,1
mov $1,52
div $1,$0
mov $0,$1
|
reset_bird:
mov word [bird_pos+0], 60
mov word [bird_pos+2], 60
ret
center_bird:
mov word [bird_pos+0], 144
mov word [bird_pos+2], 60
ret
update_bird:
mov ax, word [bird_pos + 2] ; sy
cmp ax, 0 ; top
jle .collide ; reached sky?
add ax, word [bird_pos + 6] ; sh
cmp ax, 156 ; bottom (ground)
jg ... |
;
; 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... |
#include <stdio.h>
#include <stdlib.h>
#include "phmm.h"
#include <string.h>
#include "structure/structure_object.h"
#include "utils/xmath/log/xlog_math.h"
#include "utils/file/utils.h"
char t_phmm::state_names[N_STATES][100] = {"STATE_INS1", "STATE_INS2", "STATE_ALN"};
t_phmm::t_phmm(double new_emission_probs[N_OUT... |
; A039274: Numbers n such that representation in base 12 has same number of 10's and 11's.
; 0,1,2,3,4,5,6,7,8,9,12,13,14,15,16,17,18,19,20,21,24,25,26,27,28,29,30,31,32,33,36,37,38,39,40,41,42,43,44,45,48,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,72,73,74,75,76,77,78,79,80,81
mov $1,$0
div $0,10
mul $0... |
; A315185: Coordination sequence Gal.5.115.5 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,6,10,14,18,24,28,32,36,42,48,52,56,60,66,70,74,78,84,90,94,98,102,108,112,116,120,126,132,136,140,144,150,154,158,162,168,174,178,182,186,... |
; this file is part of Release, written by Malban in 2017
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; All the different explosions were done "on the fly"
; they were not "planned", and certainly do not consist of good or nice code
; please do not look further!
;
explosionBehaviour ;#isfu... |
; A133889: Binomial(n+9,n) mod 9.
; 1,1,1,4,4,4,1,1,1,2,2,2,8,8,8,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,7,7,7,4,4,4,5,5,5,2,2,2,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,1,1,1,7,7,7,8,8,8,5,5,5,8,8,8,0,0,0,0,0,0,0,0,0,1,1,1,4,4,4,1,1,1,2,2,2,8,8,8,2,2,2,3,3,3,3,3,3
mov $1,$0
mov $0,10
add $1,9
mov $2,9
lpb $0,1
gcd $0,4
bin $1,$2
m... |
#include "duckdb/planner/binder.hpp"
#include "duckdb/parser/statement/alter_table_statement.hpp"
#include "duckdb/parser/statement/transaction_statement.hpp"
#include "duckdb/parser/statement/pragma_statement.hpp"
#include "duckdb/planner/operator/logical_simple.hpp"
#include "duckdb/catalog/catalog.hpp"
using namesp... |
.outfile "snake.prg"
.require "platform/c64_0.oph"
.require "platform/c64kernal.oph"
.require "head.asm"
main:
.scope
`init
jsr getchar ; 等待输入任意字符开始游戏
jsr erasehint ; 游戏开始,清空提示
* clc
jsr judgeout ; 判断是否出界
bcc +
jsr printfail
jsr getchar
rts
* clc
lda #0
sta eat
jsr judgefood ; 判断是否吃到食物
bcc +
lda #1
sta ... |
TITL "6800/6801 Cross-Assembler Test Source File"
PAGE 60
;
; The 6801 opcodes in opcode numerical order:
;
CPU 6801
IMMEDIATE EQU 0
OFFSET EQU 0
DIRECT ORG 0
EXTENDED ORG $100
; $00 - $0F.
; $00 is undefined.
NOP
; $02 - $03 are undefined.
LSRD
ASLD
TAP
TPA
INX... |
;*****************************************************************************
;* sad16-a.asm: x86 high depth sad functions
;*****************************************************************************
;* Copyright (C) 2010-2013 x264 project
;*
;* Authors: Oskar Arvidsson <oskar@irock.se>
;* Henrik Gramner <h... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC am48_dinv
EXTERN am48_dconst_1, am48_ddiv
am48_dinv:
; invert
; AC' = 1/AC'
;
; enter : AC'= double x
;
; exit : AC = double x
;
; success
;
; AC' = 1/x
; carry reset
;
; fail if overflow
... |
_ln: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.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(%ecx)
a: 55 ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xb2fd, %r10
nop
xor %rax, %rax
movb (%r10), %dl
nop
nop
nop
dec %r8
lea addresses_UC_ht+0x1d539, %rdx
nop
nop
nop
nop
xor $13644, %rbx
mov $0x6162636465666... |
SECTION code_fp_math48
PUBLIC _atan
EXTERN cm48_sdccix_atan
defc _atan = cm48_sdccix_atan
|
; A161726: a(n) = n^2 - 917*n + 9479.
; 9479,8563,7649,6737,5827,4919,4013,3109,2207,1307,409,-487,-1381,-2273,-3163,-4051,-4937,-5821,-6703,-7583,-8461,-9337,-10211,-11083,-11953,-12821,-13687,-14551,-15413,-16273,-17131,-17987,-18841,-19693,-20543,-21391,-22237,-23081,-23923,-24763,-25601,-26437,-27271,-28103,-28933,... |
include ksamd64.inc
public _get_fpsr
_status$ = 0
NESTED_ENTRY _get_fpsr, _TEXT$00
sub rsp, 8
.allocstack 8
.endprolog
stmxcsr DWORD PTR _status$[rsp]
mov eax, DWORD PTR _status$[rsp]
add rsp, 8
ret
NESTED_END _get_fpsr, _T... |
; A259410: a(n) = 1 - sigma(n) + sigma(n)^2 - sigma(n)^3 + sigma(n)^4.
; 1,61,205,2101,1111,19141,3641,47461,26521,99451,19141,593461,35855,318505,318505,894661,99451,2255605,152381,3039331,1016801,1634221,318505,12747541,894661,3039331,2497561,9661961,783871,26505721,1016801,15506821,5200081,8348455,5200081,67829581,2... |
; A000203: a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n).
; 1,3,4,7,6,12,8,15,13,18,12,28,14,24,24,31,18,39,20,42,32,36,24,60,31,42,40,56,30,72,32,63,48,54,48,91,38,60,56,90,42,96,44,84,78,72,48,124,57,93,72,98,54,120,72,120,80,90,60,168,62,96,104,127,84,144,68,126,96,144,72,195,74,114,124,140,9... |
; A111223: Numbers n such that 5*n + 2 is prime.
; 0,1,3,7,9,13,19,21,25,27,31,33,39,45,51,55,61,63,67,69,73,79,91,93,97,109,111,115,117,121,123,129,135,145,151,157,159,165,171,175,177,181,187,189,193,195,199,217,219,223,237,243,247,255,259,261,265,273,285,289,297,313,319,321,325,327,331,333,339,349,355,357,369,373,375... |
;---------------------------------------
; Editline print (output) module
;---------------------------------------
_editInit ld de,#0000 ; начальная инициализация
ld (printEX),de
editClear ld hl,edit256 ; очистка редактируемой строки 256 (ASCII)
ld de,edit256+1
ld bc,127
ld a," "
ld (hl),a
... |
/*
* 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
... |
; A069345: n minus the number of its prime-factors: a(n) = n - A001222(n).
; 1,1,2,2,4,4,6,5,7,8,10,9,12,12,13,12,16,15,18,17,19,20,22,20,23,24,24,25,28,27,30,27,31,32,33,32,36,36,37,36,40,39,42,41,42,44,46,43,47,47,49,49,52,50,53,52,55,56,58,56,60,60,60,58,63,63,66,65,67,67,70,67,72,72,72,73,75,75,78,75,77,80,82,80,83... |
//snippet-sourcedescription:[update_template.cpp demonstrates how to update an Amazon SES email template.]
//snippet-service:[ses]
//snippet-keyword:[Amazon Simple Email Service]
//snippet-keyword:[C++]
//snippet-sourcesyntax:[cpp]
//snippet-keyword:[Code Sample]
//snippet-sourcetype:[full-example]
//snippet-sour... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;; KEYPAD ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... |
// Copyright (c) 2013, Google Inc.
// 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 retain the above copyright
// notice, this list of conditi... |
; A062918: Sum of the digit reversals of the first n natural numbers.
; 1,3,6,10,15,21,28,36,45,46,57,78,109,150,201,262,333,414,505,507,519,541,573,615,667,729,801,883,975,978,991,1014,1047,1090,1143,1206,1279,1362,1455,1459,1473,1497,1531,1575,1629,1693,1767,1851,1945,1950,1965,1990,2025,2070,2125,2190,2265,2350,2445... |
// converted from BASIC from the Commodore 64 Programmer's reference guide page 123
.pc = $0801 "Basic Upstart Program"
:BasicUpstart($0810)
.pc = $0810 "Main Program"
lda $d018
ora #8
sta $d018
lda $d011
ora #32
sta $d011
// clear bitmap to black
ldx #0
lda #0
!l:
.for (var i = 0; i < 32; i++) {
sta $2000 ... |
; A021556: Decimal expansion of 1/552.
; 0,0,1,8,1,1,5,9,4,2,0,2,8,9,8,5,5,0,7,2,4,6,3,7,6,8,1,1,5,9,4,2,0,2,8,9,8,5,5,0,7,2,4,6,3,7,6,8,1,1,5,9,4,2,0,2,8,9,8,5,5,0,7,2,4,6,3,7,6,8,1,1,5,9,4,2,0,2,8,9,8,5,5,0,7,2,4,6,3,7,6,8,1,1,5,9,4,2,0
add $0,1
mov $2,10
pow $2,$0
mov $0,$2
div $0,552
mod $0,10
|
#pragma once
#ifndef _ABSTRACTSUBAPPFACTORY_H_
#define _ABSTRACTSUBAPPFACTORY_H_
// Library includes
#include <cstddef>
#include <string>
// Includes
namespace LightBulb
{
// Forward declarations
class AbstractSubApp;
class AbstractWindow;
class AbstractMainApp;
/**
* \brief A sub app factory.
*/
class Ab... |
cpx #0
beq !e+
!:
asl {m1}
rol {m1}+1
rol {m1}+2
rol {m1}+3
dex
bne !-
!e:
|
; A152966: Twice repdigit numbers.
; 0,2,4,6,8,10,12,14,16,18,22,44,66,88,110,132,154,176,198,222,444,666,888,1110,1332,1554,1776,1998,2222,4444,6666,8888,11110,13332,15554,17776,19998,22222,44444,66666,88888,111110,133332,155554,177776,199998,222222,444444,666666,888888,1111110,1333332,1555554,1777776,1999998,2222222,... |
; A178719: Partial sums of (1/5)*floor(6^n/7).
; 0,0,1,7,44,266,1599,9597,57586,345520,2073125,12438755,74632536,447795222,2686771339,16120628041,96723768254,580342609532,3482055657201,20892333943215,125354003659300,752124021955810,4512744131734871,27076464790409237,162458788742455434,974752732454732616,584851639472839... |
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
add 0;
read main; write 0;
main:
read 80;
write 8;
i2c_wait_0:
read... |
; int getc_unlocked_fastcall(FILE *stream)
SECTION code_clib
SECTION code_stdio
PUBLIC _getc_unlocked_fastcall
EXTERN _fgetc_unlocked_fastcall
defc _getc_unlocked_fastcall = _fgetc_unlocked_fastcall
|
; A053641: Rotate one binary digit to the right, calculate, then rotate one binary digit to the left.
; 1,1,3,1,5,3,7,1,9,3,11,5,13,7,15,1,17,3,19,5,21,7,23,9,25,11,27,13,29,15,31,1,33,3,35,5,37,7,39,9,41,11,43,13,45,15,47,17,49,19,51,21,53,23,55,25,57,27,59,29,61,31,63,1
add $0,2
mov $1,$0
mov $2,1
lpb $1
sub $1,$2... |
/*
* A test for noexcept on_exit/on_enter handlers.
*/
#include <iostream>
#include <so_5/all.hpp>
#include <test/3rd_party/various_helpers/time_limited_execution.hpp>
#include <test/3rd_party/various_helpers/ensure.hpp>
class a_supervisor_t final : public so_5::agent_t
{
state_t first_state_entered{ this, "firs... |
/*
* Copyright 2016 Alex Andres
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
Name: zel_int0.asm
Type: file
Size: 4680
Last-Modified: '2016-05-13T04:20:48Z'
SHA-1: 560BDBA429CB8ADE1EB3C9772E885914FC778A5C
Description: null
|
/*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2020, the Ginkgo authors
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source co... |
//---------------------------------------------------------------------------//
// Copyright (c) 2018-2021 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of th... |
; A259755: Numbers that are congruent to {4,20} mod 24.
; 4,20,28,44,52,68,76,92,100,116,124,140,148,164,172,188,196,212,220,236,244,260,268,284,292,308,316,332,340,356,364,380,388,404,412,428,436,452,460,476,484,500,508,524,532,548,556,572,580,596,604,620,628,644,652,668,676,692,700,716,724,740,748,764,772,788,796,812... |
// Copyright 2022 HX2003
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
#include <iostream>
#include "Person.h"
int main()
{
Person person("Harry", 29);
for (std::string& data : person)
{
std::cout << data << std::endl;
}
return 0;
}
|
; A228297: Generalized meta-Fibonacci sequence a(n) with parameters s=0 and k=5.
; 1,2,3,4,5,5,6,7,8,9,10,10,11,12,13,14,15,15,16,17,18,19,20,20,21,22,23,24,25,25,25,26,27,28,29,30,30,31,32,33,34,35,35,36,37,38,39,40,40,41,42,43,44,45,45,46,47,48,49,50,50,50,51,52,53,54,55,55,56,57,58,59,60,60,61,62,63,64,65,65,66,67,6... |
//
// Created by damian on 23.07.2020.
//
#include <catch2/catch.hpp>
#include <Tuple.h>
#include <misc/AABB.h>
#include <shapes/Sphere.h>
#include <shapes/Plane.h>
#include <shapes/Cube.h>
#include <shapes/Cylinder.h>
#include <shapes/Group.h>
SCENARIO("Creating a bounding box")
{
GIVEN("")
{
auto aabb = rt:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.