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
| // Found at - https://github.com/CulturalMe/meteor-slingshot/issues/50#issuecomment-80965314 | |
| // Add s3 package from atmosphere | |
| AWS.config.update({ | |
| accessKeyId: Meteor.settings.private.amazonS3.AWSAccessKeyId, | |
| secretAccessKey: Meteor.settings.private.amazonS3.AWSSecretAccessKey | |
| }); | |
| var s3 = new AWS.S3(); | |
| var params = { |
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
| Accounts.onCreateUser((options, user) => { | |
| user.city = null; | |
| user.networks = []; | |
| user.attending = []; | |
| if (user.profile == null) { | |
| user.profile = {}; | |
| } | |
| if (user.services != null) { | |
| var service = _.keys(user.services)[0]; |
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
| cat data.json | jq -c -M '.data[]' | \ | |
| while read line; do echo $line > parts/$(date +%s%N).json; done |
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
| var items = []; | |
| $.each($('tr'), function(i, row){ | |
| var item={} | |
| $.each($('td', row), function(index, col){ | |
| switch(index){ | |
| case 0: | |
| var query = $('a', col); | |
| var size = query.size(); | |
| if(size>0){ | |
| item['Intro'] = $(query[0]).attr('href'); |