Skip to content

Instantly share code, notes, and snippets.

☕️
Playing with code

Shameem Reza shameemreza

☕️
Playing with code
Block or report user

Report or block shameemreza

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@shameemreza
shameemreza / sublime-text-3-shortcuts.md
Created Jun 23, 2019
Sublime Text 3 - Useful Shortcuts for v OS
View sublime-text-3-shortcuts.md

Sublime Text 3 - Useful Shortcuts (Windows)

General

Shortcut Description
Ctrl+Shift+P command prompt
Ctrl+Alt+P switch project
Ctrl+P go to file
Ctrl+G go to line
View keybase.md

Keybase proof

I hereby claim:

  • I am shameemreza on github.
  • I am shameemreza (https://keybase.io/shameemreza) on keybase.
  • I have a public key ASCqtB4s9zAkw88KLBhznVz8ieE6lC6udxniAw4XOZRGxQo

To claim this, I am signing this object:

View removing-website-url-field
add_filter('comment_form_default_fields', 'remove_url');
function remove_url($fields)
{
if(isset($fields['url']))
unset($fields['url']);
return $fields;
}
View block-spammers-ip-address
Order allow,deny
Deny from 88.136.129.110
Allow from all
View wordpress-spam-comment-htaccess
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*yourblog.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
View disable-html-in-wordpress-comments
function shameem_comment_post( $incoming_comment ) {
$incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']);
$incoming_comment['comment_content'] = str_replace( "'", ''', $incoming_comment['comment_content'] );
return( $incoming_comment );
}
function shameem_comment_display( $comment_to_display ) {
$comment_to_display = str_replace( ''', "'", $comment_to_display );
return $comment_to_display;
}
add_filter( 'preprocess_comment', 'shameem_comment_post', '', 1);
View wordpress-spam-comment-black-list
4U
Claims you are a winner
For instant access
Accept credit cards
Claims you registered with Some Kind of Partner
For just $ (some amt)
Act now! Don’t hesitate!
Click below
Free access
Additional income
View insertion-sort-java
// Java program for implementation of Insertion Sort
class InsertionSort
{
/*Function to sort array using insertion sort*/
void sort(int arr[])
{
int n = arr.length;
for (int i=1; i<n; ++i)
{
int key = arr[i];
View insertion-sort-python
# Python program for implementation of Insertion Sort
# Function to do insertion sort
def insertionSort(arr):
# Traverse through 1 to len(arr)
for i in range(1, len(arr)):
key = arr[i]
View insertion-sort-c
// C program for insertion sort
#include <stdio.h>
#include <math.h>
/* Function to sort an array using insertion sort*/
void insertionSort(int arr[], int n)
{
int i, key, j;
for (i = 1; i < n; i++)
{
You can’t perform that action at this time.