Skip to content

Instantly share code, notes, and snippets.

# ~/.tmuxinator/balanced-comp.yml
name: balanced-comp
root: ~/code/balanced-comp
# Optional tmux socket
# socket_name: foo
# Runs before everything. Use it to start daemons etc.
# pre: sudo /etc/rc.d/mysqld start
function ErrorReporter(a) {
function b(a) {
try {
a.stack || (a.stack = new Error("make stack").stack, a.stack && (a.stack = a.stack.toString()))
} catch (b) {
}
return "string" != typeof a && (a = JSON.stringify(a)), a
}
function c(b) {
var c = new XMLHttpRequest;
Looking for hungry to learn developers: Pay range in the double digits, depending on drive, NOT experience!
We're looking for someone who is hungry to learn new techs as well as teach us new techs. We don't want you to be bored and stuck in a rut doing menial updates and worthless SEO all day. We want you to want to learn new frameworks and technologies and share your knowledge as well.
Never used Cake? Have a piece and while your at it write a new Model/View/Controller. It's as easy as π.
Want to sit in your own office with a 30 inch Mac Pro or 3? Surrounded by all the most trendy Apple gear? Write some IOS apps for us to sell while you're at it. We'll teach you!
Are you a trendsetter and have been using Laravel since before it was voted the most popular PHP framework of 2013 followed by Phalcon and Symfony2? Come and teach me I want to learn it too!
# Importer::BridgeRow
#
# Associates a row with a transaction
# Determine new or existing employee, pass off to new/existing instance
# Sets messages and state on transaction after processing
require 'importer/transaction_factory'
module Importer
class BridgeRow
---
employees_001:
id: '1'
first_name: Mr.
last_name: President
company_id: '1'
immediate_supervisor_id: '1'
created_at: '2014-07-09 22:17:22.052381'
updated_at: '2014-07-09 22:17:22.071386'
location_id:
def get_validators(validators)
validators.map do |validator|
"importer/row_validation/#{validator.to_s}".classify.constantize.new
end
end
class MoveFinalReviewDateToPerformanceReview < ActiveRecord::Migration
def up
performance_reviews = PerformanceReview.where(final_review_date: nil)
PerformanceReview.skip_callback(:save, :before, :set_employee_position_title)
performance_reviews.each do |pr|
last_review = pr.review_dates.sort { |a,b| a.review_at <=> b.review_at }.last
PerformanceReview.observers.disable :all do
- Create a new admin, must have linked employee?
- Current form doesn't have linked employee fields
- Does creating new admin in master even work?
- If employee is employee or supervisor already, how do we handle restricting multiple roles?
- What about creating an employee/supervisor as a user? How are they listed in the index?
- Should there be edit link in index view?
- Edit user path redirect? -> `redirect_to @user.balanced_results_admin? ? balanced_results_root_path : balanced_results_users_path`
company = Company.find_by_subdomain('southfloridaeducfcu')
company.employees.each do |employee|
last_salary_adjustment = employee.salary_adjustments.last
last_salary_adjustment.effective_date = Date.parse('02/17/2014')
last_salary_adjustment.save
end
module.exports.models = {
// Your app's default connection.
// i.e. the name of one of your app's connections (see `config/connections.js`)
//
// (defaults to localDiskDb)
connection: 'localDiskDb'
};