Skip to content

Instantly share code, notes, and snippets.

View danielgolden's full-sized avatar

Daniel Golden danielgolden

View GitHub Profile
@danielgolden
danielgolden / daily-log-links.js
Last active December 22, 2023 18:40
Generate daily log links from a PR
import "./custom-spring.css";
// import { Pane } from "tweakpane";
const box = document.querySelector(".box");
interface SpringOptions {
stiffness: number;
mass: number;
damping: number;
end: number;
@danielgolden
danielgolden / figmaOneCoreColorStats.js
Last active January 8, 2022 20:09
Get stats on the One Core Color style adoption level of a given file in Figma
const oneCorePaintStyles = [
{
"name": "Roles/Interactive/Interactive Primary",
"key": "18ecca921484122521d9d31c21d32217b76a8214",
"description": "",
"color": {
"type": "SOLID",
"visible": true,
"opacity": 1,
"blendMode": "NORMAL",
@danielgolden
danielgolden / getColorFillStyles.js
Last active February 25, 2022 12:34
Get color fill styles from a Figma documnet
// Outputs json that includes your styles, their names, colors, etc.
// It's shaped like this:
//
// [
// {
// "name": "Danger",
// "key": "cab6ae8c5b6634d6exampleKey151b4ee724",
// "description": "",
// "color": {
// "type": "SOLID",
@danielgolden
danielgolden / standard-nerdpack-layout.css
Last active November 22, 2019 21:26
Some helpers for a standard nerdpack layout
.toolbar-container {
height: 66px;
box-sizing: border-box;
border-top: 1px solid #edeeee;
border-bottom: 1px solid #edeeee;
padding: 0 16px;
background-color: #fff;
}
.toolbar-section1 .toolbar-item:first-child {
@danielgolden
danielgolden / nerdpack-standard-layout.js
Created November 22, 2019 21:09
A standard layout for nerdpacks
import React from "react";
import {
Grid,
GridItem,
Stack,
StackItem,
Dropdown,
DropdownItem,
TextField,
Button,
@danielgolden
danielgolden / reset-password-email.html
Created August 9, 2018 18:03
Epiphany - Reset Password Email
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta charset="utf-8"> <!-- utf-8 works for most cases -->
<meta name="viewport" content="width=device-width"> <!-- Forcing initial-scale shouldn't be necessary -->
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Use the latest (edge) version of IE rendering engine -->
<meta name="x-apple-disable-message-reformatting"> <!-- Disable auto-scale in iOS 10 Mail entirely -->
<title>Epiphany - Reset Your Password</title> <!-- The title tag shows in email notifications, like Android 4.4. -->
<!-- Web Font / @font-face : BEGIN -->
@danielgolden
danielgolden / welcome-email.html
Last active August 9, 2018 18:02
Epiphany - Welcome Email
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta charset="utf-8"> <!-- utf-8 works for most cases -->
<meta name="viewport" content="width=device-width"> <!-- Forcing initial-scale shouldn't be necessary -->
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Use the latest (edge) version of IE rendering engine -->
<meta name="x-apple-disable-message-reformatting"> <!-- Disable auto-scale in iOS 10 Mail entirely -->
<title>Epiphany - Welcome!</title> <!-- The title tag shows in email notifications, like Android 4.4. -->
<!-- Web Font / @font-face : BEGIN -->
@danielgolden
danielgolden / page-brand.php
Created June 26, 2015 15:13
Template for the online version of the CURE brand guildelines
<?php
/*
* Template Name: Brand Guidelines
*/
function brand_guidelines_scripts () {
wp_dequeue_style('main-css');
wp_enqueue_style('brand', '/css/brand.min.css');
wp_enqueue_script('bootstrap-js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js', array('jquery'), '3.3.1', $in_footer = true);
}
@danielgolden
danielgolden / Tomln-ck-profile-thankyou-page.html
Created February 21, 2015 05:05
CUREkids Profile on Thank you Page
<div class="giving-mini-profile-alt-container">
<hr>
<div class="giving-mini-profile-alt">
<div class="giving-mini-profile-photo-container">
<img src="https://0515f2af61d5e3d37aec-a1d11e7882f6a6aa49a62729309b6434.ssl.cf2.rackcdn.com/curekids/img/10/10714/Malawi_TiloneGilbert_624.13-3.jpg" alt="Tilone's Cover photo" class="giving-mini-profile-photo">
</div>
<h4 class="giving-mini-profile-name">Tilone</h4>
<span class="giving-mini-profile-country">From Malawi</span>
</div>
</div>