Skip to content

Instantly share code, notes, and snippets.

View NightOwlCoder's full-sized avatar
🏠
Working from home

Night Owl NightOwlCoder

🏠
Working from home
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace interviews
{
class Program
{
static void Main(string[] args)
{
@NightOwlCoder
NightOwlCoder / jekyll-raw.md
Created November 30, 2019 04:25
Escaping Jekill Fences

One can use

{% raw %}{% raw %}{% endraw %}.

@NightOwlCoder
NightOwlCoder / sdcard.java
Created February 20, 2018 06:49
Android Foolproof SD card path
public static String getSdCardPath()
{
if (sdCardPath == null)
{
ArrayList<String> list = new ArrayList<String>();
String[] dirs = com.rhythminteractive.Util.FileUtil.getStorageDirectories();
for (String dir : dirs)
{
Timber.d("SDCard", "trying path '%s'", dir);