Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| <?php | |
| return [ | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Allowed IP Addresses | |
| |-------------------------------------------------------------------------- | |
| | Include an array of IP addresses or ranges that are allowed access to the app when | |
| | it is in maintenance mode. |
| <?php | |
| if ( ! function_exists('is_admin_ip')) | |
| { | |
| /** | |
| * Checks whether an IP address exists in a given array of IP addresses | |
| * | |
| * @return boolean | |
| */ | |
| function is_admin_ip($ip) |
| App::down(function() | |
| { | |
| if ( ! is_admin_ip(Request::getClientIp())) | |
| { | |
| return Response::view('maintenance', [], 503); | |
| } | |
| }); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| a { | |
| font-family: Arial; | |
| color: white; | |
| text-shadow: 1px 2px 1px #000000; |
| $(document).ready(function() { | |
| $('a[rel="external"]').click( function() { | |
| window.open( $(this).attr('href') ); | |
| return false; | |
| }); | |
| }); |
| //animates to top of page | |
| $('html, body').animate({ | |
| scrollTop: $(".selector").offset().top | |
| }, 2000); |
| App::down(function() | |
| { | |
| if ( ! in_array(Request::getClientIp(), ['10.0.2.2'])) | |
| { | |
| return Response::view('maintenance', [], 503); | |
| } | |
| }); |
TL;DR - Gmail sucks balls.
display:block on inline elements, e.g. span. Use default block elements like div or p.background-image. Use a fallback colour and make sure the text is still legible.background-image but ignores background-position. Stupid Gmail.| { | |
| "response_type": "in_channel", | |
| "text": "```\nTokens Leaderboard\n--------------------\nSid: 10\nRohan: 10\n```" | |
| } |