Skip to content

Instantly share code, notes, and snippets.

View Zweer's full-sized avatar

Niccolò Olivieri Achille Zweer

View GitHub Profile
@Zweer
Zweer / dani.kml
Last active November 7, 2017 10:59
dani maps
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>VERBANIA_Gaming Machines</name>
<description/>
<Style id="icon-1899-0F9D58-normal">
<IconStyle>
<color>ff589d0f</color>
<scale>1</scale>
<Icon>
@Zweer
Zweer / .jshintrc
Last active August 29, 2015 14:24 — forked from haschek/.jshintrc
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@Zweer
Zweer / _bootstrap-color.less
Created December 12, 2014 15:53
Primary colors extracted from bootstrap
@import "vendor/bootstrap/variables";
@import "vendor/bootstrap/mixins";
// badges.less
.badges {
.list-group-item.active > &,
.nav-pills > .active > a > & {
color: @badge-active-color;
}
}
@Zweer
Zweer / google-maps-helper.js
Created September 8, 2014 00:28
Google maps wrapper/helper
(function($) {
/*
* render_map
*
* This function will render a Google Map onto the selected jQuery element
*
* @type function
* @date 8/11/2013
* @since 4.3.0
@Zweer
Zweer / install.sh
Last active December 30, 2015 16:29
Install a new development ubuntu-like machine
# Install Java (for PHPStorm)
sudo apt-get purge openjdk*
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
sudo apt-get install -y oracle-java7-installer
# Install nodejs
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository -y ppa:chris-lea/node.js
@Zweer
Zweer / mobile.js
Created July 24, 2013 08:41
Mobile detection
var Mobile = {
TOUCH_DOWN_EVENT_NAME: 'mousedown touchstart',
TOUCH_UP_EVENT_NAME: 'mouseup touchend',
TOUCH_MOVE_EVENT_NAME: 'mousemove touchmove',
TOUCH_DOUBLE_TAB_EVENT_NAME: 'dblclick dbltap',
_check: function (userAgentToCheck) {
return navigator.userAgent.match(userAgentToCheck);
},
@Zweer
Zweer / hiless.js
Last active December 16, 2015 21:58 — forked from nomadalex/gist:1319913
(function () {
//
// hiless - LESS Syntax Highlighter
//
// Copyright (c) 2010 Alexis Sellier
//
// All elements which match this will be syntax highlighted.
var selector = 'pre';
{
"files":
{
"jquery" : "http://code.jquery.com/jquery.js",
"jquery.min" : "http://code.jquery.com/jquery.min.js",
"jquery-cookie" : "https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js",
"jquery-dotimeout" : "https://raw.github.com/cowboy/jquery-dotimeout/master/jquery.ba-dotimeout.min.js",
"jquery-extra-selectors" : "https://raw.github.com/keithclark/JQuery-Extended-Selectors/master/jquery-extra-selectors.js",
"jquery-flexslider" : "https://raw.github.com/mbmufffin/FlexSlider/master/jquery.flexslider-min.js",
"jquery-mediaelement" : "https://raw.github.com/johndyer/mediaelement/master/build/mediaelement-and-player.js",
@Zweer
Zweer / default-ssl
Created December 28, 2012 13:54
Configuration for the default-ssl website
<IfModule mod_ssl.c>
<VirtualHost *:443>
DocumentRoot /var/www/default
CustomLog ${APACHE_LOG_DIR}/default/access.log combined
ErrorLog ${APACHE_LOG_DIR}/default/error.log
SSLEngine on
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
@Zweer
Zweer / default
Created December 28, 2012 13:40
Default site configuration
<VirtualHost *:80>
DocumentRoot /var/www/default
CustomLog ${APACHE_LOG_DIR}/default/access.log combined
ErrorLog ${APACHE_LOG_DIR}/default/error.log
</VirtualHost>