Skip to content

Instantly share code, notes, and snippets.

View joeczar's full-sized avatar
⚙️

Joe Czarnomorph joeczar

⚙️
View GitHub Profile
@joeczar
joeczar / input.scss
Created November 16, 2022 07:49
Generated by SassMeister.com.
// Do not edit directly
// Generated on Tue, 15 Nov 2022 10:24:01 GMT
$pbm-red: rgb(191, 34, 71);
$base-dark: rgb(28, 28, 40);
$base-light: rgb(242, 242, 245);
$primary-10: rgb(59, 157, 164);
$primary-20: rgb(98, 177, 182);
$primary-30: rgb(137, 196, 200);
@joeczar
joeczar / ts-jest.md
Created September 22, 2020 18:17 — forked from jackawatts/ts-jest.md
Getting started with Typescript, React and Jest

Getting Started

  1. Install:
  • jest: npm install --save-dev jest
  • ts-jest: npm install --save-dev ts-jest @types/jest
  1. Modify package.json
"jest": {
  "transform": {
 "^.+\\.tsx?$": "ts-jest"
@joeczar
joeczar / comments.js
Created July 25, 2020 16:55
Vue component v-for error: [Vue warn]: Property or method "each" is not defined on the instance but referenced during render.
Vue.component('comments', {
props: ['img'],
data: function () {
return {
comment: '',
username: '',
comments: [],
};
},
mounted: function () {
/*
When a countdown instance is created, it should emit a secondElapsed event every second until it gets to zero,
passing the current number of seconds remaining to any listeners that have been added
*/
const events = require("events");
module.exports = class Countdown extends events.EventEmitter {
constructor(num) {
super();
{
"defaultConnection": "default",
"connections": {
"default": {
"connector": "mongoose",
"settings": {
"uri": "${process.env.DATABASE_URI}",
"database": "${process.env.DATABASE_NAME}"
},
"options": {
{
"defaultConnection": "default",
"connections": {
"default": {
"connector": "mongoose",
"settings": {
"uri": "mongodb://<user>:<passwd>@goal-tracker-shard-00-00-f72do.mongodb.net:27017,goal-tracker-shard-00-01-f72do.mongodb.net:27017,goal-tracker-shard-00-02-f72do.mongodb.net:27017/test?ssl=true&replicaSet=Goal-Tracker-shard-0&authSource=admin&retryWrites=true&w=majority"
},
"options": {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
/* Get Programming with JavaScript
@joeczar
joeczar / install.bash
Last active June 13, 2017 15:54 — forked from isc30/install.bash
Raspberry Pi Install PHP7 + Nginx + MySQL + PhpMyAdmin (last versions)
#!/bin/bash
# Thanks to https://gist.github.com/Lewiscowles1986/ce14296e3f5222082dbaa088ca1954f7
if [ "$(whoami)" != "root" ]; then
echo "Run script as ROOT please. (sudo !!)"
exit
fi
echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" > /etc/apt/sources.list.d/stretch.list
echo "APT::Default-Release \"jessie\";" > /etc/apt/apt.conf.d/99-default-release