Skip to content

Instantly share code, notes, and snippets.

View bennewton999's full-sized avatar

Ben Newton bennewton999

View GitHub Profile
bennewton999 /
Created September 7, 2021 22:20
My Obsidian Task Dashboard


Due Today
not done
due today
Due This Week
not done
due after monday and before friday
bennewton999 / TodaysHighlightsFromReadwise.txt
Last active June 17, 2022 02:43
This is a templater template for Obsidian that will show today's newly added highlights from Readwise. This will require a change in the Readwise Output for the highlight section in the plugin's settings. #newHighlight-{{date|date('F-j-Y')}} will have to be added to the first line of the Highlights Header Section of the Template. More work neede…
const today = new Date('<% %> 12:00:00 AM');
const dateOptions = {month: 'long', day: 'numeric', year: 'numeric'};
const todayFormatted = new Date('<% %> 12:00:00 AM').toLocaleDateString(undefined, dateOptions);
const month = today.toLocaleString('default', { month: 'long' });
const day = today.getDate();
const year = today.getFullYear();
const tag = `#newHighlight-${month}-${day}-${year}`;
const books = dv.pages(tag)
bennewton999 / dailyNoteTemplate.txt
Last active June 27, 2024 03:44
My current Daily Note Template in Obsidian utilizing Templater and DataView Plugins
creation date: <% tp.file.creation_date() %>
tags: DailyNote <% tp.file.title.split('-')[0] %>
modification date: <%+ tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %> // This doesn't currently work in front matter, hoping that gets fixed.
# <% tp.file.title %>
<< [[<%"YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>]] | [[<%"YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>]]>>
bennewton999 / checkForSurvey.js
Last active July 30, 2018 03:05
Remove iPerceptions Modal in Puppeteer e2e and visual regression tests
// Checks for survey modal and clicks "NO" if it is on page during testing.
const checkForSurvey = async page => {
const SELECTOR =
if ((await page.$(SELECTOR)) !== null) {
bennewton999 / .eslintrc
Last active January 19, 2016 16:28
My .eslintrc
"rules": {
"quotes": [1, "single"],
"indent": [2, 2],
"key-spacing": [2, { "afterColon": true }],
"block-spacing": [2, "always"],
"array-bracket-spacing": [2, "always"],
"camelcase": [2, {"properties": "always"}],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"]
bennewton999 / date-snippet-for-template.html
Created July 13, 2015 16:29
Simple responsive date for AngularJS
<span>{{fare.book_by_date | date:checkDate()}}</span>
bennewton999 / gist:be3bee456903007ff797
Created October 21, 2014 01:03
non scrolling surface HTML
<fa-app style="height:100%">
<fa-scroll-view fa-pipe-from="eventHandler">
<fa-modifier fa-size="[undefined, true]">
<fa-view fa-index="0">
<fa-surface fa-pipe-to="eventHandler" fa-size="[undefined, true]">
<div surface-height id="test">
<div ng-include="'partials/navbar'"></div>
<div class="masthead jumbotron">
<div class="container">
<h2>See What's Vital <em>to You</em> in <em>Real Time</em></h2>
bennewton999 / main.html
Created October 18, 2014 20:09
This is the home page template for my app. I added angular-famous for some animations on one page in my app. That works fine. But I didn't realize adding it would require me to change the whole app for scrolling to work. The page below seems to be set up correctly, but it will not scroll. Any help would be appreciated. I'm ready to abandon Famo.…
<fa-scroll-view fa-pipe-from="eventHandler">
<fa-modifier fa-size="[undefined, true]">
<fa-surface fa-pipe-to="eventHandler">
<div ng-include="'partials/navbar'"></div>
<div class="masthead jumbotron">
<div class="container">
<h2>What's vital to you? See it in <em>Real Time</em></h2>
<div class="device-mockup imac">

Contract Killer 3

Revised date: 07/11/2012

Between us Blulyne Group and you [customer name]


We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.