This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://sindresorhus.com/pure-paste | |
if ($.text.match(/https:\/\/twitter.com\/\S+$/)) { | |
return $.text.replaceAll('https://twitter.com/', 'https://vxtwitter.com/'); | |
} | |
return $.text; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onOpen() { | |
const ui = SpreadsheetApp.getUi(); | |
ui.createMenu('Extras') | |
.addItem('Replace / with \\ in selection', 'replaceSlashes') | |
.addToUi(); | |
} | |
function replaceSlashes() { | |
const ss = SpreadsheetApp.getActiveSpreadsheet(); | |
const range = SpreadsheetApp.getActive().getActiveRange(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const discordUrl = "..."; | |
// 1: Get a webhook URL from discord and put it in the constant above | |
// 2: In Google Sheets go to the tools menu and open the script editor | |
// 3: Paste this there and save it | |
// 4: In the Edit menu select the Current Project's Triggers | |
// 5: Click addTrigger and make the onEdit function an onEdit trigger | |
function onEdit(e) { | |
// Debounce |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = metalcalendar; | |
const multimatch = require('multimatch'); | |
const debug = require('debug')('metalsmith-calendar'); | |
const fetch = require("node-fetch"); | |
const ical = require("ical"); | |
const moment = require("moment"); | |
const marked = require('marked'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# Generate spam assassin files from STDIN | |
use strict; | |
use warnings; | |
use v5.10; | |
my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(time); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[% INCLUDE db_header.atml %] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********** | |
* | |
* You'll need Node JS, you can get it from https://nodejs.org/en/ | |
* | |
* This uses a third party libraries, install them with: | |
* | |
* npm install libxmljs | |
* | |
* Change the filename below, then run with: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* alertifyjs 1.6.0 http://alertifyjs.com | |
* AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications. | |
* Copyright 2015 Mohammad Younes <Mohammad@alertifyjs.com> (http://alertifyjs.com) | |
* Licensed under MIT <http://opensource.org/licenses/mit-license.php>*/ | |
.alertify .ajs-dimmer { | |
position: fixed; | |
z-index: 1981; | |
top: 0; | |
right: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load all the modules. | |
// ES6 doesn't support dynamic module loading, so we can't just pull these from files. They have to be hard coded. | |
{{#modules}} | |
import * as {{name}} from "./seq/{{name}}.js"; | |
{{/modules}} | |
import {List} from 'immutable'; | |
export function loadModules() { | |
return new List([ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ david@raston ] % ttree -s src -d dist -r --accept='.tt2$' -v -v --copy='\.css$' | |
Do you want me to create a sample '.ttreerc' file for you? | |
(file: /Users/david/.ttreerc) [y/n]: n | |
ttree 2.9 (Template Toolkit version 2.26) | |
Source: src | |
Destination: dist | |
Include Path: [ ] | |
Ignore: [ ] | |
Copy: [ \.css$ ] |
NewerOlder