Skip to content

Instantly share code, notes, and snippets.

View NickyBobby's full-sized avatar

Nicholas Dorans NickyBobby

View GitHub Profile
@NickyBobby
NickyBobby / how_to_use_segment_tracking.md
Last active October 18, 2021 20:39
How to use Segment Tracking

How to use Segment Tracking

What is Segment?

Great question, reader! Segment is our event management/tracking platform. It is not the 'Destination' of where we store our events but it is our event tracking pipeline. The 'Source' of events are coming from our applications. You can get more about what Segment is here.

How do I add a Segment tracking to my application?

This doc will go over some implementation details to help with adding Segment tracking to new apps and/or existing apps. The code examples will be for Javascript only (more specifically in Vue) but you can see other language implementations here. Here are some code examples:

The Side Hustle

Idea #1

Converting Cannonz Over to Swift and/or Mobile Friendly

  • MVP for this project would be to be able to play this game on my iPhone.
  • Future Iterations
    • More levels
  • Higher level of difficulty

The Plan

Goal #1

Learn React really well

  • I am in the beginning stages of learning React. I've done some tutorials, projects, and help teach a class about it but I still don't full 100% comfortable writing it from scratch. Part of this is because a lot of the JavaScript is written in ES6 which I need to learn better as well.
  • Success to me after one year would be to be able to write an app in React from scratch without any outside help. I would like to be able to do this with a rails back-end but other back-ends would be cool as well.
  • Outline Resources for Learning
  • Online Resources
@NickyBobby
NickyBobby / require-1511.markdown
Created June 12, 2016 23:00 — forked from rrgayhart/require-1511.markdown
The Concept of Require

When you start working with WebPack for GameTime, you'll notice that you can't just define a variable in one file and find it in another as easily as you can in Rails.

Read Node.js, Require and Exports and Organize Your Code with RequireJS

Fork this gist and answer the following questions:

  • In the context of Node, what is a module?
  • The code examples from the second blog post look very different from the first. Why?

Teaching is the Best Way to Learn

Just like the title says, I believe the best way to learn is to teach. Now this is sort of an abstract idea, as I've never been a teacher by profession, but I have been teaching people things for years.

Building a Game in JS and the Maths Involved

Recently I learned JavaScript and while I was two weeks into the learning of JS, I wrote a game. Though it was a paired project so technically Taylor Moore and I wrote the game. It came out really dope and I'm super proud of it. If you feel so inclined, you can play it here. The inspiration for this game was from an old computer game that I used to play as a kid called Gorillaz (it was really called Gorillas but I added the z for dramatic effect). Gorillas was a really fun game and it really simple. There are two gorillas on top of towers, you select the angle and velocity, then shoot an explosive banana. The first person to hit the other gorilla wins. And you can play that here. Now on the surface it seems like a really simple game, but there is a lot of complex math going on behind the scenes. Let me show you some of them maths.

Cannon Barrel Mat

Feedjira VS Nokogiri

I recently got put in a project for an app that scrapes job sites looking for jobs that use particular technologies. The term 'scrape' means you are searching a document (or website) for a particular match and then taking that information for your own purposes. For example, if you were searching for jobs that use Ruby, you may want to parse through all jobs and for each job check to see if the word Ruby is in it. If it matches then you can grab the entire job description and parse it further for more information. This is exactly what we are doing for this application.

When I stepped into this code base, we were using Feedjira to parse information related to each job. There were some problems with the grabbing of locations. The problem was that Feedjira could not target the location tag directly, it had to be grabbed from the job title using regex. Regex is a super powerful to find pattern matches in strings but it was not being used correctly in this case. So I switched the parser ov

Learning JavaScript and React

Intro to JavaScript

  • general syntax
  • going through a simple exercism in JS
  • differences between Ruby and Javascript

Intro to React

  • what is React?

Blog #1

Nokogiri VS Feedjira

What is Nokogiri?

  • Uses for Nokogiri
  • Nokogiri is an HTML, XML, SAX, and Reader parser. The main feature of Nokogiri is the ability to search documents via XPath or CSS3 selectors.
  • Pros of using Nokogiri
  • The pros would be that you can parse multiple types of documents using one parser.
  • Cons with using Nokogiri

Lunch Roulette

Pitch

A slackbot that will automatically generate random lunch groups based on who hasn't had lunch together before. It will also generate restaurant ideas based on location and dietary restrictions. It helps people meet new people and boosts morale.

Problem

Problem I'm trying to stop is exclusivity around the workplace. The more people interact with each together, the better the working environment will be.