Skip to content

Instantly share code, notes, and snippets.

@lisawebcoder
lisawebcoder / final-search.html
Created August 19, 2022 14:07 — forked from amitgupta15/final-search.html
Complete code listing
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Search a List</title>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
@lisawebcoder
lisawebcoder / headers.html
Created July 28, 2022 18:50 — forked from prof3ssorSt3v3/headers.html
Code from the video about why fetch headers matter
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Request Headers</title>
<style>
html {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
//fetch using a Request and a Headers objects
//using jsonplaceholder for the data
const uri = 'http://jsonplaceholder.typicode.com/users';
//new Request(uri)
//new Request(uri, options)
//options - method, headers, body, mode
//methods: GET, POST, PUT, DELETE, OPTIONS
@lisawebcoder
lisawebcoder / grab_google_image_urls.md
Created June 12, 2020 02:05 — forked from windsting/grab_google_image_urls.md
grab image urls from google

execute these JavaScript snippet in a google image result page, you'll get those urls in a file named urls.txt:

// pull down jquery into the JavaScript console
var script = document.createElement('script');
script.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(script);

// grab the URLs
var urls = $('.rg_di .rg_meta').map(function(){return JSON.parse($(this).text()).ou;});
@lisawebcoder
lisawebcoder / docker-compose.yml
Created April 17, 2020 19:16 — forked from rubanraj54/docker-compose.yml
Simple MongoDB cluster using docker compose (3 node cluster)
version: '3'
services:
node1:
image: mongo
ports:
- 30001:27071
volumes:
- $HOME/mongoclusterdata/node1:/data/db
networks:
@lisawebcoder
lisawebcoder / README.md
Created May 3, 2019 19:50 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007