A tab-to-menu layout that doesn't use javascript. Modern browser compatible.
A Pen by Jake Albaugh on CodePen.
Hi, I'm just your average pen. Kinda new here, just lookin' for frenz.
UPDATE: My cousin pen#JoVrdw joined CodePen!
A Pen by Jake Albaugh on CodePen.
Turns Sass integers and decimals into commafied strings for those of us that like putting CSS in the DOM. Basically, it makes a comma-separated list containing sliced sets of three numbers, converts the list to a string, and then removes spaces in the string. Would need to do a two-step replace on commas and decimals to get 1.000,20 format.
A Pen by Jake Albaugh on CodePen.
###Initial String { "user": { "username": "jakealbaugh", "email": "jake@example.com" }, "number": 1 }
###Desired String
###Initial String ["1", '123', "0.5", "10.5", "10.50", " 1 ", "1,000", ".5", "5.", "1.0.0", 1, "Windows 98"] ###Desired String [1, 123, 0.5, 10.5, 10.50, 1, "1,000", ".5", "5.", "1.0.0", 1, "Windows 98"] ###Goal: "Remove quotes surrounding valid integers or floats" ####Find Pattern ["'] *(\d+(.\d+)?) *["']
["'] finds beginning of string (either " or ').
[] wraps character class[] wrapper and simplify to " or ' if all your strings are quoted the same way.| #!/bin/sh | |
| # for each text file, convert corresponding video | |
| for FILE in *.txt; do | |
| # get movie file name | |
| FILE_NAME=${FILE%.*} | |
| # if movie exists | |
| if [ -a "raw/$FILE_NAME.mp4" ]; then |
| # for each mp4 file in current directory | |
| for FILE in *.mp4 | |
| do | |
| # get name of file sans the extension | |
| NAME=${FILE%.*} | |
| # make directory with file name | |
| mkdir $NAME | |
| # generate screens: currently 4 screens per second, starting at 1 second, for 5 seconds. |