For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
- 100% — FF
| import os | |
| import time | |
| document = open("My Clippings.txt","r") | |
| data = "".join(document.readlines()) | |
| notes = [] | |
| try: | |
| clippings = data.split('==========') | |
| for clip in clippings: |
| <?php | |
| /** | |
| * Get first paragraph from a WordPress post. Use inside the Loop. | |
| * | |
| * @return string | |
| */ | |
| function get_first_paragraph(){ | |
| global $post; | |
| $str = wpautop( get_the_content() ); |
As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
| import React, {useState, useEffect} from "react" | |
| import {useRouter} from 'next/router' | |
| const Event = ({embed}) => { | |
| const router = useRouter() | |
| const [embedSRC, setEmbedSRC] = useState(embed); | |
| // useEffect(() => { | |
| // const handleRouteChange = () => { | |
| // setEmbedSRC(embed) | |
| // } |
| states = { | |
| 'AK': 'Alaska', | |
| 'AL': 'Alabama', | |
| 'AR': 'Arkansas', | |
| 'AZ': 'Arizona', | |
| 'CA': 'California', | |
| 'CO': 'Colorado', | |
| 'CT': 'Connecticut', | |
| 'DC': 'District of Columbia', | |
| 'DE': 'Delaware', |