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
# Function to print the current state of the board | |
def print_board(board): | |
# Iterate over the board in steps of 3 to print each row | |
for i in range(1, 10, 3): | |
# Print the current row of the board with corresponding values | |
print(f"{i}: {board[i]} {i+1}: {board[i+1]} {i+2}: {board[i+2]}\n") | |
# Function to check if there's a winner | |
def check_win(board): | |
# Define all possible winning combinations |
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
# Function to print the current state of the board | |
def print_board(board): | |
# Iterate over the board in steps of 3 to print each row | |
for i in range(1, 10, 3): | |
# Print the current row of the board with corresponding values | |
print(f"{i}: {board[i]} {i+1}: {board[i+1]} {i+2}: {board[i+2]}\n") | |
# Function to check if there's a winner | |
def check_win(board): | |
# Define all possible winning combinations |
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 | |
/** | |
* @copyright Copyright (c) PutYourLightsOn | |
*/ | |
/** | |
* Blitz config.php | |
* | |
* This file exists only as a template for the Blitz settings. |
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
// Automatically bind internal links to `up-follow` behaviour | |
// Unpoly will already catch and handle links with explicit `up-follow` etc, | |
// so we are safe to assume that if our handler below is triggered, the link | |
// doesn't already have an up- attribute. | |
// | |
// Scenarios to handle: | |
// Hat-tip to https://github.com/instantpage/instant.page/blob/master/instantpage.js | |
// ✅ cmd+click | |
// ✅ empty links | |
// ✅ links to another domain |
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
@push('body-styles') | |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/trix/1.2.0/trix.css"> | |
@endpush | |
<form> | |
<input x-ref="description" id="description" name="description" value='{{ $description }}' type="hidden" /> | |
<div wire:ignore> | |
<trix-editor input="description"></trix-editor> | |
</div> |
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 | |
namespace App\Http\Livewire\App\Organizers\Forms; | |
use App\Http\Livewire\Traits\Form; | |
use App\Models\Organizer; | |
use Livewire\Component; | |
class People extends Component | |
{ |
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
FAIL test/lifecycle.spec.js | |
● callbacks registered within x-created can affect reactive data changes | |
expect(received).toEqual(expected) // deep equality | |
Expected: "baz" | |
Received: undefined | |
51 | Alpine.start() | |
52 | |
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
$\::Send, {ALT DOWN}{TAB}{ALT UP} ;\ to switch to last window | |
$!\::Send \ ;alt+\ to type \ | |
$+!\::Send | ;shift+alt+\ to type | |
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 | |
/* | |
|-------------------------------------------------------------------------- | |
| Application Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register all of the routes for an application. | |
| It's a breeze. Simply tell Laravel the URIs it should respond to | |
| and give it the Closure to execute when that URI is requested. |
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
a | |
about | |
an | |
are | |
as | |
at | |
be | |
by | |
com | |
de |
NewerOlder