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
OPENAI_API_KEY="<YOUR_SECRET_KEY>" | |
OPENAI_ENDPOINT="https://api.openai.com/v1/chat/completions" |
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
<section> | |
<h3>Uptime</h3> | |
<p>Overview of site uptime</p> | |
<div id="heatmap"></div> | |
</section> | |
<script> | |
import {onMount} from 'svelte'; | |
import matrix from 'calendar-matrix'; |
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
# | |
# Executes commands at the start of an interactive session. | |
# | |
# Authors: | |
# Sorin Ionescu <sorin.ionescu@gmail.com> | |
# | |
# Source Prezto. | |
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" |
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
const gulp = require('gulp'); | |
const responsive = require('gulp-responsive'); | |
gulp.task('build:responsive', () => { | |
return gulp | |
.src(['static/media/*.{gif,jpg,jpeg,png}']) | |
.pipe(responsive({ | |
'**/*': [{ | |
width: 2240, | |
height: 320, |
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 | |
/* | |
* OAuth 1.0a client (Example) for Magento 2 | |
* | |
* @see: https://oauth.net/core/1.0a | |
* @see: https://tools.ietf.org/html/rfc5849 | |
*/ | |
class Api | |
{ | |
const OAUTH_VERSION = '1.0'; |
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 | |
if ($argc < 2) { | |
exit('Error: No CSV file provided. Example usage: php script.php input.csv' . PHP_EOL); | |
} | |
if (pathinfo($argv[1], PATHINFO_EXTENSION) !== 'csv') { | |
exit('Error: Provided file is not a CSV.' . PHP_EOL); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
body { | |
font-family: sans-serif; | |
font-size: 1.3em; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Welcome to Vue</title> | |
<script src="https://unpkg.com/vue"></script> | |
<style id="jsbin-css"> | |
.dashboard { | |
display: flex; | |
flex-direction: row; | |
width: 100%; |
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
#!/bin/sh | |
echo "Deleting old publication" | |
rm -rf public | |
mkdir public | |
git worktree prune | |
rm -rf .git/worktrees/public/ | |
echo "Checking out gh-pages branch into public" | |
git worktree add -B gh-pages public origin/gh-pages |
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
:root { | |
--tab-curve-width: 30px; | |
--tabs-border: transparent !important; | |
} | |
*.textbox-input::-moz-placeholder { color:transparent !important; } | |
.tabbrowser-arrowscrollbox .arrowscrollbox-scrollbox { | |
padding-inline-start: 10px !important; | |
} |
NewerOlder