Skip to content

Instantly share code, notes, and snippets.

Working from home

Frank Arkhurst Odoom frankodoom

Working from home
View GitHub Profile
rtyler /
Created Jan 4, 2018
A bash script which supports uploading blobs to Azure Storage: ./ [filename]
#!/usr/bin/env bash
# expected to be defined in the environment
# inspired by
velizarn / sendgrid.bash
Last active Nov 7, 2022
Send email from bash script by using SendGrid API
View sendgrid.bash
bodyHTML="<p>Email body goes here</p>"
iamarcel / Structuring Neat .NET Core Command Line Apps
Created Sep 7, 2016
Structuring Neat .NET Core Command Line Apps Neatly
View Structuring Neat .NET Core Command Line Apps
iamarcel / Creating Neat .NET Core Command Line
Last active Jun 6, 2022
Creating Neat .NET Core Command Line Apps
View Creating Neat .NET Core Command Line

Creating Neat .NET Core Command Line Apps

You can now read this on my (pretty) website! Check it out here.

Every reason to get more HackerPoints™ is a good one, so today we're going to write a neat command line app in .NET Core! The Common library has a really cool package Microsoft.Extensions.CommandlineUtils to help us parse command line arguments and structure our app, but sadly it's undocumented.

No more! In this guide, we'll explore the package and write a really neat

subfuzion /
Last active Dec 9, 2022
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

gokulkrishh / media-query.css
Last active Dec 9, 2022
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
##Device = Desktops
##Screen = 1281px to higher resolution desktops
@media (min-width: 1281px) {
/* CSS */
public static List<Comment> toThreadedComments(List<Comment> comments){
//comments should be sorted by date first
//The resulting array of threaded comments
List<Comment> threaded = new ArrayList<Comment>();
//An array used to hold processed comments which should be removed at the end of the cycle
List<Comment> removeComments = new ArrayList<Comment>();
kostiakoval /
Created Mar 29, 2014
SharedPreferences util
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
public class PrefUtils {
* Called to save supplied value in shared preferences against given key.
* @param context Context of caller activity
trailmax / AzureStorageApi
Last active Mar 10, 2021
Unit testing the functionality to upload files to Azure Blob Storage via REST API. For blog post: Please note, this implementation only supports file up to 64Mb in size. Anything larger and you need to chop files in pieces and upload them separately. There i…
View AzureStorageApi
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
namespace PackageUploader.Azure
public class AzureStorageApi
public void UploadFile(String fullFilePath, String blobSasUri, Dictionary<String, String> metadata = null)
rxaviers / gist:7360908
Last active Dec 9, 2022
Complete list of github markdown emoji markup
View gist:7360908


:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: