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
.section __TEXT,__text,regular,pure_instructions | |
.globl _sum | |
.align 4, 0x90 | |
_sum: ## @sum | |
.cfi_startproc | |
## BB#0: | |
pushq %rbp | |
Ltmp2: | |
.cfi_def_cfa_offset 16 | |
Ltmp3: |
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 |
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
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
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
/* | |
* 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 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
#/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 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
package main | |
func sumAn( n int) int { | |
sum := 0 | |
for i := 0; i < n; i++ { | |
sum += 2 + (2 * i) | |
} | |
return sum |