A custom theme for Markdown here
This is a custom set of CSS for MarkdownHere which provides a nicer theme (personal oppinion) than the default.
var request = require('superagent'), | |
fs = require('fs'), | |
_ = require('lodash'); | |
var config = require('./config.json'); | |
var status = require('./status.json'); | |
_.each(config.areas, function(area) { | |
request.get('/api/' + area.code + '/' + var2).end(function(err, data) { | |
if(err) throw err; |
#! /usr/bin/env bash | |
echo "Sierra Softworks Certificate Request Script" | |
echo "v1.0.0-beta" | |
KEY_NAME=$1 | |
EDITOR=$2 | |
################################################# | |
################### IMPORTANT! ################## | |
################################################# | |
# These defaults are the StartSSL CA certificates |
function getRandomDocument(filterQuery){ | |
var collection = getContext().getCollection(); | |
var result = null; | |
var count = 0; | |
var pageSize = 50; | |
function query(responseOptions) { | |
return (filterQuery && filterQuery.length) ? | |
collection.queryDocuments(collection.getSelfLink(), filterQuery, responseOptions, onReadDocuments) : | |
collection.readDocuments(collection.getSelfLink(), responseOptions, onReadDocuments); |
Deploy an Azure VM to help Folding@Home
This is an Azure VM template which deploys a GPU-enabled VM of your choice to help the
Folding@Home project find ways to combat COVID-19. It is
expected that the default VM (Standard_NC6_Promo
) will cost about $350 per month to run
(depending on your choice of region etc) which means that on the stock Azure trial benefit
you should be able to get about 2 weeks of runtime before running out of free credits.
This grammar allows you to parse command lines for program execution into their various components - specifically: environment variables, the executable itself and any arguments passed to the executable.
It will take an input like the following:
ENV_X=true ENV_Y="yes please" ./test/my_exec arg1 -f1 "arg with spaces" 'another arg' --flag2 yet\ another\ arg --flag=10
I hereby claim:
To claim this, I am signing this object:
This set of launch.json
and task.json
files allow you to build and debug individual C files from within Windows
while using the gcc
collection installed within your WSL environment.
sudo apt-get update
sudo apt-get install -y gcc gdb
This script is intended to automatically fix the sequence numbers for all tables in the current database.
This is accomplished through the use of the setval()
command, which we provide with the next ID value we wish to make use of.
We use the setval(sequence, number, is_called)
overload
and set is_called = false
in conjunction with COALESCE(MAX + 1, 1)
to ensure that, with an empty table, the next sequence
value is 1
as expected.