This file contains 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
// ==UserScript== | |
// @name Rakitan.com Sorter & Filter | |
// @namespace zackad's script | |
// @description Sorting and filter entry on rakitan.com | |
// @include http://rakitan.com/kategori.php?* | |
// @version 0.1.0 | |
// @grant none | |
// ==/UserScript== | |
$(document).ready(function(){ |
This file contains 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 alpine:3.5 | |
ENV OPENLAYERS_VERSION=3.20.1 | |
RUN apk update --no-cache \ | |
&& apk add --no-cache \ | |
nodejs \ | |
openjdk8 \ | |
&& mkdir -p /openlayers \ |
This file contains 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
# uninstall all npm module inside node_modules | |
# credit goes to http://stackoverflow.com/a/24396148/6265296 | |
npm uninstall `ls -1 node_modules | tr '/\n' ' '` |
This file contains 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
# export mysql database into shapefile | |
ogr2ogr out_shapes MYSQL:gis,user=root,password=password | |
# import shapefile into mysql | |
ogr2ogr -f MySQL MySQL:database_name,user=root,password=password my_shapefile.shp -nln table_name -a_srs EPSG:4326 -update -overwrite -lco engine=MYISAM | |
# reproject spatial reference from WGS 84 UTM 48S to Geographic Lattitide/Longitude Coordinate System | |
ogr2ogr -f "ESRI Shapefile" target_file.shp source_file.shp -s_srs EPSG:32748 -t_srs EPSG:4326 |
This file contains 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
Sub SplitWorkbook() | |
'Updateby20140612 | |
Dim FileExtStr As String | |
Dim FileFormatNum As Long | |
Dim xWs As Worksheet | |
Dim xWb As Workbook | |
Dim FolderName As String | |
Application.ScreenUpdating = False | |
Set xWb = Application.ThisWorkbook | |
DateString = Format(Now, "yyyy-mm-dd hh-mm-ss") |
This file contains 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
/** | |
* Simplifiying polyline points on Lattitide/Longitude format with Douglas Peuker Algorithm | |
* original version 'http://www.bdcc.co.uk/Gmaps/GDouglasPeuker.js' | |
* | |
* @param {array} LatLngLiteral with number | |
* @param {number} Tolerance of distance in meter | |
* @return {array} Simplified result | |
*/ | |
function simplify (source, kink) { | |
var n_source, n_stack, n_dest, start, end, i, sig; |
This file contains 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
/** | |
* ALL CREDIT GOES TO ORIGINAL CREATOR | |
* @Ronald Speelman | |
* http://moinne.com/blog/ronald/mysql/mysql-lorum-ipsum-generator | |
* | |
* renamed function for simplicity | |
*/ | |
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES'; |
This file contains 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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document url("https://simtrans.zackad.tk/layanan") { | |
#map{ | |
width: 4000px !important; | |
height: 3000px !important; | |
float: left; | |
} | |
#map .map_container{ |
This file contains 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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("google.com"), domain("google.co.id") { | |
#titlecard, .widget-runway-thumbstrip-background, .widget-runway-background-filler.widget-runway-background-filler-many, .widget-runway-growable, .scene-footer-container, #minimap, .app-viewcard-strip, #watermark{ | |
display: none !important; | |
} | |
} |
This file contains 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
<style> | |
#olahan{ | |
width: 800px; | |
} | |
textarea{ | |
width: 800px; | |
} | |
</style> | |
<script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<textarea name="text" onfocus="initiate()"></textarea> |