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
{ | |
"workbench.colorTheme": "Vesper", | |
// Fonts | |
"terminal.integrated.fontFamily": "FiraCode Nerd Font", | |
"editor.fontFamily": "Dank Mono", | |
"editor.inlayHints.fontFamily": "Dank Mono", | |
"editor.codeLensFontFamily": "Dank Mono", | |
"scm.inputFontFamily": "Dank Mono", | |
"chat.editor.fontFamily": "Dank Mono", | |
"debug.console.fontFamily": "Dank Mono", |
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
SPOTIPY_CLIENT_ID='' | |
SPOTIPY_CLIENT_SECRET='' | |
SPOTIPY_REDIRECT_URI='http://localhost' |
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
from selenium import webdriver | |
from webdriver_manager.chrome import ChromeDriverManager | |
from selenium.webdriver.common.by import By | |
from time import sleep | |
# | |
url = 'https://github.com' | |
username = "bruh" | |
password= "bruh" |
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
from sensor import Ping360 | |
# Global Variables | |
device = "/dev/ttyUSB0" # the serial port | |
baudrate = 115200 | |
gain = 0 | |
numberOfSamples = 200 # Number of points | |
transmitFrequency = 740 # Default frequency | |
sonarRange = 1 # in m | |
speedOfSound = 1500 # in m/s |
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
public getNeighbours(idx: number): number[] { | |
const neighbours: number[] = [] | |
const size = this.rows * this.cols | |
const w = this.cols | |
const h = this.rows | |
const debug = { | |
cell: idx, | |
n: -1, | |
w: -1, | |
e: -1, |
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
import axios from 'axios' | |
import createAuthRefreshInterceptor from 'axios-auth-refresh' | |
const getCSRFToken = () => { | |
const token: HTMLMetaElement | null = document.head.querySelector( | |
'meta[name="csrf-token"]' | |
) | |
return token?.content | |
} |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
// .env example | |
DATABASE_NAME="" | |
DATABASE_USER="" | |
DATABASE_PASS="" | |
SECRET_KEY="souper_seekret_key" | |
// Example.php You project file | |
<?php | |
require 'vendor/autoload.php'; |
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 | |
// Template HTML (index.html) | |
<p>Welcome {{ name }}!</p> | |
// Rendering | |
require_once '/path/to/composer/autoloader.php'; | |
Twig_Autoloader::register(); |
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 | |
$client = new \GuzzleHttp\Client(); | |
$res = $client->request('GET', 'https://api.github.com/repos/guzzle/guzzle'); | |
echo $res->getStatusCode(); | |
// 200 | |
echo $res->getHeaderLine('content-type'); | |
// 'application/json; charset=utf8' | |
echo $res->getBody(); | |
// '{"id": 1420053, "name": "guzzle", ...}' |
NewerOlder