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
| set(GUMBO_SOURCES | |
| gumbo-parser/src/attribute.h | |
| gumbo-parser/src/attribute.c | |
| gumbo-parser/src/char_ref.h | |
| gumbo-parser/src/char_ref.c | |
| gumbo-parser/src/error.h | |
| gumbo-parser/src/error.c | |
| gumbo-parser/src/gumbo.h | |
| gumbo-parser/src/insertion_mode.h | |
| gumbo-parser/src/parser.h |
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 | |
| // src/DoctrineExtensions/Query/Mysql/Distance.php | |
| namespace App\DoctrineExtensions\Query\Mysql; | |
| use Doctrine\ORM\Query\AST\Functions\FunctionNode; | |
| use Doctrine\ORM\Query\Lexer; | |
| use Doctrine\ORM\Query\Parser; | |
| use Doctrine\ORM\Query\SqlWalker; |
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 | |
| // [TODO] Update below parameters | |
| define('MAILGUN_KEY', 'XXX-XXX...XXX'); | |
| define('MAILGUN_URL', 'https://api.mailgun.net/v3/mg.domain.tld'); | |
| define('MAIL_FROM', '[email protected]'); | |
| define('MAIL_REPLY', '[email protected]'); | |
| function mailgun($to, $subject, $body, array $params = []) { | |
| $data = array_merge([ |
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
| namespace Examle | |
| { | |
| public class Typeahead | |
| { | |
| public readonly Dictionary<string, string> Countries = new Dictionary<string, string> | |
| { | |
| { "AF", "Afghanistan" }, | |
| { "AL", "Albania" }, | |
| { "DZ", "Algeria" }, | |
| { "AS", "American Samoa" }, |
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 resize($el) { | |
| const data = $el.data('center'); | |
| if (data.x) { | |
| const w_width = $(window).width(); | |
| const e_width = $el.width(); | |
| const margin = (w_width - e_width) / 2; | |
| $el.css('left', margin) | |
| } | |
| if (data.y) { | |
| const w_height = $(window).height(); |
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
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| const handleLogout = () => { | |
| axios.post('/logout') | |
| .then(() => location.href = '/home') | |
| }; | |
| function Example() { | |
| return ( |
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
| #!/bin/bash | |
| sudo nano /lib/systemd/system/bluetooth.service | |
| ## Changes >> | |
| ExecStart=/usr/lib/bluetooth/bluetoothd | |
| ## --- TO --- | |
| ExecStart=/usr/lib/bluetooth/bluetoothd --experimental | |
| ## << Changes |
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
| ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
| update_config=1 | |
| country=IN | |
| network={ | |
| ssid="VPZ" | |
| psk="SecretWifiPassword" | |
| key_mgmt=WPA-PSK | |
| } |
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
| const e = str => { | |
| const replacements = { | |
| '&': '&', | |
| '<': '<', | |
| '>': '>', | |
| "'": ''', | |
| '"': '"', | |
| }; | |
| return str.replace(/[&<>"']/g, match => replacements[match]) | |
| }; |
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 App\Twig; | |
| use Symfony\Component\HttpFoundation\RequestStack; | |
| use Twig\Extension\AbstractExtension; | |
| use Twig\TwigFunction; | |
| class ActiveExtension extends AbstractExtension | |
| { |