Skip to content

Instantly share code, notes, and snippets.

Adrian Maseda amaseda

  • DC
Block or report user

Report or block amaseda

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
amaseda /
Last active Apr 13, 2017

Sample Post

The below snippet is what you would see when viewing a post under the "Text" tab on the Wordpress post edit page.

Things to note...

  • There is a space between each distinct item. For example, there is an empty line both above and below the divider.
  • There is NO DIVIDER below the video. Just above it.
<img class="alignnone size-full wp-image-82171" src="" alt="pwr bttm" width="660" height="440" />
amaseda /
Last active Mar 30, 2017

Big-O Notation Exercises

What is the worst-case time complexity for the following algorithms?


def word_occurrence(word, phrase)
  result = 0
  array  = phrase.split(' ')
amaseda /
Last active Dec 7, 2017


  • Did you preview the post and make sure that everything looks right?


  • Is there an excerpt?
  • Is there a feed image?
  • Does the feed image look correct (e.g., no cut-off text, no cut-off borders)
amaseda /
Created Feb 14, 2017

Count Characters in a String


function count(string) {  
  history = {}{
        .forEach(char => {
amaseda /
Last active Oct 12, 2016
encryption code challenges

Encryption Code Challenges

Team up with a partner and pick a code challenge. You will spend 15 minutes solving it individually. After 15 minutes -- even if you are not finished -- you will spend 10 minutes reviewing review each other's code. Some things to discuss

  • Approach
  • Where you got stuck
  • Opportunities for refactoring


amaseda / follow-the-json.rb
Last active Jul 27, 2016
View follow-the-json.rb
require "httparty"
def retrieve(id=nil)
url = ""
if id
url += "?id=" + id
response = HTTParty.get(url)
new_id = response["follow"].split("?id=")[-1]
View seeds_example.rb
hall_oates = Artist.create({
name: "Hall & Oates",
photo_url: "greatest_band_evar.jpg",
nationality: "Philly"
limp_bizkit = Artist.create({
name: "Limp Bizkit",
photo_url: "fred_durst.png",
nationality: "Jacksonville"

Include the JavaScript SDK on your page once, ideally right after the opening tag.

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); = id;
  js.src = "//";
  fjs.parentNode.insertBefore(js, fjs);
var featureCollection = {
  "type": "FeatureCollection",
  "features": [
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [-77.0339403, 38.9048542]
map.on( "click", function( event ){
  var lat =,
      lng = event.latlng.lng;
  var marker = L.marker([lat, lng]).addTo(map);
  marker.bindPopup("<p>" + + "</p><p>" + event.latlng.lng + "</p>");
You can’t perform that action at this time.