- EditorConfig # support for project .editorconfig files
- Emmet # css / html shortcuts
- GitGutter # show git status in gutter
- Handlebars # handlebars support
- SidebarEnhancements # sane sidebar controls
- StringEncode # string encoding tools
- SublimeLinter # linting...
- annotations
- csslint
- [contrib-eslint]
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
| <form accept-charset="UTF-8" action="/payment" class="cardInfo" method="post"> | |
| <fieldset class="cardInfo__cardDetails"> | |
| <div class="form-row cardInfo__cc-num"> | |
| <label for="cc-num"><abbr title="required">*</abbr><span>Card Number</span></label> | |
| <div class="cc-num__wrap"> | |
| <!-- using type="tel" because type="number" doesn’t pass HTML5 form validation with jQuery.payment formatting --> | |
| <input id="cc-num" type="tel" class="paymentInput cc-num" placeholder="•••• •••• •••• ••••" autocompletetype="cc-number" required="required"> | |
| <span class="card" aria-hidden="true"></span> |
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
| # http://editorconfig.org | |
| root = true | |
| [*] | |
| indent_style = tab | |
| indent_size = 4 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true |
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
| def spotify | |
| self.validate_spotify_auth_token if self.spotify_auth_token.present? | |
| config = { | |
| :access_token => self.spotify_auth_token, # initialize the client with an access token to perform authenticated calls | |
| :raise_errors => true, # choose between returning false or raising a proper exception when API calls fails | |
| # Connection properties | |
| :retries => 0, # automatically retry a certain number of times before returning | |
| :read_timeout => 10, # set longer read_timeout, default is 10 seconds | |
| :write_timeout => 10, # set longer write_timeout, default is 10 seconds |
If both the upstream and your feature branch have made changes to Gemfile, you will likely receive merge conflicts on Gemfile.lock when you rebase your feature branch. Don't try to resolve these manually; you'll probably just screw it up. Instead do this:
git checkout --ours Gemfile.lock
bundle
git add Gemfile.lock
git rebase --continue
This ensures that you get a correct Gemfile.lock at each step along the way.
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
| // MIT Licensed | |
| // Author: jwilson8767 | |
| /** | |
| * Waits for an element satisfying selector to exist, then resolves promise with the element. | |
| * Useful for resolving race conditions. | |
| * | |
| * @param selector | |
| * @returns {Promise} | |
| */ |
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
| After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
| The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
| Database files have to be updated before starting the server, here are the steps that had to be followed: | |
| # need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
| brew unlink postgresql | |
| brew install postgresql@9.6 | |
| brew unlink postgresql@9.6 | |
| brew link postgresql |
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
| export function transitionIn (el, show = () => {}) { | |
| const attrs = getXAttrs(el, 'transition') | |
| // If any transition attrs. | |
| if (attrs.filter(attr => ['enter', 'enter-start', 'enter-end'].includes(attr.value)).length > 0) { | |
| transitionClassesIn(el, attrs, show) | |
| } else { | |
| // If not, just show that damn thing. | |
| show() | |
| } |
OlderNewer