Skip to content

Instantly share code, notes, and snippets.

@mjromper
mjromper / .block
Last active October 16, 2018 10:16
qsefe-auth0.yaml
license: gpl-3.0
@mjromper
mjromper / index.html
Created May 9, 2018 14:03
Hello World in React // source http://jsbin.com/bonabazise
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World in React</title>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="http://qlikgear.tk/anon/resources/autogenerated/qlik-styles.css">
/*-- SELECTION BAR */
.qv-panel-current-selections {
border: 1px solid #dddddd;
background: transparent;
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
max-height: 38px;
}
@mjromper
mjromper / embed-bbc-news.html
Last active December 2, 2016 11:42
sense-styles
<blockquote class="embedly-card" data-card-key="c7c09021c02d4b05bbb9845d43b3df28" data-card-type="article-full"><h4><a href="http://www.bbc.co.uk/news/business-37785383">Barclays shares lift FTSE 100 index - BBC News</a></h4><p>Shares in Barclays were the best performer on the FTSE 100 after the bank reported a rise in third-quarter profits, boosted by a strong performance in its investment banking business. It also set aside a further £600m to cover PPI mis-selling claims. The bank's shares rose 4.8% to close at 189.65p.</p></blockquote>
<script async src="//cdn.embedly.com/widgets/platform.js" charset="UTF-8"></script>
@mjromper
mjromper / bash_profile
Last active August 29, 2015 14:27
git prompt
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
PATH=$PATH:~/sbin
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
@mjromper
mjromper / controllers.js
Last active August 29, 2015 14:25
Angular Navigation
function getQueryParams(qs) {
qs = qs.split('+').join(' ');
var params = {},
tokens,
re = /[?&]?([^=]+)=([^&]*)/g;
while (tokens = re.exec(qs)) {
params[decodeURIComponent(tokens[1])] = decodeURIComponent(tokens[2]);
}
@mjromper
mjromper / README.md
Last active March 20, 2021 14:29 — forked from mbostock/.block
SVG Performance Test

Wait until number of points recommended stops.

h1, h2, h3, h4 {
transition: none;
-webkit-transition: none;
-moz-transition: none;
}
#swipebox-overlay {
background: rgba(0,0,0,0.7);
}
#tubular-container{
z-index: -99 !important;
navigator.getMedia = ( navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia);
navigator.getMedia (
// constraints
{
video: true,