First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :developmentThen you'll want to rebuild your Docker container to install the gems
First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :developmentThen you'll want to rebuild your Docker container to install the gems
| function getYAML() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var dest = DocumentApp.openById(PropertiesService.getScriptProperties().getProperty("output_document_id")); | |
| var key = Browser.inputBox("Please enter the key of the Google Spreadsheet containing the content to be generated as a YAML file."); | |
| var source = SpreadsheetApp.openById(key); | |
| var output = "---\nen:\n"; | |
| var sheets = source.getSheets(); | |
| for (var i = 0; i < sheets.length; i++) { |
| sudo apt-get update | |
| sudo apt-get install build-essential chrpath libssl-dev libxft-dev -y | |
| sudo apt-get install libfreetype6 libfreetype6-dev -y | |
| sudo apt-get install libfontconfig1 libfontconfig1-dev -y | |
| cd ~ | |
| export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64" | |
| wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2 | |
| sudo tar xvjf $PHANTOM_JS.tar.bz2 | |
| sudo mv $PHANTOM_JS /usr/local/share | |
| sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin |
$ uname -r
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| Label | Count |
|---|---|
| auto-migrated | 1062577 |
| Priority-Medium | 852268 |
| Type-Defect | 783536 |
| enhancement | 505553 |
| bug | 377913 |
| Type-Enhancement | 155995 |
| question | 102693 |
| feature | 60043 |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| // ⚠ IMPORTANT: this is old and doesn't work for many different edge cases but I'll keep it as-is for any of you want it | |
| // ⚠ IMPORTANT: you can find more robust versions in the comments or use a library implementation such as lodash's `merge` | |
| // Merge a `source` object to a `target` recursively | |
| const merge = (target, source) => { | |
| // Iterate through `source` properties and if an `Object` set property to merge of `target` and `source` properties | |
| for (const key of Object.keys(source)) { | |
| if (source[key] instanceof Object) Object.assign(source[key], merge(target[key], source[key])) | |
| } |
| // If you want inserted images in a CKEditor to be responsive | |
| // you can use the following code. It creates a htmlfilter for the | |
| // image tag that replaces inline "width" and "style" definitions with | |
| // their corresponding attributes and add's (in this example) the | |
| // Bootstrap "img-responsive" class. | |
| CKEDITOR.on('instanceReady', function (ev) { | |
| ev.editor.dataProcessor.htmlFilter.addRules( { | |
| elements : { | |
| img: function( el ) { | |
| // Add bootstrap "img-responsive" class to each inserted image |