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
| BitlyError in TweetsController#show | |
| INVALID_URI - '500' | |
| Rails.root: /Users/alexharris/Sites/twhatever | |
| Application Trace | Framework Trace | Full Trace | |
| app/controllers/tweets_controller.rb:38:in `show' | |
| Request | |
| Parameters: |
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
| > rake generate | |
| ## Generating Site with Jekyll | |
| identical source/stylesheets/boilerplate.css | |
| identical source/stylesheets/mixins.css | |
| error sass/sidr.scss (Line 13: Undefined mixin 'box-shadow'.) | |
| identical source/stylesheets/sidr.css | |
| error sass/structure.scss (Line 22: Undefined variable: "$darkBlue".) | |
| identical source/stylesheets/structure.css | |
| identical source/stylesheets/styles.css | |
| error sass/theme.scss (Line 2: Undefined variable: "$white".) |
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
| players = $('.players').children(); | |
| currentPlayer = players[offset/100]; | |
| currentPlayer.classList.add('current-player'); |
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
| function randomQuestion(){ | |
| question = mainQuestionArray[Math.floor(Math.random()*mainQuestionArray.length)]; | |
| return question; | |
| } | |
| function questionPopover(){ | |
| $('.desktop-question').popover({ | |
| placement: 'bottom', | |
| trigger: 'click', |
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
| Template.linksList.helpers({ | |
| links: function() { | |
| return Links.find(); | |
| } | |
| }); |
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
| $subdomains = ['atlanta', 'berkeley', 'columbus']; | |
| foreach ($subdomains as $subdomain) { | |
| if (isset($_ENV['PANTHEON_ENVIRONMENT']) && | |
| ($_SERVER['HTTP_HOST'] == $subdomain . '.yoursite.com') && | |
| // Check if Drupal or WordPress is running via command line | |
| (php_sapi_name() != "cli")) { | |
| $newurl = 'http://www.yoursite.com/' . $subdomain . '/'. $_SERVER['REQUEST_URI']; | |
| header('HTTP/1.0 301 Moved Permanently'); |
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
| import PaletteBuilder from 'vue-palette-builder' // import the component | |
| export default { | |
| components: { | |
| PaletteBuilder // register the component | |
| }, | |
| data() { | |
| return { | |
| palette: [] // create a variable called "palette" to hold the output | |
| } |
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
| 1. First, download a theme from https://underscores.me/ | |
| 2. Follow this tutorial: https://paulund.co.uk/using-tailwind-css-in-your-wordpress-theme | |
| 3. Replace the contents of webpack.mix.js with the following: | |
| ``` | |
| const mix = require('laravel-mix'); | |
| const tailwindcss = require('tailwindcss'); | |
| mix.postCss('./theme-style.css', './style.css', | |
| tailwindcss('./tailwind.config.js') |