- Install ESP Tool if you don't have it already.
- Download fullhaboot.bin file.
- Connect serial adapter cable:
- 3.3v -> 3.3v
- RX -> TX
| [role="main"] [data-pagelet="Stories"], | |
| #ssrb_stories_end + div, | |
| #ssrb_rhc_start + [data-pagelet="RightRail"], | |
| [role="navigation"] [aria-label^="Watch"], | |
| [role="navigation"] [aria-label^="Marketplace"], | |
| [role="navigation"] [aria-label^="Gaming"], | |
| [role="navigation"] [aria-label^="Home"], | |
| [role="navigation"] [aria-label^="Groups"] | |
| { | |
| display: none !important; |
| function pvm() { | |
| if [ "$1" = "" ]; then | |
| echo "Please specify PHP version to run." | |
| return 1 | |
| elif [ "$1" = "use" ]; then | |
| if [ "$2" = "" ]; then | |
| echo "Please specify a PHP version." | |
| return 1 | |
| elif test -f "/Applications/MAMP/bin/php/php$2/bin/php"; then | |
| export PATH=/Applications/MAMP/bin/php/php$2/bin:$PATH |
| IR Remote HEX codes for Broadlink RM devices | |
| Original Plugin: https://github.com/lprhodes/homebridge-broadlink-rm | |
| Better Fork: https://github.com/kiwi-cam/homebridge-broadlink-rm | |
| IR Code Database: http://irdb.tk/find/ | |
| Covert Pronto HEX to LIRC: https://gist.github.com/rcarmo/a268972c6173acab8eaa59b56c8d6367 |
Two colors provide good color visibility if the brightness difference and the color difference between the two colors are greater than a set range.
Color brightness is determined by the following formula:
((Red value X 299) + (Green value X 587) + (Blue value X 114)) / 1000
Note: This algorithm is taken from a formula for converting RGB values to YIQ values. This brightness value gives a perceived brightness for a color.
Color difference is determined by the following formula:
(maximum (Red value 1, Red value 2) - minimum (Red value 1, Red value 2)) + (maximum (Green value 1, Green value 2) - minimum (Green value 1, Green value 2)) + (maximum (Blue value 1, Blue value 2) - minimum (Blue value 1, Blue value 2))
The rage for color brightness difference is 125. The range for color difference is 500.
| <?php | |
| $data = file_get_contents('http://www.cma-cgm.com/ebusiness/tracking/search?SearchBy=Container&Reference=CONTAINER_NUMBER'); | |
| $exp = explode('class="date-current"', $data); | |
| $exp = explode('data-move="status', $exp[1]); | |
| preg_match('/(.+\>)(.+)(\<.+)/', $exp[1], $matches); | |
| echo $matches[2]; |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| class SayWinner extends Command | |
| { | |
| /** | |
| * The name and signature of the console command. |
| set currentTime to current date | |
| if the weekday of currentTime is Saturday or the weekday of currentTime is Sunday then | |
| display notification "It's " & weekday of currentTime & "! Poor you!" with title "APP3null GmbH" | |
| end if | |
| set volume output volume 30 | |
| tell application "Mail" to activate |
I hereby claim:
To claim this, I am signing this object: