This file contains hidden or 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
| const fs = require('fs') | |
| const path = require('path') | |
| const process = require('process') | |
| const { spawnSync } = require('child_process') | |
| const { GITHUB_TOKEN, GITHUB_USERNAME, GITHUB_EMAIL } = process.env | |
| // leaving this without https:// in order to reuse it when adding the remote | |
| const gitRepositoryURL = 'github.com/owner/repo-name.git' | |
| const repositoryName = 'repo-name' |
The Lightning Network is a layer 2 payment network built on top of Bitcoin. It is denominated in Bitcoin, and disputes are settled entirely by the Bitcoin network. Like Bitcoin, it is decentralized. Ultimately, the utility, speed and cost of the network will be defined by the sum of how all of the participants behave. In this post, I will explore at least 6 different user types I predict will exist on the Lightning Network and my expectation of how they will behave.
This file contains hidden or 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
| ## On Windows: | |
| ``http://www.graphicsmagick.org/INSTALL-windows.html`` | |
| ## On the Mac: | |
| ``brew install graphicsmagick`` | |
| ## On the Joyent box: | |
| ``` |
This file contains hidden or 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
| sudo yum install libmpc-devel mpfr-devel gmp-devel | |
| cd ~/Downloads | |
| curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2 -O | |
| tar xvfj gcc-4.9.2.tar.bz2 | |
| cd gcc-4.9.2 | |
| ./configure --disable-multilib --enable-languages=c,c++ | |
| make -j 4 | |
| make install |
This file contains hidden or 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
| require 'net/http' | |
| require 'net/https' | |
| require 'uri' | |
| uri = URI('https://example.com/rest/api/2/1') | |
| Net::HTTP.start(uri.host, uri.port, | |
| :use_ssl => uri.scheme == 'https', | |
| :verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http| |
This file contains hidden or 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
| public static float convertPixelsToDp(float px){ | |
| DisplayMetrics metrics = Resources.getSystem().getDisplayMetrics(); | |
| float dp = px / (metrics.densityDpi / 160f); | |
| return Math.round(dp); | |
| } | |
| public static float convertDpToPixel(float dp){ | |
| DisplayMetrics metrics = Resources.getSystem().getDisplayMetrics(); | |
| float px = dp * (metrics.densityDpi / 160f); | |
| return Math.round(px); |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
Note: I'm currently taking a break from this course to focus on my studies so I can finally graduate