Skip to content

Instantly share code, notes, and snippets.

View coopermayne's full-sized avatar

Cooper Mayne coopermayne

View GitHub Profile
@coopermayne
coopermayne / vid-background-trick.css
Created December 13, 2016 22:28
CSS trick for getting a well centered video background to a div
.video_contain {
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
}
video {
position: absolute;
@coopermayne
coopermayne / javascript
Last active October 22, 2015 13:46
javascript ref
#JAVASCRIPT NOTES
This is for you to reference when doing homework --- this will contain it all!
**Table of Contents**
[TOC]
###data types
```
// variables (user 'var')
@coopermayne
coopermayne / todaynotes
Last active August 29, 2015 14:25
your work from today
###Guessing game
```ruby
puts"pick an integer number 1...100 and keep it in your head"
puts "NO TROLLOLLOLLOLLOLLOLLOLLOing"
puts "continue... ( press enter)"
gets
top = 1000
bottom = 0
@coopermayne
coopermayne / homework
Last active August 29, 2015 14:25
homework
#EXERCISES
##while while while
first let's do some stuff with while loops and counters
####one
make a while loop that runs 3 times -- printing some text each time -- then stops running. (you'll need to use a counter)
####two
@coopermayne
coopermayne / gta
Created July 21, 2015 16:39
GTA Game Plan
# GTA Gameplan
## Version 1
- **map:** one dimensional, strings
- **items:** strings
- **user:** the user has an inventory and a current location. the inventory is an array of items. the location is a simple string.
- **actions:** the user has some basic actions... for instance:
- **take:** take an item from the world and move it to user's inventory
- **move:** move to a different location on the map
- **status:** prints out users inventory and current location
@coopermayne
coopermayne / GTA Gameplan
Created July 21, 2015 16:38
GTA Game Plan
# GTA Gameplan
## Version 1
- **map:** one dimensional, strings
- **items:** strings
- **user:** the user has an inventory and a current location. the inventory is an array of items. the location is a simple string.
- **actions:** the user has some basic actions... for instance:
- **take:** take an item from the world and move it to user's inventory
- **move:** move to a different location on the map
- **status:** prints out users inventory and current location
@coopermayne
coopermayne / gta gameplan
Last active August 29, 2015 14:25
GTA Game Plan
# GTA Gameplan
## Version 1
- **map:** one dimensional, strings
- **items:** strings
- **user:** the user has an inventory and a current location. the inventory is an array of items. the location is a simple string.
- **actions:** the user has some basic actions... for instance:
- **take:** take an item from the world and move it to user's inventory
- **move:** move to a different location on the map
- **status:** prints out users inventory and current location
@coopermayne
coopermayne / notes
Last active August 29, 2015 14:25
NOTES
# NOTES
[TOC]
##STRINGS
```ruby
"strings look like this."
```
###index reference
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NOTES</title>
<link rel="stylesheet" href="https://stackedit.io/res-min/themes/base.css" />
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>
</head>
<body><div class="container"><h1 id="notes">NOTES</h1>
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
"required
Bundle 'gmarik/vundle'
Bundle 'vim-scripts/YankRing.vim'
Bundle 'mileszs/ack.vim'
Bundle 'kien/ctrlp.vim'
Bundle 'scrooloose/nerdtree'
Bundle 'loremipsum'