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
#First and foremost, we must have data. We see that there is a variable named RandomData and the asingment operation <- is assigning the value of rnorm(). rnorm(n) is a funciton which returns a vector of n values which lie within one standard deviation of the mean of 0. | |
RandomData <- rnorm(10000) | |
#hist displays a histogram of the vector of values. | |
hist(RandomData, col="blue") | |
#mean() computes the mean of the vector of values. | |
mean(RandomData) | |
#sd() computes the standard deviation of the vector of values. | |
sd(RandomData) | |
#summary() generates a table of all quartiles and max and min values. |
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
package main | |
func sumAn( n int) int { | |
sum := 0 | |
for i := 0; i < n; i++ { | |
sum += 2 + (2 * i) | |
} | |
return sum |
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
package main | |
/* | |
Here is a sample construct that reads a file name supplied as an argument and | |
allows you, the programmer, to easily work with the supplied parameters. Have Fun! | |
*/ | |
import ( | |
"bufio" | |
"os" |
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 | |
cd /home/benji/Videos; | |
for f in *.iso; | |
do | |
HandBrakeCLI -i $f -o `basename $f .iso`.mp4 --preset "Android"; | |
if [ $? = 0 ]; then | |
rm -f $f; | |
fi |
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
package com.benjica.example | |
public class ExampleClass { | |
private final String PLACE = "World"; | |
public static void main(String[] arguments) { | |
System.out.println("Hello " + PLACE + "!"); | |
} | |
} |
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
/* | |
* AlternativeTrip.java | |
* Date: 10/17/13 | |
* Author: Benjamin Campbell <[email protected]> | |
* Abstract: A simple application that allows users to submit travel | |
* mechanisms that implement the BUsWalkBike class. | |
*/ | |
package com.benjica.csci135.hw4; |
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
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hey look, all vim!") | |
} |
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
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hello all vim!") | |
} |
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
boolean tangent = false; | |
float theta = 0; | |
float radius = 100; | |
float x_t = 0; | |
float y_t = 0; | |
float x_0; | |
float y_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
; Declare global variables | |
section .data | |
hello: db 'Hello world!',10 | |
helloLen: equ $-hello | |
; Jump into the action | |
section .text | |
global _start | |
; Meat and potatoes |
OlderNewer