This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->set('documentData', array('xmlns:dc' => 'http://purl.org/dc/elements/1.1/', 'xmlns:atom' => 'http://www.w3.org/2005/Atom')); | |
$this->set('channelData', array( | |
'title' => __("Comercio Exterior", true), | |
'link' => 'http://www.aduanacol.com/news.rss', | |
'description' => __("Noticias más recientes de comercio exterior Colombiano.", true), | |
'language' => 'es-co', | |
'atom:link' => array( | |
'attrib' => array( | |
'href' => 'http://www.aduanacol.com/news.rss', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff $start_commit..$end_commit -- path/to/file | |
For instance, to see the difference for a file "main.c" between now and two commits back, here are two equivalent commands: | |
$ git diff HEAD^^ HEAD main.c | |
$ git diff HEAD^^..HEAD -- main.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int incomingByte = 0; // para el byte leido | |
int biggreen = 7; | |
int red = 8; | |
int green = 9; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(9600); | |
pinMode(red, OUTPUT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//**************************************************************// | |
// Name : shiftOutCode, Hello World | |
// Author : Carlyn Maw,Tom Igoe, David A. Mellis | |
// Date : 25 Oct, 2006 | |
// Modified: 23 Mar 2010 | |
// Version : 2.0 | |
// Notes : Code for using a 74HC595 Shift Register // | |
// : to count from 0 to 255 | |
//**************************************************************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//**************************************************************// | |
// Name : shiftOutCode, Hello World | |
// Author : Carlyn Maw,Tom Igoe, David A. Mellis | |
// Date : 25 Oct, 2006 | |
// Modified: 26 Sep 2013 | |
// Version : 2.0 | |
// Notes : Code for using a 74HC595 Shift Register // | |
// : to show POV persistence of vision | |
// http://arduino.cc/en/Tutorial/ShiftOut | |
// using this sample code http://paulsarduino.co.uk/?page_id=50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sync remote branch that local git repo is not aware of yet: | |
git remote show origin | |
If the remote branch you want to checkout is under "New remote branches" and not "Tracked remote branches" then you need to fetch them first: | |
git remote update | |
git fetch | |
Now it should work: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Fade | |
This example shows how to fade an LED on pin 9 | |
using the analogWrite() function. | |
This example code is in the public domain. | |
*/ | |
int led = 9; // the pin that the LED is attached to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reindexing Litecoin wallet when saying DB corruption, open terminal and enter | |
cd /Applications/Litecoin-Qt.app/Contents/MacOS | |
./Litecoin-Qt -reindex | |
It works.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Select on Arduino tools | |
Tools > Board > Arduino Pro or Pro mini | |
Tools > Processor > ATmega328 (5V, 16MHZ) | |
Tools > Programmer > AVR ISP | |
When uploading a sketch first press reset button on the arduino then select Upload, once 'Uploading...' text appears realease the button. | |
NFC RFID-RC522 | |
*Ardunio Uno, Arduino Pro, Arduino Pro mini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.keys(data.data).length |