Skip to content

Instantly share code, notes, and snippets.

View dgmcguire's full-sized avatar
💭
github should allow me to autoplay music. Myspace was right, Kappa

Dan McGuire dgmcguire

💭
github should allow me to autoplay music. Myspace was right, Kappa
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dgmcguire on github.
  • I am danmcguire (https://keybase.io/danmcguire) on keybase.
  • I have a public key ASDak6Em3ivVg7SvaDule8A6BQj-0oc7FOKd_p6VRfuuvwo

To claim this, I am signing this object:

@dgmcguire
dgmcguire / how_to_bitlbee_livecoding_tv.md
Last active June 14, 2016 20:31
How to connect to LivecodingTV with bitlbee (weechat)

add the server for easy connections later

/server add <give_it_a_label> localhost/6667

connect

/connect <your_label> this should put you in &bitblee room which is the room you'll enter bitlbee commands

add and log into jabber account

this is your account credentials for livecoding.tv

@dgmcguire
dgmcguire / index.html
Last active August 29, 2015 14:02
Emberjs Primer
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<body>
<!-- you'll put your template scripts here later -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
= simple_form_for @resume, url: wizard_path(step, resume_id: @resume.id), method: :put do |f|
= f.error_notification
.form-inputs
= f.hidden_field :id
%br
%div.row
%div.large-5.columns
%div.row
%div.large-10.columns
= simple_form_for @employer_profile do |f|
=f.error_notification
.form-inputs
=f.input :company_name
=f.input :employer_rating
=f.input :description
=f.input :city
=f.input :state
=f.input :email
<script>
$(document).ready(function() {
return $('.close-edit-skill-details > i').click(function() {
$('.container-for-skill-details').remove();
return $('.container-for-skill-descript').show();
});
});
</script>
$('#edit_image_link').click(function() {
$('.hide-for-edit').empty();
$(this).hide().after('<%= j render("edit_specific_item") %>');
});
<% content_for :title do %>
<%= ('Tasks') %>
<% end %>
<%= render :partial => 'header_links' %>
<br />
<div class='container-for-skill-descript'>
<%= render :partial => 'skill_descript_modal' %>
###### nginx.conf
user spree;
# Change this depending on your hardware
worker_processes 4;
pid /var/run/nginx.pid;
events {
@dgmcguire
dgmcguire / cap deploy
Created March 4, 2013 22:39
cap deploy
#error message
[toolz@toolz-desktop config]$ cap deploy:setup
/home/toolz/.rvm/gems/ruby-1.9.3-p385@fair/gems/capistrano-2.14.2/lib/capistrano/configuration/variables.rb:122:in `method_missing_with_variables': undefined local vaable or method `application_name' for #<Capistrano::Configuration:0x99efd28> (NameError)
from ./config/deploy.rb:14:in `load'
from /home/toolz/.rvm/gems/ruby-1.9.3-p385@fair/gems/capistrano-2.14.2/lib/capistrano/configuration/loading.rb:93:in `instance_eval'
from /home/toolz/.rvm/gems/ruby-1.9.3-p385@fair/gems/capistrano-2.14.2/lib/capistrano/configuration/loading.rb:93:in `load'
from /home/toolz/.rvm/gems/ruby-1.9.3-p385@fair/gems/capistrano-2.14.2/lib/capistrano/configuration/loading.rb:172:in `load_from_file'
from /home/toolz/.rvm/gems/ruby-1.9.3-p385@fair/gems/capistrano-2.14.2/lib/capistrano/configuration/loading.rb:89:in `load'