Skip to content

Instantly share code, notes, and snippets.

View dmarcelino's full-sized avatar

Dário dmarcelino

  • AppsCot
  • Lisbon, Portugal
View GitHub Profile
@dmarcelino
dmarcelino / stress.sh
Last active April 27, 2017 05:00
Raspberry Overclock stability test
#!/bin/bash
# Simple stress test for system. If it survives this, it's probably stable.
# Free software, GPL2+
# Based on http://elinux.org/RPiconfig#Overclocking
# but using 'cat' instead of 'yes' since OpenELEC for Raspberry doesn't have yes
CORES=1
NO_READS=1
NO_WRITES=3
@dmarcelino
dmarcelino / HintTextArea.js
Created May 19, 2012 02:43
A Titanium Mobile implementation of a TextArea with hintText compatible with iOS
/**
* @author Dario Marcelino
*/
var defaultHintTextColor = 'gray';
var filter = function (/*Object*/ source){
var newObj = {};
for(name in source){