Skip to content

Instantly share code, notes, and snippets.

@geea-develop
geea-develop / vscode-extentions-2024
Last active March 29, 2024 20:39
vscode-extentions-2024
akamud.vscode-theme-onedark
alexcvzz.vscode-sqlite
amazonwebservices.aws-toolkit-vscode
christian-kohler.npm-intellisense
davidanson.vscode-markdownlint
dbaeumer.vscode-eslint
donjayamanne.githistory
donjayamanne.python-environment-manager
donjayamanne.python-extension-pack
dsznajder.es7-react-js-snippets
@geea-develop
geea-develop / vscode-extensions.md
Last active September 27, 2022 14:22
Visual Studio Code extensions
Name: Material Icon Theme
Id: PKief.material-icon-theme
Description: Material Design Icons for Visual Studio Code
Version: 4.15.0
Publisher: Philipp Kief
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme

Name: Debugger for Firefox
Id: firefox-devtools.vscode-firefox-debug
{ "countries": [{"_id":"57a98abc241e64fa038b45b7","name":"Afghanistan","a2":"AF","a3":"AFG","num":4,"itu":"AFG","gec":"AF","ioc":"AFG","fifa":"AFG","ds":"AFG","wmo":"AF","gaul":1,"marc":"af","dial":"93","independent":"Yes\n ","updated_at":"2016-08-09 07:48:12","created_at":"2016-08-09 07:48:12"},{"_id":"57a98abc241e64fa038b45b8","name":"\u00c5land","a2":"AX","a3":"ALA","num":248,"itu":"\u00a0","gec":"\u00a0","ioc":"\u00a0","fifa":"ALD","ds":"FIN","wmo":"\u00a0","gaul":1242,"marc":"\u00a0","dial":"358","independent":"Part of FI\n ","updated_at":"2016-08-09 07:48:12","created_at":"2016-08-09 07:48:12"},{"_id":"57a98abc241e64fa038b45b9","name":"Albania","a2":"AL","a3":"ALB","num":8,"itu":"ALB","gec":"AL","ioc":"ALB","fifa":"ALB","ds":"AL","wmo":"AB","gaul":3,"marc":"aa","dial":"355","independent":"Yes\n ","updated_at":"2016-08-09 07:48:12","created_at":"2016-08-09 07:48:12"},{"_id":"57a98abc241e64fa038b45ba","name":"Algeria","a2":"DZ","a3":"DZA","num":12,"itu":"ALG","gec":"AG","ioc":"ALG","f
@geea-develop
geea-develop / vertafor.dml
Last active January 16, 2020 09:24
CLAIMS 15.2
<dml>
<waterfall-dialog id='main'>
<step>
<!-- TODO: Provide as entry -->
<assign to='cars' value='[ { model: "Audi", plate: "EVR-7733" }, { model: "Mercedes", plate: "CAS-921" } ]' />
<assign to='drivers' value='[ { name: "Bill Gates", id: "422279296" }, { name: "Melinda Gates", id: "422279296" } ]' />
<assign to='profile' value='{ name: "Bill Gates", firstName: "Bill" }' />
<message>I’m Ava, your friendly auto insurance claims bot. I can help you file a claim, check claim status or contact your claim manager.</message>
<!-- <go to='get-profile' /> -->
</step>
/* eslint no-magic-numbers: ["error", { "ignore": [1, 5, 24, 48, 60000, 3600000] }] */
function xMinutesAgo(dateStr) {
const date = new Date(dateStr);
const dateTime = date.getTime();
if (isNaN(dateTime)) {
return dateStr;
}
@geea-develop
geea-develop / size_of.es6
Created November 12, 2019 07:50
Approximate size of object in JS using TypeScript (in KB)
const typeSizes = {
"undefined": () => 0,
"boolean": () => 4,
"number": () => 8,
"string": item => 2 * item.length,
"object": item => !item ? 0 : Object
.keys(item)
.reduce((total, key) => sizeOf(key) + sizeOf(item[key]) + total, 0)
};
@geea-develop
geea-develop / index.html
Created July 31, 2018 07:53 — forked from spasiu/index.html
Modify the Smooch Web SDK by manipulating iframe DOM
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<script type="text/css" id="iframe-stylesheet">
@geea-develop
geea-develop / certInstall.sh1
Created May 13, 2018 16:45
Windows IIS Letsencrypt Powershell create certificate according to ebekker/ACMESharp Quick-Start and @RickStrahl
#install-Module -Name ACMESharp
import-module ACMESharp
$email = "mailto:rick@east-wind.com"
$domain = "codepaste.net"
$alias = "codepaste"
$iissitename = "codepaste.net"
$certname = "codepaste$(get-date -format yyyy-MM-dd--HH-mm)"
$pfxfile = "c:\Admin\Certs\$certname.pfx"
@geea-develop
geea-develop / ExamplePassportTest.php
Created August 5, 2017 12:02 — forked from archy-bold/ExamplePassportTest.php
Testing Passport Authenticated Controllers and Routes in Laravel
<?php
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ExamplePassportTest extends \PassportTestCase
{
use DatabaseTransactions;