This file contains hidden or 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
| _mysql 80733 0.0 1.0 2669508 43940 ?? S 12:20PM 0:01.24 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/dolphin.local.err --pid-file=/usr/local/mysql/data/dolphin.local.pid | |
| root 80644 0.0 0.0 2433436 1004 ?? S 12:20PM 0:00.02 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/dolphin.local.pid | |
| tscott 84340 0.0 0.0 2432768 600 s001 S+ 12:59PM 0:00.00 grep mysql |
This file contains hidden or 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
| class ApplicationController | |
| include ControllerSpecificAttributeConfiguration | |
| end |
This file contains hidden or 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
| def self.total_volume(transactions) | |
| return transactions.amount unless transactions.is_a? Array | |
| transactions.reduce(0) do |total, transaction| | |
| total += transaction.amount | |
| end | |
| end |
This file contains hidden or 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
| var Script = require('deployd/lib/script'); | |
| var _run = Script.prototype.run; | |
| Script.prototype.run = function(ctx, domain, fn) { | |
| if (typeof domain === 'object') { | |
| domain.require = function(module) { | |
| return require(module); | |
| }; | |
| domain.context = function() { // access Context via context() | |
| return ctx; |
This file contains hidden or 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
| # WAT |
This file contains hidden or 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
| #the user model contains this association: | |
| has_one :employee, autosave: true | |
| # The auth hash contains all necessary data | |
| def self.from_omniauth(auth) | |
| where(auth.slice(:provider, :uid)).first_or_initialize.tap do |user| | |
| user = User.create \ | |
| provider: auth.provider | |
| uid: auth.uid | |
| name: auth.info.name |
This file contains hidden or 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
| NoMethodError in ItemsController#import | |
| undefined method `each' for nil:NilClass | |
| Extracted source (around line #27): | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 |
This file contains hidden or 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
| <fieldset> | |
| <%= f.text_field :university, placeholder: "#{t(:university, scope: 'activerecord.attributes.educational_experiences')}" %> | |
| <%= f.text_field :major, value: f.object.major placeholder: "#{t(:major, scope: 'activerecord.attributes.educational_experiences')}" %> | |
| <%= f.text_field :minor, value: f.object.minor placeholder: "#{t(:minor, scope: 'activerecord.attributes.educational_experiences')}" %> | |
| <% unless f.object.new_record? %> | |
| <%= f.hidden_field :_destroy %> | |
| <%= link_to "[remove]", "#", class: "remove_fields" %> | |
| <% end %> | |
| </fieldset> |
This file contains hidden or 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
| <fieldset> | |
| <%= f.text_field :university, placeholder: "#{t(:university, scope: 'activerecord.attributes.educational_experiences')}" %> | |
| <%= f.text_field :major, placeholder: "#{t(:major, scope: 'activerecord.attributes.educational_experiences')}" %> | |
| <%= f.text_field :minor, placeholder: "#{t(:minor, scope: 'activerecord.attributes.educational_experiences')}" %> | |
| <%= f.hidden_field :_destroy %> | |
| <%= link_to "[remove]", "#", class: "remove_fields" %> | |
| </fieldset> |
This file contains hidden or 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
| # Configure Amazon S3 uploading | |
| CarrierWave.configure do |config| | |
| config.fog_credentials = { | |
| :provider => 'AWS', | |
| :aws_access_key_id => ENV['AWS_ACCESS_KEY_ID'], | |
| :aws_secret_access_key => ENV['AWS_SECRET_ACCESS_KEY'], | |
| } | |
| config.fog_directory = 'files.waxpoeticrecords.com' | |
| config.fog_public = false # optional, defaults to true | |
| config.fog_attributes = {'Cache-Control'=>'max-age=315576000'} # optional, defaults to {} |