Skip to content

Instantly share code, notes, and snippets.

View NewFuture's full-sized avatar
🖥️
:octocat:

New Future NewFuture

🖥️
:octocat:
View GitHub Profile
@NewFuture
NewFuture / post-commit
Last active March 29, 2019 12:55
git tag package.json
#! /bin/bash
version=`git diff HEAD^..HEAD -- "$(git rev-parse --show-toplevel)"/package.json | grep '^\+.*version' | sed -s 's/[^0-9\.]//g'`
if [ "$version" != "" ]; then
git tag -a "v$version" -m "`git log -1 --format=%s`"
echo "Created a new tag, v$version"
fi
@NewFuture
NewFuture / line.css
Last active September 17, 2019 01:50
div {
background:
linear-gradient(45deg, red 25%, transparent 25%),
linear-gradient(125deg, red 25%, transparent 25%);
}
// dotnet add package Azure.Storage.Blobs
// dotnet add package Azure.Storage.Blobs.Batch
using Azure.Storage.Blobs;
using Azure.Storage.Blobs.Models;
using Azure.Storage.Blobs.Specialized;
// Get a connection string to our Azure Storage account.
const string connectionString = "";
const string containerName = "";