sudo apt-get install python3-pip
sudo pip3 install virtualenv
const http = require('http'); | |
const server = http.createServer(); | |
server.on('request', (request, response) => { | |
let body = []; | |
request.on('data', (chunk) => { | |
body.push(chunk); | |
}).on('end', () => { | |
body = Buffer.concat(body).toString(); |
package com.rajendarreddyj.java; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.io.UnsupportedEncodingException; | |
import java.io.Writer; | |
import java.util.Arrays; | |
/** |
@echo off | |
setlocal EnableDelayedExpansion | |
rem | TortoiseSVN - Fix icon overlays | |
rem | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | |
rem | | |
rem | Motivation: every few months, Dropbox/OneDrive/GDrive launch an update which breaks TSVN icon overlays [1]. | |
rem | Fix: run through overlay identifiers and increase TSVN icons using the same hack everyone is using: prepend spaces before | |
rem | | |
rem | References: |
packagingExcludes
configuration tag can be used to exclude certain files or directories from the war file.
It is important to put '/' character at the end of the directory to be excluded. If there is no such '/' character,
then the entry is interpreted as a regular file.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
'use strict'; | |
/** | |
* This directive parses both 1.2 and 1,2 into a valid float number 1.2. | |
* Note that you can't use input type number here as HTML5 browsers would | |
* not allow the user to type what it would consider an invalid number such as 1,2. | |
* | |
* <input ng-model="{yourModel}" validate-float /> | |
*/ | |
angular.module('Library').directive('validateFloat', function () { |
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
Shapefile source: http://www.istat.it/it/archivio/24613
Convert shapefile to geojson, s_srs defines the input projection, t_srs defines the output projection to the EPSG code 4326 (http://spatialreference.org/ref/epsg/4326/) see also http://www.gdal.org/ogr2ogr.html
ogr2ogr -f GeoJSON -s_srs prov2011_g.prj -t_srs EPSG:4326 sub.json prov2011_g.shp
function heidiDecode(hex) { | |
var str = ''; | |
var shift = parseInt(hex.substr(-1)); | |
hex = hex.substr(0, hex.length - 1); | |
for (var i = 0; i < hex.length; i += 2) | |
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift); | |
return str; | |
} | |
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393')); |