Skip to content

Instantly share code, notes, and snippets.

View pbojinov's full-sized avatar

Petar Bojinov pbojinov

View GitHub Profile
@pbojinov
pbojinov / nodejs.errno.h
Created April 18, 2014 19:07
node.js errno descriptions. Useful for debugging.
/* Pulled from https://github.com/joyent/node/blob/master/deps/uv/include/uv.h */
/* Expand this list if necessary. */
#define UV_ERRNO_MAP(XX) \
XX(E2BIG, "argument list too long") \
XX(EACCES, "permission denied") \
XX(EADDRINUSE, "address already in use") \
XX(EADDRNOTAVAIL, "address not available") \
XX(EAFNOSUPPORT, "address family not supported") \
XX(EAGAIN, "resource temporarily unavailable") \
XX(EAI_ADDRFAMILY, "address family not supported") \
@pbojinov
pbojinov / README.md
Last active November 5, 2025 23:10
Two way iframe communication- Check out working example here: http://pbojinov.github.io/iframe-communication/

Two way iframe communication

The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.

Parent

Send messages to iframe using iframeEl.contentWindow.postMessage Recieve messages using window.addEventListener('message')

iframe

@pbojinov
pbojinov / 14377-Tammie-Childs_2025-09-26_self_reflection.html
Created October 3, 2025 21:42
Self-Reflection Report: Tammie Childs - Senior Development Manager (March-September 2025)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Self-Reflection: Tammie Childs - Senior Development Manager</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.js"></script>
<style>
:root {
--primary-color: #5C6AC4;
@pbojinov
pbojinov / 21916-Mido-Kabbara_2025-09-26_self_reflection.html
Created October 3, 2025 21:38
Mido Kabbara Self-Reflection Report - March 24 to September 26, 2025
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Self-Reflection Report: Mido Kabbara - Senior Staff Product Manager, Analytics</title>
<style>
* {
margin: 0;
padding: 0;
@pbojinov
pbojinov / 13460-Susie-Kim_2025-09-26_self_reflection.html
Created October 3, 2025 00:27
Susie Kim Self-Reflection Report - September 2025
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Self-Reflection Report: Susie Kim</title>
<style>
:root {
--shopify-green: #008060;
--shopify-green-dark: #006847;
@pbojinov
pbojinov / 11853-Petar-Bojinov_2025-09-26_self_reflection.html
Created October 3, 2025 00:26
Petar Bojinov Self-Reflection Report 2025 (March-September)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Self-Reflection Report: Petar Bojinov | March - September 2025</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.js"></script>
<style>
:root {
--bg-primary: #ffffff;
var errors = {
// JSHint options
E001: "Bad option: '{a}'.",
E002: "Bad option value.",
// JSHint input
E003: "Expected a JSON value.",
E004: "Input is neither a string nor an array of strings.",
E005: "Input is empty.",
E006: "Unexpected early end of program.",
SOPA Emergency IP list:
Here’s how to access your favorite sites in the event of a DNS takedown
tumblr.com 174.121.194.34
wikipedia.org 208.80.152.201
# News
bbc.co.uk 212.58.241.131
aljazeera.com 198.78.201.252
@pbojinov
pbojinov / enableHotCorners.scpt
Created May 28, 2014 06:19
applescript to enable hot corners
-- By Richard Kulesus, 2009. Released without license!
-- Use this for whatever!
-- I seriously despise code authors who copyright tiny bits of obvious code
-- like it's some great treasure. This is small and simple, and if it saves
-- the next guy some time and trouble coding applescript I'll feel good!
--
-- Quickly change all the hot-corners to do what you want.
-- Particularly useful for presentations and full-screen games.
-- Customize the activity of each hot-corner with "all windows/‌application windows/‌dashboard/‌disable screen saver/‌none/‌notification center/‌show desktop/‌sleep display/‌start screen saver"
-- The MODIFIERS are the keys which can be used to supplement hot-corner activation.
@pbojinov
pbojinov / canada_states_titlecase.json
Last active May 18, 2024 17:28 — forked from mshafrir/states_hash.json
US states & Canadian Provinces in JSON form
[
{
"name": "Alberta",
"abbreviation": "AB"
},
{
"name": "British Columbia",
"abbreviation": "BC"
},
{