Google 8.8.8.8 8.8.4.4 https://developers.google.com/speed/public-dns/
Quad9 9.9.9.9 149.112.112.112 https://www.quad9.net/
Cloudflare 1.1.1.1 1.0.0.1 https://1.1.1.1/dns/
AdGuard DNS 94.140.14.14 94.140.15.15 https://adguard-dns.io/en/public-dns.html
Control D 76.76.2.0 76.76.10.0 https://controld.com/free-dns/
OpenDNS Home 208.67.222.222 208.67.220.220 https://www.opendns.com/
CleanBrowsing 185.228.168.9 185.228.169.9 https://cleanbrowsing.org/filters/
Alternate DNS 76.76.19.19 76.223.122.150 https://alternate-dns.com/
DNS.WATCH 84.200.69.80 84.200.70.40 https://dns.watch/index
This file contains 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 // /app/Http/Middleware/Cors.php | |
namespace App\Http\Middleware; | |
use Closure; | |
class Cors { | |
public function handle($request, Closure $next) | |
{ | |
return $next($request) |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
- There are always 24 hours in a day.
- February is always 28 days long.
- Any 24-hour period will always begin and end in the same day (or week, or month).
This file contains 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
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
if [[ "${TRACE-0}" == "1" ]]; then | |
set -o xtrace | |
fi | |
if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then |
This file contains 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
$(document).ready(function() { | |
// Support for AJAX loaded modal window. | |
// Focuses on first input textbox after it loads the window. | |
$('[data-toggle="modal"]').click(function(e) { | |
e.preventDefault(); | |
var url = $(this).attr('href'); | |
if (url.indexOf('#') == 0) { | |
$(url).modal('open'); | |
} else { |
- Ant Design - https://ant.design/
- Atlaskit by Atlassian - https://atlaskit.atlassian.com/
- Base Web by Uber - https://baseweb.design/
- Blueprint by Palantir - https://blueprintjs.com/
- Carbon by IBM - https://www.carbondesignsystem.com/
- Elastic UI by Elastic - https://elastic.github.io/eui/
- Fabric by Microsoft - https://developer.microsoft.com/en-us/fabric
- Gestalt by Pinterest - https://pinterest.github.io/gestalt/
This file contains 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
import { createContext } from 'react' | |
export default createContext(null) |
This file contains 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
{ | |
slate: { | |
50: '#F8FAFC', | |
100: '#F1F5F9', | |
200: '#E2E8F0', | |
300: '#CBD5E1', | |
400: '#94A3B8', | |
500: '#64748B', | |
600: '#475569', | |
700: '#334155', |
This file contains 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
$categories = [ | |
'Arts', | |
'Arts :: Books', | |
'Arts :: Design', | |
'Arts :: Fashion & Beauty', | |
'Arts :: Food', | |
'Arts :: Performing Arts', | |
'Arts :: Visual Arts', | |
'Business', | |
'Business :: Careers', |
This file contains 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 | |
require("postmark.php"); | |
$postmark = new Postmark("your-api-key","from-email","optional-reply-to-address"); | |
$result = $postmark->to("reciver@example.com") | |
->subject("Email Subject") | |
->plain_message("This is a plain text message.") | |
->attachment('File.pdf', base64_encode(file_get_contents('sample.pdf')), 'application/pdf') |
NewerOlder