Skip to content

Instantly share code, notes, and snippets.

View mattearly's full-sized avatar

Matthew Early mattearly

View GitHub Profile
(define (remove-nth n l)
(cond ((= n 0) l )
((null? l) l)
(else (cons (car l) (remove-nth (- n 1) (cdr l))))
)
)
#include <string>
#include <iostream>
// made to help with my printer and printing both sides
int main () {
std::cout << "This program prints numbers in sequence with comma seperated values as either even or odd\n";
int choice;
while (choice == 0 && choice != 1 && choice != 2) {
std::cout << "1 for odd, 2 for even: ";
// be sure you have ncurses installed
// compile with 'g++ ncurses_hello_world.cpp.cc -lcurses'
#include <ncurses.h>
int main()
{
initscr(); /* Start curses mode */
printw("Hello World !!!"); /* Print Hello World */
refresh(); /* Print it on to the real screen */
#include <iostream>
static long num_steps = 100000;
double step;
void main() {
int i;
double x=0.0,pi=0.0,sum=0.0;
step = 1.0/(double)num_steps;
for (i=0;i<num_steps;i++) {
.data
names: .space 16
ryan: .asciiz "Ryan\n"
tammi: .asciiz "Tammi\n"
josh: .asciiz "Josh\n"
robert: .asciiz "Robert\n"
.text
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
!LButton::
MouseClick, Left,X,Y,20,1,
return
mega_click = y