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
<?php | |
/** Just simple code to get twitter Account Bio **/ | |
/** Rischan Mafrur **/ | |
/** April 28 2014 **/ | |
ini_set('display_errors', true); | |
// set display error | |
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
% Sub Figure in Latex | |
% Rischan Mafrur | |
% May 10, 2014 | |
\begin{figure} | |
\begin{subfigure}{.25\textwidth} | |
\centering | |
\includegraphics[width=\textwidth]{tweet_tolak.png} | |
\caption{Caption Sub Figure A} | |
\label{fig:label_a} |
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
def unfollow(): | |
api = setup_api(consumer_key, consumer_secret, access_key, access_secret) | |
i = 0 | |
while True: | |
try: | |
for page in Cursor(api.friends).pages(): | |
print 'page:', i | |
f = open('out.txt','a') | |
f.write(str(datetime.now()) + ' Page ' + str(i) + '\n') | |
f.close() |
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
%Rischan Mafrur | |
%Sub Table in Latex | |
% May 20, 2014 | |
\begin{table}[h] | |
\begin{subtable}[h]{0.16\textwidth} | |
\centering | |
\begin{tabular}{|l|l|} | |
XXX & YYY\\ |
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
%Rischan Mafrur | |
%May 2014 | |
% Cite and Caption | |
\usepackage{cite} | |
\usepackage{caption} | |
\usepackage{refstyle} | |
% this is package for write algorithm | |
\usepackage{algorithm} |
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
#author : Rischan Mafrur | |
#email : [email protected] | |
#website : rischanlab.github.io, ourmasjid.me | |
#May 15, 2014 | |
#install requirement packages | |
install.packages("klaR") | |
install.packages("caret") | |
#loading library |
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
#in this case I use matlab application in Ubuntu | |
sudo wget http://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png -O /usr/share/icons/matlab.png | |
#download image for matlab | |
#go to this path | |
/usr/share/applications/matlab.desktop | |
#Insert this content to the matlab.desktop | |
[Desktop Entry] |
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
#Dont forget to install this, if you use python to accessing your MySQL db | |
apt-get install libmysqlclient-dev python-dev | |
#If you wanna to use python MySQL and tweepy, you can install it | |
sudo pip install tweepy | |
sudo pip install MySQL-python | |
#Change root password | |
mysql => UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root'; FLUSH PRIVILEGES; |
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
#author : Rischan Mafrur | |
#email : [email protected] | |
#website : rischanlab.github.io, ourmasjid.me | |
#May 15, 2014 | |
#install requirement packages | |
install.packages("klaR") | |
install.packages("caret") | |
install.packages("plotrix") |
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
\begin{figure*}% | |
\centering | |
\begin{subfigure}{.95\columnwidth} | |
\includegraphics[width=\columnwidth]{tolakpartaipoligami_pie3D.png}% | |
\caption{\#TolakPartaiPoligami hashtag} | |
\label{fig:sub1} | |
\end{subfigure}\hfill% | |
\begin{subfigure}{.95\columnwidth} | |
\includegraphics[width=\columnwidth]{sayapilihpks_pie3D.png}% | |
\caption{\#SayaPilihPKS hashtag} |
OlderNewer