Skip to content

Instantly share code, notes, and snippets.

View AsaoluElijah's full-sized avatar

Asaolu Elijah AsaoluElijah

View GitHub Profile
@AsaoluElijah
AsaoluElijah / express-server-side-rendering.md
Created January 4, 2020 13:28 — forked from joepie91/express-server-side-rendering.md
Rendering pages server-side with Express (and Pug)

Terminology

  • View: Also called a "template", a file that contains markup (like HTML) and optionally additional instructions on how to generate snippets of HTML, such as text interpolation, loops, conditionals, includes, and so on.
  • View engine: Also called a "template library" or "templater", ie. a library that implements view functionality, and potentially also a custom language for specifying it (like Pug does).
  • HTML templater: A template library that's designed specifically for generating HTML. It understands document structure and thus can provide useful advanced tools like mixins, as well as more secure output escaping (since it can determine the right escaping approach from the context in which a value is used), but it also means that the templater is not useful for anything other than HTML.
  • String-based templater: A template library that implements templating logic, but that has no understanding of the content it is generating - it simply concatenates together strings, potenti
@AsaoluElijah
AsaoluElijah / meta-tags.md
Created January 3, 2020 00:49 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@AsaoluElijah
AsaoluElijah / README-Template.md
Created December 22, 2019 07:32 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@AsaoluElijah
AsaoluElijah / mine_tweets_db.py
Created May 27, 2019 22:56 — forked from nickhargreaves/mine_tweets_db.py
Mine tweets by keyword, date and location boundaries using Python and Tweepy and load into mysql database
import tweepy
from tweepy import Stream
from tweepy import OAuthHandler
from tweepy.streaming import StreamListener
import json
import datetime
import MySQLdb;
consumer_key = ''
consumer_secret = ''