Skip to content

Instantly share code, notes, and snippets.

🌮
Powered by taco.

Mike Hickman pdxmike

🌮
Powered by taco.
Block or report user

Report or block pdxmike

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View production.log
[c84e9fab-8109-4858-88e3-154a098ccb60] /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
[c84e9fab-8109-4858-88e3-154a098ccb60] /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
I, [2018-10-01T08:01:01.744933 #1241] INFO -- : [5083dc5a-f740-400b-9a59-06a618ca8079] Started GET "/" for 213.214.69.189 at 2018-10-01 08:01:01 +0000
I, [2018-10-01T08:01:01.746118 #1241] INFO -- : [5083dc5a-f740-400b-9a59-06a618ca8079] Processing by LogsController#index as HTML
I, [2018-10-01T08:01:01.747152 #1241] INFO -- : [5083dc5a-f740-400b-9a59-06a618ca8079] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)
I, [2018-10-01T08:16:58.652519 #1241] INFO -- : [b9532abe-d7f7-4322-90bf-7ba3bc8901d7] Started GET "/" for 151.40.196.24 at 2018-10-01 08:16:58 +0000
I, [2018-10-01T08:16:58.653194 #1241] INFO -- : [b9532abe-d7f7-4322-90bf-7ba3bc8901d7] Processing by LogsController#index as HTML
I, [2018-10-01T08:16:58
View button.rb
<% if current_user.try(:admin?) || current_user.try(:qa_team?) %>
<td><%= link_to label_status(log.qa_status), toggle_qa_status_log_path(log), class: "no-background" %></td>
<% else %>
<td><%= label_status(log.qa_status) %></td>
<% end %>
@pdxmike
pdxmike / _form.html.erb
Last active Dec 6, 2017
Cannot Edit/Update Combined_Lot and remove or add logs (through nested fields_for log_lots) without it removing clearing all combined_lot.logs
View _form.html.erb
<!-- This is the combined_lots form. Relevant problem area below. Using chosen-rails to auto populate all Log records to choose from -->
<div class="row">
<div class="col-md-12">
<div class="col-md-6">
<%= f.fields_for :log_lots do |ll| %>
<%= ll.hidden_field :combined_lot_id, value: @combined_lot.id %>
<div class="form-group">
<%= ll.label "Lots" %>
<%= ll.select :log_id,
@pdxmike
pdxmike / dosed.html
Created Aug 25, 2017
Dosed and Non-Dosed Form Embed Code
View dosed.html
<iframe width="640px" height= "480px" src= "https://forms.office.com/Pages/ResponsePage.aspx?id=hvCnVtwlp0GtRZgHipok4qAvDB6Vo9lGsGi2R7eDazFUNE9XR1dRQlBaVUJPRjdQRjhDV1NXMDNQVC4u&embed=true" frameborder= "0" marginwidth= "0" marginheight= "0" style= "border: none; max-width:100%; max-height:100vh" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen> </iframe>
View approval_workflow_spec.rb
# spec/features/approval_workflow_spec.rb
require 'rails_helper'
describe 'Navigate' do
before do
@admin_user = FactoryGirl.create(:admin_user)
login_as(@admin_user, :scope => :user)
end
View post_spec.rb
# features/post_spec.rb
require 'rails_helper'
describe 'Navigate' do
before do
@user = FactoryGirl.create(:user)
login_as(@user, :scope => :user)
end
View _nav.html.erb
<ul class="custom-nav nav nav-tabs">
<li class="active">
<a href="#">Home</a>
</li>
<li>
<a href="#">Profile</a>
</li>
<li class="disabled">
<a href="#">Messages</a>
</li>
@pdxmike
pdxmike / Weather.jsx
Last active Jan 10, 2017
Trying to use ES6 class
View Weather.jsx
import React from 'react'
import WeatherForm from 'WeatherForm'
import WeatherMessage from 'WeatherMessage'
class Weather extends React.Component{
constructor(props){
super(props);
this.state = {
location: 'Miami',
You can’t perform that action at this time.