Skip to content

Instantly share code, notes, and snippets.

View HerbCaudill's full-sized avatar

Herb Caudill HerbCaudill

View GitHub Profile
@HerbCaudill
HerbCaudill / adelante.md
Last active June 11, 2020 12:57
Coding Adelante: Challenges

Coding Adelante: Challenges

Hello, world!

  1. Write a function called hello that prints "Hello, world!" in the console.

    function hello() {
        ...

}

/* change main font */
body,
html,
div,
textarea {
font-family: Roboto;
}
/* change font for all headings */
@HerbCaudill
HerbCaudill / $profile
Created August 12, 2019 15:48
My PowerShell profile. To edit yours type `code $profile`
# posh-git
Import-Module 'C:\tools\poshgit\dahlbyk-posh-git-a4faccd\src\posh-git.psd1'
# set home directory
$HomeDir = "c:\git"
Set-Variable HOME $HomeDir -Force
(get-psprovider 'FileSystem').Home = $HomeDir
# $ESC = [char]27
$taskName = 'Enter hours at logon'
# Path to Chrome on your machine
$chrome = 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
# URL of your tab of the spreadsheet
$url = 'https://docs.google.com/spreadsheets/d/ASDFasdf12341234asdfASDFASFD1234/edit#gid=12341234'
$taskXml = @"
@HerbCaudill
HerbCaudill / dynalist.css
Created June 3, 2019 11:01
Custom CSS for Dynalist
/* dynalist.css */
/* tags */
.node-tag {
background: rgba(255, 165, 0, 0.8);
font-size: 0.8em;
border-radius: 0.3em;
font-weight: bold;
padding: 2px 5px;
customjsReady("div[data-test='skill-tree']", () => {
const userName = $("div#root div[data-test='user-dropdown'] > span:first").text();
$.get(`/users/${userName}`, (d) => {
const language = Object.keys(d.language_data)[0];
const skills = d.language_data[language].skills;
const $skills = $("div[data-test='skill-tree'] > div > a");
$skills.each((i, d) => {
const $skill = $(d);
const skillName = $skill.find("> div > span").text()
if (skillName && skillName.length) {
@HerbCaudill
HerbCaudill / .block
Last active December 2, 2019 09:54
DevResults Logo
license: mit
@HerbCaudill
HerbCaudill / README.md
Last active August 29, 2015 14:18
Extending the d3 Axis function

A custom axis function that "extends" the native axis (in this case, highlighting years on a time scale). See this Stack Overflow question.