This file contains 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
const data = require('./Slack/javascript/2018-05-14.json'); | |
const usersExport = require('./Slack/users.json'); | |
// Load all users into memory. | |
const users = {}; | |
const contributors = {}; | |
usersExport.forEach(user => { | |
users[user.id] = user.profile.display_name_normalized ? user.profile.display_name_normalized : user.profile.real_name_normalized; | |
}); |
This file contains 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
id: the_content | |
label: Your Content Migration | |
migration_group: whatever_you_call_this_group | |
source: | |
plugin: your_content_source | |
destination: | |
plugin: entity:your_content_type | |
process: |
This file contains 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
<?php | |
/** | |
* Implements hook_preprocess_HOOK for field--field-structured-content-section.html.twig | |
*/ | |
function TEMPLATE_preprocess_field__field_structured_content_section(&$variables) { | |
$items = $variables['items']; | |
foreach ($items as &$item) { | |
$paragraph = $item['content']['#paragraph']; | |
$para_type = $paragraph->getType(); |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "forwarded_port", guest: 80, host: 8080 |
This file contains 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
on_stylesheet_saved do |filename| | |
system("drush cc css-js") | |
end |
This file contains 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
# See the following for references: | |
# * http://www.metacircus.com/hacking/2011/02/18/play-git-like-a-violin.html | |
# * http://cheat.errtheblog.com/s/git/ | |
# * http://pyrtsa.posterous.com/aligning-your-git-logs | |
# * http://blog.apiaxle.com/post/handy-git-tips-to-stop-you-getting-fired/ | |
# Git >v1.7.10 lets you include external files | |
# Put your user configuration in here, so it never | |
# accidentally gets checked in | |
[include] |