Skip to content

Instantly share code, notes, and snippets.

View ArturJS's full-sized avatar
🎯
Focusing

Artur ArturJS

🎯
Focusing
View GitHub Profile
@bradtraversy
bradtraversy / mysql_cheat_sheet.md
Last active March 12, 2026 13:40
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@nicoulaj
nicoulaj / docker-compose.yml
Last active April 8, 2021 05:50
Guacamole docker
version: '2.2'
networks:
traefik:
external: true
guacamole:
external: true
services:
guacamole:
//@flow
export type Tree = {
/*::+*/ id: ID,
/*::+*/ kind: 'tree',
/*::+*/ refs: Array<Tree>,
/*::+*/ head: Array<StepValue>,
/*::+*/ tail: Array<Tree>,
/*::+*/ config: {
runInBand: boolean,
},
@ArturJS
ArturJS / TODO.md
Last active February 27, 2019 13:04
Heizenbug debug...

todo: create tool which could get diffs of stack traces and vars values to have easier debugging experience Especially, when you compare similar cases and one of them NOT WORKING!

  1. remove fucking "use strict";
 sed -i -e 's|use strict|LoL|g' dist/davinciDesigner*.js
  1. for each function from call stack execute
@ArturJS
ArturJS / fix-flow-runtime.sh
Created February 27, 2019 10:31
Fix flow-runtime errors and replace them with console.error
#!/bin/bash
sed -i -e 's|throw error;|console.error(error);|g' node_modules/flow-runtime/dist/flow-runtime.umd.js
@corocoto
corocoto / .babelrc
Created January 24, 2019 16:56
Webpack Starter Template
{
"presets": [
"env",
"stage-3"
]
}
@jakub-g
jakub-g / async-defer-module.md
Last active January 26, 2026 07:29
async scripts, defer scripts, module scripts: explainer, comparison, and gotchas

<script> async, defer, async defer, module, nomodule, src, inline - the cheat sheet

With the addition of ES modules, there's now no fewer than 24 ways to load your JS code: (inline|not inline) x (defer|no defer) x (async|no async) x (type=text/javascript | type=module | nomodule) -- and each of them is subtly different.

This document is a comparison of various ways the <script> tags in HTML are processed depending on the attributes set.

If you ever wondered when to use inline <script async type="module"> and when <script nomodule defer src="...">, you're in the good place!

Note that this article is about <script>s inserted in the HTML; the behavior of <script>s inserted at runtime is slightly different - see Deep dive into the murky waters of script loading by Jake Archibald (2013)

@jthomas
jthomas / package.json
Last active September 24, 2023 21:58
Using TensorFlow.js with MobileNet models for image classification on Node.js
{
"name": "tf-js",
"version": "1.0.0",
"main": "script.js",
"license": "MIT",
"dependencies": {
"@tensorflow-models/mobilenet": "^0.2.2",
"@tensorflow/tfjs": "^0.12.3",
"@tensorflow/tfjs-node": "^0.1.9",
"jpeg-js": "^0.3.4"
@zerobias
zerobias / nicknames.md
Last active June 16, 2022 07:44
nicknames
16.06.2022
Дима Zerobias
01.03.2022
⛴➡️🍆