Get todos for specific directory
Configure filters for paths in ~/.todo/path-filters
:
FILTERS_PER_PATH[~/private/super-secret]="+super-secret"
FILTERS_PER_PATH[~/project/customer-01]="+customer-01"
function run() { | |
while (true) { | |
const threads = GmailApp.search('{from:@getsentry.com from:@*.getsentry.com} -is:important ', 0, 100); | |
const importantThreads = threads.filter(function (thread) { | |
const messages = thread.getMessages(); | |
return messages.some(function (message) { | |
return !!message.getHeader('X-Sentry-Project'); | |
}); | |
}); |
function markArchivedAsRead() { | |
var threads = GmailApp.search('label:unread -label:inbox'); | |
GmailApp.markThreadsRead(threads); | |
}; |
var LABEL = 'Auto-Archive'; | |
var OLDER_THEN = '2d'; | |
function archiveIfHasLabelAndOlderEnough() { | |
var label = GmailApp.getUserLabelByName(LABEL); | |
// Get all threads which are labeled for auto archive | |
var threads = GmailApp.search('label:inbox label:' + LABEL + ' older_than:' + OLDER_THEN); | |
// Process threads |
import { chromium } from 'playwright'; | |
async function main() { | |
const browser = await chromium.launch({ | |
headless: false, | |
}); | |
const page = await browser.newPage(); | |
await page.goto('https://www.google.com'); |
import * as postcss from "postcss"; | |
export default postcss.plugin("postcss-output-class-names", (options = {}) => { | |
// Work with options here | |
return root => { | |
const classNamePattern = /\.-?[_a-zA-Z]+([_a-zA-Z0-9-]|\\:)*/g; | |
let selectors = []; | |
// Transform CSS AST here | |
root.walkRules(rule => { |
// | |
// String | |
// | |
@function str-trim($string) { | |
$start: 1; | |
$end: str-length($string); | |
@for $i from 1 through str-length($string) { | |
$first: str-slice($string, $i, $i); |
2017-01-18 10:33:34.261 livejs-20170117151132.js:11 TypeError: $(...)[0].amIConnected is not a function | |
at livejs-20170117151132.js:11 |
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
I hereby claim:
To claim this, I am signing this object: