Skip to content

Instantly share code, notes, and snippets.

View MN-dev's full-sized avatar
🎯
Focusing

MN-DEV MN-dev

🎯
Focusing
View GitHub Profile
@MN-dev
MN-dev / delete-videos-from-playlist.js
Created January 2, 2016 02:08 — forked from timothyarmstrong/delete-videos-from-playlist.js
Delete all videos in YouTube Playlist
(function() {
var i = window.setInterval(function() {
var closeButton = document.querySelector('.pl-video-edit-remove');
if (closeButton) {
closeButton.click();
} else {
window.clearInterval(i);
}
}, 500);
})();
@MN-dev
MN-dev / conn.php
Last active September 28, 2016 17:06
<?php
$host = "localhost";
$user = "root";
$pass = "";
$db = "test";
try{
$conn = new pdo ("mysql:host=$host; dbname=$db",$user,$pass);
}
sudo wget https://download-cf.jetbrains.com/webide/PhpStorm-2016.1.2.tar.gz && sudo tar xfvz Phpstorm-2016.1.2.tar.gz && sudo mv Phpstorm-2016.1.2.tar.gz /opt/phpstorm && sudo ln -s /opt/phpstorm/bin/phpstorm.sh /usr/local/bin/phpstorm
@MN-dev
MN-dev / Preferences.sublime-settings.json
Created November 1, 2016 01:05
Sublime Text 3 settings
{
"color_scheme": "Packages/Theme - Darcula/Intellij Darcula.tmTheme",
"font_face": "Source Code Pro Medium",
"font_size": 14,
"translate_tabs_to_spaces": true,
"highlight_line": true,
"default_line_ending": "unix",
"open_files_in_new_window": false
}
<?php
function connect(){
$host = "localhost";
$user = "root";
$pass = "";
$dbname = "pami1";
$con = mysqli_connect($host,$user,$pass,$dbname);
if ($con) {
return $con;
# code...
@MN-dev
MN-dev / uniegy_bloggerpagenavi.js
Created December 2, 2016 22:56
/wiki/uniegy_bloggerpagenavi.js
/*
Page Navigation Widget For Blogger with Colorful Styles
By UinEgy
Url:http://www.uniegy.blogspot.com/
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6 H;6 j;6 c;6 o;1g();y 1h(16){6 7=\'\';I=J(M/2);4(I==M-I){M=I*2+1}K=c-I;4(K<1)K=1;r=J(16/k)+1;4(r-1==16/k)r=r-1;N=K+M-1;4(N>r)N=r;7+="<5 f=\'1C\'>1D "+c+\' 1E \'+r+"</5>";6 17=J(c)-1;4(c>1){4(c==2){4(j=="x"){7+=\'<5 f="1F"><a g="\'+z+\'">\'+O+\'</a></5>\'}d{7+=\'<5 f="l"><a g="/s/u/\'+o+\'?&9-m=\'+k+\'">\'+O+\'</a></5>\'}}d{4(j=="x"){7+=\'<5 f="l"><a g="#" A="P(\'+17+\');B C">\'+O+\'</a></5>\'}d{7+=\'<5 f="l"><a g="#" A="Q(\'+17+\');B C">\'+O+\'</a></5>\'}}}1i(6 h=K;h<=N;h++){4(c==h){7+=\'<5 f="1G">\'+h+\'</5>\'}d 4(h==1){4(j=="x"){7+=\'<5 f="l"><a g="\'+z+\'">1</a></5>\'}d{7+=\'<5
@MN-dev
MN-dev / install_sublime_text.sh
Created December 7, 2016 20:45 — forked from DamianZaremba/install_sublime_text.sh
Install sublime text on linux
cd /usr/src/
wget http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3047_i386.deb
dpkg -i sublime-text_build-3047_i386.deb
<?php
/*
* methods chaining
*/
trait name1{
public function feature(){
echo "string1";
}
}
trait name2{
@MN-dev
MN-dev / MediafireLinkConvert.php
Created December 27, 2016 18:27
Convert mediafire to direct
<!DOCTYPE html>
<head>
<title>
test Convert mediafire to direct
</title>
</head>
<h3> Code By <a href="www.fb.me/OFF.EG">fb.me/OFF.EG</a></h3>
<form action="" method="post">
<input type="text" name="link" placeholder="put your mediafire link here" id="link" required >
<input type="submit" name="submit" value="submit">
@MN-dev
MN-dev / List.md
Created April 2, 2017 19:09 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):