Skip to content

Instantly share code, notes, and snippets.

View codeithuman's full-sized avatar
🚀
To Mars!

AJ Robertson codeithuman

🚀
To Mars!
View GitHub Profile
@codeithuman
codeithuman / common-media-query-sizes.css
Created May 14, 2014 23:09
Common Media Query Sizes - Smashing Magazine and Bootstrap
/*
* Common Media query sizes.
* Media queries from http://getbootstrap.com
* Media queries from http://smashingmagazine.com
* Recorded 2014.05.14 by @ajdev27
*/
/* Bootstrap */
/* 47.938em */
@codeithuman
codeithuman / ping-pong.html
Last active August 29, 2015 14:07
Ping-Pong Program
<!DOCTYPE html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<title>Ping-Pong Program by AJ Robertson</title>
</head>
<body>
<style>
body {
font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;
font-size: 0.9em;
@codeithuman
codeithuman / layout.html
Created October 19, 2014 22:46
Responsive Layout
<!DOCTYPE html>
<head>
<title>Responsive 2 Column Layout by AJ Robertson</title>
</head>
<body>
<style>
body {
font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;
font-size: 0.9em;
margin: 0;
@codeithuman
codeithuman / gist:6c3aec1528a0bff6bc99
Created June 19, 2015 23:18
try catch on saving ember object
import Ember from 'ember';
export default Ember.Controller.extend({
needs: ['question'],
actions: {
addAnswer: function() {
var self = this;
var newAnswer = self.store.createRecord('answer', {
author: self.get('author'),
date: new Date(),
@codeithuman
codeithuman / Heroku Phx Ecto Error
Created January 25, 2016 14:45
Error when pushing phoenix to heroku.
-----> Fetching set buildpack https://github.com/HashNuke/heroku-buildpack-elixir.git... done
-----> elixir app detected
-----> Checking Erlang and Elixir versions
WARNING: elixir_buildpack.config wasn't found in the app
Using default config from Elixir buildpack
Will use the following versions:
* Stack cedar-14
* Erlang 18.1.3
* Elixir 1.2.0
Will export the following config vars:
Warning: Permanently added 'heroku.com' (RSA) to the list of known hosts.
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 33% (1/3)
Compressing objects: 66% (2/3)
Compressing objects: 100% (3/3)
Compressing objects: 100% (3/3), done.
Writing objects: 33% (1/3)
Writing objects: 66% (2/3)
@codeithuman
codeithuman / phoenix-brunch-issue.js
Created March 31, 2016 17:51
Issue with Phoenix and Brunch compiling multiple javascript files
// File structure
// web -> static -> js
// |-> contact -> contact.js
// |-> jquery -> accordion.js, navigation.js
// |-> registraiton -> registration.js
// |-> upcoming_classes -> upcoming_classes.js
// |-> app.js
// brunch-config.js files section
files: {
@codeithuman
codeithuman / .zsh-env.sh
Last active February 14, 2017 19:51
My environment configuration for zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME=pygmalion
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
view : Model -> Html Msg
view model =
div [ class "contact-form" ]
[ div [ class "alert alert-danger" ] []
, div [ class "field-row" ]
[ div [ class "field" ]
[ input [ type' "text", class "form-required", id "contact_name", maxlength 70, name "contact[name]", placeholder "Name*" ] [] ]
]
, div [ class "field-row" ]
[ div [ class "field" ]
fontColor : String
fontColor =
"#332A3A"
headingStyles : Attribute msg
headingStyles =
style
[ ( "textAlign", "center" )
, ( "marginBottom", "25px" )