Skip to content

Instantly share code, notes, and snippets.

View djsrbn's full-sized avatar

Dale Rabena djsrbn

  • Philippines
View GitHub Profile
@djsrbn
djsrbn / usable-gis-data-philippines.csv
Created October 7, 2021 00:37 — forked from mapmakerdavid/usable-gis-data-philippines.csv
Usable GIS data about the Philippines
THEME FORMAT SOURCE LINK
roads, waterways, building footprints, points of interest shp, pbf OpenStreetMap (OSM) http://download.geofabrik.de/asia/philippines.html
administrative boundaries (country, region, province, municipality, city) shp PSA, NAMRIA, DROMIC, UNOCHA, and patners https://data.humdata.org/dataset/philippines-administrative-levels-0-to-3
administrative boundaries (barangay) shp PSA, NAMRIA, DROMIC, UNOCHA, and patners https://data.humdata.org/dataset/philippines-admin4-boundaries-barangay
framework data (boundaries, roads, elevation, population, etc.) various DIVA-GIS http://www.diva-gis.org/gdata
topographic maps (1:50,000 and 1:250,000) non-georeferenced raster NAMRIA http://www.namria.gov.ph/download.php
various geohazards shp NOAH http://noah.up.edu.ph/downloads/
various geohazards shp DREAM https://lipad.dream.upd.edu.ph/
various geohazards shp MGB http://www.namria.gov.ph/download.php
various geohazards shp PHIVOLCS http://www.phivolcs.dost.gov.ph/
@djsrbn
djsrbn / gist:b62e53ec4fa7e716d2dcb36be0e3ba90
Created December 19, 2017 02:52 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:

So, you want to send a motherfucking XMLHttpRequest (XHR, or commonly and falsly known as AJAX.) Too bad, just ran out of motherfucking XMLHttpRequests; but I still have one regular. XHR is not magic. It does not autofuckinmagically send things the way you want them do be sent. It does not do the thinking for you. It just sends an Http Request.

You get a hold on such a prime beast like this:

@djsrbn
djsrbn / oldvalue.php
Created September 19, 2017 01:23
laravel radio and checkbox old value
// radio
@foreach ($role as $key => $value)
<label class="radio-inline">
<input type="radio" name="role" value="{{ $key }}" @if (Input::old('role') == $key) checked="checked" @endif>{{ $value }}
</label>
@endforeach
// checkbox
@foreach ($role as $key => $value)
<label class="checkbox-inline">
@djsrbn
djsrbn / sample.conf
Created September 3, 2017 05:35
Sample nginx site config for Laravel
server {
listen 80;
listen [::]:80;
root /var/www/sample/public;
index index.php index.html index.htm index.nginx-debian.html;
server_name sample.test www.sample.test;
@djsrbn
djsrbn / gravatar.php
Created August 24, 2017 06:48
get and check gravatar
/**
* Get either a Gravatar URL or complete image tag for a specified email address.
*
* @param string $email The email address
* @param string $s Size in pixels, defaults to 80px [ 1 - 2048 ]
* @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ]
* @param string $r Maximum rating (inclusive) [ g | pg | r | x ]
* @param boole $img True to return a complete IMG tag False for just the URL
* @param array $atts Optional, additional key/value attributes to include in the IMG tag
* @return String containing either just a URL or a complete image tag