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
double a; | |
double b; | |
double c; | |
double d; | |
double sum; | |
double product; | |
for(a = 0.1;a <= 7.11;a += 0.1) { | |
for(b = 0.1;b <= 7.11;b += 0.1) { | |
for(c = 0.1;c <= 7.11;c += 0.1) { |
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/bash | |
# variables | |
gitdir=~/git-dotfiles | |
dir=~/dotfiles | |
files="xres cmus config fehbg themes bashrc xinitrc XResources" | |
NOW=$(date +"%H:%M-%D") | |
# if directories do not exist create them | |
mkdir -p $dir |
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/bash | |
# get local ip from ifconfig | |
localIP=($(sudo ifconfig | grep "inet " | awk '{print $2}' | awk 'END{print}' )) | |
# affix two wildcards to the end of local IP | |
startIP=`echo $localIP | cut -d "." -f1-3` |