Skip to content

Instantly share code, notes, and snippets.

@arisp8
arisp8 / reviews.json
Last active February 20, 2024 22:31
reviews.json
[
{"reviewText": "Absolutely loved the Margherita pizza here! The crust was just perfect."},
{"reviewText": "The spaghetti carbonara was a bit too salty for my taste. Might try something else next time."},
{"reviewText": "Best pepperoni pizza in town! A must-try for pizza lovers."},
{"reviewText": "Wasn't a fan of the four cheese pasta. It was too heavy and lacked seasoning."},
{"reviewText": "The mushroom pizza had an amazing blend of flavors. Definitely coming back for more."},
{"reviewText": "Tried the seafood pasta. It was undercooked and not what I expected."},
{"reviewText": "The pizza crust was too thick for my liking. Prefer thinner crust pizzas."},
{"reviewText": "Loved the pesto pasta! The sauce was rich and flavorful."},
{"reviewText": "The BBQ chicken pizza lacked BBQ flavor. Was quite disappointed."},
@arisp8
arisp8 / insert.sql
Created December 18, 2023 15:41
(one statement)
INSERT INTO `prefix.table_name` (created_at) VALUES
('2024-08-26 21:02:05.995148'),
('2024-02-07 14:44:10.370606'),
('2024-05-24 13:07:09.540437'),
('2024-03-24 06:04:30.275087'),
('2023-12-15 11:02:31.863878'),
('2024-10-01 10:45:24.416494'),
('2024-09-11 01:35:17.717285'),
('2023-12-26 05:29:36.774685'),
('2024-07-15 10:48:48.950686'),
CREATE table IF NOT EXISTS posts (
created_at TIMESTAMP
);
INSERT INTO posts (created_at) VALUES
('2024-08-26 21:02:05.995148'),
('2024-02-07 14:44:10.370606'),
('2024-05-24 13:07:09.540437'),
('2024-03-24 06:04:30.275087'),
('2023-12-15 11:02:31.863878'),
<html>
<head>
</head>
<body>
<div class="chart-container">
<canvas id="myChart" width="400" height="200"></canvas>
<div id="tooltip">
@arisp8
arisp8 / scrape-medium-earnings.py
Created January 1, 2021 22:29
Scrape Medium Earnings
from seleniumwire import webdriver
import time
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
import json
caps = DesiredCapabilities.CHROME
caps['loggingPrefs'] = {'performance': 'ALL'}
options = webdriver.ChromeOptions()
# Go to: chrome://version
var vm = new Vue({
data: {
a: 1
}
})
// `vm.a` is now reactive
vm.b = 2
// `vm.b` is NOT reactive
<?php
/**
* Get the table associated with the model.
*
* @return string
*/
public function getTable()
{
if (! isset($this->table)) {
@arisp8
arisp8 / 0_reuse_code.js
Created April 13, 2017 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console