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
| server { | |
| listen 80; | |
| listen 443 ssl http2; | |
| server_name example.com www.example.com; | |
| root /home/deploy/example.com/current/public; | |
| error_log /home/deploy/example.com/logs/error.log; | |
| access_log /home/deploy/example.com/logs/access.log; | |
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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteRule ^(.*)$ public/$1 [L] | |
| </IfModule> | |
| AddHandler application/x-httpd-php70 .php |
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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| from itertools import combinations | |
| import random | |
| import time | |
| import timeit | |
| """ | |
| Porównaj różne algorytmy rozwiązujące dyskretny problem plecakowy. |
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 | |
| add_filter('woocommerce_package_rates', 'hide_shipping_methods', 10, 2); | |
| /** | |
| * Hide specific shipping methods for packages with negative cost set. | |
| * There is no need to hard code any IDs of shipping classes or products if you can just set negative value | |
| * on the back-end and then delete these methods on the fly. | |
| * | |
| * @param $rates |
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 | |
| $subject = 'Temat wiadomości'; | |
| $recipient = '[email protected]'; | |
| $output = [ | |
| 'success' => 'Dziękujemy za wiadomość.', | |
| 'error' => 'Coś poszło nie tak. Spróbuj ponownie.', | |
| ]; |
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 debounce from 'lodash/debounce'; | |
| export default { | |
| data() { | |
| return { | |
| loading: false, | |
| query: null, | |
| }; | |
| }, | |
| watch: { |
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 lottieIeFixer = (el, perspective = 'width') => { | |
| if (!window.navigator.userAgent.includes('Windows') && !window.navigator.userAgent.includes('rv:11.0')) { | |
| return; | |
| } | |
| const $el = $(el); | |
| const width = $el.width(); | |
| const height = $el.height(); | |
| const $svg = $el.find('svg'); |
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
| <template> | |
| <html-fragment :html="icon" /> | |
| </template> | |
| <script> | |
| import axios from "axios" | |
| export default { | |
| props: { | |
| name: String, |
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: 2 | |
| jobs: | |
| build: | |
| docker: | |
| - image: circleci/php:7.2-node-browsers | |
| working_directory: ~/repo | |
| steps: | |
| - checkout |
OlderNewer