I hereby claim:
- I am wkruszewski on github.
- I am wojtekkruszewski (https://keybase.io/wojtekkruszewski) on keybase.
- I have a public key ASCwm0EXrGkwTK4f7JpnXHWAfJYRt84OG10nK1e0lQW3ZAo
To claim this, I am signing this object:
| // Bind to backbone attribute (read/write with get/set, subscribe to change:attribute event): | |
| // data-text="model.@attribute" | |
| // | |
| // Bind to output of function (calls the function to get value, subscribes to 'change' event): | |
| // data-text="model.computedProperty() | |
| // | |
| // Bind to attribute (subscribes to 'change' event): | |
| // data-text="model.attr" | |
| (function(rivets){ |
| module SimpleForm | |
| module Components | |
| module ErrorLabel | |
| def error_label | |
| if has_errors? | |
| @builder.label(label_target, error_text, label_html_options) | |
| end | |
| end | |
| end | |
| end |
| class ExampleTest < ActionView::TestCase | |
| test "example" do | |
| helper_output = "<p class='error'>Yo!</p>" | |
| parsed = HTML::Document.new(helper_output).root | |
| assert_select parsed, "p.error" | |
| end | |
| end |
| Whenever you push to remote that has "production" in its name, | |
| this hook will show commits and changes and then ask for confirmation. | |
| Copy or symlink to .git/hooks/pre-push. | |
| Deployment by pushing code to remote github repo are very convenient | |
| but prone to accidents. I wanted something that would force me to | |
| review what's being pushed. | |
| My Bash-foo is very limited to suggestions for improvements are very welcome. |
| This shit has been bugging me for too long, so I went on a hunt and found a workaround. | |
| The Symptoms are as follows: | |
| * Clicking the address bar results in a 1-4 second delay | |
| * Opening links in new tabs results in a 1-4 second delay | |
| * +T results in a 1-4 second delay | |
| * `PressAndHold[<pid>]: IMKServer Stall detected` is present in `/var/log/system.log` at the time of the hang. | |
| It appears to be to do with the PressAndHold helper - the thing that shows an IOS style selection of accents when you hold a key down. | |
| The fix may have some unwanted effects, I haven't really noticed any. |
| // http://stackoverflow.com/questions/12286332/twitter-bootstrap-remote-modal-shows-same-content-everytime | |
| $(document).on('hidden.bs.modal', '.modal', function () { | |
| var modalData = $(this).data('bs.modal'); | |
| // Destroy modal if has remote source – don't want to destroy modals with static content. | |
| if (modalData && modalData.options.remote) { | |
| // Destroy component. Next time new component is created and loads fresh content | |
| $(this).removeData('bs.modal'); | |
| // Also clear loaded content, otherwise it would flash before new one is loaded. |
| config.middleware.use "Loggo" |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| $ docker build --progress=plain . | |
| #0 building with "desktop-linux" instance using docker driver | |
| #1 [internal] load .dockerignore | |
| #1 transferring context: 2B done | |
| #1 DONE 0.0s | |
| #2 [internal] load build definition from Dockerfile | |
| #2 transferring dockerfile: 1.18kB done | |
| #2 DONE 0.0s |