This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define (remove-nth n l) | |
(cond ((= n 0) l ) | |
((null? l) l) | |
(else (cons (car l) (remove-nth (- n 1) (cdr l)))) | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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: "; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.data | |
names: .space 16 | |
ryan: .asciiz "Ryan\n" | |
tammi: .asciiz "Tammi\n" | |
josh: .asciiz "Josh\n" | |
robert: .asciiz "Robert\n" | |
.text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
NewerOlder