Skip to content

Instantly share code, notes, and snippets.

View ricklopez's full-sized avatar

Rick Lopez ricklopez

View GitHub Profile
@ricklopez
ricklopez / gh-pages-deploy.md
Created November 12, 2016 22:36 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@ricklopez
ricklopez / gist:f074095405c78ea839d1542390a4d138
Created November 13, 2016 20:05 — forked from mgedmin/gist:9547214
Setting up a Jenkins slave on Linux
# This is how you add a Jenkins slave
# On master:
sudo -u jenkins -H ssh-keygen
# On slave
adduser --system --group --home=/var/lib/jenkins-slave --no-create-home --disabled-password --quiet --shell /bin/bash jenkins-slave
install -d -o jenkins-slave -g jenkins-slave /var/lib/jenkins-slave
@ricklopez
ricklopez / device.css
Created May 18, 2017 20:59 — forked from jsoverson/device.css
Quick css hacks to target android/ios
.visible-android {
display:none;
}
.visible-ios {
display:none;
}
.on-device .visible-android, .on-device .visible-android {
display:inherit;
}
.device-ios .visible-android {

Introduction to Software / Web Development

  1. Humans and Written Languages (10 min)
    1. Breaking down the following English sentence.
      1. "Hello. Did you know that it is 271 days until my birthday!"
      2. Our eyes and brains have been trained to interpret characters and symbols.
    2. Morse code
      1. We can teach our brains and eyes to interpret other languages
      2. Let's interpret the following message
  2. ... --- ...
@ricklopez
ricklopez / The Technical Interview Cheat Sheet.md
Created July 13, 2018 01:04 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@ricklopez
ricklopez / gist:ffbc39a9a565755635cfed4ea9033e45
Created September 19, 2018 03:47 — forked from asabaylus/gist:3071099
Github Markdown Heading Anchors

Anchors in Markdown

To create an anchor to a heading in github flavored markdown. Add - characters between each word in the heading and wrap the value in parens (#some-markdown-heading) so your link should look like so:

[create an anchor](#anchors-in-markdown)

@ricklopez
ricklopez / cmder-in-webstorm.md
Created September 21, 2018 00:23 — forked from sadikaya/cmder-in-webstorm.md
Cmder inside Webstorm terminal
  1. Set an environment variable called CMDER_ROOT to your root Cmder folder (in my case C:\Program Files (x86)\Cmder). It seems to be important that this does not have quotes around it because they mess with concatenation in the init script.
  2. In your IntelliJ terminal settings, use "cmd" /k ""%CMDER_ROOT%\vendor\init.bat"" as the Shell path. The double-double-quotes are intentional, as they counteract the missing double quotes in the environment variable.
@ricklopez
ricklopez / Knex-Setup.md
Created December 14, 2019 00:08 — forked from NigelEarle/Knex-Setup.md
Setup Knex with Node.js

Knex Setup Guide

Create your project directory

Create and initialize your a directory for your Express application.

$ mkdir node-knex-demo
$ cd node-knex-demo
$ npm init
@ricklopez
ricklopez / Knex-Setup.md
Created December 14, 2019 00:08 — forked from NigelEarle/Knex-Setup.md
Setup Knex with Node.js

Knex Setup Guide

Create your project directory

Create and initialize your a directory for your Express application.

$ mkdir node-knex-demo
$ cd node-knex-demo
$ npm init
@ricklopez
ricklopez / fetch-api-examples.md
Created February 21, 2020 02:58 — forked from justsml/fetch-api-examples.md
JavaScript Fetch API Examples