|
before |
after |
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
| local lastTargetName = nil | |
| -- Create a frame to capture events | |
| local frame = CreateFrame("Frame") | |
| -- Register the frame to listen to the ADDON_LOADED event and PLAYER_TARGET_CHANGED event | |
| frame:RegisterEvent("ADDON_LOADED") | |
| frame:RegisterEvent("PLAYER_TARGET_CHANGED") | |
| -- Function to handle events |
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.+?('|")(front/.+)?_view_name_('|") | |
| / Example: render.+?('|")(front/.+)?place_info('|") |
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
| <script> | |
| ... | |
| init google analytics | |
| ... | |
| <% if defined?(notice) && (notice == t('devise.registrations.signed_up')) %> | |
| // send GA event or pageview about Sucessful sign up here, example | |
| ga('send', 'pageview', '/users/sign_up/success'); | |
| <% end %> | |
| </script> |
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 'favicons'` inside <head> in your `layouts/application.html` (and all other layouts) | |
| link rel="apple-touch-icon" sizes="192x192" href=image_url("favicons/favicon-192x192.png") | |
| link rel="icon" type="image/png" sizes="192x192" href=image_url("favicons/favicon-192x192.png") | |
| / https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/pinnedTabs/pinnedTabs.html | |
| link rel="mask-icon" href=image_url("favicons/safari-pinned-tab.svg") color="#5bbad5" | |
| meta name="theme-color" content="#5bbad5" | |
| / browserconfig.xml https://gist.github.com/aTei/d322dc095f7fc6b0ce857c82d2d1e901 |
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
| { | |
| "name": "YourDomain.com", | |
| "short_name": "YourDomain" | |
| } |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <browserconfig> | |
| <msapplication> | |
| <tile> | |
| <square70x70logo src="<%= asset_path("favicons/mstile-70x70.png") %>"/> | |
| <square150x150logo src="<%= asset_path("favicons/mstile-150x150.png") %>"/> | |
| <square310x310logo src="<%= asset_path("favicons/mstile-310x310.png") %>"/> | |
| <wide310x150logo src="<%= asset_path("favicons/mstile-310x150.png") %>"/> | |
| <TileColor>#ff6e3f</TileColor> | |
| </tile> |
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
| // Ruby on Rails LiveReload only CSS (not a whole page) on SCSS change | |
| // 1. Install LiveReload Chrome extention https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei?hl=en | |
| // 2. Run `rails server` and `gulp watch` | |
| // 3. Click `Enable Livereload` button in Chrome | |
| // 4. Edit you SCSS | |
| // 5. Success! | |
| var gulp = require('gulp'); | |
| var livereload = require('gulp-livereload'); |
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
| #!/usr/bin/env ruby | |
| exec "scss-lint", | |
| "app/", | |
| "--config", "shared/az-misc/config/scss-lint.yml", | |
| "--format", "JSON", | |
| "--out", "scss-lint-log.json" |
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 Memo | |
| classCache: {} | |
| cssCache: {} | |
| addClass: (element, name)-> | |
| @toggleClass(element, name, true) | |
| removeClass: (element, name)-> | |
| @toggleClass(element, name, false) |
NewerOlder