View CoinPaprika_Supported_Fiats.json
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
{ | |
"USD": { | |
"id": "usd-us-dollars", | |
"name": "US Dollar", | |
"symbol": "USD" | |
}, | |
"EUR": { | |
"id": "eur-euro", | |
"name": "Euro", | |
"symbol": "EUR" |
View chksyncstate.sh
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
#based on samples I found here: | |
#https://bitcoin.stackexchange.com/questions/37815/how-to-know-if-bitcoind-synced | |
#https://bitcoin.stackexchange.com/questions/10859/how-to-check-bitcoind-block-chain-download-progress-level/12734#12734 | |
#you may not need sudo if you are running bitcoind as local user instead of using bitcoin.service | |
#as local user, the cli is found in /usr/local/bin, change commented lines below | |
#!/bin/bash | |
coin="$1"; | |
if [ -z $coin ]; then |
View blockchainexplorers.json
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
{ | |
"BTC": [ | |
{ | |
"Name": "Blockchain", | |
"BaseUrl": "https://blockchain.com", | |
"Currency": "btc", | |
"TransactionSuffix": "tx", | |
"TxIdIsQueryParameter": false | |
}, | |
{ |
View blockstackverification
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
Verifying my Blockstack ID is secured with the address 12YzRCKWRdJzf4cfpBP5JX4ac4GfbzpWA9 https://explorer.blockstack.org/address/12YzRCKWRdJzf4cfpBP5JX4ac4GfbzpWA9 |
View XamarinMultiTargetTemplate.csproj
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<!--Work around so the conditions work below--> | |
<TargetFrameworks></TargetFrameworks> | |
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">netstandard1.4;MonoAndroid81;Xamarin.iOS10;uap10.0.16299;</TargetFrameworks> | |
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard1.4;MonoAndroid81;Xamarin.iOS10;</TargetFrameworks> | |
<AssemblyName>[Insert here]</AssemblyName> | |
<RootNamespace>[Insert here]</RootNamespace> |
View Xamarin.iOS.PlatformEncryptionKeyHelper.cs
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using Security; | |
using Foundation; | |
using System.Diagnostics; | |
using System.Linq; | |
using ObjCRuntime; | |
namespace [YOURNAMESPACEHERE] |
View Xamarin.Android.PlatformEncryptionKeyHelper.cs
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
using Android.Content; | |
using Android.OS; | |
using Android.Security; | |
using Android.Security.Keystore; | |
using Java.Math; | |
using Java.Security; | |
using Javax.Security.Auth.X500; | |
using Calendar = Android.Icu.Util.Calendar; | |
using CalendarField = Android.Icu.Util.CalendarField; |
View EasyLayout.cs
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
// | |
// Copyright (c) 2013-2015 Frank A. Krueger | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// |
View Liberal Regex Pattern for Web URLs
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
The regex patterns in this gist are intended only to match web URLs -- http, | |
https, and naked domains like "example.com". For a pattern that attempts to | |
match all URLs, regardless of protocol, see: https://gist.github.com/gruber/249502 | |
# Single-line version: | |
(?i)\b((?:https?:(?:/{1,3}|[a-z0-9%])|[a-z0-9.\-]+[.](?:com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|s |