Skip to content

Instantly share code, notes, and snippets.

View changemewtf's full-sized avatar

Max C changemewtf

View GitHub Profile
@changemewtf
changemewtf / it_wont_work.md
Last active August 29, 2015 13:57
What to do when it doesn't work

"It's not working!"

  1. Read the ERRORS
  2. Read the LOGS
  3. Output related info with puts and PRINT
  4. Read the DOCS
  5. Ask an EXPERT

Follow this process every time!

mcantor@cottlebook ~/src/GA/Students/w05/d04/INSTRUCTOR/tunr_app (w05_d04_nested_routes): pry
[1] pry(main)> "What a great day!"
"What a great day!"
[2] pry(main)> "What a great day!".split("! )
[2] pry(main)*
[3] pry(main)> "What a great day!".split("! ")
[
[0] "What a great day!"
]
[4] pry(main)> "What a great day! I ha da great time".split("! ")
@changemewtf
changemewtf / gist:10062972
Created April 7, 2014 21:38
some_random_gist

blah blah

blah!

even more formating

puts "hey"
@changemewtf
changemewtf / index.html
Created April 7, 2014 21:41
Fencing Blawgh
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>En Garde</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
#include "GLUT/glut.h"
#include "stdlib.h"
#define ESC 27
#define BLACK 0.0f, 0.0f, 0.0f, 0.0f
#define GREEN 0.0f, 1.0f, 0.0f
#define ORANGE 1.0f, 0.5f, 0.0f
#define RED 1.0f, 0.0f, 0.0f
#define YELLOW 1.0f, 1.0f, 0.0f
//
// This code was created by Jeff Molofee '99 (ported to Linux/GLUT by Richard Campbell '99)
//
// If you've found this code useful, please let me know.
//
// Visit me at www.demonews.com/hosted/nehe
// (email Richard Campbell at [email protected])
//
#include "GLUT/glut.h" // Header File For The GLUT Library
#include "unistd.h" // Header File For sleeping.
class BeastsController < ApplicationController
def index
render :json => [
{
name: "Crocotilion",
diet: "carnivore"
},
{
name: "Shadewink",
<!DOCTYPE html>
<html>
<head>
<title>Doctor Smoketop&#39;s Brobdingnagian Bestiary</title>
<link data-turbolinks-track="true" href="/assets/application.css?body=1" media="all" rel="stylesheet" />
<script data-turbolinks-track="true" src="/assets/jquery.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/jquery_ujs.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/turbolinks.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/beasts.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/application.js?body=1"></script>
this is ridicalous
def fake_method(whateveR)
puts "lol"
end