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 | |
/** | |
* @file | |
* Module file for something module. | |
*/ | |
/** | |
* Implements hook_page_attachments(). | |
*/ |
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 | |
$string = 'Nulla vitae elit libero, a pharetra augue. Maecenas faucibus mollis interdum. Donec id elit non mi porta gravida at eget metus. Cras mattis consectetur purus sit amet fermentum. Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Maecenas faucibus mollis interdum. Nullam quis risus eget urna mollis ornare vel eu leo. Donec ullamcorper nulla non metus auctor fringilla. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.'; | |
function wrap($string, $length) { | |
$arrWords = explode(' ', $string); | |
$currLength = 0; | |
$index = 0; | |
$arrOutput = array(''); |
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
Kabupaten | Kecamatan | Kelurahan | KodePos | ||
---|---|---|---|---|---|
Jakarta Selatan | Tebet | Bukit Duri | 12840 | ||
Jakarta Selatan | Tebet | Kebon Baru | 12830 | ||
Jakarta Selatan | Tebet | Manggarai | 12850 | ||
Jakarta Selatan | Tebet | Manggarai Selatan | 12860 | ||
Jakarta Utara | Tanjung Priok | Kebon Bawang | 14320 | ||
Jakarta Utara | Tanjung Priok | Papanggo | 14340 | ||
Jakarta Utara | Tanjung Priok | Sungai Bambu | 14330 | ||
Jakarta Barat | Tambora | Angke | 11330 | ||
Jakarta Barat | Tambora | Duri Selatan | 11270 |
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
type: content_type | |
id: import_kodepos | |
label: Import Kode Pos | |
source: | |
plugin: csv | |
path: '/Users/ardnet/kode_pos.csv' | |
header_row_count: 1 | |
keys: | |
- KodePos | |
process: |
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 | |
function _fb_connect_likes_fetch($url, $record = array(), $i = 0, $no_flag = FALSE) { | |
$flag = TRUE; | |
if ($flag === TRUE) { | |
$req = drupal_http_request($url)->data; | |
$chunk = drupal_json_decode($req); | |
if ($chunk['data'] == null) { | |
return $record; |
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
version: '2' | |
services: | |
ardiweb: | |
build: . | |
ports: | |
- "8080:80" | |
volumes: | |
- ./docroot:/var/www/html | |
links: | |
- ardimysql |
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
FROM drupal:7-apache | |
MAINTAINER Pratomo Ardianto <ardi@email.com> | |
# Install packages | |
RUN apt-get update | |
RUN apt-get install -y \ | |
git \ | |
vim \ | |
cron \ | |
zip \ |
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
# Check Linux version | |
cat /etc/*release | |
# Update Linux distribution | |
sudo apt-get update | |
# Upgrade Linux distribution | |
sudo apt-get dist-upgrade | |
# Restart Apache |
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
# Ignore configuration files that may contain sensitive information. | |
#sites/*/*settings*.php | |
# Ignore paths that contain generated content. | |
files/ | |
sites/*/files | |
sites/*/private | |
tmp | |
private |
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 | |
/** | |
* @file | |
* Drupal site-specific configuration file. | |
* | |
* IMPORTANT NOTE: | |
* This file may have been set to read-only by the Drupal installation program. | |
* If you make changes to this file, be sure to protect it again after making | |
* your modifications. Failure to remove write permissions to this file is a |
NewerOlder