name: tufte-viz description: | Ideate and critique data visualizations using Edward Tufte's principles from "The Visual Display of Quantitative Information." Use this skill when: (1) Designing new data visualizations or charts (2) Critiquing or improving existing visualizations (3) Reviewing dashboards or reports for graphical integrity (4) Deciding between visualization approaches (5) Reducing chartjunk or improving data-ink ratio (6) Planning small multiples or high-density displays
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
| <?php | |
| declare(strict_types=1); | |
| use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector; | |
| use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector; | |
| use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector; | |
| use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector; | |
| use Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector; | |
| use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector; |
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
| // Corona Ampel Berlin Widget | |
| // | |
| // Copyright (C) 2020 by map <mail@map.wtf> | |
| // | |
| // Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. | |
| // | |
| // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL | |
| // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
| // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER | |
| // IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE |
(Assuming a Debian 8-like system)
-
Install
prometheus-node-exporter$ sudo apt update && sudo apt install prometheus-node-exporter -
Configure
prometheus-node-exporterto expose metrics only tolocalhost, not on to all networks. Modify file/etc/default/prometheus-node-exporter:# Set the command-line arguments to pass to the server.
- For your local dev, create a
Dockerfilethat is based on your production image and simply installxdebuginto it. Exemple:
FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
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
| /* | |
| Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013 | |
| */ | |
| .select2-container { | |
| margin: 0 0 1rem 0; | |
| position: relative; | |
| vertical-align: middle; | |
| font-family: inherit; | |
| -webkit-appearance: none !important; | |
| font-size: 0.875rem; |
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
| <?php | |
| namespace Acme\Bundle\Command; | |
| use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Input\InputInterface; | |
| use Symfony\Component\Console\Output\OutputInterface; | |
| use Symfony\Component\HttpFoundation\RedirectResponse; |
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
| function exceptionalException(message) { | |
| 'use strict'; | |
| if (exceptionalException.emailErrors !== false) { | |
| exceptionalException.emailErrors = confirm('We had an error reporting an error! Please email us so we can fix it?'); | |
| } | |
| } | |
| //test | |
| //exceptionalException('try 1!'); | |
| //exceptionalException('try 2!'); |
I have managed to install this… and make it work. I implemented it for Facebook and Google, but you can extend it. My solution it is mostly as described in #116, with a bit of more code presented. The key aspects that lack in the #116 presentation (IMO) are:
- the registration as service of your custom FOSUBUserProvider (with the necessary parameters)
- set the service for
oauth_user_providerin thesecurity.ymlwith your custom created service
Here are the steps:
- Routing. In
routing.ymlI have added all the routes for both bundles. - Configuration. I have set the
config.ymlmostly as it is presented in the HWIOAuthBundle. - Security. I have set the
security.ymlmostly as it is presented in the HWIOAuthBundle (though my routes are using/loginpattern, not/connect). Also, theoauth_user_provideris set for my custom service.
NewerOlder