Skip to content

Instantly share code, notes, and snippets.

View playerx's full-sized avatar
🃏

Ezeki Zibzibadze playerx

🃏
  • Jok Entertainers Inc.
  • Tbilisi, Georgia
View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
Question ID,Question,Concise Answer,Step-by-Step Professional,Funny Answer,Emoji Answer,Philosophical Answer,Witty Answer,Metaphorical Answer,Pop Culture Reference
1,How to Start a Garden?,Choose a sunny spot. Prepare soil with compost. Plant seeds or seedlings. Water regularly and weed as needed.,1. Choose a location with at least 6 hours of sunlight. 2. Test and enrich soil with compost or fertilizer. 3. Select plants suited for your climate and season. 4. Plant seeds or seedlings according to their spacing needs. 5. Water consistently but avoid overwatering. 6. Mulch to retain moisture and prevent weeds. 7. Monitor for pests and diseases. 8. Harvest when ready and enjoy!,Step 1: Buy plants. Step 2: Forget to water them. Step 3: Buy new plants. Step 4: Repeat until you accidentally grow something.,🌞 Find sunlight → 🏡 Pick a spot → 🌱 Plant seeds → 💦 Water → 🍅 Grow veggies → 🌻 Enjoy flowers!,"A garden is not just a patch of earth but a reflection of growth, patience, and nurture. Cultivate the soil as you cul
@playerx
playerx / rxjs_experiment.ts
Created July 8, 2020 17:33
RXJS + defineProperty
import { BehaviorSubject } from "rxjs";
const user$ = new BehaviorSubject<User>(null);
const state: State = {
user: null
};
Reflect.defineProperty(state, "user", {
get: () => {
@playerx
playerx / .env
Last active May 6, 2024 10:39
Script for importing batch data import from csv to MongoDB
MONGO_DB=
@playerx
playerx / docker-registry-clean.sh
Created June 13, 2019 17:01 — forked from qoomon/docker-registry-clean.sh
Docker Registry v2 / Remove orphan layers left by the "file" storage backend of the docker registry, heavily inspired by https://gist.github.com/shepmaster/53939af82a51e3aa0cd6
#!/bin/sh
base_dir=/cluster/registry/docker/registry/v2
repository_dir=$base_dir/repositories
image_dir=$base_dir/blobs
output_dir=$(mktemp -d)
all_images=$output_dir/all
used_images=$output_dir/used
import { ApolloServer, gql, makeExecutableSchema } from 'apollo-server'
import { applyMiddleware } from 'graphql-middleware'
const books = [
{
title: 'Harry Potter',
author: 'J.K. Rowling',
},
]
@playerx
playerx / paxata-without-toolbar.js
Last active August 21, 2017 11:13
Remove header toolbar from Paxata
if (location.search.indexOf('skipHeader') > -1) {
$('.main-header > nav > .btn-group.nav-dropdown').remove()
$('.main-header > nav > ul > li:last-child').remove()
$('ui-view[name=header] ul > li:first-child').remove()
$('ui-view[name=header] ul > li:last-child').remove()
}
@playerx
playerx / Startup.cs
Created July 17, 2017 10:42
simple router for asp.net core
services.AddRouting();
app.UseRouter(route =>
{
route.MapGet("{*url}", context =>
{
return context.Response.SendFileAsync(Path.Combine(env.WebRootPath, "index.html"));
});
static EmailFormat(control: AbstractControl) {
var EMAIL_REGEXP = /^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i;
if (!control.value){
return { "invalid_email_format": true };
}
if (control.value != "" && (control.value.length <= 5 || !EMAIL_REGEXP.test(control.value))) {
return { "invalid_email_format": true };
"prepublish": {
"destination": {
"js": "wwwroot/js/lib/",
"css": "wwwroot/css/lib/"
},
"libs": [
"./node_modules/@angular/common/bundles/common.umd.js",
"./node_modules/@angular/compiler/bundles/compiler.umd.js",
"./node_modules/@angular/core/bundles/core.umd.js",
"./node_modules/@angular/forms/bundles/forms.umd.js",
/// <binding ProjectOpened='watch' />
const
gulp = require("gulp"),
file = require('gulp-file'),
concat = require("gulp-concat"),
uglify = require("gulp-uglify"),
sass = require('gulp-sass'),
sourcemaps = require('gulp-sourcemaps'),
tsc = require('gulp-typescript'),