001 - One Hundred Days of Code
This round of 100DaysOfCode
will be slightly different than the previous round, and three main categories of content will be collected here;
-
coding tips and tricks, much like the previous round
-
occasional challenges issued to readers to break and/or improve code examples
-
and perhaps a few blog-like posts about aspects of a current that I’m authoring for that week
Round 001
-
JavaScript Challenge Sum Parameters
JavaScript challenge for readers to find inputs that produce unintended output
-
Vim Plugin Setup
An overview of how I setup a new Vim plugin project
-
Vim Current Character
Quick Vim script tip on saving a character under the cursor to a variable
-
Vim Escape Newlines
Minor gotcha regarding how to escape newlines within Vim scripts
-
Vim Replace Visual Selection
Quick Vim tip for find/replace text within Visual mode selection
-
Rust Application Module
Quick guide for organizing and using modules within a Rust application
-
Rust String Split Closure
Example of string splitting with a callback closure
-
TypeScript Project Setup
An outline of steps I use to initialize a new TypeScript project
-
JavaScript Array to Iterator
Quick example function for converting an Array to itarable
-
HTML Horizontal Rule
Tips regarding
<hr>
HTML element style -
HTML Quote Elements
Notes, and examples, for
<q>
and<blockquote>
HTML elements -
TypeScript Define Index Types
How to dynamically get/call class properties/methods
-
Rust Enum Functions
Example of adding introspection functions to
enum
types -
JavaScript Iterator Chain
Example of how to chain callback functions with an Iterator/Generator
-
TypeScript Static Methods
Some gotchas, and workarounds, regarding static class methods and TypeScript
-
JavaScript Random UUID
Tips and example code for generating random UUIDs with JavaScript
-
JavaScript Testing Entropy
Questioning how random
Math.random()
really is -
Sed Multiple Expressions
Quick tips on how to use multiple expressions with Sed command-line tool
-
JavaScript Iterator Class
Example of self-modifying Iterator class
-
Vim RegExp Tokens
How to use Regular Expressions with Vim find/replace commands
-
TypeScript Getters and Setters
Type-hints for Object that has
__lookupGetter__
and__lookupSetter__
methods -
Vim Help Escape Backtick
How to display literal backtick input within Vim help documentation
-
TypeScript InstanceType Madness
How to utilize
InstanceType
within nestedstatic
method -
CSS `content` Newlines
Inserting newlines in
content
of::before
and::after
pseudo elements -
Bash Executing User Group
How to get user/group executing
sudo
within Bash script -
TypeScript Extends `tsconfig`
Multiple configuration files for a TypeScript project
-
TypeScript Global Types
How to declare types such that importing is unnecessary
-
Vim System Clipboard
How to enable Linux clipboard support in Vim
-
Git Set Default Editor
How to configure text editor that Git uses by default
-
HTML Newlines in Title Attribute
Inserting newlines within link on-hover text for MarkDown or HTML documents
-
TypeScript Static Type Hints
An experimental way of adding static method, and property, type hints
-
Vim Search then Find and Replace
Slightly advanced Vim Regexp examples for targeted mass-edits
-
Bash Check Pipe STDOUT
How to check if Bash script output is piped
-
Vim JSON to Dictionary
How to read, and parse, JSON files within Vim script
-
JavaScript `valueOf` Method
Example of using
valueOf
on a custom JavaScript class -
Vim Increment/Decrement
Quick keyboard short-cut tip to increment/decrement numbers
-
TypeScript is Not a Number
Few gotchas regarding type hints with
isNaN
methods -
Bash Push and Pop Directory
Scripting and interactive shell trick for changing current working directory
-
Bash Error Traps
Introduction to handling errors in Bash scripts
-
Vim Verbatim
Quick trick for inserting escape codes into Vim buffer
-
Linux Image Conversion
Command-line tools for converting image formats
-
HTML Picture Element
Quick example of utilizing
picture
HTML element -
Vim `v:count` Example
Example of using
v:count
builtin variable -
JavaScript `toString` Method
Example of defining
toString
method on Objects -
Bash Parse Image Metadata
Example of utilizing
exiftool
and Vim macros for formatting script output -
Linux Ranger Text Editor
How to configure Ranger file manager default text editor
-
CSS HTML Image Aspect Ratio
Tips on preventing image squeeze when view port is less-than image width
-
Git Ignore Defaults
Git tips for defining default ignore patters for all repositories
-
TTY Frame Buffer Terminal
Guide on how to enable full color support within TTY terminal sessions
-
JavaScript Unnamed Scopes
Use cases for unnamed scopes in JavaScript console and files
-
Makefile Optional Config
Makefile script example for optional configuration
-
Bash Diff Condense Output
Useful options to condense
diff
output -
JavaScript `Symbol.toPrimitive`
Examples of utilizing
Symbol.toPrimitive
method -
Vim Precise Motions
Vim tricks for moving the cursor position with precision
-
Makefile One-liner Functions
Quick how-to on writing and using Makefile script functions
-
Vim Configure Thesaurus
Guide for adding, and using, thesaurus file(s) with Vim
-
Bash Nested Functions
Tips and gotchas for assigning and using nested Bash functions
-
JavaScript Fonts Ready
Experimental script for detecting when fonts are ready/loaded
-
Vim Script Insert Characters
How to insert text with Ex mode commands
-
Git Diff Tips
Quick
git diff
command-line tip -
Vim Archive Exploring
Overview of archive related Vim builtin features I was happy to find
-
Git Log Tricks
Some useful tips and tricks for Git logging
-
Vim Commented Configurations
Configure Vim via script or file comment
-
JavaScript HTML Element Name
Quick tip for obtaining HTML element name via JavaScript
-
Vim Type Comparisons
How to check type of variable within Vim script
-
JavaScript Array Includes
Tricks for writing succinct JavaScript checks
-
JavaScript Array Every
More tricks for writing succinct JavaScript checks
-
Makefile Root Detection
How to set Makefile variables based on permissions
-
JavaScript Zip Iterators
JavaScript generator function that zips list of iterables
-
Vim Terminal
Quick tips on using terminal within Vim session
-
Bash Temporary Directories and Files
Quick how to on generating temporary directory/file within Bash scripts
-
Vim Save Short-cut
Configurations I use for quickly saving a file buffer
-
JavaScript Comparison Operators
Peek under the hood of how JavaScript compares various data types
-
Awk End Exit Status
Gotcha of Awk exit status being concealed by END block(s)
-
Vim Prepend Runtime
Quick tip for Vim plugin authors
-
Liquid Advanced Includes
Quick tips on dynamic and nested includes with Jekyll flavored Liquid
-
JavaScript Shared Exponent
Function that returns scaling exponent to convert list of floats to integers
-
Vim Tag Hopping
Enabling builtin support for extending tags that Vim will hop between
-
Liquid Relative Includes
Gotchas, and workaround, regarding Liquid relative includes
-
CSS Print Media Query
Some CSS print tips and tricks I’ve picked-up over the years
-
Vim NetRW Customization
Few
.vimrc
tweaks I have found useful -
Linux TTY Set Font
Couple of simple scripts I use for setting TTY font sizes
-
Vim Edit Macro
How to write, read, and edit Vim macros
-
Python Tab Completion
Configuration to enable tab-completion within Python shell
-
Vim Glob
Using glob function to source vim configurations from sub-directories
-
Vim Ex to STDOUT
How to redirect Ex mode command output to standard out
-
Bash globstar
Examples of using shopt to extend globing features of Bash
-
Bash Redirect Function Output
How to redirect output of a Bash function automatically
-
Linux Clipboard Command Line
Tips and tricks for interacting with Linux clipboard via command-line
-
Liquid Includes Scoping Gotchas
Things to keep in mind when writing Liquid includes files
-
Vim Scripted Append
Another way of inserting text via Vim script
-
Vim MarkDown Syntax Highlighting
Quick how-to for enabling syntax highlighting within MarkDown files
-
Bash Associative Arrays
Tips and tricks for assigning and parsing associative arrays in Bash
-
Rust Reading Files
Some examples of reading lines, and characters from files via Rust
-
Makefile Target Chaining
How to execute ordered, and unordained, list(s) of make targets
-
Vim Shift Tab
How to make
and do smarter things -
Rust Semi-Generic Parameters
Using
where
keyword to define Generic type behavior -
Awk Variable Scope
Gotchas regarding Awk variable scoping
-
Awk Escape Quotes
Few gotchas and tips regarding quotes within Awk scripts and commands
-
Vim Performance Profiling
How to find features and/or code that are slowing Vim down
-
End of Second Round
Review of second round learnings from 100 Days of Code challenge