This file contains 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
<header class="nav-bar"> | |
<img class="logo" src="C:\Users\Guest\Desktop\agee\logo.png"> | |
<div class="row"> | |
<nav class="col-sm-3"> | |
<a href="#">FEATURES</a> | |
<a href="#">ABOUT</a> | |
<a href="#">STORE</a> | |
<a href="#">BLOG</a> | |
</nav> | |
</div> |
This file contains 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
/* | |
* File: DownloadTimeApp.java | |
* Author: David Chapman, dac1988@uab.edu | |
* Assignment: Project 1 EE333 Fall 2013 | |
* Vers: 1.0.1 01/12/2014 dac - initial coding | |
* | |
* Credits: (if any for sections of code) | |
*/ | |
import java.util.Scanner; |
This file contains 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
require 'mathn' | |
# Just a class with methods for calculating trajectories of a projectile | |
# Read more: http://en.wikipedia.org/wiki/Trajectory_of_a_projectile | |
class ProjectileTrajectory | |
attr_accessor :grav_acceleration, :launch_angle, :launch_velocity, | |
:initial_height, :distance_traveled | |
def initialize(g=9.81, theta, v, y_not) | |
self.grav_acceleration = g # the gravitational acceleration (usually taken to be 9.81 m/s^2 near the Earth's surface) |
This file contains 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
suppressmacrofailures | |
tar Dagda Skullthumper | |
tar Neatherworld Wanderer | |
tar Frosthide | |
tar Mad Hogger | |
tar Blackblood Drake | |
tar Emissary Kavenik | |
tar Artic Peakstalker | |
tar Swirling Tempest | |
tar Frostpaw Mauler |
This file contains 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
require 'matrix' | |
# A polygon that's most likely to be encountured in nature. | |
# These are normally convex and concave polygons. | |
# (all sides and all angles are not congruent) | |
class IdealPolygon | |
attr_accessor :coordinates, :number_of_sides | |
def initialize(coordinates=[]) | |
@coordinates = coordinates | |
end |
This file contains 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
$ time ruby -v | |
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux] | |
real 0m0.018s | |
user 0m0.008s | |
sys 0m0.008s | |
$ time ruby -v rbenv | |
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux] | |
ruby: No such file or directory -- rbenv (LoadError) |
This file contains 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
> ShapeFile.all.map(&:name) | |
(3.0ms) SELECT f_geometry_column,coord_dimension,srid,type FROM geometry_columns WHERE f_table_name='shape_files' | |
ShapeFile Load (1.5ms) SELECT "shape_files".* FROM "shape_files" | |
=> ["S_Label_Ld.shp", | |
"S_Quad_Index.shp", | |
"S_Label_Pt.shp", | |
"S_Cst_Tsct_Ln.shp", | |
"S_Perm_Bmk.shp", | |
"S_BFE.shp", | |
"S_Fld_Haz_Ln.shp", |
This file contains 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 | |
# Version: 1.0.2 | |
# Author: David Chapman | |
# Description: A quick script to get a Ubuntu machine up and running. | |
# The commands we'll be using are here | |
CURL="curl" | |
APT="apt-get" | |
# Checks that the system has apt |
This file contains 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
> Cnam.count | |
(31732.4ms) SELECT COUNT(*) FROM "cnams" | |
=> 64279448 | |
> Cnam.where(["name like ?", "%Dregges%"]) | |
Cnam Load (36500.1ms) SELECT "cnams".* FROM "cnams" WHERE (name like '%Dregges%') | |
EXPLAIN (0.7ms) EXPLAIN SELECT "cnams".* FROM "cnams" WHERE (name like '%Dregges%') | |
EXPLAIN for: SELECT "cnams".* FROM "cnams" WHERE (name like '%Dregges%') | |
QUERY PLAN | |
--------------------------------------------------------------- |
This file contains 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
# /etc/nginx/sites-available/default | |
upstream trucoin.com { | |
# fail_timeout=0 means we always retry an upstream even if it failed | |
# to return a good HTTP response (in case the Unicorn master nukes a | |
# single worker for timing out). | |
# for UNIX domain socket setups: | |
server unix:/tmp/trucoin_rails.socket fail_timeout=0; | |
} |