Skip to content

Instantly share code, notes, and snippets.

View georgebullock's full-sized avatar
↗️
Leveling up

George Bullock georgebullock

↗️
Leveling up
View GitHub Profile
@georgebullock
georgebullock / window_sliding_in_javascript.js
Created January 28, 2023 12:14 — forked from scaryguy/window_sliding_in_javascript.js
Window Sliding Technique in JavaScript
// This gist is for my YouTube video which I tried to explain Window Sliding Technique.
// You can watch it from here: https://youtu.be/ZlnZkfEcbxs
//
// Given an array of integers of size ‘n’. Calculate the maximum sum possible
// for ‘k’ consecutive elements in the array.
//
// Input : [10, 20, 30, 40, 50, 60, 70]
//
// k = 3
// Output : 180
@georgebullock
georgebullock / two_pointers.js
Created January 28, 2023 12:13 — forked from scaryguy/two_pointers.js
Two Pointers Technique (in JavaScript)
// This gist is for my YouTube video which I tried to explain Window Sliding Technique.
// You can watch it from here: https://youtu.be/guDU5HnLqAs
// Given a sorted array A (sorted in ascending order), having N integers,
// find if there exists any pair of elements (A[i], A[j]) such that
// their sum is equal to X.
//
// Input: A = [2,3,4,5,6,7,8,9], k= 10
// Output: true
// NOTE: We slightly changed the question and the output in the video. We're returning pair indexes as an array.
@georgebullock
georgebullock / George Bullock README.md
Last active June 16, 2026 16:29
George Bullock README.md

George Bullock README.md

I’m a senior IC-track product leader with a technical and business background. I’m motivated by aligning cross-functional teams on product strategy, creating enough clarity in vague situations to act, and building products that deliver expected business value.

Most recently, I owned Staffbase’s external communications product, taking it from proof of concept to closed beta and open beta until a strategic pivot away from external communications led to reassignment. I then joined Staffbase’s App / Intranet group, where I owned Social and Community features including chat, communities, and employee recognition. Before Staffbase, I was Product Lead at mobileJobs, where I improved the core product, launched two new products, led an analytics initiative, and supported leadership with product due diligence work tied to M&A.

I started my career in finance and corporate development, then moved into growth-oriented marketing focused on acquisition, conversion optimization, and analytics. T

@georgebullock
georgebullock / clean_code.md
Created November 11, 2020 07:18 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@georgebullock
georgebullock / comment-tags.md
Last active April 29, 2020 13:19
React Interactive Dashboard Draft MySQL Schema v1.0.0
field type specs
comment_id INT(11)
@georgebullock
georgebullock / react-interview-questions.md
Last active April 19, 2020 13:46
React Interview Questions

REACT INTERVIEW QUESTIONS

1 What is React?

React is JavaScript library that makes it easy develop UI

2 What are the major features of React?

  • Virtual DOM
  • Templating via JSX
  • Data handling via props
  • State management via state
@georgebullock
georgebullock / frontend-interview-questions.md
Last active October 7, 2021 19:04
Frontend Interview Questions

FRONTEND INTERVIEW QUESTIONS

1 - Which version control systems are you familiar with? How do you share code between projects in a lossless way?

I'm familiar with git and subversion.

I know of three options for sharing code between projects:

  • Cut and paste - Share code manually. Low coupling. High maintenance.
@georgebullock
georgebullock / react-unit-test-structure.md
Last active October 21, 2020 14:05
A generic template for structuring React unit tests. The template uses Jest, but it can be adapted to work with other testing libraries.

How to Structure React Unit Tests (with Jest)

Main Template

// A utility method for working with test props (can also be imported)
const createTestProps = (props) => {
  return {
    // common props
    id: 1,
    productTitle: `Lightsaber`,
@georgebullock
georgebullock / react-testing-library-reference.md
Last active March 20, 2020 13:36
A React Testing Library Reference

React Testing Library Reference

Querying Your React Tree

React Testing Library has methods for several types of queries. There are six query method variants:

  • getBy*() - returns the first matching element and throws when an element not found or more than one element found;
  • queryBy*() - returns the first matching element but doesn’t throw;
  • findBy*() - returns a promise that resolves with a matching element, or rejects when an element not found after a default timeout or more than one element found;
  • getAllBy*(), queryAllBy*(), findAllBy*(): same as above but return all found elements, not just the first one.

And the queries are:

@georgebullock
georgebullock / villains.json
Created March 7, 2020 19:07
Villains.json is a file that I use for mocking API requests.
[
{
"name":"Hugo Drax",
"bio":"Plotted to poison Earth's atmosphere from space via a nerve agent.",
"picture":"https://dummyimage.com/600x400/000000/fff&text=D",
"skills":[{"html":50},{"css":30},{"javaScript":95}]
},
{
"name":"Alec Trevelyan",
"bio":"Mastermined a plot to use an EMP weapon to destroy London's economy",