Skip to content

Instantly share code, notes, and snippets.

View rurtubia's full-sized avatar

Randy Urtubia rurtubia

View GitHub Profile
@rurtubia
rurtubia / markdown_blockquote.md
Last active August 29, 2015 14:22
Markdown tutorial

I read this interesting quote the other day:

Her image had passed into his soul for ever and no word had broken the holy silence of his ecstasy. Her eyes had called him and his soul had leaped at the call. To live, to err, to fall, to triumph, to recreate life out of life! A wild angel had appeared to him, the angel of mortal youth and beauty, an envoy from the fair courts of life, to throw open before him in an instant of ecstasy the gates of all the ways of error and glory. On and on and on and on!

I read this interesting quote the other day:
>Her image had passed into his soul for ever and no word had broken the holy silence of his ecstasy. Her eyes had called him and his soul had leaped at the call. To live, to err, to fall, to triumph, to recreate life out of life! A wild angel had appeared to him, the angel of mortal youth and beauty, an envoy from the fair courts of life, to throw open before him in an instant of ecstasy the gates of all the ways of error and glory. On and on and on and on!
@rurtubia
rurtubia / .bootstrap_row_col.md
Last active August 29, 2015 14:22
Tables in Bootstrap

##Tables in Bootstrap

Bootstrap uses a responsive 12-column grid system, which makes it easy to put elements into rows and specify each element's relative width. Most of Bootstrap's classes can be applied to a div element.

Here's a diagram of how Bootstrap's 12-column grid layout works:

Note that in this illustration, we use the col-md-* class. Here, md means "medium", and * is a number specifying how many columns wide the element should be. In this case, we're specifying how many columns wide an element should be on a medium-sized screen, such as a laptop.

In the Cat Photo App that we're building, we'll use col-xs-*, where * is the number of columns wide the element should be, and xs means "extra small", like an extra-small mobile phone screen.

@rurtubia
rurtubia / bootstrap_button.html
Last active August 29, 2015 14:22
Bootstrap_button
<link
rel='stylesheet'
href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css'
/>
<button class="btn">Like this photo</button>
<link
rel='stylesheet'
href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css'
/>
<!--Other contextual text options-->
<p class="text-muted">Muted Text</p>
<p class="text-primary">Primary Text</p>
<p class="text-success">Success Text</p>
@rurtubia
rurtubia / install_xna_vs13,txt
Last active August 29, 2015 14:22
Install XNA on VS12 or VS13
Install XNA on Visual Studio 2012 or 2013.
Download https://mxa.codeplex.com/releases
Before install extension:
1. Install DirectX
2. Install XNA Framework 4.0 Redistribution
3. Install XNA Game Studio 4.0 Platform Tools
4. Install XNA Game Studio 4.0 Shared
5. Install XNA Game Studio 4.0.vsix
@rurtubia
rurtubia / bootstrap_image_responsive.html
Created June 1, 2015 13:03
Bootstrap: image_responsive (autosizes images to the size of the screen)
<link
rel='stylesheet'
href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css'/>
<img src='http://bit.ly/fcc-kittens2'
class='img-responsive'/>
@rurtubia
rurtubia / Reference
Last active August 29, 2015 14:22
try except in python validates if the input is an int validates if the input is either 1 or 2
Builtin Exceptions:
https://docs.python.org/2/library/exceptions.html#bltin-exceptions
Errors and Exceptions
https://docs.python.org/2/tutorial/errors.html#exceptions
@rurtubia
rurtubia / clockwise_margin.html
Last active August 29, 2015 14:22
HTML DIV element
<!--top, right, bottom, left-->
.green-box {
background-color: green;
margin: 40px 20px 20px 40px;
}
<form action='/submit-cat-photo'>
<input type='text'
placeholder='cat photo URL'>
</form>
@rurtubia
rurtubia / odered_list.html
Last active August 29, 2015 14:22
HTML lists
<html>
<body>
<ol>
<li>dogs</li>
<li>cats' websites</li>
<li>grammar and algebra</li>
</ol>
</body>
</html>