Skip to content

Instantly share code, notes, and snippets.

View 98chimp's full-sized avatar

Shahin Zangenehpour 98chimp

  • Vancouver, BC, Canada
View GitHub Profile
@98chimp
98chimp / LH01-01
Created March 9, 2015 18:05
my first Gist
ls
cd
mkdir
rm
cp
mv
touch
cat
more
pwd
pwd: print working directory - Return working directory name
cd ~/: functionally the same as the command cd /home/username
ls -al: list files including hidden ones in long format
echo hello world: prints the phrase "hello world" on the screen
print: prints the current date and time (e.g., Mon 9 Mar 2015 11:33:03 PDT)
hostname: prints the current host name on the screen (e.g., Joojeh.local)
arch: outputs the underlying architecture
uname -a: Displays system information (e.g., Darwin Joojeh.local 14.3.0 Darwin Kernel Version 14.3.0: Thu Feb 12 18:38:33 PST 2015; root:xnu-2782.20.34~3/RELEASE_X86_64 x86_64)
uptime: The length of time a user can work on a computer or network without interruption (e.g., 11:51 up 23:22, 2 users, load averages: 4.27 4.46 4.40)
whoami: an existential question that has perplexed philosophers and scientists from the dawn of consciousness (e.g., Q. who am I? A.98% chimp!); this command also pr
history | grep "cat" | wc -l
cat /usr/share/dict/words | grep "$a" | wc -l
cat /usr/share/dict/words | grep "$a" | wc -l
curl -o lighthouse.html http://www.lighthouselabs.ca/index.html
@98chimp
98chimp / Madam I'm Adam
Last active August 29, 2015 14:16
Adam
//
// main.c
// Adam
//
// Created by Shahin on 2015-03-09.
// Copyright (c) 2015 98% Chimp. All rights reserved.
//
#include <stdio.h>
#include <stdbool.h>
@98chimp
98chimp / I'm a box!
Last active August 29, 2015 14:16
Box
//
// main.c
// Box
//
// Created by Shahin on 2015-03-10.
// Copyright (c) 2015 98% Chimp. All rights reserved.
//
#include <stdio.h>
@98chimp
98chimp / Part 1
Created March 11, 2015 01:22
Binary Search
//
// main.c
// Binary Search
//
// Created by Shahin on 2015-03-10.
// Copyright (c) 2015 98% Chimp. All rights reserved.
//
#include <stdio.h>
@98chimp
98chimp / Game
Last active August 29, 2015 14:16
Guessing Game
//
// main.c
// Guessing Game
//
// Created by Shahin on 2015-03-10.
// Copyright (c) 2015 98% Chimp. All rights reserved.
//
#include <stdio.h>
#include <stdio.h>
@98chimp
98chimp / Pointers
Created March 11, 2015 20:43
Pointer (Drill)
//
// main.c
// Pointers(drill)
//
// Created by Shahin on 2015-03-11.
// Copyright (c) 2015 98% Chimp. All rights reserved.
//
#include <stdio.h>
@98chimp
98chimp / Parts 1 & 2
Last active August 29, 2015 14:16
Fibonacci
//
// main.c
// Fibonacci
//
// Created by Shahin on 2015-03-11.
// Copyright (c) 2015 98% Chimp. All rights reserved.
//
#include <stdio.h>
//
// main.c
// Linked Lists
//
// Created by Shahin on 2015-03-11.
// Copyright (c) 2015 98% Chimp. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>