Skip to content

Instantly share code, notes, and snippets.

View MartinSadovy's full-sized avatar

Martin Sadovy MartinSadovy

View GitHub Profile
@MartinSadovy
MartinSadovy / blebeacon.sh
Last active October 9, 2016 16:57 — forked from gbirke/ibeacon.sh
Init script for iBeacon
#!/bin/sh
### BEGIN INIT INFO
# Provides: blebeacon
# Required-Start: $bluetooth
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: true
# Short-Description: Start/stop Bluetooth iBeacon
### END INIT INFO
<?php
// Happy birthday Tom
class Tom extends Person{
public function runBirthday(){
$this->age++;
if($this->age == 18){
$this->acl->allow('doing own decisions');
@MartinSadovy
MartinSadovy / live-form-validation.js
Created August 8, 2012 12:18 — forked from redhead/live-form-validation.js
Live Form Validation for Nette 2.0
/**
* Live Form Validation for Nette 2.0
*
* @author Radek Ježdík, MartyIX, David Grudl, Martin Sadový
*/
var LiveForm = {
options: {
controlErrorClass: 'form-control-error',
errorMessageClass: 'form-error-message',
validMessageClass: 'form-valid-message',