-
when using github,
./configure
is not present and didn't know how to start -
download from http://php.net/downloads.php
-
downloading specific version http://php.net/get/php-5.6.30.tar.gz/from/a/mirror
-
I want to build minimal version only for testing
-
following http://www.phpinternalsbook.com/build_system/building_php.html#obtaining-the-source-code
-
Run
./configure --disable-all
-
Run
time make
-
OR run both at the same time
time ./configure --disable-all && time make
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
sheet_main <- read_excel(kobo.data.filename, sheet=1) | |
sheet_main <- data.frame(lapply(sheet_main, trimws)) | |
sheet_main["basic_info_household.a6"] <- choices[match(sheet_main[["basic_info_household.a6"]], choices$name),3] | |
sheet_main["basic_info_household.a7"] <- choices[match(sheet_main[["basic_info_household.a7"]], choices$name),3] | |
sheet_main["a6_01"] <- choices[match(sheet_main[["a6_01"]], choices$name),3] | |
WriteXLS(x=c("sheet_main"), "sheet_main.xls") |
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
library(rgdal) | |
library(ggplot2) | |
library(dplyr) | |
# clone NepalMaps from https://github.com/anjesh/NepalMaps | |
# read shapefile | |
nepal_shp <- readOGR(dsn="NepalMaps/baselayers/NPL_adm", layer="NPL_adm3", stringsAsFactors = FALSE) | |
# fortify shapefile data to data frame | |
shp_df <- fortify(nepal_shp, region = "NAME_3") |
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
library(tm) | |
# download pdf from http://cbs.gov.np/image/data/Publication/Others/Nepal%20Standard%20Industrial%20Classification.pdf | |
# using tricks from http://stackoverflow.com/questions/3852354/extracting-text-data-from-pdf-files | |
nsic.pdf.file <- "data/nsic/Nepal Standard Industrial Classification.pdf" | |
Rpdf <- readPDF(control = list(text = "-layout")) | |
nsic.pdf.corpus <- VCorpus(URISource(nsic.pdf.file), readerControl = list(reader = Rpdf)) | |
nsic.pdf.lines <- content(content(nsic.pdf.corpus)[[1]]) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<iati-activities generated-datetime="2016-02-22T11:04:07+00:00" version="2.02"> | |
<!-- Generated By AidStream --> | |
<iati-activity xml:lang="en" default-currency="GBP" last-updated-datetime="2016-02-22T11:01:34+00:00" hierarchy="1"> | |
<iati-identifier>KE-TEST-9381-P100</iati-identifier> | |
<reporting-org ref="KE-NGC-9381" type="21"/> | |
<title> | |
<narrative>Test Activity</narrative> | |
</title> | |
<description type="1"> |
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
#find the charset | |
file -I filename | |
#convert the given encoding to itf-8 | |
iconv -f $(file -bI filename | sed -e "s/.*[ ]charset=//") -t utf-8 filename | |
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
{ | |
"packages": [ | |
{ | |
"license_title": "Open Tunisian License (OTL) compatible with data.industrie.gov.tn", | |
"maintainer": "Sdiri Mohamed", | |
"relationships_as_object": [], | |
"private": false, | |
"maintainer_email": "", | |
"revision_timestamp": "2016-06-14T12:53:22.211153", | |
"id": "e868cc9e-cdd9-470f-9de3-fa906834382f", |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/* | |
To run this script, run the following command in the cli | |
# mongo localhost:27017/[dbname] map_to_ocds.js | |
*/ | |
//remove ocds_release collection | |
db.ocds_release.remove({}) | |
// var bulk = db.ocds_release.initializeUnorderedBulkOp(); |
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
{ | |
"tender": { | |
"regNumber": "12/00001", | |
"stateOrg": { | |
"treasutyAcc": null, | |
"bankAccount": null, | |
"fax": "268 22692 078883935", | |
"code": "1009601000289", | |
"fkRefTerDepTreasure": null, | |
"orgName": "Agenția de Dezvoltare Regională Centru", |