Skip to content

Instantly share code, notes, and snippets.

Alex Davydenko 3rdp

  • Ukraine
Block or report user

Report or block 3rdp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View package.json
"name": "hooks-chat",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.1",
"use-immer": "^0.3.3",
"": "^1.0.4"
3rdp / sgdq-2019.txt
Created Jul 2, 2019
schedule from sgdq 2019; a neat list of games
View sgdq-2019.txt
Games Done Quick
Event Info
Community Info
About Us
3rdp /
Last active Jun 6, 2019 — forked from gerad/
git pre-commit hook that checks for debugger / console.log
# An example hook script to verify what is about to be committed.
# Called by git-commit with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
# To enable this hook, make this file executable.
if git-rev-parse --verify HEAD 2>/dev/null
3rdp / history (preparing)
Last active Nov 23, 2018
Answering @ikngtty's question about `***` wildcard in fish shell
View history (preparing)
box@0536908972a6 ~> mkdir -p important/very-important/
box@0536908972a6 ~> mkdir -p usual/
box@0536908972a6 ~> rm important/very-important/ -R
box@0536908972a6 ~> touch important/very-important/
box@0536908972a6 ~> touch
box@0536908972a6 ~> rm -R usual/
box@0536908972a6 ~> touch usual/
box@0536908972a6 ~> vim
3rdp / problem.js
Last active Jun 26, 2019
Hitting hobbits for the first time
View problem.js
/** You need to add right body parts */
const asymHobbitBodyParts = [{name: "head", size: 3},
{name: "left-eye", size: 1},
{name: "left-ear", size: 1},
{name: "mouth", size: 1},
{name: "nose", size: 1},
{name: "neck", size: 2},
{name: "left-shoulder", size: 3},
{name: "left-upper-arm", size: 3},
{name: "chest", size: 10},
3rdp / Complaining.txt
Last active Oct 2, 2018
Embed: Error in console from 'embed.js' file
View Complaining.txt
I work on a project for a blog web-site and I'm trying to resolve the issue I constantly get on an article page.
On an article page, we have a subscribe form. When user posts a request to subscribe to our blog, the error from Disqus embed file pops up in user's browser console: "TypeError: c is null" in Firefox, or "TypeError: Cannot read property 'sender' of null" in Chrome.
I tried to debug the issue and I stumbled upon a global (window.addEv...) 'message' event handler which parses 'data' property of its first parameter as JSON. But! This 'data' parsing is via JSON.parse and JSON.parse(null) throws no error and just returns null, meaning that though Disqus developers embedded the parsing procedure in try-catch statement, the code execution continues until on the next line you try to access property 'sender' of a null.
Can you please resolve the issue?
3rdp / vscode.json
Created Jun 14, 2018
My VSCode settings
View vscode.json
"git.confirmSync": false,
"editor.tabSize": 2,
"window.zoomLevel": -1,
"editor.renderControlCharacters": false,
"explorer.confirmDragAndDrop": false,
"eslint.validate": [
3rdp / .hyper.js
Last active Apr 4, 2018
Git Bash + Hyper
View .hyper.js
module.exports = {
shell: 'C:\\Program Files\\Git\\usr\\bin\\bash.exe',
shellArgs: ['-l', '-i'],
env: {TERM: 'cygwin'},
/** hypercwd plugin breaks */
3rdp / index.js
Created Mar 19, 2018
Scale SVG path; output scaled path to file.
View index.js
const pathast = require('path-ast')
const fs = require('fs')
const pathStr = 'M0.8572927713394165,-1.4711437225341797C0.8572927713394165,-1.4369948508298824,0.8682440455349504,-1.4005078563677493,0.8709338903427124,-1.366212010383606C0.8776826492648646,-1.2801645194985007,0.8804045332926923,-1.1940720868133363,0.8877229690551758,-1.1080797910690308C0.8915414388864679,-1.0632124180838844,0.8846852909889699,-1.0176606977598863,0.8898215889930725,-0.9727177619934082C0.8963484015589094,-0.9156077349521522,0.8963460263068671,-0.8637286793616796,0.8887723088264465,-0.8069254755973816C0.88760593190895,-0.7981775990253006,0.8941220903616892,-0.7752338143373014,0.8887723088264465,-0.7681007385253906C0.8770788784447072,-0.7525094242138122,0.8493030484211967,-0.7501287302461596,0.8321091532707214,-0.7481637001037598C0.7888428424721896,-0.7432189447632457,0.7389142063430592,-0.7438954126416102,0.6956977844238281,-0.7481637001037598C0.6102252345500444,-0.7566054312046374,0.5268991562099881,-0.7773976475199617,0.445960134
3rdp / TrackerPDO.php
Created Mar 8, 2018
Simple logger for PHP
View TrackerPDO.php
class TrackerPDO {
private static $_instance = null;
private static $request_log = array();
private function __construct() {
protected function __clone() {
You can’t perform that action at this time.