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
@Override | |
protected void onResume() { | |
super.onResume(); | |
//Register broadcast receiver to receive changes in connectivity | |
registerReceiver(brConnectivityChangeReceiver, new IntentFilter( | |
"android.net.conn.CONNECTIVITY_CHANGE" //Ideally, put this in the strings.xml file | |
)); | |
} | |
private BroadcastReceiver brConnectivityChangeReceiver = new BroadcastReceiver() { |
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
//Creation of ViewRenderable | |
val shareButton = ViewRenderable.builder() | |
.setVerticalAlignment(ViewRenderable.VerticalAlignment.TOP) | |
.setHorizontalAlignment(ViewRenderable.HorizontalAlignment.RIGHT) | |
.setView(view.getARFragment().context, R.layout.share) | |
.build() | |
//Creation of ModelRenderable | |
val video = ModelRenderable.builder() | |
.setSource(view.getARFragment().context, Uri.parse("chroma_key_video.sfb")) |
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
/// code here | |
private LibPlacenote.MapMetadataSettable mCurrMapDetails; | |
/// code here | |
// Executed when the scene comes back to the forescreen. | |
// Think of this as onResume of the Android activity lifecycle | |
private void OnEnable() | |
{ |
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
# This script file handles the creation and deployment of a new Azure App Service web app. | |
echo "" # Blank space for formatting | |
echo "This script will attempt to create a new Azure App Service WebApp and return the configuration created" | |
echo "" # Blank space for formatting | |
echo "Please enter the name of the Web Application (name entered will form a unique FQDN ex: mysampleapp.azurewebsites.net): " | |
# Accept an application name. Prompt if not entered correctly. | |
while [ ${#applicationName} -eq 0 ] | |
do | |
read applicationName |
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
flush ruleset | |
table ip pinhole_filter { | |
# allow all packets sent by Pi itself | |
chain output { | |
type filter hook output priority 100; policy accept; | |
} | |
# allow LAN to firewall, disallow WAN to firewall | |
chain input { |
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
#!/sbin/nft -f | |
# Flushing means to empty; the flush command here empties the entire | |
# nftable ruleset. Since this is the primary file that is loaded onto the | |
# chronology of nf configurations, it is safe to flush the entire rulset first. | |
flush ruleset | |
# I tried segregating my configuration into multiple tables for comprehension | |
# But was unable to. If you have a better understanding of nftables and | |
# comprehend how this configuration can be broken apart into multiple tables, |