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
<div wire:onmessage="msg_type_1"> | |
Current time: {{ now() }} | |
</div> |
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 [::]:80; | |
# SSL configuration | |
# listen 443 ssl default_server; | |
# listen [::]:443 ssl default_server; | |
# Set root directive with your /public Laravel directory | |
root /var/www/ghygen.hi-folks.dev/htdocs/public; | |
# Set index directive with index.php | |
index index.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
name: Test Laravel Github action | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- features/** | |
jobs: | |
laravel-tests: |
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, { useState, useEffect } from 'react'; | |
function RollTheDice() { | |
// 001 : declare a new state variable, "dice" to track the current roll. | |
const [dice, setNumber] = useState(0); | |
// 002 : declare a new state variable, "rolls" to track all rolls. | |
const [rolls, setRolls] = useState([]); | |
// 003 : implementing useEffect hook in order to change the title of the page on every changes of value of dice. |
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
{ | |
"Dashboard": "Dashboard", | |
"Manage Account": "Manage Account", | |
"Profile": "Profile", | |
"API Tokens": "API Tokens", | |
"Manage Team": "Manage Team", | |
"Team Settings": "Team Settings", | |
"Create New Team": "Create New Team", | |
"Switch Teams": "Switch Teams", | |
"Logout": "Logout", |
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
# short git log: Comment, Date, Author | |
git log --pretty=format:'%s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
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 | |
require __DIR__ . "/../vendor/autoload.php"; | |
/** | |
* Thanks to clear documentation: | |
* https://developer.twitter.com/en/docs/basics/authentication/oauth-1-0a/creating-a-signature | |
* | |
*/ |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "ES6" | |
}, | |
"exclude": [ | |
"node_modules", | |
"**/node_modules/*" | |
] | |
} |
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
for i in $(ls -1 public/assets/img/markers/*.png);do convert $i -resize 64x64\> $(basename $i) ;done |
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
[].forEach.call( | |
document.querySelectorAll('img[id^="approve_img_"]'), | |
function(select) { | |
select.click(); | |
} | |
) |