Skip to content

Instantly share code, notes, and snippets.

config.logger = ActionSupport::TaggedLogging.new(
TestApp.new(config.paths['log'].first)
)
config.log_tags = [lambda { |req|
session = Session.find_by_session_id(req.cookie_jar["_test_app"])
uid = 'nil'
unless session.nil?
session_hash = Marshal.restore(Base64.decode64(session.data))
if session_hash['user']
@umdstu
umdstu / diffs
Last active August 29, 2015 14:15
-gem 'rails', '3.2.3'
+gem 'rails', '3.2.21'
-gem 'mocha', '0.12.10', :require => false
+gem 'mocha', :require => false
plus all dependencies of rails3.2.21 updated.
@umdstu
umdstu / command
Last active August 29, 2015 14:16
.elem_match(analytics: {analytic: 'ana1'}).asc('analytics.ana1.score')
$ ember server
version: 0.2.7
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/#watchman for more info.
Livereload server on port 35729
Serving on http://localhost:4200/
2015-07-01 10:40 ember[10544] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
events.js:85
throw er; // Unhandled 'error' event
^
Started GET "/" for 127.0.0.1 at 2015-070-23
Processing by ApplicationController#ng as HTML
undefined method `split' for nil:NilClass
Filter chain halted as :authenticate rendered or redirected
Completed 401 Unauthorized in 1ms
<!-- ng/components/projects/_ana.html -->
doesn't works
<div ng-controller='NavController'>
<div ng-if='auth.isAuthenticated()'>
<div class='slideInLeft' ng-include='topnav'></div>
<div class='slideInLeft' ng-include='sidenav'></div>
</div>
</div>
Failure
test_test(DocControllerTest) [/local/proj/app/test/functional/docs_controller_test.rb:2]:
The recognized options <{"controller"=>"docs",
"action"=>"pdf",
"id"=>"aaaaaaa"} did not match <{"controller"=>"docs",
"action"=>"pdf",
"id"=>"aaaaaaa",
"opt"=>"blah blah"}>, difference: <{"opt"=>"blah blah"}> ...
clang: error: unsupported option '-V -isysroot'
..
..
clang: error: unknown argument: 'qversion'
..
..
conftest.c:10:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated
angular.module('app')
.factory('UserService', [
'$http',
'LocalService',
function($http, LocalService) {
var service = {};
var _id,
_token,
_profile,