In AndroidManifest
<uses-permission android:name="android.permission.WAKE_LOCK" />
Create an new activity to show up in lock screen.
package com.example.colinyip.myapplication;
import android.support.v7.app.AppCompatActivity;
| #include <stdio.h> | |
| struct dArray{ | |
| void *buffer; | |
| int length; | |
| int type_size; | |
| }; | |
| void init_array(struct dArray *arr, int type_size){ |
| """ | |
| Question: https://leetcode.com/problems/spiral-matrix-iii/ | |
| :author - amanniralq13 | |
| """ | |
| # Processes a cell and appends it to the answers and dynamic refs | |
| def processCell(row, col): | |
| if 0 <= row < row_length and 0 <= col < col_length: | |
| cell = matrix[row][col] |
| import sys | |
| import os | |
| import re | |
| import requests as r | |
| import wget | |
| # Change the output path here! | |
| filedir = os.path.join('C:/Users/amann/Downloads/') | |
| LINK = input("Enter a Facebook Video Post URL: ") |
| /** | |
| * author - amannirala13 | |
| * github - https://www.github.com/amannirala13 | |
| * | |
| * Open your developers console and enter this script. It will obtain the IP address from the omegle client | |
| * that uses WebRTC and get the geo loction. You can see the output on the console automatically as you connect to new people. | |
| */ | |
| window.oRTCPeerConnection = window.oRTCPeerConnection || window.RTCPeerConnection | |
| window.RTCPeerConnection = function(...args) { | |
| const pc = new window.oRTCPeerConnection(...args) |
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| class String{ | |
| private: | |
| string str; | |
| REMIX EXAMPLE PROJECT | |
| Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer. | |
| It contains 3 directories: | |
| 1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name. | |
| 2. 'scripts': Holds two scripts to deploy a contract. It is explained below. | |
| 3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity. | |
| SCRIPTS |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.4.24; | |
| library SafeMath { | |
| function mul(uint256 a, uint256 b) internal pure returns (uint256) { | |
| if (a == 0) { | |
| return 0; | |
| } | |
| uint256 c = a * b; |
In AndroidManifest
<uses-permission android:name="android.permission.WAKE_LOCK" />
Create an new activity to show up in lock screen.
package com.example.colinyip.myapplication;
import android.support.v7.app.AppCompatActivity;
| //implementation 'com.itextpdf:itextg:5.5.10' | |
| package com.amannirala13.printtest | |
| import android.os.Bundle | |
| import android.os.Environment | |
| import android.widget.Toast | |
| import androidx.appcompat.app.AppCompatActivity | |
| import com.itextpdf.text.Document | |
| import com.itextpdf.text.PageSize |
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package com.amannirala13.moviebooking.helpers.database; | |
| import java.sql.Connection; | |
| import java.sql.DriverManager; | |
| import java.sql.ResultSet; |