Skip to content

Instantly share code, notes, and snippets.

View CalamityAdam's full-sized avatar
🚀
to the moon!

Adam Sisk CalamityAdam

🚀
to the moon!
View GitHub Profile
@CalamityAdam
CalamityAdam / pokeApiData.md
Created June 3, 2022 13:39
PokeApi example
{
  "count": 1126,
  "next": "https://pokeapi.co/api/v2/pokemon/?offset=5&limit=5",
  "previous": null,
  "results": [
    {
      "name": "bulbasaur",
      "url": "https://pokeapi.co/api/v2/pokemon/1/"
[
{
"rank": 1,
"name": "New York City",
"state": "NY",
"population": 8177020
},
{
"rank": 2,
"name": "Los Angeles",
@CalamityAdam
CalamityAdam / regex-cheatsheet.md
Created May 6, 2022 20:55
Regular Expression Cheatsheet
character description example
. Wildcard - matches any character /c.t/.test('cat'); => true
/./.test(''); => false
^ Boundary - beginning of string /^big/.test('big dog'); => true
/^c/.test('abc'); => false
$ Boundary - end of string /dog$/.test('big dog'); => true
/a$/.test('abc'); => false
+ Character occurs 1 or more times /ca+t/.test('caaat'); => true
/ab+c/.test('ac'); => false
* Character occurs 0 or more times /ca*t/.test('ct'); => true
/a*/.test(''); => true
| Or (this or that) /a|b/.test('b'); => true
/at|og/.test('dog'); => true
\x Hex codes (\x and then 2 digits, i.e. \x21 == '!') /\x41/.test('a'); => true
( ) Parens - groups logic together /(^a)|(^b)/.test('ax'); => true

User Story

As a: I would like: so that:

Success Criteria

Resources

URLs

@CalamityAdam
CalamityAdam / jQuery.js
Last active November 8, 2019 04:13
include jQuery in chrome console
// to load jQuery into any website's console
// paste the following into console
var script = document.createElement('script');script.src = "https://code.jquery.com/jquery-3.4.1.min.js";document.getElementsByTagName('head')[0].appendChild(script);
/**
*
* pro-tip: paste the following into bookmark

Code Challenge Instructions

  1. Go to https://learn.co/assignments
  2. Clone the repository to your computer (do not fork) following these instructions:
    1. On the project repository, click the green button: "Clone or Download"
    2. Copy the URL provided
    3. In your terminal: git clone <copied URL>
    4. cd into the project directory
  3. Checkout a new branch
  4. git checkout -b
class Node {
constructor(value) {
this.value = value;
this.next = null;
}
}
class LinkedList {
constructor() {
this.head = null;
@CalamityAdam
CalamityAdam / data.json
Last active January 17, 2019 16:12
tree
[{
"name": "Adam",
"class": "man",
"textClass": "emphasis",
"marriages": [{
"spouse": {
"name": "Megan",
"class": "woman"
},
"children": [{