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
[{ | |
"relation": ["delegate_permission/common.handle_all_urls"], | |
"target" : { | |
"namespace": "android_app", | |
"package_name": "com.recipe_app", | |
"sha256_cert_fingerprints": [ | |
"hash_of_app_certificate" | |
] | |
} | |
}] |
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
keytool -exportcert -list –v -alias androiddebugkey -keystore ~/.android/debug.keystore |
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
keytool -exportcert -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore |
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 function showProducts(){ | |
$products = DB::table('products')->paginate(9); | |
return view('products', ['products' => $products]); | |
} |
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
package uk.co.stableweb; | |
public class BinarySearch { | |
public static void main(String[] args) { | |
// Create an array | |
int[] array = {1, 3, 5, 7, 9, 11, 15, 17, 19}; | |
// Initially lowest index is 0 | |
int lowestIndex = 0; |
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
def search(arr, x, lowest_index, highest_index): | |
#find the middle index | |
middle_index = lowest_index + (highest_index - lowest_index) / 2 | |
print "Middle index is ", middle_index | |
# checks whether the value is in the middle index | |
if (arr[middle_index] == x): | |
return middle_index | |
elif (arr[middle_index] > x): | |
# checks in <- direction |
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
#!/usr/bin/env python | |
#A System Information Gathering Script | |
import subprocess | |
#Command 1 | |
def uname_func(): | |
uname = "uname" | |
uname_arg = "-a" | |
print "Gathering system information with %s command:\n" % uname |
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
#!/usr/bin/env python | |
#A System Information Gathering Script | |
import subprocess | |
#Command 1 | |
uname = “uname” | |
uname_arg = “-a” | |
print "Gathering system information with %s command:\n" % uname |
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
/* | |
|-------------------------------------------------------------------------- | |
| Web Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register web routes for your application. These | |
| routes are loaded by the RouteServiceProvider within a group which | |
| contains the "web" middleware group. Now create something great! | |
| | |
*/ |
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
package uk.co.stableweb; | |
public class HelloWord { | |
/** | |
* Launch the application. | |
*/ | |
public static void main(String[] args) { | |
System.out.println("Hello World"); | |
} |
NewerOlder