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
| // ==UserScript== | |
| // @name Stop the Medium The Pay Wall | |
| // @namespace StopThePayWall | |
| // @version 1 | |
| // @include *medium* | |
| // @include *datascience* | |
| // ==/UserScript== | |
| async function abc () { | |
| var resp = (await fetch(location, { "credentials": "omit", "headers": { "Accept": "text/html,text/xhtml,text/xml,*/*", "Connection": "keep-alive", }, "method": "GET", "mode": "cors" })); |
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
| // ==UserScript== | |
| // @name Add AlpineJs to Tailwind UI | |
| // @namespace http://tampermonkey.net/ | |
| // @version 3.0 | |
| // @description Add Alpine JS code to Tailwind Ui copy/paste | |
| // @author https://gist.github.com/KevinBatdorf/8bd5f808fff6a59e100dfa08a7431822 | |
| // @match https://tailwindui.com/components/* | |
| // @grant none | |
| // ==/UserScript== |
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
| .animated-placeholder { | |
| background: linear-gradient(-90deg, #eef2f6, #ffffff, #bcbfc3); | |
| background-size: 400% 400%; | |
| -webkit-animation: left-to-right 3s ease infinite; | |
| -moz-animation: left-to-right 3s ease infinite; | |
| animation: left-to-right 3s ease infinite; | |
| } | |
| @-webkit-keyframes left-to-right { |
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
| {{-- | |
| Icon view component for Laravel 7. | |
| @disclaimer The icons used in this component are taken from "Refactoring UI Heroicons" (md-outline collection). | |
| For more info https://github.com/refactoringui/heroicons by Steve Schoger & Adam Wathan. | |
| @copyright MIT | |
| @author Maurizio <https://twitter.com/mauriziolepora> |
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
| <script src="{{ asset('js/app.js') }}"></script> | |
| <script> | |
| let logComponentsData = function () { | |
| window.livewire.components.components().forEach(component => { | |
| console.log(component.name); | |
| console.log(component.data); | |
| }); | |
| }; | |
| document.addEventListener("livewire:load", function(event) { |
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 | |
| // Register these inside a service provider: | |
| Blade::directive('route', function ($expression) { | |
| return "<?php echo route({$expression}) ?>"; | |
| }); | |
| Blade::directive('routeIs', function ($expression) { | |
| return "<?php if (request()->routeIs({$expression})) : ?>"; |
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
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
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
| Route::get('/', function (\Illuminate\Http\Request $request) { | |
| $initialSearch = $request->query('search', ''); | |
| $userQuery = User::query() | |
| ->when($request->filled('search'),function($query) use ($initialSearch){ | |
| $query->where('name','LIKE','%'.$initialSearch.'%') | |
| ->orWhere('email','LIKE','%'.$initialSearch.'%'); | |
| }); |
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
| /* dragging logic for nomadlist.com/dating */ | |
| /* by @levelsio */ | |
| /* MIT license */ | |
| /* <dragging logic> */ | |
| $('body').on('mousedown touchstart','.card',function(e) { | |
| if(!currentCardUserId) return; | |
| if($('card.match_card').is(':visible')) return; | |
| if(typeof e.originalEvent.touches !=='undefined') { | |
| /* touch device */ |
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
| name: Format PHP | |
| on: | |
| pull_request: | |
| paths: | |
| - '*.php' | |
| jobs: | |
| php-cs-fixer: | |
| runs-on: ubuntu-latest |