
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
generator-globegraphic
Advanced tools
Yeoman generator for a Boston Globe graphic. Supports SASS, Compass, Lodash templates, includes Bitbucket/GitHub integration. Concatenates/uglifies/minifies everything to one file.
Also known as MAGIC.
Please note: do not reproduce Boston Globe logos or fonts without written permission.
brew install hub
.sudo npm install -g yo
.sudo npm install -g gulp
.sudo npm install -g generator-globegraphic
.gem install sass compass breakpoint
.sudo npm update -g generator-globegraphic
.mkdir myProject && cd $_
.yo globegraphic
.The generator creates various folders and files. Here's a guide to the important bits.
Put your graphic's html in html/graphic.html
, specifically inside <div id='gf'></div>
.
Put your CSS in css/layout.css
(or css/_layout.scss
, if you're using Sass).
Put your JavaScript in js/globe.graphic.js
, specifically inside the globe.graphic
function. If you need to load external libraries (e.g. Leaflet or D3), there are two ways to do it:
bower install d3 --save
. For Leaflet: bower install leaflet --save
.js/libs
folder.Either way, you'll now have to reference the library in html/js.html
. For example, for D3, add <script src='js/libs/d3/d3.js'></script>
.
The following commands will start a server at http://localhost:5000. The generator will auto-reload the browser on file changes. Hit control+c
to stop either server.
gulp standalone
for standalone graphic.gulp homepage
for homepage graphic.The following commands will create a PROD.jpt. This file will contain everything inlined - HTML, CSS, JS - so you can copy+paste into Methode.
gulp standalone-prod
for standalone graphic.gulp homepage-prod
for homepage graphic.subl
alias.subl globegraphic.sublime-project
. Sublime Text will hide all non-essentials folders and files. Much cleaner!js/templates
, and make sure to name it *.template
(e.g. js/templates/table.template
). The generator will automatically compile all templates to js/templates/templates.js
. Add this file to html/js.html
, and done! To reference the template: window.JST['story.template']({name: "gabriel"})
.MIT © The Boston Globe
FAQs
Yeoman generator
The npm package generator-globegraphic receives a total of 0 weekly downloads. As such, generator-globegraphic popularity was classified as not popular.
We found that generator-globegraphic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.