This file contains hidden or 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 <stdlib.h> | |
#include <termios.h> | |
#include <unistd.h> | |
#include <ctype.h> | |
#include <stdio.h> | |
struct termios orig_termios; | |
void disableRawMode() | |
{ |
This file contains hidden or 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
#!/bin/sh | |
prefix="/usr" | |
exec_prefix="${prefix}" | |
xrdb="xrdb" | |
xinitdir="/etc/X11/xinit" | |
xclock="xclock" | |
xterm="xterm" | |
twm="twm" | |
xmodmap="xmodmap" |
This file contains hidden or 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
* * | |
* * | |
* * | |
* | |
asdf two | |
while c = EOF | |
if (c >= 'a' && c <= 'z') | |
{ |
This file contains hidden or 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
// Exercise 1-13 Write a program to print a histogram of the lengths of words in its input. It is easy to draw the historgram with the bars horizontal, a vertical orientation is more challenging. | |
#include <stdio.h> | |
#define IN 1 | |
#define OUT 0 | |
int main() | |
{ | |
int c; | |
int wordCount = 0; |
This file contains hidden or 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
call plug#begin() | |
Plug 'challenger-deep-theme/vim', { 'as': 'challenger-deep' } | |
Plug 'sainnhe/everforest' | |
call plug#end() | |
set background=dark | |
set number | |
set cursorline |
This file contains hidden or 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 IN 1 | |
#define OUT 0 | |
int main() { | |
int state = IN; | |
int c, counter = 0; | |
while ((c = getchar()) != EOF) { | |
if (c == ' ' || c == '\n' || c == '\t') { | |
state = OUT; |
This file contains hidden or 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 IN 1 | |
#define OUT 0 | |
// count lines, words, and characters in input | |
#include <stdio.h> | |
int main() | |
{ | |
int state, c, counter; | |
state = IN; |
This file contains hidden or 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
CheckForFlag()<suspends>:void= | |
loop: | |
Sleep(1.0) | |
AllPlayers:=GetPlayspace().GetPlayers() | |
for(Player:AllPlayers): | |
# this casts to the player object to get an agent | |
if(IsAgent:agent = agent[Player]): | |
if(ConditionalButton.IsHoldingItem[IsAgent]): | |
class_granter.ChangeClass(IsAgent) | |
else: |
This file contains hidden or 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 <stdio.h> | |
#define MAXLINE 1000 | |
/* copy input to output; 2nd */ | |
main () | |
{ | |
int len; | |
int max; | |
char line [MAXLINE]; | |
char longest [MAXLINE]; |
This file contains hidden or 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
#OBJS specifies which files to compile as part of the project | |
OBJS = main.cpp | |
#CC Specifies which compiler we're using | |
CC = g++ | |
#COMPILER_FLAGS specifies the additional compilation options we're using | |
# -w suppressess all warnings | |
COMPILER_FLAGS = -w |
NewerOlder