Skip to content

Instantly share code, notes, and snippets.

@fj1
fj1 / cassidoo325.js
Created November 12, 2023 19:22
Cassidoo #325
/**
* https://buttondown.email/cassidoo/archive/quality-is-not-an-act-it-is-a-habit-will-durant/
*
* Given a list of words and a dictionary of letter scores,
* find the word with the highest score according to the rules:
* score = word_length * (sum of letter scores in the word).
*
* If there are multiple words with the same highest score,
* return the lexicographically smallest one.
*
@fj1
fj1 / cassidoo320.js
Created October 7, 2023 20:42
Cassidoo #320
/**
* https://buttondown.email/cassidoo/archive/perseverance-is-failing-19-times-and-succeeding/
*
* Given two integers source and target,
* add operators in the source number to make it equal target, if possible.
* You can return just one, or all possibilities for this!
*
* Example:
* > addOperators(123, 6)
* > ["1*2*3", "1+2+3"]
@fj1
fj1 / cassidoo319.js
Created September 28, 2023 21:54
Cassidoo #319
/**
* https://buttondown.email/cassidoo/archive/i-love-mistakes-because-its-the-only-way-you/
*
* Using the PokéAPI (or your own local setup): https://pokeapi.co/
* write a function that takes in a Pokémon type,
* and returns what that type is weak against, and strong against.
* Here is the listing of types: https://pokeapi.co/api/v2/type/
* and here's an example JSON for the fighting type: https://pokeapi.co/api/v2/type/2
*
* Examples:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Shoestring.css Style Guide</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./css/shoestring/0.0.1/shoestring-dev.css">
<style type="text/css">
@fj1
fj1 / curri.css
Created April 28, 2014 18:45
curri duplicate
/* top navigation section */
.top_left {
display: inline-block;
background-color: #f6f7f9;
width: 34%;
height: 100px;
float: left;
}