-
This one is also good starting point: Jumpstart Git Google for pdf you will get it.
-
Simplest intro to git by github and codeschool - Try Git
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
"Hello World" with Travis CI | |
Here, we will set up a first Travis CI job, based around a simple "hello world" example, to get you up and running with Travis CI. | |
Sign in to GitHub | |
If you do not already have an account, then visit GitHub and create a free account. | |
If you already have an account, then visit GitHub and sign in. | |
In the following text, replace USERNAME with your GitHub user name. |
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
#!/usr/bin/sh | |
dnf install openssh | |
service sshd start | |
chkconfig sshd on | |
echo Do you want to continue? [Y/N] | |
read ans | |
if [ $ans == 'N' ] | |
then | |
echo "SSH check completed. Have a nice day." |
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
#!/usr/bin/env python | |
process_queue = [] | |
total_wtime = 0 | |
n = int(raw_input('Enter the total no of processes: ')) | |
for i in xrange(n): | |
process_queue.append([])#append a list object to the list | |
process_queue[i].append(raw_input('Enter p_name: ')) | |
process_queue[i].append(int(raw_input('Enter p_arrival: '))) | |
total_wtime += process_queue[i][1] | |
process_queue[i].append(int(raw_input('Enter p_bust: '))) |
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
//Tic-tac-toe playing AI. Exhaustive tree-search. WTFPL | |
//Matthew Steel 2009, www.www.repsilat.com | |
#include <stdio.h> | |
char gridChar(int i) { | |
switch(i) { | |
case -1: | |
return 'X'; | |
case 0: |
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 <stdio.h> | |
char gridChar(int i) { | |
switch(i) { | |
case -1: | |
return 'X'; | |
case 0: | |
return ' '; | |
case 1: | |
return 'O'; |
NewerOlder