Skip to content

Instantly share code, notes, and snippets.

Shahin Shateri sxshateri

View GitHub Profile
@sxshateri
sxshateri / ESP8266_web_server.ino
Created Feb 16, 2020
ESP8266 Relay Controller Web Serve
View ESP8266_web_server.ino
/*********
Shahin Shateri
ESP8266 Relay Controller Web Serve
*********/
// Load Wi-Fi library
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
@sxshateri
sxshateri / visual-composer-rtl-fix.js
Created Jul 30, 2019 — forked from aliaghdam/visual-composer-rtl-fix.js
WordPress Visual Composer full width row ( stretche row ) fix for RTL
View visual-composer-rtl-fix.js
jQuery(document).ready(function() {
function bs_fix_vc_full_width_row(){
var $elements = jQuery('[data-vc-full-width="true"]');
jQuery.each($elements, function () {
var $el = jQuery(this);
$el.css('right', $el.css('left')).css('left', '');
});
}
@sxshateri
sxshateri / python-hashtag-download-rest.py
Last active May 22, 2020
This is a python script to download all the tweets of a hashtag into a csv file.
View python-hashtag-download-rest.py
import tweepy
import csv
import pandas as pd
import sys
# API credentials here
consumer_key = 'INSERT CONSUMER KEY HERE'
consumer_secret = 'INSERT CONSUMER SECRET HERE'
access_token = 'INSERT ACCESS TOKEN HERE'
access_token_secret = 'INSERT ACCESS TOKEN SECRET HERE'
You can’t perform that action at this time.