Give developers more knowledge about how the classes behave in a non-relative sense: BEM + ITCSS = BEMIT
BEM:
| // 'downloadFile.js', written by blending two solutions: | |
| // 'js-download' https://github.com/kennethjiang/js-file-download | |
| // 'Anders Paulsen' https://blog.jayway.com/2017/07/13/open-pdf-downloaded-api-javascript/ | |
| export function downloadFile(data, filename, mime) { | |
| // It is necessary to create a new blob object with mime-type explicitly set | |
| // otherwise only Chrome works like it should | |
| const blob = new Blob([data], {type: mime || 'application/octet-stream'}); | |
| if (typeof window.navigator.msSaveBlob !== 'undefined') { | |
| // IE doesn't allow using a blob object directly as link href. |
Give developers more knowledge about how the classes behave in a non-relative sense: BEM + ITCSS = BEMIT
BEM:
| var R = require("request"); | |
| var key = process.env.TWITTER_CONSUMER_KEY; | |
| var secret = process.env.TWITTER_CONSUMER_SECRET; | |
| var cat = key +":"+secret; | |
| var credentials = new Buffer(cat).toString('base64'); | |
| var url = 'https://api.twitter.com/oauth2/token'; | |
| R({ url: url, |
| for i in $HOME/local/*; do | |
| [ -d $i/bin ] && PATH="${i}/bin:${PATH}" | |
| [ -d $i/sbin ] && PATH="${i}/sbin:${PATH}" | |
| [ -d $i/include ] && CPATH="${i}/include:${CPATH}" | |
| [ -d $i/lib ] && LD_LIBRARY_PATH="${i}/lib:${LD_LIBRARY_PATH}" | |
| [ -d $i/lib ] && LD_RUN_PATH="${i}/lib:${LD_RUN_PATH}" | |
| # uncomment the following if you use macintosh | |
| # [ -d $i/lib ] && DYLD_LIBRARY_PATH="${i}/lib:${DYLD_LIBRARY_PATH}" | |
| [ -d $i/lib/pkgconfig ] && PKG_CONFIG_PATH="${i}/lib/pkgconfig:${PKG_CONFIG_PATH}" | |
| [ -d $i/share/man ] && MANPATH="${i}/share/man:${MANPATH}" |
| package com.paddypower.financials.market.management.rest.logging; | |
| import java.io.BufferedReader; | |
| import java.io.ByteArrayInputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import javax.servlet.Filter; | |
| import javax.servlet.FilterChain; |
Scenario: you already have an app running at http://your.server.com/ and you want to run Sentry at http://your.server.com/sentry/
I spend a few hours banging my head against this, and finally got it to work. There may be a better way, but I couldn't find it.
Warning: hacky.
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |