text stringlengths 1 1.05M |
|---|
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>execve(path, argv, envp) -> str
Invokes the syscall execve.
See 'man 2 execve' for more information.
Arguments:
path(char*): path
argv(char**): argv
envp(char**): envp
Returns:
int
</%do... |
; A087547: a(n) = n!*2^(n+1) * (Integral_{x = 0..1} 1/(1+x^2)^(n+1) dx - Pi*(2*n)!/(2^(n+1)*n!).
; Submitted by Jon Maiga
; 0,1,4,22,160,1464,16224,211632,3179520,54092160,1028113920,21594021120,496702402560,12418039065600,335293281792000,9723592350259200,301432670532403200,9947299050359193600,348155822449999872000,128... |
%macro imprimir 2
; 2 = nro de params
mov eax, 4
mov ebx, 1
mov ecx, %1 ; primer param
mov edx, %2 ; segundo param
int 0x80
%endmacro
section .data
msg1 db "mensaje1", 0xA, 0xD
len1 equ $-msg1
msg2 db "mensaje2", 0xA, 0xD
len2 equ $-msg2
section .bss
rpta resb 1
section .text
imprime:
mov ... |
; A170343: Number of reduced words of length n in Coxeter group on 46 generators S_i with relations (S_i)^2 = (S_i S_j)^42 = I.
; Submitted by Jon Maiga
; 1,46,2070,93150,4191750,188628750,8488293750,381973218750,17188794843750,773495767968750,34807309558593750,1566328930136718750,70484801856152343750,31718160835268554... |
; A001835: a(n) = 4*a(n-1) - a(n-2), with a(0) = 1, a(1) = 1.
; 1,1,3,11,41,153,571,2131,7953,29681,110771,413403,1542841,5757961,21489003,80198051,299303201,1117014753,4168755811,15558008491,58063278153,216695104121,808717138331,3018173449203,11263976658481,42037733184721,156886956080403,585510091136891,21851534084671... |
CPU 386
BITS 32
segment .text use32
%include "rtl.inc"
run:
..start:
push ebp
mov ebp, esp
call InitRTL
push testingCreate
call echostring
nop
call TestCreate
push testingUpdate
call echostring
nop
call TestUpdate
push testingOpen
call echostrin... |
;
;==================================================================================================
; ROMWBW 2.X CONFIGURATION DEFAULTS FOR RC2014 Z80
;==================================================================================================
;
; THIS FILE CONTAINS THE FULL SET OF DEFAULT CONFIGURATION... |
; A010806: 18th powers: a(n) = n^18.
; 0,1,262144,387420489,68719476736,3814697265625,101559956668416,1628413597910449,18014398509481984,150094635296999121,1000000000000000000,5559917313492231481,26623333280885243904,112455406951957393129,426878854210636742656,1477891880035400390625,4722366482869645213696,1406308445206... |
SECTION code_clib
SECTION code_l
PUBLIC l_inc_hl
inc hl
inc hl
inc hl
inc hl
inc hl
inc hl
inc hl
inc hl
l_inc_hl:
ret
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright (C) 2022 Intel Corporation
;
; SPDX-License-Identifier: MIT
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
%include "reg_sizes.asm"
%ifndef RFC1951_LOOKUP
%define RFC1951_LOOKUP
section .data
align 8
;; ... |
// Copyright 2016 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 "mojo/application_manager/application_table.h"
#include <utility>
namespace mojo {
ApplicationTable::ApplicationTable() {}
ApplicationTable::~... |
; A059171: Size of largest conjugacy class in S_n, the symmetric group on n symbols.
; 1,1,3,8,30,144,840,5760,45360,403200,3991680,43545600,518918400,6706022400,93405312000,1394852659200,22230464256000,376610217984000,6758061133824000
lpb $0,1
mov $3,$0
gcd $2,$3
mov $4,$2
sub $2,1
fac $2
add $1,$4
add ... |
// Copyright (c) 2018 PaddlePaddle Authors. 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
//
// Unless required... |
bits 64
vlddqu xmm0,[edi]
vlddqu ymm0,[edi]
|
####################################################################
# <naam van programma>
#
# Doel: If and else nabootsen
####################################################################
# Input: /
# Output: /
#
# Register gebruik:
# $t0: De waarde die we verglijken in de if statement
# $t1: een getal in op slage... |
Total: 823.01MB
ROUTINE ======================== main.(*Graph).buildAdjList
373.65MB 373.65MB (flat, cum) 45.40% of Total
. . 10ca200: MOVQ GS:0x30, CX ;graph.go:101
. . 10ca209: LEAQ -0x60(SP), AX
. . 10ca20e: CMPQ 0x10(CX), AX
... |
#include "editaddressdialog.h"
#include "ui_editaddressdialog.h"
#include "addresstablemodel.h"
#include "guiutil.h"
#include <QDataWidgetMapper>
#include <QMessageBox>
EditAddressDialog::EditAddressDialog(Mode mode, QWidget *parent) :
QDialog(parent),
ui(new Ui::EditAddressDialog), mapper(0), mode(mode), mo... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="fd, owner, group"/>
<%docstring>
Invokes the syscall fchown. See 'man 2 fchown' for more information.
Arguments:
fd(int): fd
owner(uid_t): owner
group(gid_t): group
</%docstring>
${syscall('SYS_fchown', fd, owner, group)}
|
#ifndef _DREAM_EQUATIONS_RUNAWAY_SOURCE_TERM_HANDLER_HPP
#define _DREAM_EQUATIONS_RUNAWAY_SOURCE_TERM_HANDLER_HPP
#include <string>
#include "DREAM/Equations/Fluid/AvalancheGrowthTerm.hpp"
#include "DREAM/Equations/Fluid/ComptonRateTerm.hpp"
#include "DREAM/Equations/Fluid/DreicerRateTerm.hpp"
#include "DREAM/Equation... |
; ##########################################################################
Do_Status proc hParent:DWORD
LOCAL sbParts[4] :DWORD
invoke CreateStatusWindow,WS_CHILD or WS_VISIBLE or \
SBS_SIZEGRIP,NULL, hParent, 200
mov hStatus, eax
; -----------------------------... |
; A231681: a(n) = Sum_{i=0..n} digsum_8(i)^2, where digsum_8(i) = A053829(i).
; 0,1,5,14,30,55,91,140,141,145,154,170,195,231,280,344,348,357,373,398,434,483,547,628,637,653,678,714,763,827,908,1008,1024,1049,1085,1134,1198,1279,1379,1500,1525,1561,1610,1674,1755,1855,1976,2120,2156,2205,2269,2350,2450,2571,2715,2884,2... |
; int open(const char *path, int oflag, ...)
SECTION code_clib
SECTION code_fcntl
PUBLIC open
EXTERN asm_open
defc open = asm_open
|
; A123932: a(0) = 1, a(n) = 4 for n > 0.
; 1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4
pow $1,$0
gcd $1,4
|
/*
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
// Copyright (c) 2020, NVIDIA 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 retain the above copyright
// notice, this list of condi... |
; A158953: Trajectory of 12 under repeated application of the map n --> A102370(n) .
; 12,28,44,60,76,92,108,124,140,156,172,188,204,220,236,252,268,284,300,316,332,348,364,380,396,412,428,444,460,476,492,508,524,540,556,572,588,604,620,636,652,668,684,700,716,732,748,764,780,796,812,828,844
mov $1,$0
mul $1,16
add $1... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestBoxPlot.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is d... |
;================================================================================
; Randomize Tablets
;--------------------------------------------------------------------------------
ItemSet_EtherTablet:
PHA : LDA !NPC_FLAGS_2 : ORA.b #$01 : STA !NPC_FLAGS_2 : PLA
RTL
;------------------------------------------------... |
assume cs:code
code segment
mov ax,0ffffh
mov ds,ax ; (ds) <- ffffh
mov bx,0 ; EA
mov dx,0 ; sum
mov cx,12 ; loop counter
s: mov al,[bx]
mov ah,0 ; (ax) <- (ffff0h + (bx))
add dx,ax
inc bx
loop s
mov ax,4c00h
int 21h
code ends
end
|
;
; Small C+ Library Functions
;
; Renamed once more and rechristened for ANSIstdio
;
; This outputs a character to the console
;
; 1/4/2000 (Original Aug 98)
;
;
;
; $Id: fputc_cons.asm,v 1.3 2015/01/19 01:33:21 pauloscustodio Exp $
;
PUBLIC fputc_cons ;Print char
.fputc_cons
ld ... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args=""/>
<%docstring>
Invokes the syscall sync. See 'man 2 sync' for more information.
Arguments:
</%docstring>
${syscall('SYS_sync')}
|
; ==================================================================
; MikeBASIC interpreter
; Copyright (C) 2006 - 2019 MikeOS Developers -- see doc/LICENSE.TXT
; Copyright (C) 2020 Dzmitry Taranovich
;
; BASIC CODE INTERPRETER (4.5)
; ==================================================================
bits 16... |
/*
* 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 ... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r8
push %r9
push %rbp
push %rbx
push %rcx
// Store
mov $0x66, %rcx
nop
nop
xor %r11, %r11
mov $0x5152535455565758, %rbx
movq %rbx, (%rcx)
nop
nop
and %r8, %r8
// Faulty Load
lea addresses_UC+0x1c666, %... |
/**
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
* \file CreateCapillaryPressureModel.cpp
*
* Creat... |
// Minimal example program generating two long jumps
// Commodore 64 PRG executable file
.file [name="longjump2.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:Ba... |
PokemonFanClub_h:
db INTERIOR ; tileset
db POKEMON_FAN_CLUB_HEIGHT, POKEMON_FAN_CLUB_WIDTH ; dimensions (y, x)
dw PokemonFanClub_Blocks ; blocks
dw PokemonFanClub_TextPointers ; texts
dw PokemonFanClub_Script ; scripts
db 0 ; connections
dw PokemonFanClub_Object ; objects
|
; A010954: Binomial coefficient C(38,n).
; 1,38,703,8436,73815,501942,2760681,12620256,48903492,163011640,472733756,1203322288,2707475148,5414950296,9669554100,15471286560,22239974430,28781143380,33578000610,35345263800,33578000610,28781143380,22239974430,15471286560,9669554100,5414950296,2707475148,1203322288,47273375... |
; Upper Case Conversion (Ucase.asm)
; This program tests the Str_ucase procedure, which converts
; the letters in a string to uppercase.
INCLUDE Irvine32.inc
Str_ucase PROTO,
pString:PTR BYTE
.data
string_1 BYTE "abcdef",0
string_2 BYTE "aB234cdEfg",0
string_3 BYTE 0
.code
main P... |
; A013830: a(n) = 4^(5*n + 1).
; 4,4096,4194304,4294967296,4398046511104,4503599627370496,4611686018427387904,4722366482869645213696,4835703278458516698824704,4951760157141521099596496896,5070602400912917605986812821504,5192296858534827628530496329220096
mul $0,5
add $0,1
mov $1,4
pow $1,$0
mov $0,$1
|
#include "Hook.h"
#include "../SGD Wrappers/SGD_GraphicsManager.h"
#include "../SGD Wrappers/SGD_AudioManager.h"
#include "DestroyEntityMessage.h"
#include "Game.h"
#include "GamePlayState.h"
#include "LevelManager.h"
#include "ImmovableBox.h"
#include "MovableBox.h"
#include "Zombie.h"
#include "Player.h"
#include ... |
; A249997: Expansion of 1/((1-x)*(1+3*x)*(1-4*x)).
; 1,2,15,40,221,702,3355,11780,52041,193402,817895,3138720,12953461,50618102,206059635,813476860,3286192481,13047914802,52482224575,209057202200,838843897101,3347530323502,13413657088715,53584020970740,214547906035321,857556157684202
add $0,2
mov $2,-9
mov $3,$0
mul $... |
#include "Libraries/Sensors/Temperature/Lm75.h"
namespace Treehopper {
namespace Libraries {
namespace Sensors {
namespace Temperature {
Lm75::Lm75(I2c &i2c, bool a0, bool a1, bool a2)
: dev((0x48 | (a0 ? 1 : 0) | ((a1 ? 1 : 0) << 1) | ((a2 ? 1 : 0) << 2)... |
; wPrinterStatus
const_def 1
const PRINTER_STATUS_CHECKING
const PRINTER_STATUS_TRANSMITTING
const PRINTER_STATUS_PRINTING
const PRINTER_ERROR_1
const PRINTER_ERROR_2
const PRINTER_ERROR_3
const PRINTER_ERROR_4
|
db DEX_SEEL ; pokedex id
db 65 ; base hp
db 45 ; base attack
db 55 ; base defense
db 45 ; base speed
db 70 ; base special
db WATER ; species type 1
db WATER ; species type 2
db 190 ; catch rate
db 100 ; base exp yield
INCBIN "pic/ymon/seel.pic",0,1 ; 66, sprite dimensions
dw SeelPicFront
dw SeelPicBack
; attacks known ... |
/*
* Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this so... |
/**
* \file PnlWzemUsrDetail.cpp
* API code for job PnlWzemUsrDetail (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 6 Dec 2020
*/
// IP header --- ABOVE
#include "PnlWzemUsrDetail.h"
using namespace std;
using namespace Sbec... |
; Executable name : uppercaser2
; Version : 1.0
; Created date : 3/25/2009
; Last update : 3/25/2009
; Author : Jeff Duntemann
; Description : A simple program in assembly for Linux, using NASM 2.05,
; demonstrating simple text file I/O (through redirection) for reading an
; inpu... |
;<Maximum and minimum of array>
LXI H,ARRAY
MOV B,M
MOV C,M
MVI D,SIZE
LOOP: MOV A,M
CMP B
JC MIN
MOV B,A
MIN: CMP C
JNC SKIP
MOV C,A
SKIP: INX H
DCR D
JNZ LOOP
LXI H,2000H
MOV M,B;Move maximum to 2000H
INX H
MOV M,C;Move minimum to 2001H
HLT
SIZE: EQU 10
ARRAY: db 12,4,128,3,151,1,7,9,8,18 |
;------------------------------------------------------------------------------ ;
; Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distributi... |
; A095805: Reduced numerators in Wolfram's iteration for sqrt(2).
; Submitted by Christian Krause
; 0,1,1,5,11,11,45,45,181,181,181,181,181,181,11585,11585,11585,92681,185363,370727,741455,741455,741455,5931641,11863283,11863283,11863283,94906265,189812531,189812531,189812531,1518500249
seq $0,95804 ; Values of s in W... |
li t0 542
sw t0 0
lw s6 0
|
#ifndef LAYERSTACK_HPP
# define LAYERSTACK_HPP
# include "Interfaces/ILayerManager.hpp"
namespace NAMESPACE
{
class LayerStack : public ILayerManager
{
std::vector<ILayer *> layers;
unsigned int numberOfRegularLayers;
public:
typedef typename std::vector<ILayer *>::iterator iterator;
typedef t... |
/*
All modification made by Cambricon Corporation: © 2019Cambricon Corporation
All rights reserved.
All other contributions:
Copyright (c) 2014--2019, the respective contributors
All rights reserved.
For the list of contributors go to https://github.com/BVLC/caffe/blob/master/CONTRIBUTORS.md
Redistribution and use in s... |
; A071005: Binary expansion of Pi/3, A019670.
; Submitted by Christian Krause
; 1,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,1,0,0,1,0,0,0,1,1,1,0,0,0,0,0,1,0,1,1,0,1,0,1,1,1,0,0,1,1,0,1,1,0,0,1,0,1,1,0,0,0,0,1,0,0,0,1,1,0,0,1,0,1,1,0,1,1,1,0,1,1,0,0,1,1,0,0,1,0,1,1,1,0,0,0,0,0,1,1,1,1,0,1,0
add $0,1
mov $2,1
mov $3,$0
mul $3,5
lp... |
format ELF64 executable 3
entry start
include 'procs.inc'
segment readable
childMsg db 'This is the child process', 0h
parentMsg db 'This is the parent process', 0h
segment readable executable
start:
mov rax, 57 ; SYS_FORK (kernel opcode 57)
syscall
cmp rax, 0 ; if eax is zero, we are i... |
; ** Map 'BruceIsBackHome' Tile Collision **
; A = Title
; X = Actor
rts |
.target "65C02"
.setting "LaunchCommand", "wsl ../x6502/x6502 {0}"
.memory "fill", $8000, $8000, $ea
.org $8000
lda #$ff
sta $6002
lda #$55
sta $6000
xor #$ff
jmp $8007
.org $fffc
.byte $00
.byte $80
|
;
; Old School Computer Architecture - interfacing FLOS
; Stefano Bodrato, 2011
;
; Like 'rename' but with a FLOS style error handling
;
; $Id: rename_file.asm,v 1.4 2016-06-22 22:13:09 dom Exp $
;
SECTION code_clib
PUBLIC rename_file
PUBLIC _rename_file
EXTERN rename_file_callee
EXTERN ASMDISP_RENAME_F... |
SECTION code_fcntl
PUBLIC zx_01_output_fzx_oterm_msg_pscroll
EXTERN console_01_output_char_proc_putchar_scroll
zx_01_output_fzx_oterm_msg_pscroll:
; * OTERM_MSG_PSCROLL
;
; enter : hl = number of pixels to scroll
; exit : hl = actual number if pixels scrolled
; else carry set if screen... |
; A189636: Positions of 0 in A116178; complement of A189637.
; Submitted by Jamie Morken(s4)
; 1,2,4,5,7,10,11,13,14,16,19,20,22,25,28,29,31,32,34,37,38,40,41,43,46,47,49,52,55,56,58,59,61,64,65,67,70,73,74,76,79,82,83,85,86,88,91,92,94,95,97,100,101,103,106,109,110,112,113,115,118,119,121,122,124,127,128,130,133,136,1... |
SECTION code_clib
SECTION code_l_sccz80
PUBLIC l_ret
; function present in some rom crts
; if number of pops changes, check crts
pop hl
pop hl
pop hl
l_ret:
; Do-nothing function used as a stub by some library functions
ret
|
/** @file
ProxyTransaction - Base class for protocol client transactions.
@section license License
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. ... |
; void zx_scroll_wc_up(struct r_Rect8 *r, uchar rows, uchar attr)
SECTION code_clib
SECTION code_arch
PUBLIC zx_scroll_wc_up
EXTERN asm_zx_scroll_wc_up
zx_scroll_wc_up:
pop af
pop hl
pop de
pop ix
push hl
push de
push hl
push af
jp asm_zx_scroll_wc_up
|
ld a, 3
ld hl, basescradr + #0a0c
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0a2c
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #07cc), a
ld (basescradr + #080c), a
ld (basescradr + #082c), a
ld (basescradr + #084c), a
ld (basescradr + #0a4c), a... |
// Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Restricted Libraries source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4RestrictedLicense.pdf
// and may not be copie... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Calculator Accessory -- Manager
FILE: calc.asm
AUTHOR: Adam de Boor, Mar 13, 1990
REVISION HISTORY:
Name Date Description
---- ---- ---------... |
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <tweetNotifier.h>
using namespace std;
int main(int argc, char *argv[]) {
char *username = (char*) malloc(512);
const char *kConsKey = "your-consumer-key";
const char *kConsSec = "your-consumer-secret";
const char *kAtokKey = "your-a... |
###############################################################################
# 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... |
;=======================================================================================================================
; ;
; Name: socOS (System On Chip Operation System) ... |
; A081204: Staircase on Pascal's triangle.
; 1,2,3,10,15,56,84,330,495,2002,3003,12376,18564,77520,116280,490314,735471,3124550,4686825,20030010,30045015,129024480,193536720,834451800,1251677700,5414950296,8122425444,35240152720,52860229080,229911617056,344867425584,1503232609098,2254848913647,9847379391150,14771069086... |
; void dzx7_mega_back_callee(void *src, void *dst)
SECTION code_clib
SECTION code_compress_zx7
PUBLIC _dzx7_mega_back_callee
EXTERN asm_dzx7_mega_back
_dzx7_mega_back_callee:
pop hl
pop de
ex (sp),hl
jp asm_dzx7_mega_back
|
; A163444: a(n) = 12*a(n-1) - 34*a(n-2) for n > 1; a(0) = 1, a(1) = 8.
; Submitted by Jamie Morken(s1)
; 1,8,62,472,3556,26624,198584,1477792,10981648,81534848,605042144,4488320896,33288417856,246858103808,1830491038592,13572716933632,100635907891456,746158518953984,5532281359138304,41017986665224192,304118273771987968... |
// stdafx.cpp : source file that includes just the standard includes
// stdafx.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
#ifdef _ATL_STATIC_REGISTRY
#include <statreg.h>
#include <statreg.cpp>
#endif
//#include <atlimpl.cpp>
|
// Copyright Gavin Band 2008 - 2012.
// 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)
#ifndef STATFILE_TYPEREADERBASE_HPP
#define STATFILE_TYPEREADERBASE_HPP
#include "statfile/types.hpp"
... |
; A001789: a(n) = binomial(n,3)*2^(n-3).
; 1,8,40,160,560,1792,5376,15360,42240,112640,292864,745472,1863680,4587520,11141120,26738688,63504384,149422080,348651520,807403520,1857028096,4244635648,9646899200,21810380800,49073356800,109924319232,245215789056,544923975680,1206617374720,2662879723520,5858335391744,12850542... |
; A212069: Number of (w,x,y,z) with all terms in {1,...,n} and 3*w = x+y+z.
; 0,1,2,9,22,41,72,115,170,243,334,443,576,733,914,1125,1366,1637,1944,2287,2666,3087,3550,4055,4608,5209,5858,6561,7318,8129,9000,9931,10922,11979,13102,14291,15552,16885,18290,19773,21334,22973
mov $12,$0
mov $14,$0
lpb $14
clr $0,12
mov... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Serial peripheral interface/Inter-IC2
namespace I2s2extCr1{ ///<control register 1
using Addr = Register::Address<0x40003400,0xffff0000,0x00000000,unsigned>;
///Bidirectional data mode enable
constexpr Regist... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x13b6e, %rsi
lea addresses_WT_ht+0x1d1e4, %rdi
nop
and %r10, %r10
mov $119, %rcx
rep movsl
nop
cmp $7099, %r9
lea addresses_WC_ht+0x1b044, %r9
nop
nop
nop
nop
nop
inc %rcx
mov $0x61... |
/** @file
A brief file description
@section license License
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 und... |
; A114182: F(4n) - 2n - 1 where F(n) = Fibonacci numbers. Also, the floor of the log base phi of sequence A090162 (phi = (1+Sqrt(5))/2).
; 0,16,137,978,6754,46355,317796,2178292,14930333,102334134,701408710,4807526951,32951280072,225851433688,1548008755889,10610209857690,72723460248106,498454011879227,3416454622906668,... |
;-- XX18 --------------------------------------------------------------------------------------------------------------------------
UBnkDrawCam0xLo DB 0 ; XX18+0
UBnkDrawCam0xHi DB 0 ; XX18+1
UBnkDrawCam0xSgn DB 0 ; XX18+2
UBnkDrawCam0x ... |
; ****************************************************************************************************************
; ****************************************************************************************************************
;
; Memory and Macro Allocation.
;
; *******************************************... |
; Original address was $B03C
; "Unused Level 12"
.word $0000 ; Alternate level layout
.word $0000 ; Alternate object layout
.byte LEVEL1_SIZE_04 | LEVEL1_YSTART_070
.byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG
.byte LEVEL3_TILESET_04 | LEVEL3_VSCROLL_LOCKLOW
.byte LEVEL4_BGBANK_... |
BITS 32
metodi EQU 1
SECTION .rodata
vakio_pii dq 3.141592654 ;const double pii = 3.14...
SECTION .text
EXTERN set_method
... |
#include "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "bitcoinamountfield.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include "netbase.h"
#include "optionsmodel.h"
#include "qvalidatedlineedit.h"
#include "qvaluecombobox.h"
#include <QCheckBox>
#include <QDir>
#include <QIntValidator>
#... |
include macros.inc
.code
; bool AVX_Packed_Array_Mean_Byte_(const uint8_t* input, uint32_t arrayLength, uint64_t* sum, double* mean)
AVX_Packed_Array_Mean_Byte_ proc frame
_CreateFrame CM_, 0, 64, rbx, r10, r11, r12
_SaveXmmRegs xmm6, xmm7, xmm8, xmm9
_EndProlog
xor eax, eax
test rdx, rdx ; Exit if arrayLenght == ... |
DATA SEGMENT
NUM1 DB ?
NUM2 DB ?
RESULT DB ?
MSG1 DB 10,13,"ENTER FIRST NUMBER: $"
MSG2 DB 10,13,"ENTER SECOND NUMBER: $"
MSG3 DB 10,13,"RESULT: $"
MSG4 DB 10,13,"0 OR 1: $"
CMPR DW 45
ENDS
CODE SEGMENT
ASSUME DS:DATA CS:CODE
START:
MOV AX,DATA
MOV DS,AX
LEA DX,MSG1
MOV AH,9
INT 21H
... |
; Sends a command to DOS and fetches the response.
;
; Syntax: dos <command>
;
; e.g. to delete a file: dos s:filename
.include "c64.inc"
.include "cshell.inc"
PTR1 = 6
YTEMP = 8
PTR2 = 9
.cpu "6502"
CSHELL_HEADER
ldy #PPB_ARGPTR
lda (PPB), y
tay
jsr parse_parameters
jsr open_submit_file
jsr parse_file
... |
; CISP 310 - Michael Dinh
; Assignment 4: Gas Mileage
; 10/11/2020
INCLUDE io.h
.DATA
tankCap DWORD ?
gasMile DWORD ?
prompt1 BYTE "Enter how many gallons of gas your car can hold.", 0
prompt2 BYTE "Enter how many miles your car can drive on a full tank.", 0
string BYTE 40 DUP (?)
resultLb BY... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
lea addresses_UC_ht+0xacfc, %rax
nop
nop
nop
nop
nop
inc %rcx
mov (%rax), %r8d
nop
xor %r11, %r11
lea addresses_WC_ht+0x1e100, %rbx
and $12164, %rbp
mov (%rbx), %edi
nop
xor $38689, %rbx
pop %rdi
pop %rcx
p... |
; A285679: Positions of 2 in A285677.
; 3,5,10,12,17,22,24,29,31,36,41,43,48,53,55,60,62,67,72,74,79,81,86,91,93,98,103,105,110,112,117,122,124,129,134,136,141,143,148,153,155,160,162,167,172,174,179,184,186,191,193,198,203,205,210,212,217,222,224,229,234,236,241,243,248,253,255,260,265,267,272,274,279,284,286,291,293,... |
#include "wrap_light_manager.h"
#include <pybind11/stl.h>
namespace py = pybind11;
#include "light_manager.h"
void wrap_light_manager(pybind11::module_& m) {
py::class_<LightManager> t(m, "LightManager");
t.def("add_light", &LightManager::add_light);
t.def("remove_light", &LightManager::remove_light);
t.def("se... |
-- 7 Billion Humans --
-- 32: Creative Writhing --
-- Size: 11/8 --
-- Speed: 38/40 --
a:
step s
b:
pickup c
write 99
drop
if s == datacube:
jump a
endif
if e == datacube:
step e
else:
step w
endif
jump b
|
; A266611: Middle column of the "Rule 41" elementary cellular automaton starting with a single ON (black) cell.
; 1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,... |
;*****************************************************************************
;* MMX/SSE2/AVX-optimized 10-bit H.264 intra prediction code
;*****************************************************************************
;* Copyright (C) 2005-2011 x264 project
;*
;* Authors: Daniel Kang <daniel.d.kang@gmail.com>
;*
;* Th... |
; A172252: a(n) = 4*2^n - 9.
; -1,7,23,55,119,247,503,1015,2039,4087,8183,16375,32759,65527,131063,262135,524279,1048567,2097143,4194295,8388599,16777207,33554423,67108855,134217719,268435447,536870903,1073741815,2147483639
mov $1,2
pow $1,$0
sub $1,2
mul $1,8
add $1,7
mov $0,$1
|
;
; Fixed Point functions
;
; int f2i (long v)
; fixed point to integer
;
; ------
; $Id: f2i.asm,v 1.1 2009/04/10 12:47:42 stefano Exp $
;
XLIB f2i
.f2i
pop bc ; RET addr.
pop hl
pop de
push de
push hl
push bc
;; DEHL holds value
;rr d
;rr e
... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="from_, to"/>
<%docstring>
Invokes the syscall symlink. See 'man 2 symlink' for more information.
Arguments:
from(char): from
to(char): to
</%docstring>
${syscall('SYS_symlink', from_, to)}
|
###############################################################################
# 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.