This file contains hidden or 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
| Handlebars.registerHelper('equal', function(lvalue, rvalue, options) { | |
| if (arguments.length < 3) | |
| throw new Error("Handlebars Helper equal needs 2 parameters"); | |
| if( lvalue!=rvalue ) { | |
| return options.inverse(this); | |
| } else { | |
| return options.fn(this); | |
| } | |
| }); |
This file contains hidden or 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
| <!-- app/components/dropdown/component.html.erb --> | |
| <div class="relative inline-block text-left" data-controller="dropdown--component"> | |
| <div> | |
| <button type="button" | |
| class="inline-flex justify-center w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" | |
| data-action="click->dropdown--component#toggleMenu" | |
| aria-haspopup="true" | |
| aria-expanded="true"> | |
| <%= @title %> | |
| <!-- Heroicon name: solid/chevron-down --> |
This file contains hidden or 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
| global | |
| maxconn 4096 | |
| user haproxy | |
| group haproxy | |
| daemon | |
| defaults | |
| option dontlognull | |
| retries 3 | |
| option redispatch |
This file contains hidden or 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 Dashing.TflStatus extends Dashing.Widget |
This file contains hidden or 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 goes in application.js | |
| // Using this, the confirmation alerts on Rails 3.1 will be replaced with this behaviour: | |
| // The link text changes to 'Sure?' for 2 seconds. If you click the button again within 2 seconds the action is performed, | |
| // otherwise the text of the link (or button) flips back and nothing happens. | |
| $.rails.confirm = function(message, element) | |
| { | |
| var state = element.data('state'); | |
| var txt = element.text(); | |
| if (!state) |
This file contains hidden or 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
| <%= turbo_frame_tag dom_id(stock) do %> | |
| <%= stock.ticker %> is <%= stock.price %> | |
| <% end %> |
This file contains hidden or 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
| <%= render 'fast_part' %> | |
| <%= render 'slow_part' %> |
This file contains hidden or 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
| <%= turbo_frame_tag :switch do %> | |
| <%= button_to switch_path do %> | |
| <%= switch.state %> | |
| <%= hidden_field_tag :state, switch.state %> | |
| <% end %> | |
| <% end %> |
This file contains hidden or 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
| <%= button_to switch_path do %> | |
| <%= switch.state %> | |
| <%= hidden_field_tag :state, switch.state %> | |
| <% end %> |
This file contains hidden or 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
| package utils | |
| import ( | |
| "context" | |
| "errors" | |
| "fmt" | |
| "sync" | |
| ) | |
| type ObjectID string |
NewerOlder