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
<?php | |
/** | |
* IMDB Wrapper API | |
* Wrapper class to retrieve data from IMDB | |
* http://jogisilalahi.com/blog/imdb-api-wrapper-class-php | |
* @author Jogi Silalahi <[email protected]> | |
*/ | |
class IMDB |
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
<?php | |
// Dont forget to include class | |
require_once(dirname(__FILE__) . '/libraries/imdb.php'); | |
// Instance | |
$imdb = new imdb(); | |
// Search | |
$imdb->search('shawshank redemption'); |
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
<?php | |
// GCM Server URL | |
$url = 'https://android.googleapis.com/gcm/send'; | |
// Server API | |
// Didapat dari Google Console | |
$serverApiKey = "YOUR SERVER API KEY"; | |
// Device ID | |
// Didapat dari device |
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
<?php | |
// GCM Server URL | |
$url = 'https://android.googleapis.com/gcm/send'; | |
// Server API | |
// Didapat dari Google Console | |
$serverApiKey = "API KEY"; | |
// Device ID | |
// Didapat dari device |
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
<?php | |
/** | |
* Daily Coding Problem: | |
* | |
* Given a list of numbers and a number k, return whether any two numbers from the list add up to k. | |
* For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17. | |
*/ | |
function possible($numbers = [], $k) { |
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
{ | |
"data": [ | |
{ | |
"code": "11", | |
"name": "Aceh", | |
"coordinates": { | |
"lat": "4.695135", | |
"lng": "96.7493993" | |
}, | |
"google_place_id": "ChIJvcR8UN-bOTARYMogsoCdAwE" |