max_stars_repo_path stringlengths 4 261 | max_stars_repo_name stringlengths 6 106 | max_stars_count int64 0 38.8k | id stringlengths 1 6 | text stringlengths 7 1.05M |
|---|---|---|---|---|
src/hmac_generic.adb | AntonMeep/hmac | 0 | 8036 | pragma Ada_2012;
package body HMAC_Generic is
function Initialize (Key : String) return Context is
Result : Context;
begin
Initialize (Result, Key);
return Result;
end Initialize;
function Initialize (Key : Element_Array) return Context is
Result : Context;
begin
Initialize... |
3-mid/physics/interface/source/motor/physics-motor.adb | charlie5/lace | 20 | 18783 | <gh_stars>10-100
package body physics.Motor is
procedure dummy is begin null; end;
-- bool Motor::internal_dependsOnSolid(Solid* s)
-- {
-- return false;
-- }
--
-- bool Motor::internal_dependsOnJoint(Joint* j)
-- {
-- return false;
-- }
--
end physics.Motor;
|
extension/org.eclipse.cmf.occi.openshift/alloy/openshift_behaviour.als | occiware/occiware-openshift | 0 | 4349 | // Generated at Wed Nov 08 18:55:39 CET 2017 from by org.eclipse.cmf.occi.core.gen.alloy
// ======================================================================
//
// Dynamic Semantics for OCCI Extensions 'openshift'
//
// ======================================================================
module openshift_beha... |
Stm8Invaders/asm/alienshot.asm | peteri/Invaders | 0 | 95770 | stm8/
.tab 0,8,16,60
#include "variables.inc"
#include "constants.inc"
#include "alienshot.inc"
#include "timerobject.inc"
#include "player.inc"
#include "playerbase.inc"
#include "sprite.inc"
#include "attractscreen.inc"
segment 'rom'
.init_alien_shots.w
call alien_shot_plunger_init
call alien_shot_rolli... |
legacy/RandomAccessList/Standard/Core/Properties.agda | banacorn/numeral | 1 | 12390 | <filename>legacy/RandomAccessList/Standard/Core/Properties.agda<gh_stars>1-10
module RandomAccessList.Standard.Core.Properties where
open import BuildingBlock
open import BuildingBlock.BinaryLeafTree using (BinaryLeafTree; Node; Leaf)
open import RandomAccessList.Standard.Core
open import Data.Nat
open import Data.N... |
src/grammars/Pre_old.g4 | CorvusPrudens/Cp | 0 | 3002 | <gh_stars>0
grammar Pre;
import Corax;
parse : (directive | pre_expression)* EOF;
scope : OBRACE (variable_init | statement | label | directive)* CBRACE;
directive : define
| include
| if_pre
| ifdef
| ifndef
| else_pre
| endif
... |
Cubical/Data/Vec/Properties.agda | dan-iel-lee/cubical | 0 | 15955 | {-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Data.Vec.Properties where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Univalence
import Cubical.Data.Empty as ⊥
open import Cubical.Data.Nat
o... |
trunk/win/lib/openssl-1.0.1e/tmp32/sha512-586.asm | chundonglinlin/srs.win | 9 | 6597 | <reponame>chundonglinlin/srs.win
TITLE sha512-586.asm
IF @Version LT 800
ECHO MASM version 8.00 or later is strongly recommended.
ENDIF
.686
.XMM
IF @Version LT 800
XMMWORD STRUCT 16
DQ 2 dup (?)
XMMWORD ENDS
ENDIF
.MODEL FLAT
OPTION DOTNAME
IF @Version LT 800
.text$ SEGMENT PAGE 'CODE'
ELSE
.text$ SE... |
rvv.asm | rodolfovalentim/sistemb2016-1 | 0 | 243206 | ; <NAME>
; Sistemas Embarcados 2016/1
%macro drawline 5 ;x1,y1,x2,y2,color
mov ax,%1
push ax
mov ax,%2
push ax
mov ax,%3
push ax
mov ax,%4
push ax
mov byte[cor],%5
call line
%endmacro
%macro ponto 2 ; x,y,color
add %1, 3
add %2, 100
push %1
push %2
call plot_xy
sub %1, 3
sub %2, 100
%endma... |
programs/oeis/256/A256313.asm | karttu/loda | 1 | 92605 | ; A256313: Number of partitions of 3n into exactly 4 parts.
; 0,0,2,6,15,27,47,72,108,150,206,270,351,441,551,672,816,972,1154,1350,1575,1815,2087,2376,2700,3042,3422,3822,4263,4725,5231,5760,6336,6936,7586,8262,8991,9747,10559,11400,12300,13230,14222,15246,16335,17457,18647,19872,21168,22500,23906,25350,26871,28431,30... |
unordnung_auch_assembler/asm/attiny13/slowmo/2decCounterdown.asm | no-go/Blink_atmega328p | 0 | 92429 | <filename>unordnung_auch_assembler/asm/attiny13/slowmo/2decCounterdown.asm
.include "myTiny13.h"
; this program counts decimal two 7seg-display from 59 to 00 !!!
; near 1sec
;irq Vector
.org 0x0000
rjmp OnReset
.org 0x0003
rjmp TimerOVF
.org 0x0010
TimerOVF:
; Countdown on every overflow
push B ; 2 clocks
dec... |
agda/Text/Greek/SBLGNT/1John.agda | scott-fleischman/GreekGrammar | 44 | 15209 | <reponame>scott-fleischman/GreekGrammar<filename>agda/Text/Greek/SBLGNT/1John.agda
module Text.Greek.SBLGNT.1John where
open import Data.List
open import Text.Greek.Bible
open import Text.Greek.Script
open import Text.Greek.Script.Unicode
ΙΩΑΝΝΟΥ-Α : List (Word)
ΙΩΑΝΝΟΥ-Α =
word (Ὃ ∷ []) "1John.1.1"
∷ word (ἦ ∷... |
test/Succeed/Issue794.agda | shlevy/agda | 3 | 12391 | module Issue794 where
open import Common.Prelude
open import Common.MAlonzo
postulate A : Set
record R : Set where
id : A → A
id x = x
|
test/Succeed/Issue1071.agda | shlevy/agda | 1,989 | 11013 | <reponame>shlevy/agda
-- Andreas, 2014-03-03, report and test case by Nisse.
-- {-# OPTIONS -v tc.lhs.unify:60 #-}
module Issue1071 where
postulate
F : Set → Set
module M (_ : Set₁) where
postulate A : Set
open M Set
data P : Set → Set₁ where
c : (R : Set) → P (F R)
data Q : (R : Set) → R → P R → Set₁ wher... |
programs/oeis/239/A239129.asm | karttu/loda | 1 | 26942 | ; A239129: a(n) = 18*n - 1, n >= 1, the second column of triangle A239127 related to the Collatz problem.
; 17,35,53,71,89,107,125,143,161,179,197,215,233,251,269,287,305,323,341,359,377,395,413,431,449,467,485,503,521,539,557,575,593,611,629,647,665,683,701,719,737,755,773,791,809,827,845,863,881,899,917,935,953,971,9... |
alloy4fun_models/trashltl/models/11/CZdvJjoAKf7bMskv8.als | Kaixi26/org.alloytools.alloy | 0 | 2901 | open main
pred idCZdvJjoAKf7bMskv8_prop12 {
all f : File | eventually f in Trash => always (eventually f not in Trash)
}
pred __repair { idCZdvJjoAKf7bMskv8_prop12 }
check __repair { idCZdvJjoAKf7bMskv8_prop12 <=> prop12o } |
src/frontend/CommonLex.g4 | kylinsoft/test | 0 | 3474 | lexer grammar CommonLex;
// keyword
Int : 'int';
Void: 'void';
Const: 'const';
Return : 'return';
If : 'if';
Else : 'else';
For : 'for';
While : 'while';
Do : 'do';
Break : 'break';
Continue : 'continue';
// operator
Lparen : '(' ;
Rparen : ')' ;
Lbrkt : '[' ;
Rbrkt : ']' ;
Lbrace : '{' ;
Rbrace... |
pic/ad.asm | kajusK/DarkStar | 3 | 240966 | ;**********************************************************************
;Led headlamp
;PIC 16F616
;internal 8MHz
;------------------------------
; <NAME>
; <EMAIL>
; 2015
;------------------------------
; ad.asm
;------------------------------
; This task determines the actual voltage and shuts system down when it
; re... |
Commands/File Commands suite/path to/temporary items/path to temporary items from user domain.applescript | looking-for-a-job/applescript-examples | 1 | 3391 | <reponame>looking-for-a-job/applescript-examples<filename>Commands/File Commands suite/path to/temporary items/path to temporary items from user domain.applescript
#!/usr/bin/osascript
path to temporary items from user domain |
test/Compiler/simple/Issue3045.agda | cruhland/agda | 1,989 | 2532 | <gh_stars>1000+
-- cj-xu and fredriknordvallforsberg, 2018-04-30
open import Common.IO
data Bool : Set where
true false : Bool
data MyUnit : Set where
tt : MyUnit -- no eta!
HiddenFunType : MyUnit -> Set
HiddenFunType tt = Bool -> Bool
notTooManyArgs : (x : MyUnit) -> HiddenFunType x
notTooManyArgs tt b = b
{... |
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-soflin.ads | JCGobbi/Nucleo-STM32G474RE | 0 | 22019 | <filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-soflin.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
Transynther/x86/_processed/NC/_st_zr_un_sm_/i7-7700_9_0x48.log_21829_2598.asm | ljhsiun2/medusa | 9 | 80832 | <filename>Transynther/x86/_processed/NC/_st_zr_un_sm_/i7-7700_9_0x48.log_21829_2598.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1efea, %r11
nop
nop
nop
nop
cmp %r14, %r14
movw $0x6162, (%r11)
nop
nop
nop
nop
nop
an... |
oeis/205/A205549.asm | neoneye/loda-programs | 11 | 243931 | <filename>oeis/205/A205549.asm
; A205549: Symmetric matrix by antidiagonals: C(max(i+2,j+2),min(i+2,j+2)), i>=1, j>=1.
; Submitted by <NAME>
; 1,4,4,10,1,10,20,5,5,20,35,15,1,15,35,56,35,6,6,35,56,84,70,21,1,21,70,84,120,126,56,7,7,56,126,120,165,210,126,28,1,28,126,210,165,220,330,252,84,8,8,84,252,330,220,286,495,462... |
kernel/mem/paging.asm | a0w-svg/AzamiOS | 2 | 14962 |
global switch_page_dir
switch_page_dir:
mov eax, [esp+4]
mov cr3, eax
mov ebx, cr0
or ebx, 0x80010000
mov cr0, ebx
ret |
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_2_1869.asm | ljhsiun2/medusa | 9 | 87538 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %rax
push %rbx
push %rdi
push %rdx
// Load
lea addresses_WT+0x179e1, %rdi
nop
nop
nop
nop
add %rbx, %rbx
mov (%rdi), %r12w
nop
nop
nop
add $22686, %r12
// Store
lea a... |
oeis/073/A073588.asm | neoneye/loda-programs | 11 | 177618 | <gh_stars>10-100
; A073588: a(n) = a(n-1)*2^n-1 with a(1)=1.
; Submitted by <NAME>(s3)
; 1,3,23,367,11743,751551,96198527,24626822911,12608933330431,12911547730361343,26442849751780030463,108309912583291004776447,887274803882319911128653823,14537110386807929423931864236031
mov $1,1
mov $2,2
lpb $0
sub $0,1
mul $2,... |
src/crtl/grammar/ChameleonRTLexer.g4 | Twinklebear/ChameleonRT-lang | 11 | 4995 | lexer grammar ChameleonRTLexer;
// Control flow
IF: 'if';
ELSE: 'else';
FOR: 'for';
WHILE: 'while';
DO: 'do';
CONTINUE: 'continue';
BREAK: 'break';
SWITCH: 'switch';
CASE: 'case';
DEFAULT: 'default';
// Types
BOOL: 'bool';
BOOL1: 'bool1';
BOOL2: 'bool2';
BOOL3: 'bool3';
BOOL4: 'bool4';
BOOL1X1: 'bool1x1';
BOOL2X1... |
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_9165_924.asm | ljhsiun2/medusa | 9 | 97699 | <filename>Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_9165_924.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1275c, %rcx
nop
nop
nop
dec %r9
mov $0x6162636465666768, %rsi
movq %rsi, %xmm4
movups %xmm4, (%r... |
archive/agda-2/Oscar/Data/Vec/Injectivity.agda | m0davis/oscar | 0 | 16363 |
module Oscar.Data.Vec.Injectivity where
open import Oscar.Data.Equality
open import Oscar.Data.Vec
Vec-head-inj : ∀ {a} {A : Set a} {x₁ x₂ : A} {N} {xs₁ xs₂ : Vec A N} → x₁ ∷ xs₁ ≡ x₂ ∷ xs₂ → x₁ ≡ x₂
Vec-head-inj refl = refl
Vec-tail-inj : ∀ {a} {A : Set a} {x₁ x₂ : A} {N} {xs₁ xs₂ : Vec A N} → x₁ ∷ xs₁ ≡ x₂ ∷ xs₂ ... |
programs/oeis/293/A293547.asm | neoneye/loda | 22 | 7298 | <filename>programs/oeis/293/A293547.asm
; A293547: a(n) is the integer k that minimizes |k/Fibonacci(n) - 2/3|.
; 0,1,1,1,2,3,5,9,14,23,37,59,96,155,251,407,658,1065,1723,2787,4510,7297,11807,19105,30912,50017,80929,130945,211874,342819,554693,897513,1452206,2349719,3801925,6151643,9953568,16105211,26058779,42163991,68... |
CreateFolders.scpt | blueark/Create-Folders-AppleScript | 1 | 4049 | <reponame>blueark/Create-Folders-AppleScript
(*
Creates folders for a split job ticket.
*)
-- get the path to the folder of the front window
-- if no windows are open, the desktop folder will be used
try
tell application "Finder" to set the source_folder to (folder of the front window) as alias
on error -- no open f... |
a/assembler_z80_zxspectrum.asm | venusing1998/hello-world | 94 | 179822 | <reponame>venusing1998/hello-world<filename>a/assembler_z80_zxspectrum.asm
org $6000
ld bc, STRING
ld de, SCR
LOOP
ld a, (bc)
cp 0
jr z, EXIT
rst $10
inc bc
inc de
jr LOOP
EXIT
ret
SCR equ 16384
STRING
defb "Hello World!"
defb 13, 0
|
data/jpred4/jp_batch_1613899824__oHP1qWe/jp_batch_1613899824__oHP1qWe.als | jonriege/predict-protein-structure | 0 | 3158 | <gh_stars>0
SILENT_MODE
BLOCK_FILE jp_batch_1613899824__oHP1qWe.concise.blc
MAX_NSEQ 790
MAX_INPUT_LEN 792
OUTPUT_FILE jp_batch_1613899824__oHP1qWe.concise.ps
PORTRAIT
POINTSIZE 8
IDENT_WIDTH 12
X_OFFSET 2
Y_OFFSET 2
DEFINE_FONT 0 Helvetica DEFAULT
DEFINE_FONT 1 Helvetica REL 0.75
DEFINE_FONT 7 Helvetica REL 0... |
test/fail/Issue705.agda | np/agda-git-experiment | 1 | 6953 | module Issue705 where
module A where
data A : Set where
open A
open A |
oeis/245/A245032.asm | neoneye/loda-programs | 11 | 244032 | <filename>oeis/245/A245032.asm
; A245032: a(n) = 27*(n - 6)^2 + 4*(n - 6)^3 = ((n - 6)^2)*(4*n + 3).
; 108,175,176,135,76,23,0,31,140,351,688,1175,1836,2695,3776,5103,6700,8591,10800,13351,16268,19575,23296,27455,32076,37183,42800,48951,55660,62951,70848,79375,88556,98415,108976,120263,132300,145111,158720,173151,18842... |
test/Succeed/Issue2554-size-mutual.agda | shlevy/agda | 2 | 12399 | -- Andreas, 2017-04-26, issue #2554
-- Allow mutual sized types in successor style.
-- {-# OPTIONS -v tc.pos.args:100 #-}
-- {-# OPTIONS -v tc.pos:100 #-}
-- {-# OPTIONS -v tc.polarity:20 #-}
open import Agda.Builtin.Size
mutual
data C : Size → Set where
c : ∀{i} → D i → C (↑ i)
data D : Size → Set where
... |
tlsf/src/old/tlsf-mem_block_size.adb | vasil-sd/ada-tlsf | 3 | 16050 | <reponame>vasil-sd/ada-tlsf<filename>tlsf/src/old/tlsf-mem_block_size.adb
with TLSF.Config;
use TLSF.Config;
package body TLSF.Mem_Block_Size
with SPARK_Mode is
generic
type Modular is mod <>;
Alignment_Log2: Positive;
function Align_generic ( V : Modular ) return Modular
with
Pre => V ... |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_502.asm | ljhsiun2/medusa | 9 | 168017 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1a6a9, %rsi
lea addresses_WT_ht+0x1d129, %rdi
nop
nop
nop
nop
nop
and $59321, %r10
mov $110, %rcx
rep movsb
nop
nop
xor $35708, %rsi
lea addresses_A_ht+0xd4a9, %rbx
sub ... |
Modul 2/latih9.asm | hyuwah/fu-praktikum-smd | 0 | 242980 | <filename>Modul 2/latih9.asm
;-------------------------------------------------------------------------------
; Praktikum SMD 2015
; M.Wahyudin (140310120031)
;
; Name : LATIH9.ASM
; Desc : Menampilkan digit hexa 0 hingga F ke P1
; Cacah naik
; Input : PB di P3.0 (toggle)
; Output: 7 segment
;----------------... |
Sources/Globe_3d/gl/gl-skinned_geometry.ads | ForYouEyesOnly/Space-Convoy | 1 | 2434 | <filename>Sources/Globe_3d/gl/gl-skinned_geometry.ads
-------------------------------------------------------------------------
-- GL.skinned_Geometry - an association of a skin with a geometry primitive.
--
-- Copyright (c) <NAME> 2007
-- AUSTRALIA
-- Permission granted to use this software, without any ... |
src/main/antlr4/de/rubenmaurer/punk/IRC.g4 | Schrotty/sIRC | 0 | 3928 | grammar IRC;
options
{
language = Java;
}
@parser::members {
public void reportError(RecognitionException e) {
throw new RuntimeException("I quit!\n" + e.getMessage());
}
}
@lexer::members {
public void reportError(RecognitionException e) {
throw new RuntimeException("I quit!\n" + e.getMessage());
... |
programs/oeis/038/A038990.asm | karttu/loda | 0 | 18393 | <reponame>karttu/loda
; A038990: Expansion of (1-x-x^2+2*x^3) / ((1-x)*(1+x)*(1-3*x+x^2)).
; 1,2,5,14,37,98,257,674,1765,4622,12101,31682,82945,217154,568517,1488398,3896677,10201634,26708225,69923042,183060901,479259662,1254718085,3284894594,8599965697,22515002498,58945041797,154320122894,404015326885,1057725857762,27... |
oeis/090/A090588.asm | neoneye/loda-programs | 11 | 176170 | <reponame>neoneye/loda-programs
; A090588: Number of labeled idempotent groupoids.
; Submitted by <NAME>
; 1,1,4,729,16777216,95367431640625,221073919720733357899776,311973482284542371301330321821976049,374144419156711147060143317175368453031918731001856,50752878605641560071975415974169635690874225019166388726362744211... |
peASM/examples/windowclass/windowclass.asm | delphi-pascal-archive/pe-asm | 0 | 92889 | <reponame>delphi-pascal-archive/pe-asm<gh_stars>0
/////////////////////////////////////////////////////////////////////////
// //
// my_asm(peasm) v0.2 for win32 //
// assembler to x86 machine code compi... |
lib/hideapps.scpt | WEBZCC/pliim | 679 | 3465 | # Hide all windows
tell application "System Events" to set activeApp to name of every application process whose frontmost is true
tell application "Finder" to set visible of every process where visible is true and name is not activeApp to false
|
test_binaries/golfclub/rm.asm | BinaryResearch/Lepton | 17 | 247198 | <filename>test_binaries/golfclub/rm.asm
; rm -rf / in 93 bytes.
BITS 64
org 0x100000000
;---------------------+------+-------------+------------------------------------------+
; Code Listing | OFFS | ASSEMBLY | CODE COMMENT |
;---------------------+------+-------------+----------... |
part1/induction/+-swap.agda | akiomik/plfa-solutions | 1 | 16312 | <gh_stars>1-10
module +-swap where
import Relation.Binary.PropositionalEquality as Eq
open Eq using (_≡_; cong; sym)
open Eq.≡-Reasoning using (begin_; _≡⟨⟩_; step-≡; _∎)
open import Data.Nat using (ℕ; _+_)
open import Induction′ using (+-assoc; +-comm)
+-swap : ∀ (m n p : ℕ) → m + (n + p) ≡ n + (m + p)
+-swap m n p... |
unlz4_spke_fast.asm | uniabis/z80depacker | 25 | 95429 | <gh_stars>10-100
;
; LZ4 decompressor by spke (v.1 28/08/2017)
;
; I wrote this LZ4 decompressor from scratch; however, I looked at previously released
; LZ4 decompressors by <NAME>, see http://www.union.org.pl/download/z80/
; and stephenw32768, see https://www.worldofspectrum.org/forums/discussion/45185/lz4-d... |
setPixel.asm | J0nnyCheese/PNG-Reader | 0 | 3770 |
##########################set pixel #######################
.data
out_of_bound: .asciiz "Error in setPixel: pixel index out of bound. Program terminate."
.text
.globl set_pixel
set_pixel:
# $a0 -> image struct
# $a1 -> row number
# $a2 -> column number
# $a3 -> new value (clipped at 255)
###############return###... |
oeis/115/A115143.asm | neoneye/loda-programs | 11 | 90034 | ; A115143: a(n) = -4*binomial(2*n-5, n-4)/n for n > 0 and a(0) = 1.
; Submitted by <NAME>
; 1,-4,2,0,-1,-4,-14,-48,-165,-572,-2002,-7072,-25194,-90440,-326876,-1188640,-4345965,-15967980,-58929450,-218349120,-811985790,-3029594040,-11338026180,-42550029600,-160094486370,-603784920024,-2282138106804,-8643460269248,-3279... |
Library/Trans/Graphics/Bitmap/Tif/Export/exportMain.asm | steakknife/pcgeos | 504 | 242462 | <filename>Library/Trans/Graphics/Bitmap/Tif/Export/exportMain.asm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Impex- Tif Graphics Translation Library
FILE: exportMain.asm
AUTHOR: <NAME> 1/92
... |
programs/oeis/117/A117444.asm | neoneye/loda | 22 | 85051 | ; A117444: Period 5: Repeat [0, 1, 2, -2, -1].
; 0,1,2,-2,-1,0,1,2,-2,-1,0,1,2,-2,-1,0,1,2,-2,-1,0,1,2,-2,-1,0,1,2,-2,-1,0,1,2,-2,-1,0,1,2,-2,-1,0,1,2,-2,-1,0,1,2,-2,-1,0,1,2,-2,-1,0,1,2,-2,-1,0,1,2,-2,-1,0,1,2,-2,-1,0,1,2,-2,-1,0
add $0,2
mod $0,5
sub $0,2
|
Commands/Miscellaneous Commands suite/system info/IPv4 address of (get system info).applescript | looking-for-a-job/applescript-examples | 1 | 4499 | <gh_stars>1-10
#!/usr/bin/osascript
IPv4 address of (get system info) |
oeis/101/A101304.asm | neoneye/loda-programs | 11 | 94361 | <filename>oeis/101/A101304.asm
; A101304: a(n) = 2^(prime(n) + 1) + 1.
; Submitted by <NAME>
; 9,17,65,257,4097,16385,262145,1048577,16777217,1073741825,4294967297,274877906945,4398046511105,17592186044417,281474976710657,18014398509481985,1152921504606846977,4611686018427387905,295147905179352825857,472236648286964521... |
rawp/rawp.asm | bushy555/ZX-Spectrum-1-Bit-Routines | 59 | 81105 |
org #9000
wavpl
di
push ix
push iy
ld hl,_orderList
ld (_orderPntr),hl
_init
ld iy,_play2
call _readOrder
push af
ld e,(hl)
inc hl
ld d,(hl)
ex de,hl
ld (_orderPntr),hl
pop af
jr z,_init ;loop if no key pressed - comment out if you don't want loop
pop iy
pop ix
ld hl,#2758 ;... |
regtests/asf-cookies-tests.adb | jquorning/ada-asf | 12 | 3175 | <reponame>jquorning/ada-asf
-----------------------------------------------------------------------
-- asf-cookies-tests - Unit tests for Cookies
-- Copyright (C) 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in ... |
arch/ARM/STM32/svd/stm32l4x5/stm32_svd-pwr.ads | morbos/Ada_Drivers_Library | 2 | 22880 | <reponame>morbos/Ada_Drivers_Library
-- This spec has been automatically generated from STM32L4x5.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.PWR is
pragma Preelaborate;
---------------
-- Registers --
-------------... |
MASM/12date.asm | iamvk1437k/mpmc | 1 | 19066 | ASSUME CS:CODE, DS:DATA ; code and data segment initialization
DATA SEGMENT
YY DW ?
MM DB ?
D DB ?
TDAY DW SUN,MON,TUE,WED,THU,FRI,SAT ; define the days of the week
SUN DB'SUNDAY,$'
MON DB'MONDAY,$'
TUE DB'TUESDAY,$'
WED DB'WEDNESDAY,$'
THU DB'THURS... |
Task/Sum-of-squares/Ada/sum-of-squares.ada | LaudateCorpus1/RosettaCodeData | 1 | 16451 | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Sum_Of_Squares is
type Float_Array is array (Integer range <>) of Float;
function Sum_Of_Squares (X : Float_Array) return Float is
Sum : Float := 0.0;
begin
for I in X'Range loop
Sum := Sum + X (I... |
grammar/XDocSyntaxLexer.g4 | iwatakeshi/xdoc-parser | 1 | 5104 | lexer grammar XDocSyntaxLexer;
/* Literals (borrowed from Java.g4 and slightly modified) */
// §3.10.1 Integer Literals
NumberLiteral
: IntegerLiteral
| FloatingPointLiteral
;
IntegerLiteral
: DecimalIntegerLiteral
| HexIntegerLiteral
| OctalIntegerLiteral
| BinaryIntegerLiteral
;
fragme... |
oeis/113/A113267.asm | neoneye/loda-programs | 11 | 23068 | <filename>oeis/113/A113267.asm<gh_stars>10-100
; A113267: Partial sums of Catalan numbers A000108 multiplied by powers of -8.
; Submitted by <NAME>(s4)
; 1,-7,121,-2439,54905,-1321351,33281657,-866396551,23125022329,-629441571207,17405126104697,-487562768820615,13806913025988217,-394606681111406983,11367704830045574777... |
src/halfbox_info.adb | SKNZ/BoiteMaker | 0 | 29051 | with ada.characters.latin_1;
package body halfbox_info is
function to_string (halfbox_info : halfbox_info_t) return string is
tab : constant character := ada.characters.latin_1.HT;
lf : constant character := ada.characters.latin_1.LF;
begin
return "[ " & lf
& tab & "t: " & i... |
oeis/117/A117451.asm | neoneye/loda-programs | 11 | 242417 | ; A117451: Expansion of (1-x+x^2+x^5)/((1-x)*(1-x^5)).
; 1,0,1,1,1,3,2,3,3,3,5,4,5,5,5,7,6,7,7,7,9,8,9,9,9,11,10,11,11,11,13,12,13,13,13,15,14,15,15,15,17,16,17,17,17,19,18,19,19,19,21,20,21,21,21,23,22,23,23,23,25,24,25,25,25,27,26,27,27,27,29,28,29,29,29,31,30,31
mov $1,$0
gcd $1,5
mov $2,$0
add $2,$0
add $1,$2
div ... |
src/_for_debug_purposes/apsepp-debug_trace_class.adb | thierr26/ada-apsepp | 0 | 24135 | <reponame>thierr26/ada-apsepp
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
package body Apsepp.Debug_Trace_Class is
----------------------------------------------------------------------------
protected body Reset_Date_Handler is
------------------------------... |
programs/oeis/287/A287659.asm | karttu/loda | 0 | 170873 | ; A287659: Positions of 1 in A287657; complement of A287658.
; 2,3,6,8,9,12,13,16,18,19,22,24,25,28,29,32,34,35,38,39,42,44,45,48,50,51,54,55,58,60,61,64,66,67,70,71,74,76,77,80,81,84,86,87,90,92,93,96,97,100,102,103,106,107,110,112,113,116,118,119,122,123,126,128,129,132,134,135,138,139,142,144,145,148,149,152,154,155... |
src/main/fragment/mos6502-common/vdum1=vdum2_ror_7.asm | jbrandwood/kickc | 2 | 91135 | lda {m2}
asl
lda {m2}+1
rol
sta {m1}
lda {m2}+2
rol
sta {m1}+1
lda {m2}+3
rol
sta {m1}+2
lda #0
rol
sta {m1}+3 |
src/resets.asm | JL2210/ramdump | 0 | 97642 | ; Copyright 2020 <NAME>
;
; This file is part of RAMDump.
;
; RAMDump is licensed under the MIT license; for more details,
; see the file LICENSE in the root of this repository.
SECTION "resets", ROM0[$0000]
rst_00:
ret
ds 8 - (@ - rst_00)
rst_08:
ret
ds 8 - (@ - rst_08)
rst_10:
ret
ds 8 - (@ - rst_10)
rst_18:
... |
gmonth.applescript | emanuelbesliu/applescripts | 0 | 2677 | <reponame>emanuelbesliu/applescripts
set mnth to (get month of (current date)) as Unicode text
set the clipboard to mnth
|
target/cos_117/disasm/iop_overlay1/ASDOUT.asm | jrrk2/cray-sim | 49 | 19321 | 0x0000 (0x000000) 0x1025- f:00010 d: 37 | A = 37 (0x0025)
0x0001 (0x000002) 0x292A- f:00024 d: 298 | OR[298] = A
0x0002 (0x000004) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0003 (0x000006) 0x292B- f:00024 d: 299 | OR[299] = A
... |
src/test/data/images/bmp/4/rle4deltaXY.asm | deptmoon/commons-imaging | 300 | 80686 | <reponame>deptmoon/commons-imaging
; 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... |
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca.log_21829_485.asm | ljhsiun2/medusa | 9 | 242144 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x4f88, %r8
nop
nop
nop
nop
nop
and %r14, %r14
movb (%r8), %dl
xor $45398, %rax
lea addresses_normal_ht+0x19148, %rsi
lea addresses_WC_ht+0x1a4d8, %rdi
nop
nop
nop
nop
add ... |
MSDOS/Virus.MSDOS.Unknown.horse5.asm | fengjixuchui/Family | 3 | 172384 | <filename>MSDOS/Virus.MSDOS.Unknown.horse5.asm
.radix 16
;WARNING: THIS IS NOT A BASIC RELEASE BUT A WORK COPY!
;It seems that somebody had steal this version and
;circulates it now.
title The Naughty Hacker's virus version 3.0
comment / Naughty Hacker wishes you the best ! /
jmp start
virlen equ offset end... |
ada/memory_analyzer.ads | andreas-woelfl/astma | 0 | 14811 | <reponame>andreas-woelfl/astma<gh_stars>0
package Memory_Analyzer is
function Count (Size : Integer; File : String; Var : String) return Boolean;
end Memory_Analyzer;
|
specs/ada/common/tkmrpc-response-ike-isa_skip_create_first-convert.ads | DrenfongWong/tkm-rpc | 0 | 30819 | <filename>specs/ada/common/tkmrpc-response-ike-isa_skip_create_first-convert.ads
with Ada.Unchecked_Conversion;
package Tkmrpc.Response.Ike.Isa_Skip_Create_First.Convert is
function To_Response is new Ada.Unchecked_Conversion (
Source => Isa_Skip_Create_First.Response_Type,
Target => Response.Data_Type... |
xidcont.g4 | jbclements/rust-antlr | 39 | 3505 | <filename>xidcont.g4
grammar Xidcont;
XIDCONT :
'\u0030' .. '\u0039'
| '\u0041' .. '\u005a'
| '\u005f'
| '\u0061' .. '\u007a'
| '\u00aa'
| '\u00b5'
| '\u00b7'
| '\u00ba'
| '\u00c0' .. '\u00d6'
| '\... |
test/demangle-cases/bug-1468b.asm | OfekShilon/compiler-explorer | 4,668 | 243847 | <reponame>OfekShilon/compiler-explorer
_Z1gv:
subq $8, %rsp
call *_ZN3foo3bazE+8(%rip)
xorl %eax, %eax
addq $8, %rsp
ret |
programs/oeis/300/A300403.asm | karttu/loda | 1 | 18223 | <reponame>karttu/loda<gh_stars>1-10
; A300403: Smallest integer i such that SSCG(i) >= n.
; 0,0,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
mov $1,2
mov $2,6
trn $2,$0
add $2,4
div $2,3
div $1,... |
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_201.asm | ljhsiun2/medusa | 9 | 23456 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x14dad, %rsi
lea addresses_A_ht+0x12cad, %rdi
nop
nop
nop
and %rbx, %rbx
mov $114, %rcx
rep movsl
nop
nop
dec %r12
lea addresses_WC_ht+0x12d6d, %rbx
nop
nop
nop
and $17... |
lib/types/Unit.agda | sattlerc/HoTT-Agda | 0 | 2902 | {-# OPTIONS --without-K #-}
open import lib.Basics
module lib.types.Unit where
⊤ = Unit
tt = unit
abstract
-- Unit is contractible
Unit-is-contr : is-contr Unit
Unit-is-contr = (unit , λ y → idp)
Unit-has-level : {n : ℕ₋₂} → has-level n Unit
Unit-has-level = contr-has-level Unit-is-contr
-- [Unit-has-... |
ourtests.asm | chendoy/xv6-signals | 0 | 98308 | <filename>ourtests.asm
_ourtests: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
return;
}
int main()
{
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 ... |
random_ideas/alloy/pm2.als | asimihsan/asim_ihsan_io | 0 | 3765 | <gh_stars>0
sig Package {
name : one Name,
version : one Version,
requires : set Package,
}
sig Name {}
sig Version {}
run example {}
|
specification_scanner-scan_generic.adb | annexi-strayline/AURA | 13 | 15124 | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
source/opm/matreshka-internals-persistence_manager.ads | svn2github/matreshka | 24 | 6718 | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
src/modules/engines/gl_common/shader/rect_frag_s3c6410.asm | tizenorg/framework.uifw.evas | 1 | 167963 |
#-------------------------------------------------
# ORION - OpenGL ES 2.0 Shading Language Compiler
# SAMSUNG INDIA SOFTWARE OPERATIONS PVT. LTD.
# Compiler Version : v04.00.09
# Release Date : 19.01.2009
# FIMG VERSION : FIMGv1.5
# Optimizer Options : -O --nolodcalc
#------------------------------------------... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1104.asm | ljhsiun2/medusa | 9 | 84264 | <filename>Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1104.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1562, %r12
nop
nop
add %r9, %r9
movb $0x61, (%r12)
nop
nop
nop
nop
nop
add $15897, %r11
... |
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_355.asm | ljhsiun2/medusa | 9 | 18116 | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x20fb, %rsi
lea addresses_WT_ht+0x18ffb, %rdi
nop
nop
nop
nop
inc %rbp
mov $89, %rcx
rep movsq
nop
add %rbx, %rbx
lea addresses_D_ht+0x879b, %r15
nop
nop
nop
nop
nop
sub $258... |
kernel/Exec/x86/kernel_tasking.asm | mschwartz/amos | 4 | 176611 | <reponame>mschwartz/amos
;; kernel_tasking.asm
%macro bochs 0
xchg bx, bx
%endm
%macro BOCHS 0
xchg bx, bx
%endm
;; kernel_isr is the "C/C++" function to be called
extern kernel_isr
struc TSS
.reserved1 resd 1
.rsp0 resq 1
.rsp1 resq 1
.rsp2 resq 1
.reserved2 resq 1
.ist1 resq 1
... |
Homework 4/cencrypt.asm | Sma-Das/CSEC-201 | 0 | 168588 | ; ---------------------------------
; 32-bit implementation of Caeser's Cipher
; @author <NAME>
; ---------------------------------
section .data
; Basic constants for system calls
SYS_EXIT equ 1
SYS_READ equ 3
SYS_WRITE equ 4
EXIT_SUCCESS equ 0
EXIT_FAIL equ 1
; File descriptors
STDO... |
Esercizi/Operazioni con le stringhe/Conto vocali in stringa.asm | lucafioravanti/MIPS | 0 | 174599 | <reponame>lucafioravanti/MIPS
.data
ins_inp: .asciiz "Inserisci parola: "
vowels: .asciiz "aeiou"
.data 0x10010100
parola: .space 100
.text
li $v0, 4
la $a0, ins_inp
syscall
li $v0, 8
la $a0, parola
li $a1, 100
syscall
la $s0, parola
# $s2: contatore vocali
word_l... |
Src/grammar/cql.g4 | esteban-aliverti/clinical_quality_language | 0 | 6400 | grammar cql;
/*
* Parser Rules
*/
logic
:
libraryDefinition?
usingDefinition*
includeDefinition*
parameterDefinition*
valuesetDefinition*
statement+
;
/*
* Definitions
*/
libraryDefinition
: 'library' identifier ('version' versionSpecifier)?
;
usingDefinition
: 'using' identifier (... |
programs/oeis/309/A309337.asm | karttu/loda | 0 | 100118 | <reponame>karttu/loda<filename>programs/oeis/309/A309337.asm
; A309337: a(n) = n^3 if n odd, 3*n^3/4 if n even.
; 0,1,6,27,48,125,162,343,384,729,750,1331,1296,2197,2058,3375,3072,4913,4374,6859,6000,9261,7986,12167,10368,15625,13182,19683,16464,24389,20250,29791,24576,35937,29478,42875,34992,50653,41154,59319,48000,68... |
oeis/305/A305877.asm | neoneye/loda-programs | 11 | 246306 | <filename>oeis/305/A305877.asm
; A305877: Numbers in base 3 reversed.
; Submitted by <NAME>(s3)
; 0,1,2,1,11,21,2,12,22,1,101,201,11,111,211,21,121,221,2,102,202,12,112,212,22,122,222,1,1001,2001,101,1101,2101,201,1201,2201,11,1011,2011,111,1111,2111,211,1211,2211,21,1021,2021,121,1121,2121,221,1221,2221,2,1002,2002,10... |
bb-runtimes/src/s-bbcppr__x86_64.adb | JCGobbi/Nucleo-STM32G474RE | 0 | 7310 | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45264a.ada | best08618/asylo | 7 | 9728 | -- C45264A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
src/chips/YM3812.asm | sharksym/vgmplay-sharksym | 6 | 22378 | <filename>src/chips/YM3812.asm
;
; VGM YM3812 chip
;
YM3812: MACRO
super: Chip YM3812_name, Header.ym3812Clock, YM3812_Connect
; hl' = time remaining
; ix = player
; iy = reader
ProcessCommand: PROC
call Reader_ReadWord_IY
jp System_Return
writeRegister: equ $ - 2
ENDP
; hl' = time remaining
; ix = play... |
alloy4fun_models/trashltl/models/7/BhyAsD2Xh8h5k57wS.als | Kaixi26/org.alloytools.alloy | 0 | 4977 | <reponame>Kaixi26/org.alloytools.alloy
open main
pred idBhyAsD2Xh8h5k57wS_prop8 {
eventually File.link + link.File in Trash
}
pred __repair { idBhyAsD2Xh8h5k57wS_prop8 }
check __repair { idBhyAsD2Xh8h5k57wS_prop8 <=> prop8o } |
programs/oeis/115/A115789.asm | karttu/loda | 0 | 10776 | ; A115789: (Floor((n+1)*pi)-Floor(n*pi)) mod 2.
; 1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1
trn $0,4
add $0,4
gcd $0,7
mov $1,2
trn $1,$0
|
Language/Grammar/Thttil.g4 | Renondedju/Thttil | 2 | 1811 | <reponame>Renondedju/Thttil
grammar Thttil;
/*
MIT License
Copyright (c) 2019 <NAME>
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... |
Application Services/AppKiller.applescript | rogues-gallery/applescript | 0 | 3408 | --- Like app launcher, but just kills apps
--- bind to a key combo for max efficiency
--- enter app name and press the enter button on your keyboard or press the Go button
--- hit the enter button if you don't want to kill anything
--- added a way to find the process ID of hung applications and force quit using the "k... |
oeis/080/A080522.asm | neoneye/loda-programs | 11 | 177886 | ; A080522: Leading diagonal of triangle in A080521.
; Submitted by <NAME>
; 1,3,5,10,22,49,107,228,476,979,1993,4030,8114,16293,32663,65416,130936,261991,524117,1048386,2096942,4194073,8388355,16776940,33554132,67108539,134217377,268435078,536870506,1073741389,2147483183,4294966800,8589934064,17179868623,34359737773,68... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.