Skip to content

Instantly share code, notes, and snippets.

View masone's full-sized avatar
🚗

Christian Felder masone

🚗
View GitHub Profile
FORMAT: 1A
HOST: http://localhost:3003/
# legalwalls
## Walls [/walls]
### List walls [GET]
+ Response 200 (application/json)

invalid jquery / image-size

npm ERR! invalid: [email protected] /Users/cfelder/livingdocs/nzz-server/node_modules/livingdocs-server/node_modules/image-size-stream/node_modules/image-size
npm ERR! invalid: [email protected] /Users/cfelder/livingdocs/nzz-server/node_modules/livingdocs-server/node_modules/livingdocs-framework/node_modules/jquery

run:

npm install [email protected]
var Reflux;
Reflux = require('reflux');
module.exports = Reflux.createActions(['wall_selected', 'wall_unselected', 'wall_focussed', 'wall_unfocussed', 'walls_load', 'fit_bounds', 'set_center', 'set_zoom', 'hide_notification', 'show_notification', 'change_placeholder', 'show_modal', 'hide_modal']);
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAiZmlsZSI6ICIiLAogICJzb3VyY2VSb290IjogIiIsCiAgInNvdXJjZXMiOiBbCiAgICAiIgogIF0sCiAgIm5hbWVzIjogW10sCiAgIm1hcHBpbmdzIjogIkFBQUEsSUFBQTs7QUFBQSxNQUFBLEdBQVMsT0FBQSxDQUFRLFFBQVI7O0FBRVQsTUFBTSxDQUFDLE9BQVAsR0FBaUIsTUFBTSxDQUFDLGFBQVAsQ0FBcUIsQ0FDcEMsZUFEb0MsRUFFcEMsaUJBRm9DLEVBR3BDLGVBSG9DLEVBSXBDLGlCQUpvQyxFQUtwQyxZQUxvQyxFQU1wQyxZQU5vQyxFQU9wQyxZQVBvQyxFQVFwQyxVQVJvQyxFQVNwQyxtQkFUb0MsRUFVcEMsbUJBVm9DLEVBV3BDLG9CQVhvQyxFQVlwQyxZQVpvQyxFQWFwQyxZQWJvQyxDQUFyQiIKfQ==
Starting analysis
Running clog: Done!
== app/custom/livingdocs/es-types/component_card.coffee (3 issues) ==
High overall token complexity. [clog]
Huge number of lines of code in file. [clog]
42-60: Large number of lines of code in function. [clog]
== app/custom/livingdocs/es-types/publication.coffee (2 issues) ==
High overall token complexity. [clog]
❯ gpsh heroku
Counting objects: 524, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (477/477), done.
Writing objects: 100% (524/524), 5.51 MiB | 664.00 KiB/s, done.
Total 524 (delta 72), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching custom git buildpack... done
@masone
masone / eye.rake
Last active August 29, 2015 14:10
Capistrano eye task
namespace :eye do
%w(start stop restart info).each do |cmd|
task cmd.to_sym do
on roles(fetch(:eye_roles)) do |server|
within release_path do
eye_processes(server).each do |name|
execute :bundle, "exec eye #{cmd} #{name}"
end
end
Uncaught Error: Invariant Violation: flattenChildren(...): Encountered two children with the same key, `.$production`. Children keys must be unique. thirdparty.min.js?ts=1409358344v5:24invariant thirdparty.min.js?ts=1409358344v5:24flattenSingleChildIntoContext thirdparty.min.js?ts=1409358344v5:24traverseAllChildrenImpl thirdparty.min.js?ts=1409358344v5:24traverseAllChildrenImpl thirdparty.min.js?ts=1409358344v5:24traverseAllChildren thirdparty.min.js?ts=1409358344v5:24flattenChildren thirdparty.min.js?ts=1409358344v5:24ReactMultiChild.Mixin.mountChildren thirdparty.min.js?ts=1409358344v5:21ReactDOMComponent.Mixin._createContentMarkup thirdparty.min.js?ts=1409358344v5:19(anonymous function) thirdparty.min.js?ts=1409358344v5:19(anonymous function) thirdparty.min.js?ts=1409358344v5:22ReactMultiChild.Mixin.mountChildren thirdparty.min.js?ts=1409358344v5:21ReactDOMComponent.Mixin._createContentMarkup thirdparty.min.js?ts=1409358344v5:19(anonymous function) thirdparty.min.js?ts=1409358344v5:19(anonymous function) t
@masone
masone / rails
Created August 21, 2014 10:10
Thin with SSL as default server for use with rails server. Works with Rubymine.
#!/usr/bin/env ruby
require 'rack'
# Thin SSL workaround
module Rack
module Handler
class Thin
def self.run(app, options={})
app = Rack::Chunked.new(Rack::ContentLength.new(app))
server = ::Thin::Server.new(options[:Host] || '0.0.0.0',
[101] pry(main)> ParanoidAttributes.only(Person.all, :id, :first_name).first.first_name
=> "Harry"
[102] pry(main)> ParanoidAttributes.only(Person.all, :id, :first_name).first.last_name
ArgumentError: Accessing excluded field last_name
[103] pry(main)> ParanoidAttributes.only(Person.all, :id, :first_name).first.bla
NoMethodError: undefined method `bla' for #<Person:0x007fe9ebbb2768>
@masone
masone / bar1
Created August 22, 2013 15:32
branding.css has different fingerprints
report.js: report-d911aecae84d2d930d578aa7f62287a8.js
report/index.js: report-d911aecae84d2d930d578aa7f62287a8.js
admin.css: admin-a0a48d9e00dd39245caa980508ed360f.css
admin/index.css: admin-a0a48d9e00dd39245caa980508ed360f.css
application.css: application-79a362c3d79b9399b53e38ddd421498e.css
application/index.css: application-79a362c3d79b9399b53e38ddd421498e.css
branding.css: branding-48068931d8d00ce25f671089c291c28c.css
branding/index.css: branding-48068931d8d00ce25f671089c291c28c.css
report.css: report-c208c0c0bcedd54b59a8133c9e6b8f2e.css
report/index.css: report-c208c0c0bcedd54b59a8133c9e6b8f2e.css