An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
package test; | |
import android.arch.lifecycle.LiveData; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.net.ConnectivityManager; | |
import android.net.NetworkInfo; |
/*! | |
* youversion_abbreviations.js | |
* JSON of YouVersion.com Bible Book URL Abbreviations. | |
*/ | |
var books = { | |
'gen': 'Genesis', | |
'exo': 'Exodus', | |
'lev': 'Leviticus', | |
'num': 'Numbers', | |
'deu': 'Deuteronomy', |
import android.content.Context; | |
import android.text.Layout.Alignment; | |
import android.text.StaticLayout; | |
import android.text.TextPaint; | |
import android.util.AttributeSet; | |
import android.util.TypedValue; | |
import android.widget.TextView; | |
/** | |
* Text view that auto adjusts text size to fit within the view. |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.telephony.SmsMessage; | |
import java.util.ArrayList; | |
/** | |
* @@author Chathura Wijesinghe <[email protected]> |
// @ts-check | |
import { useState, useEffect } from 'react' | |
function getCurrentLocation () { | |
return { | |
pathname: window.location.pathname, | |
search: window.location.search | |
} | |
} |
config.json | |
reading-image.png |
/** | |
* Using a single integer to represent multiple permissions | |
* based on binary values using bitwise operators | |
* | |
* & bitwise AND - if both the top and bottom bit are 1, result is 1 | |
* | bitwise OR - if either the top and bottom bit or both are 1, result is 1 | |
* ^ bitwise XOR - if only one of the bits are 1, result is 1 | |
* 0101 | |
* 0100 & = 0100 | |
* |
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf
File locations:
nginx.conf
to /usr/local/etc/nginx/
default.conf
and default-ssl.conf
to /usr/local/etc/nginx/sites-available
homebrew.mxcl.nginx.plist
to /Library/LaunchDaemons/