Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Waldo Lavaut waldothedeveloper

🏠
Working from home
View GitHub Profile
@waldothedeveloper
waldothedeveloper / gist:8c76840655b7c503e64fdc4111d342c3
Created Mar 4, 2020
Lading page from TailwindUI Marketing free example
View gist:8c76840655b7c503e64fdc4111d342c3
import React from 'react';
const Landing = () => {
return (
<div data-todo-x-data="{ open: false }" className="relative bg-white overflow-hidden">
<div className="max-w-screen-xl mx-auto ">
<div className="relative z-10 pb-8 bg-white sm:pb-16 md:pb-20 lg:max-w-2xl lg:w-full lg:pb-28 xl:pb-32">
<div className="pt-6 px-4 sm:px-6 lg:px-8">
<nav className="relative flex items-center justify-between sm:h-10 lg:justify-start">
<div className="flex items-center flex-grow flex-shrink-0 lg:flex-grow-0">
@waldothedeveloper
waldothedeveloper / AWSLambdaSimpleSMS.js
Created Feb 21, 2020 — forked from stevebowman/AWSLambdaSimpleSMS.js
AWS Lambda Function to send an SMS message via the Twilio API
View AWSLambdaSimpleSMS.js
console.log('Loading event');
// Twilio Credentials
var accountSid = '';
var authToken = '';
var fromNumber = '';
var https = require('https');
var queryString = require('querystring');
@waldothedeveloper
waldothedeveloper / I dont like line 28
Created Feb 25, 2019
Why I am not conviced of this...
View I dont like line 28
import app from "firebase/app";
import "firebase/firestore";
import "firebase/auth";
const config = {
apiKey: "some_api_key",
authDomain: "example_not_actual_project.firebaseapp.com",
databaseURL: "https://testing_purposes.firebaseio.com",
projectId: "some_project_id",
storageBucket: "",
View wiki.js
error: errorMsg => {
$("#results").append(`<li class="list-group-item list-group-item-danger">Oh no something went wrong...This is a ${errorMsg.status} error, but we'll fix it</li>`);
}
View wiki.js
if (data.query === undefined) {
$("#results").append(
`<div class="list-group">
<div class="list-group-item list-group-item-action flex-column align-items-start">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">Suggestions:</h5>
</div>
<li class="mb-1">Make sure all words are spelled correctly.</li>
<li class="mb-1">Try different keywords.</li>
<li class="mb-1">Try more general keywords.</li>
@waldothedeveloper
waldothedeveloper / wiki.js
Created Jun 5, 2018
The JS file for my Shortcutpedia Freecodecamp challenge of the Wikipedia API
View wiki.js
$(document).ready(() => {
$("#random").click(() => {
return window.open("https://en.wikipedia.org/wiki/Special:Random");
});
let endpoint =
"https://en.wikipedia.org/w/api.php?format=json&action=query&generator=search&gsrnamespace=0&gsrlimit=10&prop=pageimages|extracts&pilimit=max&exintro&explaintext&exsentences=1&exlimit=max&gsrsearch=";
function thisWholeThing() {
@waldothedeveloper
waldothedeveloper / wiki.js
Last active Jun 5, 2018
Binding a click event to our random button on the wikipedia search API challenge from FreeCodeCamp
View wiki.js
$(document).ready(() => {
$("#random").click(() => {
return window.open("https://en.wikipedia.org/wiki/Special:Random");
});
});
@waldothedeveloper
waldothedeveloper / index.html
Created Jun 5, 2018
This is the HTML file for my Wikipedia Viewer from FreeCodeCamp
View index.html
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB"
@waldothedeveloper
waldothedeveloper / index.html
Created May 18, 2018
The HTML for the workaround of the FreeCodeCamp random quotes app
View index.html
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">