Skip to content

Instantly share code, notes, and snippets.

View wdog's full-sized avatar
🎯
Focusing

wdog wdog

🎯
Focusing
View GitHub Profile
@wgh000
wgh000 / countries.php
Created April 29, 2014 12:26
Nazioni Mondo - Array PHP
<?php
$countries = array(
'AD' => 'Andorra',
'AE' => 'United Arab Emirates',
'AF' => 'Afghanistan',
'AG' => 'Antigua &amp; Barbuda',
'AI' => 'Anguilla',
'AL' => 'Albania',
'AM' => 'Armenia',
'AN' => 'Netherlands Antilles',
@cesschneider
cesschneider / gist:7689698
Last active May 21, 2022 05:23
Code snippet to test Arduino Nano led using breath effect.
/*
Android Breath v0.2
Simulates led breathing found on Android devices.
Tested with Arduino Nano ATmega328.
Cesar Schneider <[email protected]>
https://gist.github.com/cesschneider/7689698
*/
// Pin 13 has an LED connected on most Arduino boards.
@sirleech
sirleech / gist:2592215
Created May 4, 2012 05:19
RRDdata Temperature Database Example

Use this command to get the UNIX time

date +%s

Create a gauge RRD with a 60 second heartbeat

rrdtool create temperature.rrd --step 60 \
  DS:temp:GAUGE:600:-273:5000 \
 RRA:AVERAGE:0.5:1:1200 \