Skip to content

Instantly share code, notes, and snippets.

View jakebresnehan's full-sized avatar
👋

Jake Bresnehan jakebresnehan

👋
View GitHub Profile
/* to be used with the default obsidian theme */
/* to install, add color-tweaks-minimal-tabs.css to .obsidian/snippets/ and enable in the settings */
.theme-light {
--color-base-05: #fafbfd;
--color-base-10: #f8f9fb;
--color-base-20: #f2f4f9;
--color-base-25: #dce0e8;
--color-base-30: #d8dce7;
--color-base-35: #cbd0dc;
@siddharthkp
siddharthkp / settings.json5
Last active September 14, 2020 12:31
vscode cleanup
{
"breadcrumbs.enabled": false,
"editor.minimap.enabled": false, // removes minimap
"editor.renderWhitespace": "none", // removes whitespace chars
"editor.renderIndentGuides": false, // removes indent guides
"editor.overviewRulerBorder": false, // removes border from overview ruler (located on the right, same position as the scrollbar)
"editor.hideCursorInOverviewRuler": true, // hides cursor mark in the overview ruler
"editor.lineNumbers": "off", // hide line numbers
"editor.renderLineHighlight": "none", // removes line highlight
@cmod
cmod / things-top-todo.json
Created July 25, 2018 08:23
Touch Bar addition: Latest todo in Things
This file has been truncated, but you can view the full file.
{
"BTTWidgetName" : "Things To Do Today",
"BTTTriggerType" : 639,
"BTTTriggerTypeDescription" : "Apple Script Widget",
"BTTTriggerClass" : "BTTTriggerTypeTouchBar",
"BTTPredefinedActionType" : 195,
"BTTPredefinedActionName" : "Run Apple Script (async in background)",
"BTTInlineAppleScript" : "tell application \"Things3\"\r\tset firstItem to item 1 of every to do of list \"Today\"\r\tset firstName to name of firstItem\r\tdisplay notification \"COMPLETED: \" & firstName\r\tset status of firstItem to completed\rend tell",
"BTTScriptType" : "AppleScript",
"BTTEnabled2" : 1,
<?php
/*
* Plugin Name: Remove crazy counts slowing down my dashboard
* Plugin URI: https://pmgarman.me
* Description: Those comment counts are such a pain when you have a lot of comments
* Author: Patrick Garman
* Author URI: https://pmgarman.me
* Version: 1.0.0
* License: GPLv2
*/
@paulirish
paulirish / what-forces-layout.md
Last active June 26, 2024 20:47
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@Lewiscowles1986
Lewiscowles1986 / lc-svg-upload.php
Last active August 4, 2016 13:45
SVG Media Plugin for WordPress (Works since 4.1.2!)
<?php
// Please see https://github.com/Lewiscowles1986/WordPressSVGPlugin from now on
@remy
remy / project-structure.md
Last active February 18, 2019 03:35
My (general) new node project directory structure

Project structure

Example project directory, the root folders are pretty consistent, the sub directories (on lib, etc) are just examples of what might be in there.

.
├── lib
│   ├── db
│   ├── handlers
│   └── routes
@remy
remy / gitissues.rb
Created January 23, 2014 11:21
An Alfred 2 workflow to let me jump directly to jsbin issues, either by issue number, searching issues or creating new issues. Make sure to change to your own repo. Also, disclaimer, I don't write or use ruby, so this is pretty much just clobbered together.
# change this...unless you're in to jsbin issues :)
repo = "remy/jsbin"
require 'cgi'
v = ARGV[0] || "{query}"
url = "";
text = "";
if v.to_s =~ /\A[-+]?\d*\.?\d+\z/ || v == "new"
url = "https://github.com/#{repo}/issues/#{v}"
text = "Open #{v}"
@devinsays
devinsays / gist:5210667
Created March 21, 2013 04:22
Adds a "has-children" class to menu items that have children. Posted by @chipbennet to the Theme Reviewers Mail List.
function oenology_add_menu_parent_class( $items ) {
$parents = array();
foreach ( $items as $item ) {
if ( $item->menu_item_parent && $item->menu_item_parent > 0 ) {
$parents[] = $item->menu_item_parent;
}
}
foreach ( $items as $item ) {
@gdakram
gdakram / skin_override_globally.html
Created September 14, 2012 18:01
Disable loader from fetching a skinnable module's assets from YUI's CDN, while on HTTPS.
<script>
var YUI_config = {
skin : {
overrides : {
"widget" : []
}
}
};
</script>