-
The new rake task assets:clean removes precompiled assets. [fxn]
-
Application and plugin generation run bundle install unless
--skip-gemfile
or--skip-bundle
. [fxn] -
Fixed database tasks for jdbc* adapters #jruby [Rashmi Yadav]
-
Template generation for jdbcpostgresql #jruby [Vishnu Atrai]
This file contains 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
#------------------------------------------------------------------------------- | |
# This module is meant to be included in the Base class of an STI model | |
# hierarchy. | |
# | |
# Heavily inspired by a couple key blog posts | |
# http://code.alexreisner.com/articles/single-table-inheritance-in-rails.html | |
# http://coderrr.wordpress.com/2008/04/22/building-the-right-class-with-sti-in-rails/#comment-1826 | |
# | |
# Thanks to Alex and coderrr! | |
#------------------------------------------------------------------------------- |
This file contains 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
source 'https://rubygems.org' | |
gem 'rails', '3.2.1' | |
gem 'haml-rails' | |
gem 'rails-backbone' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
group :development, :test do |
This file contains 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
<% if @home_visit.errors.any? %> | |
/* Hide the flash notice div */ | |
$("#flash_notice").addClass('hidden') | |
/* Update the html of the div phone-call-errors with the new one */ | |
$("#home_visit_errors").html("<%= escape_javascript(errors_for(@home_visit).html_safe) %>"); | |
/* show the div phone-call-errors */ | |
$("#home_visit_errors").removeClass('hidden'); | |
<% else %> |
This file contains 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
#/usr/bin/env bash | |
rm -rf ./.pngs | |
rm -rf ./.gifs | |
mkdir .pngs | |
mkdir .gifs | |
ffmpeg -i $1 -r 10 ./.pngs/out%04d.png | |
sips -s format gif ./.pngs/*.png --out ./.gifs | |
gifsicle ./.gifs/*.gif --optimize=3 --delay=3 --loopcount --resize 720x405 --colors=255 > $1.gif | |
gifsicle --unoptimize $1.gif | gifsicle --dither --colors 48 --resize-fit-width 512 -O2 `seq -f "#%g" 0 2 213` -o $1.optimized.gif | |
rm -rf $1.gif |
This file contains 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 MatchMaker | |
# This method matches the volunteers with the request criteria and notifies them through | |
# email and sms. Volunteers can accept this request by clicking on a link sent in the email | |
# or sending an sms to <NO>. | |
# | |
# The student can freeze on a volunteer by clicking on a link provided next to the volunteer | |
# details and close this request. | |
# | |
# Then the actual searching starts by building the criteria for search. Various search scopes | |
# are merged together to form complete search criteria which is passed on to Oracle to do the |
This file contains 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
require 'jammit' | |
namespace :deploy do | |
def run(*cmd) | |
system(*cmd) | |
raise "Command #{cmd.inspect} failed!" unless $?.success? | |
end | |
task :prod do |
This file contains 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
nuxt:build Building... +0ms | |
[AXIOS] Base URL: https://now-staging.hl.com/ , Browser: https://now-staging.hl.com/ | |
nuxt:build App root: /Users/aslam/Work/hl-student-web +0ms | |
nuxt:build Generating /Users/aslam/Work/hl-student-web/.nuxt files... +0ms | |
nuxt:build Generating files... +5ms | |
nuxt:build Generating routes... +17ms | |
nuxt:build Building files... +26ms | |
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. | |
- configuration.module.rules[2].use should be one of these: | |
non-empty string | function | object { loader?, options?, query? } | function | [non-empty string | function | object { loader?, options?, query? }] |
This file contains 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
{ | |
"name": "hl-student-web", | |
"version": "1.0.0", | |
"description": "Web Client", | |
"author": "Syed Aslam", | |
"engines": { | |
"node": "6.11.0", | |
"npm": ">=3.10.10", | |
"yarn": ">=0.27.5" | |
}, |
This file contains 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
module.exports = { | |
/* | |
** Router config | |
*/ | |
router: { | |
middleware: ['namespace', 'check-auth'] | |
}, | |
/* | |
** Headers of the page | |
*/ |