Skip to content

Instantly share code, notes, and snippets.

Vivek Bhusal Vivekbhusal

Block or report user

Report or block Vivekbhusal

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
View redux-react-delete-undo.js
class MyPosts extends Component{
constructor(props) {
super(props);
this.handleDeletePost = this.handleDeletePost.bind(this);
}
handleDeletePost(postID) {
const {dispatch} = this.props;
dispatch(deletePostsRequest(postID))
}
View mysql-backup.rb
#!/usr/bin/env ruby
require 'mail'
mysql_username = 'root'
mysql_password = '123456'
mysql_database = 'test'
system("mysqldump --user=#{mysql_username} --password=#{mysql_password} #{mysql_database} > backup.sql")
# Credit to :
View CircleTransform.java
package com.example.picassodemo;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Paint;
import com.squareup.picasso.Transformation;
/**
You can’t perform that action at this time.